Skip to main content
GameDev.net gamedev.net
🔒 Locked

Tutorial DLL?

Started by Drath Dec 12, 2001 at 11:22 AM 11 replies 650+ views
Original Post
Drath
Drath
Is there anyway to create a dll out of one of the lessons or does one exist. What I mean by is a dll that you could call a specific function and the dll would create the OpenGL window, another to make the scene and another to and polys, lights, etc. Does anyone know of a DLL like this or how to make one? Thanks...
Leyder Dylan
Leyder Dylan
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-DLLTest&forum=cotd&id=-1

========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
Drath
Drath
Hmm...
Thanks but it doesnt help much. The dll is virtually blank.
I was wondering more on how to convert the Lesson 2 source to dll (because this introduces poly). I could later add such things as custon points and lights and textures but I just want to start basic. I want to build it for use in a program called "Jamagic", avalible from www.clickteam.com . It is a bit like dark basic, blitz basic etc but it uses a java-script type of coding and is a lot more powerful. I want to create a window within the program then render things to it using the dll, retriving the window using user32.dll.

Does anyone have any idea?

Thanks...
Drath
Drath
Suddenly...
I got a flash of inspiration...
I created an empty dll and imported the lesson 2 cpp. I ran it on Jamagic for fun but ofcourse nothing happened! What functions should I export so I can run it with my app?

Thanks...
Drath
Drath
And what arguments should I call it with?

Thanks...
Drath
Drath
Can anyone help?
It really is slowing me down...

Thanks...
Drath
Drath
I completed my DLL taken from lesson 2. It is incredibly easy to do. Just create an empty dll, import a lesons cpp file, then create a .def file in the recources folder and add to it:
EXPORTS
WinMain

Then build and run!
Cobra
Cobra
Nicely done.
( u wouldnt happen to be able to make that source available would you? hehe. Dll''s and OpenGL have never been very friendly to me lol )
"Build a man a fire, and he will be warm for a day. Set a man on fire, and he will have warmth for the rest of his life"
Cobra
Cobra
I managed to create the dll.... that''s never been a problem, but calling it from the exe im not too sure on :/

I imported lesson 2 btw.. just like you did.

*trundles off to see if he can link it in.*
"Build a man a fire, and he will be warm for a day. Set a man on fire, and he will have warmth for the rest of his life"
Drath
Drath
I am going to create a dll where you can change the polygons during run time in a seperateprogram. It should be easy. I will just implant the ''while(!done)'' loop into my program and add some functions. I will find a place to load it to when I''m done.
aSe
aSe
I have a DLL tutorial up at my site, www.coldcity.com. It''s designed for people who don''t like all the crap that VC++ generates, and shows you how to knock up a DLL in VC++ that you can then use from VC++ or VB... might be helpful.

-=aSe=-
-=aSe=-
Drath
Drath
Wow great!
I''m checking it out right now!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.