<div>If anyone is interested here is my project file for VC++ 2005.  I'm using the express edition, however work may get us the real version soonish... I don't think it would change anything for something like this though.
</div>
<div> </div>
<div>The only changes I've made, was to move the scp code into a library, and link the emulators against that depending if they have networking or not.  I've also included the dev kit from winpcap 4.0 so that way this will compile & link all targets out of the box.  Be sure to have your win32 platform SDK installed & configured if you are an Express user, and expecting this to "just work".
</div>
<div> </div>
<div>You can get my project file from here:</div>
<div><a href="http://www.vaxenrule.com/Shared%20Documents/simh-3.71-vc2005.zip">http://www.vaxenrule.com/Shared%20Documents/simh-3.71-vc2005.zip</a></div>
<div> </div>
<div> </div>
<div>Don't forget that if you are going to run exe's on a computer without VC 2005 you'll need the runtime installed.</div>
<div> </div>
<div>You can download the Microsoft Visual C++ 2005 SP1 Redistributable Package<br>here:<br><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&DisplayLang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&DisplayLang=en
</a><br><br> </div>
<div>You are not supposed to redistribute debug versions.... but if you must you can install a copy of VC++ Express....</div>
<div> </div>
<div>Oh and a few caveats!</div>
<div> </div>
<div>The Altair z80 has the two following gotchas:</div>
<div> </div>
<div>---------- ALTAIRZ80_HDSK.C<br>uint8 hdskbuf[HDSK_MAX_SECTOR_SIZE] = {};    /* data buffer  */<br><br>---------- ALTAIRZ80_SIO.C<br>char messageBuffer[256] = {};<br><br>Visual C won't let this fly, so I changed them to the following:
</div>
<div> </div>
<div>---------- ALTAIRZ80_HDSK.C<br>uint8 hdskbuf[HDSK_MAX_SECTOR_SIZE];// = {};    /* data buffer  */<br><br>---------- ALTAIRZ80_SIO.C<br>char messageBuffer[256];// = {};</div>
<div> </div>
<div>The linker will freak out on the VAX780 & PDP11 release  builds.  It's blowing its stack on the link phase post optimization.  Be sure to disable "Whole Program Optimization" or you'll get the following error:
</div>
<div> </div>
<div>2>Generating code<br>2>c:\users\jsteve\documents\visual studio 2005\projects\simh-3.71\vax\vax_cmode.c(96) : fatal error C1001: An internal error has occurred in the compiler.<br>2>(compiler file 'F:\SP\vctools\compiler\utc\src\P2\main.c[0x10BE1D42:0x00000020]', line 182)
<br>2> To work around this problem, try simplifying or changing the program near the locations listed above.<br>2>Please choose the Technical Support command on the Visual C++ <br>2> Help menu, or open the Technical Support help file for more information
<br>2>LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage</div>
<div> </div>
<div>Which is quite annoying to track down to say the least.  Apparently simh is too complicated for LINK to figure out... I don't quite understand it, but then I didn't want to spend all day on it either.<br> </div>

<div>I don't know if the VC++ 2005 exe's are faster than the mingw ones.. Perhaps we should bench them?  Then again the PITA of having to install yet another runtime is.. well a PITA.  </div>
<div> </div>
<div>Not to ramble on endlessly but I haven't had much luck binding simh & slirp together, but with file based networking, Ive managed to get Qemu & SIMH talking.  This way I can have an OpenBSD Qemu image with user mode networking, connect to a BSD enabled vax, and nat it out.  No device drivers!  I'm going to take a crack at openvpn.. If anything integrating openvpn on simh & qemu may prove somewhat usefull......
</div>
<div> </div>
<div>Jason</div>