|
Hell All
I want some information about VC++.net that can we use all API in VC++6.0 in VC++.net. Is there any API which can not used in VC++.net but in VC++ 6.0.
Thanks and Regards
Atool
Atool
|
|
|
|
|
never say die
|
|
|
|
|
Refer this[^] link.
With higher version, their is support for new functionality.
M. Atul wrote: Is there any API which can not used in VC++.net but in VC++ 6.0.
Provided link should satisfy your query. There are some functions you use, but marked as depreceted.
|
|
|
|
|
|
I have send mail programitally using smtp...
But now i want to enhance my application
What i want to do is i want to provide authentication to smtp server...
How to do it???
|
|
|
|
|
use smtpclient class
never say die
|
|
|
|
|
hi every one
please tell me where do delete "achdata pointer" in this code ?
char* achData=new char[100];
strcpy(achData,"Hello");
<br />
for(;;)<br />
{<br />
char *ch=new char[100];<br />
<br />
strcat(ch,achData);<br />
<br />
if(ch)<br />
{<br />
delete[] ch;<br />
ch=NULL;<br />
}<br />
}<br />
<br />
if(achData)
{<br />
delete[] achData;<br />
achData=NULL;<br />
}
|
|
|
|
|
I assume this is a joke, because of the smiley face marking the problem line.
You will never get to the code that deletes "achdata" because of the infinite "for" loop.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
John R. Shaw wrote: I assume this is a joke, because of the smiley face marking the problem line.
The smiley face was unintentional - a result of for( ; ; ), with the spaces removed.
|
|
|
|
|
I should have thought of that.
Note to self: Do not answer questions before your mourning coffee.
|
|
|
|
|
John R. Shaw wrote: your mourning coffee.
There, there... dont take it to heart.
|
|
|
|
|
|
So was this a joke? If not then
this code is bad:
char *ch=new char[100];
strcat(ch,achData);
You haven't initialized ch before using strcat() on it.
You are in an endless for loop so your "if(achData)//This code will not run never" will
never get called.
|
|
|
|
|
Sorry about that....I just noticed John Shaw already answered about the endless loop.
Sorry John
|
|
|
|
|
use of Ignore HTML tags when you want to psot code
|
|
|
|
|
Im working in C++ w MFC. In my program i create a char that looks kinda like this:
char data[11] = "1101110110";
and then later in the program i have a for which reads this binary data and does certain things depending on if its a 1 or 0:
for ( short c=0; c<=10; c++ )
{
if (data[c] == 1 )
{
//do this
}
}
But it doesn't work at all, the data[c] always seems to return 0 with the if..
any ideas?
maybe theres a better way to store my binary data (which is actually a lot longer, like 64 chars) and then do things depending on 1 or 0?
thanks!
man ive gotten like loads of post errors now..
/Johannes
|
|
|
|
|
you are testing ascii values
ie.
'1' == 49
for this to work you can test
if (data[c] == 49)
or you can test
if (data[c] == '1')
Hope this helps
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
if ( 1==(int)data[c])
never say die
|
|
|
|
|
i m not able to modify my posting so a better way
int i=atoi(&data[c]);<br />
if ( 1==i)
never say die
|
|
|
|
|
Johpoke wrote: if (data[c] == 1 )
{
change this to
if (data[c] == '1' )
{
}
|
|
|
|
|
Johpoke wrote: char data[11] = "1101110110";
Are you really using
data as a chars or as numbers? You can't directly compair a number to a char.
If
data is just an array of numbers and thats all its used for why not do an array of numbers then?
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Ah yes of course thank you all!
/Johannes
|
|
|
|
|
Dear all,
Anyone have an idea about how to disable sound of a particular application. it may be a game exe or a swf(flash) file or any type. Is it possible ?
Using direct show filters(Overriding default filter) i can make it work with only media files. But i don't know how to prevent sound coming from an exe.
Any help is appreciated.
My project is just for study purpose.
Best Regards
krishnan
If u can Dream... U can do it
|
|
|
|
|
Hi,
I am executing an exe file using CreateProcess. Is there any mechanisam to check wheather the .exe file is already running or not .
Thanks and Regards,
Venkat
|
|
|
|
|
Do a search for "single instance" - you'll find a few articles on the subject.
|
|
|
|