Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

WhatEver

Can someone help me make a dll, and lib file

This topic is 6491 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve been programming for almost 5 years, and I''ve never really had a use for dll''s, but now I do so I can release my model library for you guys. I have MSVC 6.0. I''ve created an empty dll project, and then added all my cpp, h and external lib files. When I compile a realeas dll and lib, and then try to use the lib in my game, I get this error:
quote:
Linking... .\rm\Release\rm.dll Release\rm.lib : fatal error LNK1136: invalid or corrupt file Error executing link.exe.
Can someone take me through the steps to making a dll/lb combo that works?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Just a guess: Try to remove te dot and/or the whitespace from the pathname:

.\rm\Release\rm.dll Release\rm.lib
to
.\rm\Release\rmdllRelease\rm.lib

Might work!?!

Share this post


Link to post
Share on other sites
quote:
Linking...
.\rm\Release\rm.lib : fatal error LNK1136: invalid or corrupt file
Error executing link.exe.


It didn''t work .

Share this post


Link to post
Share on other sites
I finally got the reall lib file to export. Now when I link it to my game I get this error:

quote:
Linking...
actors.obj : error LNK2001: unresolved external symbol "public: __thiscall rmdata::rmdata(void)" (??0rmdata@@QAE@XZ)

Share this post


Link to post
Share on other sites
I''ve been trying to figure this out for the past 7 hours now, and it''s still a no go.

Can someone do this for me.

1) Make a dll project in MSVC++ 6.0 that creates one function called StrCpy, and does exactly what strcpy does.
2) Make a simple console application or non MFC application that imports the lib file created from the above project, and uses the StrCpy.

This would help me tremendously.

Share this post


Link to post
Share on other sites
Nobody here knows how to make a dll? Whoa! Can anybody refur me to a Message Board that does so I can continue with my project?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!