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 / iostream

Author
Message
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 25th Nov 2007 04:52
Funny how I should encounter this problem. Everything was fine until I decided to change the whole structure of my program so it was more object oriented... It screwed everything up. I decided to edit my code and make it as simple as possible. And I did:


And look what it produced (and I tried /NODEFAULTLIB[:library] and it screwed up even more stuff):


Help me At first glance I thought it was project references but I'm not so sure now...

dbPrint ( "Sig" );
Raigne
16
Years of Service
User Offline
Joined: 24th Nov 2007
Location:
Posted: 25th Nov 2007 07:15
Yea i had the same problem when i tried to use stringstream.
I was also wondering what the link errors are from.
Deagle
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: Finland
Posted: 25th Nov 2007 10:27
Isn't cin only for command line programs? I guess it stands for "Console in" and cout stands for "Console out"

Deagle aka D-Eagle
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 25th Nov 2007 10:30
Perhaps you should check if the options Multi-threaded & Release mode are activated...
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 25th Nov 2007 14:42
I tried that before I posted this message. It does say "Enter a value to be saved" but there is no input.

dbPrint ( "Sig" );
RPDan
17
Years of Service
User Offline
Joined: 29th Apr 2007
Location:
Posted: 25th Nov 2007 14:44
For some reason it doesn't like incouding standard library files. Also, std::cin won't work. Use dbInput() (I think).
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 25th Nov 2007 14:50
@RPDan: I'll just use dbInput then. Thx

dbPrint ( "Sig" );
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 25th Nov 2007 15:33
Go to: Project > Properties > Configuration Properties > C/C++ > Code Generation, and set Runtime Library to Multi-threaded DLL (/MD)

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 25th Nov 2007 18:55
I tried that... Didn't work. Thx though. Now the problem is that when the user types, no text is outputed (as they type).

dbPrint ( "Sig" );
James Bondo
18
Years of Service
User Offline
Joined: 12th Nov 2006
Location: Denmark
Posted: 26th Nov 2007 22:30
I dont know much about C++, but im pretty sure cin and cout is for windows console ONLY.
DGDK is not a console.

Using Dark GDK.NET
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 26th Nov 2007 22:49
I figured that...

dbPrint ( "Sig" );
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 27th Nov 2007 23:54
What you could do is, instead of using iostream you could create your own cin and cout objects that work with DBP, and invoke print or text for output and input or entry$ for input

This is probably pointless though, but you could if you wanted

TheSturgeon(playing me at chess) : I will use my powers of the horse and pwnzor you.

Login to post a reply

Server time is: 2024-11-19 17:35:11
Your offset time is: 2024-11-19 17:35:11