I just can't manage to get a dll working, not even the example dll code that is already present when you make a new project in Fresh.
I set everything in C# to x86 and checked the dll file with dependency walker and everything looks fine.
But this call
IntPtr pDll = NativeMethods.LoadLibrary(@"D:\Develop\FASM\testDLL\template.dll");
fails every time with "[file] is not made for execution on Windows or contains an error."
I'm 100% sure that both (dll and exe) are 32bit applications. I checked everything twice with dependency walker and PE Explorer.
Any ideas or does someone have an example that works?
I tried it with C#, C++ with QT and C