I have created a DLL using VS 2003. I did this using the VS Wizard. Doing so, causes an "AssemblyInfo.cpp" file to be generated. This file requires (has far as I can tell), the mscorelib.dll file (referenced by mscoree.lib).
The DLL works just fine, assuming that you have the .NET framework installed, however my customers that will be using the DLL do not have the framework, and cannot be required to install it.
So, the question is: "How does one create a DLL, without including the undesired "AssemblyInfo.cpp" and associated libs?"
Thanks
> I have created a DLL using VS 2003. I did this using the VS Wizard.
> Doing so, causes an "AssemblyInfo.cpp" file to be generated. This file
[quoted text clipped - 7 lines]
> So, the question is: "How does one create a DLL, without including
> the undesired "AssemblyInfo.cpp" and associated libs?"
In the project wizard, ask for a Win32 DLL instead of a managed C++ DLL.
You should be able to convert your DLL project over to Win32, but it's
probably going to be easier to create the project files from scratch and
re-add all your source files.

Signature
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/
Jim Adkins - 06 Feb 2005 13:22 GMT
Thanks, that was my first thought, only, I can't seem to find the option
for a "Win32 DLL" project in the Wizard's templates. Just "Win32 Console"
and "Win32 Project", which if I'm not mistaken, will build an "EXE".
I have looked in the parent "Visual C++ Projects" folder and the "Win32"
sub folder (and then all of the rest). What am I missing?
Tim Robinson - 06 Feb 2005 13:59 GMT
> Thanks, that was my first thought, only, I can't seem to find the option
> for a "Win32 DLL" project in the Wizard's templates. Just "Win32 Console"
> and "Win32 Project", which if I'm not mistaken, will build an "EXE".
>
> I have looked in the parent "Visual C++ Projects" folder and the "Win32"
> sub folder (and then all of the rest). What am I missing?
Create a Win32 project, making sure you tick the 'DLL' box before
finishing the wizard. (I'd give you clearer instructions but I don't
have VS 2003 installed currently.)

Signature
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/
Jim Adkins - 06 Feb 2005 14:17 GMT
Ah! Thanks Tim, that was it!