|
-
Feb 3rd, 2003, 04:44 PM
#1
Thread Starter
Lively Member
[Resolved] SDL and VC++
Hello.
I am having problems with SDL and VC++ 6.0
I followed the instructions for using SDL in VC6, but I still get unexplained errors. I can't see what i'm doing wrong, has anyone else got any ideas?
Thanks in advance!
Last edited by ALundrigan; Feb 6th, 2003 at 09:29 PM.
- Adam Lundrigan
-
Feb 4th, 2003, 11:25 AM
#2
Frenzied Member
Did you make your project a console app?
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Feb 4th, 2003, 06:35 PM
#3
Thread Starter
Lively Member
No matter what I do I still get the same error. I've tried all the console and Win32 application types that are available in my VC6. The SDL VC++ page says that you should make your project a multithreaded DLL.
That gets rid of the errors, but the program doesn't execute then. No console window comes up and, from what I can gather, no code gets executed.
-
Feb 4th, 2003, 07:04 PM
#4
Frenzied Member
Hmm looks like you should make a console app, and add:
#include <stdlib.h>
Try that
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Feb 4th, 2003, 07:18 PM
#5
Frenzied Member
Ok I got mine to compile by doing the following:
Copying all the includes and libs in to the include and lib directories under MSVC.
Created a new console win32 app
Copied the dll into my project folder
Changed the compile option to multi-threaded DLL
The used this code:
PHP Code:
#pragma comment (lib, "SDL.lib")
#pragma comment (lib, "SDLmain.lib")
#include <stdlib.h>
#include "SDL.h"
int main( int argc, char* argv[] )
{
// Body of the program goes here.
return 0;
}
And it compiles and a window pops up
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Feb 5th, 2003, 11:27 AM
#6
Thread Starter
Lively Member
-
Feb 6th, 2003, 09:29 PM
#7
Thread Starter
Lively Member
It worked! Thanks a million!
-
Feb 7th, 2003, 01:31 AM
#8
Frenzied Member
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|