Hi everyone,
Just wondering if anyone has had any success in launching an interactive session yet through OLE....?
'bmettee' wrote back on the 28th Jan 03 that they thought the PcAw window was just hidden and sending a ShowWindow command to it should make it interactive.... they never came back with any code however...
This IS possible, as I have successfully wrote a .NET app to do just this. After the call to awconnect, I monitor the ConnectionStatus property - once the status has changed to 1 to indicate a successful connection, I call a procedure that; iterates windows internal handles, identifies the PcAw session window then sends a ShowWindow command to display it.
This works great, however, I have one major problem... Whilst working on the host for some time, the connection drops without explanation! It is normally after around 10 minutes but can vary. Sometimes we need to perform tasks on the host for half and hour or more, which means we have to keep re-connecting when it drops. It does re-connect again straight away but I would obviously like to get to the bottom of the problem. I can't find any timeout setting anywhere and it still drops the connection sporadically if the session is in use the entire time - so it's not an idle timeout....
Has anyone else got this far? Anyone experienced the same type of problem? Any suggestions / advice would be greatly appreciated and I'm happy to share the code I've written so far if anyone's interested,
Cheers, Dave.