Hi. I don't know if this is the right place to post this, but I'm having problems with the application I am currently writing, and I would really appreciate any help.
I am using both VC++ and VB.net (Visual Studios 2005) to make my application. I've written a few routines in c++, and compiled this as a .dll. I've exported the functions I need to call from my VB application, and I do call on these correctly (as far as I know). When I run the application on my own machine, or any other machine with Visual Studios installed, everything works as they should. When I push a button in my program, a function in the dll is called, and the results are returned perfectly to the VB application.
The problem is when I try to run my program at a computer with .NET framework (2.0), but without Visual Studios installed. The application starts, but when I try to access the .dll-file (which is located in the same folder), I get the following message:
Unhandled exception has occured in your application. If you click Continue,
the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
Unable to load DLL 'mydll.dll': (and now some information in Norwegian, meaning) This program could not start since the program configuration is wrong. If you re-install your program, it might solve the problem. (Exception from HRESULT: 0x800736B1).
I really don't know what's causing this, and I hope that someone has a clue.
RiChY
I am using both VC++ and VB.net (Visual Studios 2005) to make my application. I've written a few routines in c++, and compiled this as a .dll. I've exported the functions I need to call from my VB application, and I do call on these correctly (as far as I know). When I run the application on my own machine, or any other machine with Visual Studios installed, everything works as they should. When I push a button in my program, a function in the dll is called, and the results are returned perfectly to the VB application.
The problem is when I try to run my program at a computer with .NET framework (2.0), but without Visual Studios installed. The application starts, but when I try to access the .dll-file (which is located in the same folder), I get the following message:
Unhandled exception has occured in your application. If you click Continue,
the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
Unable to load DLL 'mydll.dll': (and now some information in Norwegian, meaning) This program could not start since the program configuration is wrong. If you re-install your program, it might solve the problem. (Exception from HRESULT: 0x800736B1).
I really don't know what's causing this, and I hope that someone has a clue.
RiChY