Hallo Commontater,
I tried your suggestion but get a little problem.
if (hwndProj && AddIn_GetProjectSymbol(hwndProj, _T("CCFLAGS"), ccFlags, sizeof(ccFlags)/sizeof(ccFlags[0]))) {
_tcscpy(szTmp, _T("/P "));
_tcscat(szTmp, ccFlags);
AddIn_SetProjectSymbol(hwndProj, _T("CCFLAGS"), szTmp); //set
AddIn_GetProjectSymbol(hwndProj, _T("CCFLAGS"), szTmp, sizeof(szTmp)/sizeof(szTmp[0])); //check
AddIn_WriteOutput(hwndMain, szTmp);
AddIn_SendIDECommand(hwndMain, AIC_PROJ_COMPILE); //build
AddIn_SetProjectSymbol(hwndProj, _T("CCFLAGS"), ccFlags); //reset
AddIn_WriteOutput(hwndMain, ccFlags);
}
Project saved: D:\C\wwl\ide-extensions\extensions\PreProc\PreProc.ppj
/P -W1 -Ot -Gz -Ze -Tx86-coff
Project saved: D:\C\wwl\ide-extensions\extensions\PreProc\PreProc.ppj
-W1 -Ot -Gz -Ze -Tx86-coff
Project build started
Project build ended successfully
It seems as if I have to wait until the file is compiled. Is there a simple solution?
czerny