VC++ and other things

Hi!

Secondly, I got SDL working using Visual C++ 5 today and it works
fine! There weren’t many problems:
Cool. I was planning on doing that after I start/finish the uni assignments
I’ve got due in this week/next week. I’m glad someone beat me to it :slight_smile:

I’m sure many people would be interested in this being in the main source
tree. (The .dsp file, .def file and any changes to the source. People
can create their own workspaces :slight_smile:

One more thing: the little game I’ve been making now works with
SDL in Linux and Win32, too. (Yeah! I can finally throw DOS away)
It’s a work-in-progress Jump’n’Run game with 3D graphics,
light sourcing (!) and still with only one level (but with a built-in level
editor!)
It crashes from time to time but it did this before SDL, too.
If you’re interested in the sources or the executables, I’ll be happy
to share them with you. Maybe it could even join the SDL examples
when it’s a little less buggy …
How about a link to your homepage or an ftp site to look at it?
It’s always interesting to look at other peoples works in progress …

Please comment…
Paulus Esterhazy (pesterhazy at gmx.net)

cya
Josh-------
Quantum Mechanics: The dreams stuff is made of.

Hi!
First of all, I have to say that SDL is just what I need! Without it,
I would be reading the DirectX 6 documentation and the X man
pages at the same time now…

Secondly, I got SDL working using Visual C++ 5 today and it works
fine! There weren’t many problems:

  • since the functions return structures, the member allignment
    of the dll and the program have to be the same (8 byte?) or
    you’ll need to do #pack (8) in the header files
  • I think I had to add SDL_LoadSO to the .def file although I’m
    not sure 'cause it doesn’t sound very logical…

The examples I tried out all worked (sound as well as graphics).
I’ve made a DLL and a static library so it’s a piece of cake to
plug SDL into existing VC projects. Anyone intersted in them?
Debugging with the developer studio is if you are in heaven (at least
better than rebooting…) You can even debug the SDL-DLL.

One more thing: the little game I’ve been making now works with
SDL in Linux and Win32, too. (Yeah! I can finally throw DOS away)
It’s a work-in-progress Jump’n’Run game with 3D graphics,
light sourcing (!) and still with only one level (but with a built-in level
editor!)
It crashes from time to time but it did this before SDL, too.
If you’re interested in the sources or the executables, I’ll be happy
to share them with you. Maybe it could even join the SDL examples
when it’s a little less buggy …

Please comment…
Paulus Esterhazy (@Paulus_Esterhazy)

First of all, I have to say that SDL is just what I need! Without it,
I would be reading the DirectX 6 documentation and the X man
pages at the same time now…

Like I did? … :slight_smile:

Secondly, I got SDL working using Visual C++ 5 today and it works
fine! There weren’t many problems:

  • since the functions return structures, the member allignment
    of the dll and the program have to be the same (8 byte?) or
    you’ll need to do #pack (8) in the header files
  • I think I had to add SDL_LoadSO to the .def file although I’m
    not sure 'cause it doesn’t sound very logical…

Great!

Hey, could you grab the latest CVS source and send me back the files
that you needed to change?
(http://www.devolution.com/~slouken/SDL/develop.html)

I’ve made a DLL and a static library so it’s a piece of cake to
plug SDL into existing VC projects. Anyone intersted in them?

Yep, if it’s okay with you, I’d like to put together a VC++ package
for each full release of SDL … could you compile it for me then?

Debugging with the developer studio is if you are in heaven (at least
better than rebooting…) You can even debug the SDL-DLL.

VERY cool. I may send you snippets of SDL code and ask for your help
occasionally. :slight_smile:

It’s a work-in-progress Jump’n’Run game with 3D graphics,
light sourcing (!) and still with only one level (but with a built-in level
editor!)
It crashes from time to time but it did this before SDL, too.
If you’re interested in the sources or the executables, I’ll be happy
to share them with you. Maybe it could even join the SDL examples
when it’s a little less buggy …

I’d love to see it, and I’d be happy to add it to the SDL examples,
when you’re ready. :slight_smile:

Please comment…

Bravo! I’m very happy. :slight_smile:

Hasta la hahah,
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

: Secondly, I got SDL working using Visual C++ 5 today and it works
: fine! There weren’t many problems:
: - since the functions return structures, the member allignment
: of the dll and the program have to be the same (8 byte?) or
: you’ll need to do #pack (8) in the header files
: - I think I had to add SDL_LoadSO to the .def file although I’m
: not sure 'cause it doesn’t sound very logical…

I, for one, would like to express my interest in seeing how this was done.
I was contemplating trying to do the same thing (build SDL natively on NT)
but I don’t have the experience or breadth to do this efficiently.

I would be very interesting in seeing your changes committed (if possible)
to the main source tree and look forward to the opportunity to write apps
for SDL natively under NT.

Thank you,

Steven Engelhardt
@Steven_Engelhardt
http://www.uiuc.edu/ph/www/sengelha

A lost ounce of gold may be found, a lost moment of time never.

: - since the functions return structures, the member allignment
: of the dll and the program have to be the same (8 byte?) or
: you’ll need to do #pack (8) in the header files

Where do I return structures? I try only to return pointers to structs…

I would be very interesting in seeing your changes committed (if possible)
to the main source tree and look forward to the opportunity to write apps
for SDL natively under NT.

They will definitely be committed to the main source tree, as soon as
I get them. :slight_smile:

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/