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 / error C2065: 'sprintf' : undeclared identifier

Author
Message
dogzer
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 9th Nov 2005 02:34
I'd like to know how can i transform floats and ints into char* so i can write it on the screen with dbText.

Someone suggested this code on another thread:



But i get "error C2065: 'sprintf' : undeclared identifier" on the error messages.

I'm using VC++6 by the way. Can anyone help me solve this problem?
Sephnroth
21
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 9th Nov 2005 03:45
#include "stdio.h"

put that at the top of your program to use sprintf()

blanky
19
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 9th Nov 2005 09:11
Quote: ""error C2065: 'sprintf' : undeclared identifier""


It means you can't run fast enough
dogzer
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 9th Nov 2005 09:52
Sephtoth: Thanks! I found another way to do it if you are interested wich is:



That worked for me. It's more darksdkey.

Quote: "It means you can't run fast enough"


I knew not sprinting was going to bring me trouble sooner or later.
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 9th Nov 2005 11:26
There is supposed to be a memory problem with dbStr, if I remember correctly...

Come to the third DarkBasic Pro Sci Fi Con - 3 days to go! Gooooo !
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 9th Nov 2005 12:54
Then TGC should fix it now that they are into DBPro 5.9 final release.
I wonder if we have a "to-do" list, because I haven't seen that bug at the bug forum, although I think I've heard it before.
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 9th Nov 2005 12:55 Edited at: 9th Nov 2005 12:55
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 9th Nov 2005 12:57
Ok, great. I missed that one, sorry.
Good job, Sarcasm

Login to post a reply

Server time is: 2024-03-28 11:09:28
Your offset time is: 2024-03-28 11:09:28