<?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"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Windows MSVC++ .def file helper&#8230;</title>
		<atom:link href="http://cycling74.com/forums/topic/windows-msvc-def-file-helper/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 05:06:58 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-40924</guid>
					<title><![CDATA[Windows MSVC++ .def file helper&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-40924</link>
					<pubDate>Wed, 19 Nov 2008 10:51:11 +0000</pubDate>
					<dc:creator>martinrobinson</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m trying to make copying a project and creating a new project as simple as possible with as few changes as possible. So far I&#8217;ve got my solution name passed down to name everything. Except of course the .def file. So I made this prebuild script and added it to the project properties:</p>
<p>
echo LIBRARY $(TargetFileName) > &#8220;$(IntDir)$(TargetName).def&#8221;<br />
echo EXPORTS >> &#8220;$(IntDir)$(TargetName).def&#8221;<br />
echo main >> &#8220;$(IntDir)$(TargetName).def&#8221;</p>
<p>
Then $(IntDir)$(TargetName).def is the .def file needed.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-145264</guid>
					<title><![CDATA[Re: Windows MSVC++ .def file helper&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-145264</link>
					<pubDate>Wed, 19 Nov 2008 12:27:46 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>On Wed, Nov 19, 2008 at 11:51 AM, Martin Robinson < <br />
<a href="mailto:martinrobinson_mail@yahoo.co.uk">martinrobinson_mail@yahoo.co.uk</a>> wrote:</p>
<p>><br />
> I&#8217;m trying to make copying a project and creating a new project as simple<br />
> as possible with as few changes as possible. So far I&#8217;ve got my solution<br />
> name passed down to name everything. Except of course the .def file. So I<br />
> made this prebuild script and added it to the project properties:<br />
><br />
><br />
Hi Martin,</p>
<p>You don&#8217;t need to use def files at all. For Windows put<br />
__declspec(dllexport) in front of your main function. Typically you&#8217;d want<br />
to put this in a macro which has its definition depending on the platform,<br />
so for OSX it would be empty, and for Windows it is set to<br />
__declspec(dllexport).</p>
<p>To create a new project from an existing one, I delete everything except the<br />
vcproj file, the solution and the sources. Then I rename the source files,<br />
and open vcproj in a text editor to do a find/replace on the old object<br />
name. All that&#8217;s left to do then is some find/replace operations on the<br />
copied source files. You can keep the Max dependencies in the same relative<br />
path to your project directory so the includes don&#8217;t need any changes.</p>
<p>I&#8217;m sure you can all automate this find/replace business. I&#8217;ve been too lazy<br />
to look into it, but if someone figures it out it would be nice to know how<br />
it&#8217;s done.</p>
<p>Thijs</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-145265</guid>
					<title><![CDATA[Re: Windows MSVC++ .def file helper&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-145265</link>
					<pubDate>Thu, 20 Nov 2008 07:37:42 +0000</pubDate>
					<dc:creator>martinrobinson</dc:creator>

					<description>
						<![CDATA[
						<p>So, do we really need </p>
<p>dllmain_win.c</p>
<p>?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-145266</guid>
					<title><![CDATA[Re: Windows MSVC++ .def file helper&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-145266</link>
					<pubDate>Thu, 20 Nov 2008 12:12:18 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>On Thu, Nov 20, 2008 at 8:37 AM, Martin Robinson < <br />
<a href="mailto:martinrobinson_mail@yahoo.co.uk">martinrobinson_mail@yahoo.co.uk</a>> wrote:</p>
<p>><br />
> So, do we really need<br />
><br />
> dllmain_win.c<br />
></p>
<p>I&#8217;m not sure, but all of my externals so far seem to have been fine without<br />
it. Maybe its obsolete now?</p>
<p>Thijs</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-145267</guid>
					<title><![CDATA[Re: Windows MSVC++ .def file helper&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/windows-msvc-def-file-helper/#post-145267</link>
					<pubDate>Thu, 04 Dec 2008 15:21:11 +0000</pubDate>
					<dc:creator>Rob Sussman</dc:creator>

					<description>
						<![CDATA[
						<p>You don&#8217;t need dllmain_win.c.  The version we include calls DisableThreadLibraryCalls() in DLL_PROCESS_ATTACH.  This is an optimization that tells the OS not to bother sending the DLL (external) DLL_THREAD_ATTACH and DLL_THREAD_DETACH messages each time a thread is created/destroyed.  Since the max process can have a lot of externals loaded, and most externals don&#8217;t do anything with these messages, it seems like a worthwhile optimization.</p>
<p>Rob</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

