Solved

Visual Studio 2005 VC++  -  Not generating DLL

Posted on 2013-01-31
7
434 Views
Last Modified: 2013-02-12
Hello Experts
I have visual studio 2005 and add a simple class to try make the DLL, its generating all other files when I build it but not DLL
I have also used the following as well
http://msdn.microsoft.com/en-us/library/ms235636%28v=vs.80%29.aspx

Please can someone adivse how can I go about generating DLL?

Thanks
K
0
Comment
Question by:newbie27
  • 4
  • 2
7 Comments
 
LVL 18

Expert Comment

by:UnifiedIS
ID: 38840637
When you say it is generating all other files, what is it generating?
Is the project set to output a class library?
0
 
LVL 8

Author Comment

by:newbie27
ID: 38841856
Hello, please check the attached screenshot
Scree.jpg
untitled.JPG
0
 
LVL 18

Expert Comment

by:UnifiedIS
ID: 38843638
I created a new C++ class library project and built it and ended up with 2 debug directories.  The one with the .dll is directly beneath the solution directory.
There is also a debug folder inside the project directory that has similar files to your output.  Can you see if you have another debug directory up a level from your untitled screenshot?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 32

Expert Comment

by:sarabande
ID: 38851062
it looks to me as if you only compiled but not linked.

you might right-click on the dll project name in the solution tree and choose the rebuild option. then your output window should show log messages of the whole build which first compiles all sources (cpp files) and then links all object modules (*.obj, *.lib, *.res) to an executable file, in your case a *.dll file.

note, if you encounter a compile error you would need to correct it before you come to the linker step. if the linker misses some object module or input library your output window would show a linker error. in both these cases a dll file was not created.

Sara
0
 
LVL 8

Author Comment

by:newbie27
ID: 38858965
Hello Experts

Thanks for your input. I have finally managed to create a DLL using VS 2010 not sure what was the problem with my 2005, the same project compiled and works great. I can even include the .DLL file in some other vb application.

However, now the problem is when I try to include the newly created DLL in VS 2005 or even run a project on the machine which has no VS 2012 installed , I am getting this error

Unable to load DLL 'LibCurlForDotNet.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Driving me crazy now really... Please can someone advise?

Thanks
0
 
LVL 8

Accepted Solution

by:
newbie27 earned 0 total points
ID: 38859110
0
 
LVL 8

Author Closing Comment

by:newbie27
ID: 38879555
Fixed by checking dependancies
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now