Deploying MFC?

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
 
N

Niki Estner

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
 
T

Tobin Harris

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
 
N

Niki Estner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top