Calling DLL written in C++

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I had written an application and few DLLs in VC++ before. Now I have
switched to .NET platform to compile. Then odd thing happens: the application
can be started and run as before on machines installed VS.NET
But on mahines without VS.NET, the app started but when it called a funcion
insdide the DLL, nothing appeared (there should be a dialog coming up if
successful).

Can anyone help me how to fix this? Is it because the C++ DLL is considered
as unmanaged code and the Framework can't run it? How come it can be run with
VS.NET installed? Both machines have the Framework 1.1 installed.

Thanks in advance for your advice.
Dave
 
Hi there... did you check if the requested dll is in the machine you're
running your app from? If it is, the path specified in the DllImport
attribute referencing your dll is correct? The dll you want to run has any
dependencies on other dlls if so those dlls exist in the machine?

Regards,
 
Hi,

I've checked the request DLL is located in the machine without VS.NET
installed.
How can I check the path specified in the DllImport attribute referencing
the dll?

Dave
 
Back
Top