Link to home
Start Free TrialLog in
Avatar of newbie27
newbie27Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Visual Studio 2005 VC++ - Not generating DLL

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
Avatar of UnifiedIS
UnifiedIS

When you say it is generating all other files, what is it generating?
Is the project set to output a class library?
Avatar of newbie27

ASKER

Hello, please check the attached screenshot
Scree.jpg
untitled.JPG
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?
Avatar of sarabande
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
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
ASKER CERTIFIED SOLUTION
Avatar of newbie27
newbie27
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Fixed by checking dependancies