RE: Regular DLL How To register
From: nayak (nayak_at_discussions.microsoft.com)
Date: 12/17/04
- Next message: Adam J. Rosen: "Re: Controls on a modeless dialog"
- Previous message: herr_professor: "basetsd.h dependencies"
- In reply to: Jay Chadderwala: "Regular DLL How To register"
- Next in thread: mick: "Re: Regular DLL How To register"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Dec 2004 06:03:04 -0800
You cannot register a non COM dll(which doesn't export DllRegisterServer func)
Use the win32 api function
HMODULE LoadLibrary( LPCTSTR lpFileName);
and
FARPROC GetProcAddress( HMODULE hModule, LPCSTR lpProcName);
to explicitly load the dll and make your function calls
"Jay Chadderwala" wrote:
> Hi all,
>
>
> I have created Regular dll statically linked with mfc ( no automation
> ).
> i have written one function which uses MFC classes like CString,Cfile,
> etc... This is only exported function. It is not an activex component
> nor com dll.
> it has following prototye
>
> extern "C" __declspec(dllexport) int fucntion(const CString&
> sParam1, const CString& sParam2, const CString&
> sParam3)
> {
>
> // do some work and return result code
> return;
>
> }
>
>
> Client application which uses that function. ( given .lib in project
> setting in MSVC6)
>
>
>
> Now my problem is that i have 2 such client application running and
> that is on differant locations ( e.g one is running on c:\ and other
> is on d:\ ) i want my dll to be in 3rd location ( e.g. e:\ )
>
> Is there any mechanism to import dll by hardcoded path to dll? and
> client EXE will load that dll from that path.?
>
> how can solve the path issue for dll? how can i make my client app to
> be aware of where my regular dll is located?
>
> i dont want to put dll in same directory as client nor in system
> folder.
> also dont want to make entry in system PATH variable.
>
> what else option can be? By programming.
>
>
> when i am trying to run regsvr32 regdll.dll
> it says dll is loaded but dllregisterserver failed. may be corrept dll
>
> What should i do? i am stucked...
>
>
> thanks in advance.
>
> Regards,
> Jay
>
- Next message: Adam J. Rosen: "Re: Controls on a modeless dialog"
- Previous message: herr_professor: "basetsd.h dependencies"
- In reply to: Jay Chadderwala: "Regular DLL How To register"
- Next in thread: mick: "Re: Regular DLL How To register"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|