Inproc Server with Shared DLL
Chris Shafer -- gwa1@usa.nai.net
Thursday, April 04, 1996
Environment: VC++ 4.1 / Win NT 4.0 From MSDN
I have an inproc server that works nicely when it is statically
linked to MFC. When I build it to use the MFC shared DLL it
immediately crashes when my VB 4.0 client tries to attach to it:
Dim MyInProc As Object
Set MyInProc = CreateObject("Inproc")
Here's the error:
Run-time error -2147221231 (80040111)
OLE Automation error
Class Factory cannot supply requested class
Any suggestions?
Thanks,
Chris Shafer
Chong Zhang -- cz@dana.ucc.nau.edu
Wednesday, April 10, 1996
The reason is that MFC shared DLL works with applications written based
on MFC only. Here the application is the main EXE but not the DLL. So if
your application is written in VB, your DLL has to use static linked the MFC.
On Thu, 4 Apr 1996, Chris Shafer wrote:
> Environment: VC++ 4.1 / Win NT 4.0 From MSDN
>
> I have an inproc server that works nicely when it is statically
> linked to MFC. When I build it to use the MFC shared DLL it
> immediately crashes when my VB 4.0 client tries to attach to it:
>
> Dim MyInProc As Object
> Set MyInProc = CreateObject("Inproc")
>
> Here's the error:
>
> Run-time error -2147221231 (80040111)
>
> OLE Automation error
> Class Factory cannot supply requested class
>
> Any suggestions?
>
> Thanks,
>
> Chris Shafer
>
| Вернуться в корень Архива
|