Re: Dialog in DLL won't launch

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




I seem to have another problem now. When I add the code to call the macro,
I get a linker error that says that "_DllMain@12 is already defined" in the
object file that corresponds to the source file where I implemented the
function. If I rename the function and explicitly specify it in the project
settings, I get different error that says that _main isn't defined. (I'm
using Visual Studio 2005.)

See here:

http://support.microsoft.com/default.aspx?scid=kb;en-us;q148652

---
Ajay

.



Relevant Pages

  • Re: Could Writing to un-identified units be a Problem ??
    ... It is a linker error, because I’ve just compiled the source code ... without running the linker and created the object file LL107.o. ... source code, LL107.for, for pmtrmo. ... As I mentioned in the OP, the undefined ref. ...
    (comp.lang.fortran)
  • Re: What a translation unit is.
    ... >>So therefore it only makes sense to me that the most usefull translation ... > But let's keep assuming the traditional compiler system. ... >>something inbetween states of tranlation then the object file is most ... >>The source file is a unit to be translated. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: #pragma comment( lib, ): may be a relative path?
    ... If I'm calling APIs from my_dll.dll in a particular source ... I'm using linker arguments in the project settings. ... And when you copy that source file into another project, ... build it and get a linker error before you remember "oh, that's right, I ...
    (microsoft.public.vc.language)
  • Re: public domain program to convert f77 code to lower case
    ... The scary thing about a home-grown converter is the verification: Did it change something it shouldn't have? ... Will the object file be different? ... Some things to try: Compile the source file. ...
    (comp.lang.fortran)
  • Re: DLL function loading issue
    ... it seems that issue is with static keyword... ... define in your source file,to prevent linker error ... "Nobody is prefect and remain lives forever here except the Universal ...
    (microsoft.public.vc.language)