OK...so getting it to compile was really easy, both release and debug compiled first time and the compiled release dll works great when I replace the 1.61 version with it, they are even exactly the same size...a very good sign. However (you knew there was one of those coming didn't you!) I am simply unable to get the dll to work in the debugger.
I replaced the release level dll with my dll compiled for debug and then
I tried...
1. Configuring Visual Studio to run the civilization4.exe executable in order to debug the dll.
No luck...I simply get the following message box with no options to go further.
So then I tried
2. Running Civ4 in a separate process with a view to attaching to the process to debug it.
No luck...The Civ4 process never gets going successfully. I get three assertions failures followed by the following debug error.
and then another similar debug error before I finally arrive at the dreaded Civ4 has encountered a problem message.
At each message I have tried all combinations of Ignore and Debug to no avail, the debugger is never in a useful state and all attempts to break the execution give me a 'wait until the debuggee has finished loading' message!
I have tried both ways using both the debug and release C++ MT DLL runtimes.
Oh yes, and I am running Visual Studio.NET 2003 Enterprise Architect (from my MSDN Universal pack).
Apologies if the description is unclear or the answer obvious. I have done a lot of work in C++ but not for several years.
Can anyone help me with this, it is driving me nuts.
Thanks,
Martin.