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 / funny error

Author
Message
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 16th Aug 2005 04:42

get an error saying that dbVal is an undeclared identifier but




doesnt.

Formerly The Fixxer
http://www.xiemsoft.cjb.net
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Aug 2005 14:40
If one works the other should also, unless you are using 2 different source files, and haven't included DarkSDK.h in the one that doesn't work.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 16th Aug 2005 23:56
As Ian says it looks like this is related to the DarkSDK header file not being included in your source file that references this function.
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 17th Aug 2005 00:19
Those two snippets are in the same function, which is in a header file which is included underneath the inclusion of the dsdk.

Formerly The Fixxer
http://www.xiemsoft.cjb.net
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 17th Aug 2005 00:29
This is the function. The variables are delcared in a different header file.



Formerly The Fixxer
http://www.xiemsoft.cjb.net
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 17th Aug 2005 00:41
Odd how it should do that.

A simple solution is to replace dbVal with a call to "atoi" so your line looks like "intLoadingImageNumber = atoi(strCurrentLine);"

To use "atoi" you may need to include "stdlib.h"
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 17th Aug 2005 00:48
hmmmm I changed it to atoi and then it said my other dbVal was un declared. Then I included the DarkSDK.h into my file where the function was and still the same error :x

Formerly The Fixxer
http://www.xiemsoft.cjb.net
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 17th Aug 2005 09:26
It seems there is no dbVal command per se, there is dbValF or dbValR though.

Me things someone forgot to add that in

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk

Login to post a reply

Server time is: 2024-11-19 01:38:41
Your offset time is: 2024-11-19 01:38:41