List Info

Thread: C-Sharp (C#) Group: VB.Net to C#. The problem of Delegate




C-Sharp (C#) Group: VB.Net to C#. The problem of Delegate
user name
2006-03-29 08:26:55
Dear all:

I want to use a software API functions on my project,but it
was written
VB.NET. I am using C#, So how to write these code by C#,
espacially
Delegate. I tried several times, but I failed. The below is
the part
code by VB.NET

------------------------------------------------------------
------------------------------------
Sub DoOCR(ByRef FileName As String)
Dim cbFunc As SimpleOCX.outputHandlerDelegate
Dim ret As Interger
cbFunc = AddressOf myoutputhandler
ret = objOCR.OCRSetOutputHandlerX(cbFunc)
Exit Sub

 Sub myoutputhandler(ByVal infotype As Short, ByVal param As
Short)
 End Sub
------------------------------------------------------------
------------------------------------
Please give me some tip to do this process, I will
appreciate your
kindness.
Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )