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 / How to get sdk to accept strings?

Author
Message
Zeal
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: Colorado Springs, CO
Posted: 5th Apr 2006 14:30
Im trying to do the old...



... and would like to use the string class. Bouncy gave a few examples using sprintf, but id rather use the string class if I can. What exactly do I need to do to get the above code working in c++? My first attempt didnt work, the 'db' functions cant convert the string to whatever it needs --->



All you need is zeal
Miguel Melo
19
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 5th Apr 2006 14:31
Try



I have vague plans for World Domination
Zeal
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: Colorado Springs, CO
Posted: 5th Apr 2006 14:38
nope, get the following error



All you need is zeal
Miguel Melo
19
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 5th Apr 2006 15:21
Oh, hell's bells... I'm typing all this in from the top of my head.... try



or better yet (the C++ way)



Hope I got this right now.

I have vague plans for World Domination
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Apr 2006 15:30
That is the way to do it. I asked mike to change all of the SDK functions to accept 'const char*' arguments instead of 'char*', but there hasn't been a major SDK release since then.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Zeal
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: Colorado Springs, CO
Posted: 6th Apr 2006 03:09
My heroes! Thanks guys!

All you need is zeal

Login to post a reply

Server time is: 2024-11-19 05:26:50
Your offset time is: 2024-11-19 05:26:50