i tried to create a C++ dll with this code:
#include "stdafx.h"
#include <stdio.h>
extern "C" {
_declspec(dllexport)void DoSomethingInC(unsigned short int ExampleParam, unsigned char AnotherExampleParam) {
printf("You called the method DoSomethingInC, You passed in %d and %c\n\r", ExampleParam, AnotherExampleParam);
}
}
But if i click on "local windows debugger" i get:
"The program can't be started...It is not a valid Win32-Application"
I tried to switch the target platform in the configuration settings but that didn't help.
Any ideas, what i am doing wrong?
System is Windows 10 64-Bit