Jump to content

Anyone know C++ and can do me a favour??


Ghozer

Recommended Posts

Posted

All the deprecated stuff is because you're using the newer Platform SDK (there are new versions of stuff like strcpy, use strcpy_s instead).

 

.\interface.cpp(56) : error C2065: 'VERSIONpath' : undeclared identifier

 

Not sure on this one, you'd need to check out the source file and try to figure out what it's referring to. Maybe some environment variable or something? Dunno.

Posted

ahh yeah, forgot about that, i can fix that one no issue...

 

I restorred the original source - forgot about that 'bug' i fixed ;)

 

so the deprecated stuff is ok to ignore?

 

lol..

 

LINK : fatal error LNK1181: cannot open input file 'User32.dll' ;) - so i added the path to it in the includes setup.. ;)

 

and now i have a diff error, refresh the Build Log page

Posted
ok, thanks Geoffrey dude, works perfect ;)

 

No probs.

 

The warning errors you mention, relating to the deprecated function calls, you can ignore if you like.

 

There are however, a series of new calls, that have bounds checking built in, to prevent problems such as memory leaks etc. E.G. The old strcpy, just copies data from one string to another, but say you were copying in to a string you'd defined as ..

 

char mystring[20]

 

.. and you were copying a string of 40 chars in to that, using strcpy you'd just get memory leaks.

 

The new strcpy_s for example, will incoporate the length of the destination string in to the copy fuction, so this just makes things more secure.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.