View Single Post
Old 02-02-2004, 04:05 AM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,720
redhead is on a distinguished road
it could be many things, usualy it's because you use a return value from a function in a way, that it wasn't intended to.

In IDE1 the function may be type int, and you use it like:
if(function(arg) > 1)
/* do stuff/*;
Then in IDE2 the function is of type void*, and it will complain that the type void* can't be directly compared to a value of type int, you can either do:
if((int)function(arg) > 1)
/* do stuff*/;
Or you can assign the return value to a variable, and then check teh value of the return in a cast like the function call was.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote