OleAutoObject and C# Events

This is a discussion on OleAutoObject and C# Events within the Clipper forums in Programming Languages category; Hi I use V.O. 2.8 OleAutoObject to call a method in a C# DLL to submit SOAP transactions. This works well except for large transactions. When the C# method is called, the VO application is unable to refresh it's windows until after the C# method returns. Is it possible for a VO application to receive events from a C# program. This would allow me to call Exec(EXECWHILEEVENT) to update the window. I am able to do this with 32-bit window DLLs, such as XceedZip, but not with dotNET DLLs. Any advice would be appreciated. Ted...

Go Back   Application Development Forum > Programming Languages > Clipper

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-03-2008, 09:11 PM
Ted Rouen
Guest
 
Default OleAutoObject and C# Events

Hi

I use V.O. 2.8 OleAutoObject to call a method in a C# DLL to submit SOAP
transactions.

This works well except for large transactions. When the C# method is called,
the VO application is unable to refresh it's windows until after the C#
method returns.

Is it possible for a VO application to receive events from a C# program.
This would allow me to call Exec(EXECWHILEEVENT) to update the window. I am
able to do this with 32-bit window DLLs, such as XceedZip, but not with
dotNET DLLs.

Any advice would be appreciated.

Ted


Reply With Quote
  #2  
Old 09-03-2008, 10:20 PM
Mike Jones
Guest
 
Default Re: OleAutoObject and C# Events

Ted,

I can't answer your question, but another option would be to call the C#
method in a worker thread while using the main thread to keep the GUI
up-to-date.

Mike

"Ted Rouen" <tr@xxx.com.au> wrote in message
news:48bf35c9$0$21365$c30e37c6@pit-reader.telstra.net...
> Hi
>
> I use V.O. 2.8 OleAutoObject to call a method in a C# DLL to submit SOAP
> transactions.
>
> This works well except for large transactions. When the C# method is
> called, the VO application is unable to refresh it's windows until after
> the C# method returns.
>
> Is it possible for a VO application to receive events from a C# program.
> This would allow me to call Exec(EXECWHILEEVENT) to update the window. I
> am able to do this with 32-bit window DLLs, such as XceedZip, but not with
> dotNET DLLs.
>
> Any advice would be appreciated.
>
> Ted
>
>



Reply With Quote
  #3  
Old 09-06-2008, 08:47 PM
Ted Rouen
Guest
 
Default Re: OleAutoObject and C# Events

Mike

Thanks for the tip the worker thread works well.

Ted

"Mike Jones" <michael.jones.nospam@rogers.com> wrote in message
news:g9ngmi$kka$1@aioe.org...
> Ted,
>
> I can't answer your question, but another option would be to call the C#
> method in a worker thread while using the main thread to keep the GUI
> up-to-date.
>
> Mike
>
> "Ted Rouen" <tr@xxx.com.au> wrote in message
> news:48bf35c9$0$21365$c30e37c6@pit-reader.telstra.net...
>> Hi
>>
>> I use V.O. 2.8 OleAutoObject to call a method in a C# DLL to submit SOAP
>> transactions.
>>
>> This works well except for large transactions. When the C# method is
>> called, the VO application is unable to refresh it's windows until after
>> the C# method returns.
>>
>> Is it possible for a VO application to receive events from a C# program.
>> This would allow me to call Exec(EXECWHILEEVENT) to update the window. I
>> am able to do this with 32-bit window DLLs, such as XceedZip, but not
>> with dotNET DLLs.
>>
>> Any advice would be appreciated.
>>
>> Ted
>>
>>

>
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 10:10 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.