Jump to content
  • Advertisement

Archived

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

amcpp

how can i link the .lib files????

This topic is 5932 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

VC++.Net ______________________________________________ i am a chinese. i am only 15 yars old........ my english is too bad.......

Share this post


Link to post
Share on other sites
Advertisement
INCLUDE a lib file from the LINKed ones:

#pragma comment( lib, ".lib" )

or try in your project settings

____________________________________

if you wanna LINK them:

I dont know, check your options | directory's.



[edited by - pipo declown on September 14, 2002 8:49:52 AM]

Share this post


Link to post
Share on other sites
o Right click on the project in the solution explorer.
o Choose properties
o Choose Linker on the left side of the property sheet that comes up
o Choose Input(a subitem of Linker)
o Enter the path to your .lib file in the Additional Dependencies field of the property grid(or click on the ... button to Browse for it)



The world holds two classes of men -- intelligent men without religion, and religious men without intelligence.


  Abu''l-Ala-Al-Ma''arri (973-1057; Syrian poet)

Share this post


Link to post
Share on other sites
or the hardcore version:

typedef LPDIRECT3D8(WINAPI *creatorFun)(UINT);
LPDIRECT3D8 D3d;
// ...
HMODULE m = LoadLibrary("d3d8.dll");
// if !m => no d3d available
creatorFun f = (creatorFun)GetProcAddress(m, "Direct3DCreate8");
// if !f ...
D3d = f(D3D_SDK_VERSION); // here is your d3d object


simply replace the interfaces / creator function names for dinput, dsound...

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!