Link to home
Start Free TrialLog in
Avatar of xewoox
xewoox

asked on

DLLNotFoundException in C# runtime

I got a DLLNotFound Exception when I ran my C# program, the DLL is n the \Windows\System32\

and I have wrapper functions being used.  Is there other configuration i need to be do to access functions withing the dll.

using System.Runtime.InteropServices;
 
namespace TS_GlobalVariables
{
    public class TS
    {
        [DllImport("GlobalVariable.dll", EntryPoint = "GV_SetInteger")]
        public static extern int GV_SetInteger(int iLocation, int iVal);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ToddBeaulieu
ToddBeaulieu
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial