Sign in to follow this  
OpenGL_Guru

need to create a LIB file ...(and .dlls)

Recommended Posts

yeah i am using MSVC 6.

i guess i was wondering if you choose New->projects->win32 dynamic link library , will this also create the .lib file too?

***it looks like i was rated down for asking this question..wow what a rating system we have,,

Share this post


Link to post
Share on other sites
Same things happenned to me in the past, but hey they're only numbers.

Anyhow. MSVC shoud create all the files you'll need to use and build your .DLL, including a .lib. You'll have to do some giggery pokery with the classes/functions you want to have available in the .dll.

Not too sure about MSVC but with DEV-C++ I had to have the following:

#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */

class DLLIMPORT yourClass
{
};

on all the classes I wanted available in the DLL. I passed the BUILDING_DLL as a parameter in the makefile -DBUILDING_DLL=1.

You'll have to do somethign similar I suspect.

Good luck..:)

Rated you up...don't know if it'll help your cause much though..:)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this