|
Its a suggestion I think you can see extensions in registry each extenstion has a program that open it now when you dclick in your treectrl you cna check registry for it extenstion for example bmp has Paint.exe or doc
Wordpad
|
|
|
|
|
can u explain indetail am not understandining what you replied...
|
|
|
|
|
See HKEY_CLASSES_ROOT in registry if you click on .avi you can see OpenWithList and then wmplayer.exe its default for run this extension for anothers has a program or maybe not for default now you can check your extension file with this values and run with default program
|
|
|
|
|
Hi All,
I used CSplitterWnd to have two view, these two views will display images, but the problem is these images are continuos images (i can't use a single view, 'coz of the design). so i have to avoid the divide line of the splitter control.
I tried all the thing in OnDrawSplitter but nothing worked (a blank white space is visible, if just return).
Is there any way to avoid the splitter divider??
Do your Duty and Don't expect the Result
|
|
|
|
|
hi all,
how can i link this library(Ws2_32.lib)o my project as this library is in visual studio 6.0 so can i directly include the path of this folder to remove linking errors
plz help me
regards
venu
venu
|
|
|
|
|
Hi,
look at
Tools->Options
Dialog-Tab: Directories
Choose: Library Files
and add the directory from the lib
HTH
Frank
|
|
|
|
|
Use Project-->Settings-->Link-->Object\Library module edit box.
|
|
|
|
|
thank you all,
i solved the problem...it was another library to link it(winsock.lib)
regards
venu
|
|
|
|
|
Hi
But winsock.lib (winsock version 1.0) is the old version. The newer version is ws2_32.lib (winsock version 2.0)
Frank
|
|
|
|
|
i have a char array that can include multiple null terminators ( '\0' ). I am trying to
traverse my array extracting all digits.
My code below is breaking when loopCnt gets set to 6. I think this is because there are no
more valid chars in my array. Can anyone help
char szBuffer[101];<br />
<br />
szBuffer[0] = '1';<br />
szBuffer[1] = '\0';<br />
szBuffer[2] = '2';<br />
szBuffer[3] = '\0';<br />
szBuffer[4] = '3';<br />
szBuffer[5] = '\0';<br />
<br />
std::string str = szBuffer;<br />
<br />
std::ostringstream strm;<br />
for ( int loopCnt = 0; loopCnt < 101; loopCnt++ )<br />
{<br />
if( isdigit(szBuffer[loopCnt]) != 0 )<br />
{<br />
strm << szBuffer[loopCnt];<br />
}<br />
}
|
|
|
|
|
flippydeflippydebop wrote: if( isdigit(szBuffer[loopCnt]) != 0 )
isdigit returns true if ASCII representation of input is 0-9.
In your case for setting char to 0(zero), use '0' instead of '\0'.
You code can be modified like this.
char szBuffer[101];
memset(szBuffer,'0',101)
szBuffer[0] = '1';
szBuffer[1] = '0';
szBuffer[2] = '2';
szBuffer[3] = '0';
szBuffer[4] = '3';
szBuffer[5] = '0';
std::string str = szBuffer;
std::ostringstream strm;
for ( int loopCnt = 0; loopCnt < 101; loopCnt++ )
{
if( isdigit(szBuffer[loopCnt]) != 0 )
{
strm << szBuffer[loopCnt];
}
}
|
|
|
|
|
flippydeflippydebop wrote: char szBuffer[101];
Use:
char szBuffer[101] = {0}; flippydeflippydebop wrote: My code below is breaking...
Which means what exactly?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
or you can use
<br />
char szBuffer[101];<br />
ZeroMemory(szBuffer,101);<br />
...<br />
...<br />
|
|
|
|
|
Hello,
how can I cancel(close) the popup menu when I decide to do that in the WM_INITMENUPOPUP notification handler ?
I've tried to call DestroyMenu() on provided menu handle but it does not work althought it returns 1 (success).
Thank you!
rrrado
|
|
|
|
|
How you are creating menu, can you show it?
Because,I suspect, you are using temporary handle to menu(which is supposed not to use), to destroy menu.
|
|
|
|
|
User is creating the menu so I think that handle is temporary. I haven't found this information that it's not for destruction - so how can I close the menu ?
I've also tried PostMessage(WM_CHAR,VK_ESCAPE,1); to owning window's handle it also failed.
rrrado
|
|
|
|
|
I've got it. It seems that sending WM_CANCELMODE does the trick
rrrado
|
|
|
|
|
Hi,
only a (untested) proposal.
Have you tried WM_MENUSELECT?
This message is (possible) send before WM_INITMENUPOPUP.
-> catch the selection before the popupmenu is created
HTH
Frank
|
|
|
|
|
rrrado wrote: User is creating the menu
How ?
rrrado wrote: I haven't found this information that it's not for destruction - so how can I close the menu ?
It can be used for destruction, but its temporary, means you cannot store it ,and use from some other function.
Can you show some code?
|
|
|
|
|
User press context menu key or right click. I'm not storing handle for later use.
But it does not matter now as I've wrote before i've solved it by sending WM_CANCELMODE message.
Thank you all guys for your time!!!
rrrado
|
|
|
|
|
rrrado wrote: I've wrote before i've solved it by sending WM_CANCELMODE message
I've seen your post , after posting mine. And today, there seems to be problem with modifying post. So, it is there as it is.
|
|
|
|
|
Hi,
I want to display a text with underline in my view class.
Can we do this in our coding?Any functions is there?
Ex: TEXT
I do not use CPoint to display there.
I am copying the text to somevariable and then i pass this to dll function and then it display in view window.
code:
strcpy(czTemp"TEXT");
Anu
|
|
|
|
|
hi,
check for CFont in MSDN.
//
CFont fntArial, fntBoldSwiss;
fntArial.CreateFont( 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, "Arial" );
fntBoldSwiss.CreateFont( rcClient.Height()/20, 0, 0, 0,
FW_BOLD, TRUE, FALSE, 0, ANSI_CHARSET,
OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS,
NULL );
Uday kiran
|
|
|
|
|
Your question doesn't really make sense. If you pass a char array to a dll that is in charge of the display of the string and if you cannot change it, then it is impossible. A char array doesn't contain any formating informations, it contains data only (so, only the letters of your string).
|
|
|
|
|
You can set fdwUnderline to true in CreateFont and if you use of CDC for write to screen use SelectObject
|
|
|
|