<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Misterdom's World &#187; dll</title>
	<atom:link href="http://www.guinard.org/~misterdom/tag/dll/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guinard.org/~misterdom</link>
	<description>My Computing Logbook</description>
	<lastBuildDate>Sat, 24 Dec 2011 09:31:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using a dll library from one Visual Studio Express 2008 project in another</title>
		<link>http://www.guinard.org/~misterdom/2008/10/23/using-a-dll-library-from-one-visual-studio-express-2008-project-in-another/</link>
		<comments>http://www.guinard.org/~misterdom/2008/10/23/using-a-dll-library-from-one-visual-studio-express-2008-project-in-another/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 08:07:08 +0000</pubDate>
		<dc:creator>misterdom</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Dev Logbook]]></category>
		<category><![CDATA[Visual Studio .Net]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[linker]]></category>
		<category><![CDATA[visualstudio]]></category>

		<guid isPermaLink="false">http://www.guinard.org/~misterdom/?p=15</guid>
		<description><![CDATA[Coming from the Java world I would describe dlls as sort of jar files. A dll represents the component part of an application, that is: not the end-user part but rather the re-usable part of a Windows app. The so-called API of a dll is the .h file. That means the .h file contains all [...]]]></description>
			<content:encoded><![CDATA[<p>Coming from the Java world I would describe dlls as sort of jar files. A dll represents the component part of an application, that is: not the end-user part but rather the re-usable part of a Windows app. The so-called API of a dll is the .h file. That means the .h file contains all the methods, or functions that one can call on the dll.</p>
<p>To use the dll of Visual Studio (Express 2008) project A in project B we do what microsoft calls an implicit linking (<a href="http://msdn.microsoft.com/en-us/library/d14wsce5(VS.80).aspx">http://msdn.microsoft.com/en-us/library/d14wsce5(VS.80).aspx</a>). In more concrete terms here are the steps to follow:</p>
<p>1) Generate the dll of project A. When you do this, the linker (after-compiler thingy) creates both a dll and a lib file.<br />
2) Copy the dll and the lib file to project B, namely to a place accessible by the compiler and the linker, a place that&#8217;s on the classpath to use the Java terminology.<br />
3) Right-click on the project B in Visual Studio and select Configuration Properties -&gt; Linker -&gt; Input -&gt; Additional Dependencies<br />
4) There you can select the .lib counterpart of the dll (e.g. swill.lib in my case).</p>
<div id="attachment_14" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.guinard.org/~misterdom/wp-content/uploads/2008/10/implicit_link.jpg"><img class="size-medium wp-image-14" title="implicit_link" src="http://www.guinard.org/~misterdom/wp-content/uploads/2008/10/implicit_link-300x187.jpg" alt="Add additional dependencies" width="300" height="187" /></a><p class="wp-caption-text">Add additional dependencies</p></div>
<p>5) Add the header file (.h) of the dll to your project.</p>
<p>That&#8217;s it you should now be able to use the dll of A from project B, at least it worked fine for me.<br />
Btw, being mainly a Java developer, I&#8217;m rather new to C++ so if that&#8217;s a silly way of doing it please do comment the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guinard.org/~misterdom/2008/10/23/using-a-dll-library-from-one-visual-studio-express-2008-project-in-another/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

