I'm trying to get the COG_X value, which I think should be an integer. I'm sorry, but I can't figure out what you're doing with all these pointers to characters.
This is my attempt to get the COG_X value
// get the cogx variable
memset(resultBuffer, 0 ,sizeof(resultBuffer));
result = resultBuffer;
if (rr.getVariable("COG_X", result, 1)!=1)
printf("Error in GetVariable, did not return a result");
if (stricmp(result, "COG_X")!=0)
printf("Error in GetVariable");
It compiles, but gets a Windows error when it runs.
Please give me some guidance.