Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / loading an image error 'identifier not found'?

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Mar 2009 21:36
Hi All.

learing how to use VC2008, whats wrong with code, trying to put the number 1 into the load image.



when debug is run it comes back with identifier not found

Dark Physics makes any hot drink go cold.
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 6th Mar 2009 22:06
Use

Make sure you spell the db commands right (and yes, that does mean that you need to spell case-sensitive) so the compiler knows what you are talking about.

#ifdef _DEBUG
FixBugs(All);
#endif
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Mar 2009 22:10
Bran flakes91093 Thanks, that's a big lesson to know, one error command learnt only a few more to go.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Mar 2009 22:57
save making another thread here my next problem.

I have main.ccp and another called loadstationpictures.ccp
now I thought you just needed to added this into main.cpp

#include "loadstationpictures.ccp"

however it just gives errors, works ok if code is all in the same place like main.

so should this be a ccp or h ?

Dark Physics makes any hot drink go cold.
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 6th Mar 2009 23:27
It should be a header file (.h). The header should include any declarations, like so:



And your CPP file will define these functions.

Login to post a reply

Server time is: 2024-09-30 19:23:36
Your offset time is: 2024-09-30 19:23:36