I try to use TagEx to hold a 64bit address for the class variable. I think I should declare this in C++:
Code: Select all
void __stdcall db_SetFXStrategy(IPowerLanguageObject * pELObjOut,LPSTR pLongStrategy, LPSTR pShortStrategy)
{
//VARIANT IPowerLanguageObject.TagEx;
int prop = pELObjOut->TagEx;
ODBC_Class * DB = (ODBC_Class *)prop;
if (DB != 0)
{
DB->oLongStrategy = pLongStrategy;
DB->oShortStrategy = pShortStrategy;
DB->oLongStrategyID = DB->FXGetStragID(DB->oLongStrategy);
DB->oShortStrategyID = DB->FXGetStragID(DB->oShortStrategy);
DB->UnderlyingType = IsFX;
}
}
Does anyone know how to pass the PowerLanguageObject from the Power Language side?
This doesn't work!!!
Code: Select all
external: "example.dll", int, "db_SetFXStrategy", IPowerLanguageObject,string,sting;
Is there any documentation about using IPowerLanguageObject?