Re: Cannot open include file:problem with Dll header




there is one more solution to this you can use

extern "C" _declspec(dllimport) void fn_in_dll();
// prototype of fn to be used fm dll in your code
// fn_in_dll is the name of fn u defined in dll

and add the path of lib file to
1)project ->settings ->link ->input ->additional lib paths .
2) copy your dll into the system 32 folder of your C drive
3) now u can use the dll function in your code without requiring to add
any header file?

.



Relevant Pages

  • Re: Success Through Cluelessness
    ... > object in my lib file would crash. ... And where do you think the "C++ objects like fstream" are implemented? ... Precisely in the CRT. ... DLL or EXE) will have it's own copy of the CRT, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Compiling C DLLs for reuse in MC++?
    ... and link with the lib file" ... a DLL file, no lib. ... new GUI for it in either C# or MC++, ... I've never made a native DLL before and successfully used it. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Dll lib
    ... A DLL is a collection of code that is linked at some point, ... A .lib file contains information that tells the linker how to resolve symbols at link ... REFERENCE to the DLL and the information about the names in a.obj, ... This can be further refined to really mean "implicit dynamic linking" ...
    (microsoft.public.vc.mfc)
  • Success Through Cluelessness
    ... Recently I was having a problem where the creation of an fstream object ... The lib file was linked to a managed dll. ... multithreaded libraries are required. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: how do i link 3rd party lib on windows ?
    ... Jacques wrote: ... I would then like to link this to a dll. ... > a .lib file ... include any extensions and/or third party libraries. ...
    (comp.lang.cpp)