|
you mean exactly as you wrote? hmm didn't give it a try , will do and let u know
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
WhiteSky wrote: If you run PlaySound(null,SND_PURGE);whats happen?
Where's the third argument?
"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
|
|
|
|
|
Hi DavidCrow
wow David do you remember when i said to you one thing in The Lounge my guess was right but you said no but i said its fact .PlaySound(NULL,NULL,SND_PURGE);
|
|
|
|
|
WhiteSky wrote: David do you remember when i said to you one thing in The Lounge...
Are you referring to this? If so, I fail to see your point.
WhiteSky wrote: ...my guess was right...
About what?
WhiteSky wrote: PlaySound(NULL,NULL,SND_PURGE);
In your reply here, you only provided two arguments to PlaySound(). I "corrected" you by asking about the missing argument. What part of that did you not understand?
"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
|
|
|
|
|
I underestood your answer and got it ok and thanks.
--------------------
yes,you see a right point but Im wondering for a new thing the date from that message is 20 Jul and now is 5 Sep about two months ago it past very fast
|
|
|
|
|
hi all,
again i got this error
error LNK2001: unresolved external symbol _strnicmp
which library to link ?
plz help me
regards
venu
|
|
|
|
|
Hi,
good question ...
a) libc.lib -> single threaded, static link
b) libcmt.lib -> multithreaded, static link
c) msvcrt.lib -> multithreaded, dynamic link
and for debugging versions
libcd.lib
libcmtd.lib
msvcrtd.lib
HTH
Frank
|
|
|
|
|
hi Frank,
thank you for reply..
still i am getting this error
fatal error LNK1104: cannot open file libcd.lib
fatal error LNK1104: cannot open file libcmtd.lib
fatal error LNK1104: cannot open file 'msvcrtd.lib
do i need to add any include path ?
regards
venu
|
|
|
|
|
Are you sure File is exist and path is correct?
|
|
|
|
|
Hi,
you need only one of this libraries. Each of this libraries has the "same" functions, but for other threading and linking!
Include path:
Version 1: (for the studio)
Tools->Options
Dialog-Tab: Directories
Choose: Library Files
and add the directory from the lib
Version 2: (only the project)
Use Project-->Settings-->Link-->Object\Library module edit box.
the correct path for you = ???
-> search for one of this files
-> possible results:
c:\program files\Microsoft Visual Studio\VC98\Lib
c:\program files\Microsoft SDK\lib
If you found more than one locations, use the newest versions. (e.g. SDK -> include order)
HTH
Frank
|
|
|
|
|
I Have SDI application with form view.
In that form view have tree control.
In tree control some items exist.
Now what i want is.....
if item is related to doc file then i double
click on that item, that item will be opened with
Microsoft word.
How can i do it?
|
|
|
|
|
kiranin wrote: if item is related to doc file then i double
click on that item, that item will be opened with
Microsoft word.
How can i do it?
Can't you simply use ShellExecute() ?
"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
|
|
|
|
|
Do you want to run like explorer for example if you dclick in a doc then this file open with wordpad or txt with Notepad and...,right?
|
|
|
|
|
ya u r right. But i want to work it in my application
|
|
|
|
|
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];
}
}
|
|
|
|