I'm wondering how to occumiplish this task in C++. what i would like to do is pass two values to another exe. but Every time I go to compile this application I get an error that tells me that I can't add to pointers together.
The function with the problem is TS_function on the ShellExecute statement line.
What I would like to have happen is my client.exe application launch taking in a base value 1 or a -1, and a pair based value of 1 through 15.
thank you for any help.
cheers.
#include "fxAuto.h"
BOOL APIENTRY _DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
int _stdcall TS_function(int _position, int pair )
{
int MyAvg = _position + 1;
HINSTANCE HINSsd =
ShellExecute(NULL,"open","C:\\client.exe" + " " +
_position + " " + pair , NULL, NULL, SW_SHOWNORMAL);
//execute it.
return( MyAvg ) ;
}
The function with the problem is TS_function on the ShellExecute statement line.
What I would like to have happen is my client.exe application launch taking in a base value 1 or a -1, and a pair based value of 1 through 15.
thank you for any help.
cheers.
#include "fxAuto.h"
BOOL APIENTRY _DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
int _stdcall TS_function(int _position, int pair )
{
int MyAvg = _position + 1;
HINSTANCE HINSsd =
ShellExecute(NULL,"open","C:\\client.exe" + " " +
_position + " " + pair , NULL, NULL, SW_SHOWNORMAL);
//execute it.
return( MyAvg ) ;
}