Raised This Month: $ Target: $400
 0% 

[Solved] How to Attach a Library File


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 09-28-2012 , 08:24   [Solved] How to Attach a Library File
Reply With Quote #1

Hello!

I'm trying to do something using MySQL and I'm using this code into the CPP file:

PHP Code:
#pragma comment ( lib, "libmysql" ) 
The program is requiring file libmysql.dll to be into the folder where hlds.exe is located.
I want to attach this DLL, libmysql.dll, to the main MetaMod plugin DLL.

Note: I also have a file named mysqlclient.lib!

Thanks!
Have a good day!
__________________

Last edited by claudiuhks; 09-28-2012 at 09:00.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 09-28-2012 , 08:59   Re: [C++] How to attach a library file (or DLL) to the main DLL file?
Reply With Quote #2

I somehow did it, adding this to the VCXPROJ file:

Code:
<Link>
      <AdditionalDependencies>mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
I see now that it's more faster! Even with 0.05 seconds!
__________________

Last edited by claudiuhks; 10-04-2012 at 12:43.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode