Deploying MFC?

  • Thread starter Thread starter Tobin Harris
  • Start date Start date
T

Tobin Harris

Hi there,

This ones a bit tricky to explain, but I'll do my best!...

I am writing a plugin using c# for a commercial app. My plugin uses the
NGraphViz graph rendering library. On my test machine, I'm getting an error
saying that the "NGraphviz library cannot be found", despite the DLL being
included in the deployment folder. All the other deployed DLLs are found ok.
Also, this whole solution has installed fine on other machines.

The authors of NGraphViz tell me that the problem may be because the target
machine is missing a MFC71 dependecy. I have tried putting the MFC71.dll and
MSVCR71.dll in both the Windows/System32 folder, and also the application
bin folder. But, the errror still occurres.

Does anyone know how to deploy MFC DLLs with a .NET project, or at least
provide any hints as to where I could start understanding this problem.

Thanks

Tobin
 
Tobin Harris said:
Hi there,

This ones a bit tricky to explain, but I'll do my best!...

I am writing a plugin using c# for a commercial app. My plugin uses the
NGraphViz graph rendering library. On my test machine, I'm getting an
error
saying that the "NGraphviz library cannot be found", despite the DLL being
included in the deployment folder. All the other deployed DLLs are found
ok.
Also, this whole solution has installed fine on other machines.

The authors of NGraphViz tell me that the problem may be because the
target
machine is missing a MFC71 dependecy. I have tried putting the MFC71.dll
and
MSVCR71.dll in both the Windows/System32 folder, and also the application
bin folder. But, the errror still occurres.

Either of these two locations should be sufficient.
Does anyone know how to deploy MFC DLLs with a .NET project, or at least
provide any hints as to where I could start understanding this problem.

Are you sure you copied the right DLL's? You should use the Dependency
Walker that comes with the studio to check which DLLs your library needs.

Niki
 
Hi Niki,

Thanks so much for the response, that was an ace idea! The "Depends" program
indicated that NGraphviz.dll needs msvcp71.dll an msvcr.dll, which I have
now added to my installer. Does it matter if I take these from my
Windows\System32 folder, or should I get them of my Visual Studio CDs?

Thanks again,

Tobin
 
Tobin Harris said:
Hi Niki,

Thanks so much for the response, that was an ace idea!

glad I could help :-)
The "Depends" program
indicated that NGraphviz.dll needs msvcp71.dll an msvcr.dll, which I have
now added to my installer.

Be careful: Make sure your installer doesn't uninstall these files from the
system folder, or it'll break other programs. If your installer is
MSI-based, you should use the right MSM-files.
Does it matter if I take these from my
Windows\System32 folder, or should I get them of my Visual Studio CDs?

No, these should be equal.

Niki
 
Back
Top