Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / February 2005

Tip: Looking for answers? Try searching our database.

Building DLLs without the AssemblyInfo.cpp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Adkins - 04 Feb 2005 16:52 GMT
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
Tim Robinson - 04 Feb 2005 23:17 GMT
> 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!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.