You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a csharp exe ([DllImport("DLLOK.dll", SetLastError = true)]
public static extern bool FunctionOne(string hookprocess);
[DllImport("DLLOK.dll", SetLastError = true)]
public static extern bool FunctionTwo(IntPtr hWnd);)
which imports a native dll in c++(), when I process the compiled exe in the packer and run the generated exe, it returns an exception System.BadImageFormatException App.Form1.FunctionOne. If I comment out the DllImport and it doesn't load the DLL, the exe generated by the packer works correctly.
The text was updated successfully, but these errors were encountered:
I have a csharp exe ([DllImport("DLLOK.dll", SetLastError = true)]
public static extern bool FunctionOne(string hookprocess);
[DllImport("DLLOK.dll", SetLastError = true)]
public static extern bool FunctionTwo(IntPtr hWnd);)
which imports a native dll in c++(), when I process the compiled exe in the packer and run the generated exe, it returns an exception System.BadImageFormatException App.Form1.FunctionOne. If I comment out the DllImport and it doesn't load the DLL, the exe generated by the packer works correctly.
The text was updated successfully, but these errors were encountered: