04-18-2007 10:47 AM
04-18-2007 01:28 PM
while(!(p_Diadem->GetBInterfaceLocked()));
while( p_Diadem->GetbInterfaceLocked() )
Sleep(100);
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
04-19-2007 03:48 AM
Hello Matthias,
Thank you for your helpful information,
but now I get a new problem, maybeyou have got an idea to this.
I am using the OLE interface to communicate with VC++ and Diadem.
I want to load parameters, before running a script-function.
So I decided, first run a script to declare the parameters (using
dim instructions) with command:p_Diadem->CmdExecuteSync(COleVariant("ScriptStart('V:\\Main.vbs')"));
then I load the specific parameters with the command:
p_Diadem->CmdExecuteSync(COleVariant("MyVariable = 55")),
or
p_Diadem->IntegerVarSet("MyVariable",COleVariant(long(55)))
now I read back this parameters with command
p_Diadem->IntegerVarGet("MyVariable",&Value) //Value Type: _variant_t
but Value don't have the expected result, neither when setting the value in the script directly.
Can you tell me what's the problem?
Kind regards,
JB
04-19-2007 03:53 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |