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 / dbInput Command

Author
Message
Dark Lord
19
Years of Service
User Offline
Joined: 19th Aug 2005
Location: Australia
Posted: 3rd Sep 2005 02:10
The dbInput() Command is supposed to take a char pointer and an int (well that is what the documentation says) but when I try to use the command:

// Ask for a value
int a;
dbInput("Enter a: ",a);

It has a random error:
: error C2660: 'dbInput' : function does not take 2 arguments
It says it takes 2 args in the documentation

It also says that the string is optional except:

// Ask for a value
int a;
dbInput (a);

Another nasty build error:
error C2660: 'dbInput' : function does not take 1 arguments

Mabey im just not using the command in the right way/or the documentation is wrong...

It cant be "a = dbInput()" because the function returns void
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Sep 2005 16:17 Edited at: 3rd Sep 2005 16:30
Have you tried :

char *ptr=dbInput();

?

Its a case of the documentation being wrong.

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
Dark Lord
19
Years of Service
User Offline
Joined: 19th Aug 2005
Location: Australia
Posted: 4th Sep 2005 01:01
thankyou!!!

So does the function saves the address of a new charector array in the pointer???

Login to post a reply

Server time is: 2024-11-19 01:24:50
Your offset time is: 2024-11-19 01:24:50