hey everyone,
im making a program that controls my cube using GCNRD.
but shellexecute is being a tard to me
the code should work like this:
enter a value and the program starts gcnrd to poke the value
i got that in these lines
string CButton;
string CoButton;
cout << "please enter the button/analoge value [a good one lol] \nby default{no action}: 0000FF01\n";
cin >> CoButton;
CButton = "poke 8058E8A0 " + CoButton;
CButton.c_str() = const char;
cout << "value to poke: " << CButton;
ShellExecuteA( NULL, "open", "/gcnrd.exe", CButton , NULL, SW_HIDE );
problem is that CButton needs to be a const char. with this code it gives a C-error, syntax error : 'const'
removing the conversion isn't an option too cause it'll give me this error:
Error 1 error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
any help?