Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

building a DLL in borland/ Help Building HALF-LIFE modification

Status
Not open for further replies.

SCchris

MIS
Jul 2, 2000
2
US
I need some help... how can I get Borland to make a mp.dll, here are the instructions off a web page.. Can you please explain how i can do this in borland.<br><br>How do I build the mp.dll file for multiplayer MODs?<br><br>&nbsp;&nbsp;&nbsp;Download the SDK zip file from one of the above sources and unzip it to a<br>&nbsp;&nbsp;&nbsp;directory of your choice.&nbsp;&nbsp;If you are using Microsoft Visual C++, click<br>&nbsp;&nbsp;&nbsp;on &quot;File&quot; then &quot;Open Workspace&quot; and browse to the directory where you<br>&nbsp;&nbsp;&nbsp;unzipped the SDK.&nbsp;&nbsp;Browse to the &quot;dlls&quot; folder and select the mp.dsw<br>&nbsp;&nbsp;&nbsp;workspace file.&nbsp;&nbsp;Click on &quot;Open&quot; to open the workspace.&nbsp;&nbsp;Click on &quot;Build&quot;<br>&nbsp;&nbsp;&nbsp;then &quot;Build mp.dll&quot; to build all the object files and the mp.dll file.<br>&nbsp;&nbsp;&nbsp;When the mp.dll file is built, the last step of the build process will<br>&nbsp;&nbsp;&nbsp;copy the mp.dll file to &quot;\half-life\mp\dlls&quot; (which probably doesn't exist<br>&nbsp;&nbsp;&nbsp;on your machine).&nbsp;&nbsp;To change this so that Microsoft Visual C++ copies the<br>&nbsp;&nbsp;&nbsp;mp.dll file to your MOD directory, click on &quot;Project&quot;, then &quot;Settings&quot;<br>&nbsp;&nbsp;&nbsp;and scroll to the &quot;Custom Build&quot; tab.&nbsp;&nbsp;Change the description to something<br>&nbsp;&nbsp;&nbsp;like &quot;Copying to dlls folder.&quot;.&nbsp;&nbsp;Change the &quot;Build commands&quot; to &quot;copy<br>&nbsp;&nbsp;&nbsp;$(TargetPath) C:\SIERRA\Half-Life\Blastzone\dlls&quot; (replacing Blastzone<br>&nbsp;&nbsp;&nbsp;with the name of your MOD directory) and click on &quot;OK&quot;.&nbsp;&nbsp;If you click on<br>&nbsp;&nbsp;&nbsp;&quot;Build&quot; then &quot;Build mp.dll&quot; again, it should copy the mp.dll to your MOD's<br>&nbsp;&nbsp;&nbsp;dlls directory.<br><br>Thnx for the help im totaly lost<br><br>-Chris
 
&nbsp;&nbsp;&nbsp;&nbsp;You didn't say what version of Borland you are using.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Without seeing the SDK you are using, I am making a guess from the instructions that this is specifically for Microsoft's product. Did you see anything that would make you think this would work with Borland's C++? If so, what version? <p>James P. Cottingham<br><a href=mailto: > </a><br><a href= Veneer Co., Inc.</a><br>All opinions are mine alone and do not necessarily reflect those of my employer.
 
I am useing Borland C++ Builder 5.0, and the file that comes in SDK is a Microsoft Project... Is there no way I can open a microsoft project in borland?<br><br>thnx<br>
 
&nbsp;&nbsp;&nbsp;&nbsp;You can use MS DLL's in BCB but you have to convert them first. You may need to look at your help files for <i>IMPLIB</i>. The problem is that MS and Borland have different ideas on how DLL and OBJ files should look like. As a result, they are not fully compatable. The <i>IMPLIB</i> is the place to start. <br><br>&nbsp;&nbsp;&nbsp;&nbsp;I have never ported MS files to BCB so I am not an authority on this. There is an article at <A HREF=" TARGET="_new"> . Look under the <b>Articles</b> tab for <u>Using Visual C++ DLLs in a Borland Project File</u>.<br> <p>James P. Cottingham<br><a href=mailto: > </a><br><a href= Veneer Co., Inc.</a><br>All opinions are mine alone and do not necessarily reflect those of my employer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top