call com object with byref byte parameters in vb.net 
Author Message
 call com object with byref byte parameters in vb.net

I want to call a com object (named DES_ATLLib) in vb.net  as follows:

 Dim d As New DES_ATLLib.descomClass()

        Dim acct As String = "123456789012"
        Dim pin As String = "1234"
        Dim b As Byte = 4
        Dim pad As string = "FF"
        Dim result As String

all the params of  DesCalc are byref bytes:
when i hover the mouse over d.DesCalc i get this:
public overridable overloads sub DesCalc(byref acct as byte, byref pin
as byte,byref b as byte,byref pad as byte,byref result as byte)

all these params are pointers to the actual values

how must i call this com object?
in other words, how must i pass the parameters?

thx



Tue, 09 Aug 2005 17:03:21 GMT  
 call com object with byref byte parameters in vb.net

Quote:
>how must i call this com object?
>in other words, how must i pass the parameters?

Either write a MC++ wrapper around the COM object, or edit the interop
assembly and change the parameter type to something more appropriate,
as described here

http://www.msdn.microsoft.com/library/en-us/cpguide/html/cpconcustomi...

Mattias

===

http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.



Wed, 10 Aug 2005 02:45:50 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. call com object with byref byte parameters in vb.net

2. Call VB DLL or COM object from within VB COM object or EXE

3. Calling a com object with variable number of parameters from VB.

4. com object will not read registry when com object called from asp (vb works fine)

5. Calling a COM object from VB.Net with Optional Params

6. Type mismatch when calling VB6 COM objects from VB.NET

7. Calling COM EXE from VB.NET Service leaves COM EXE in Memory

8. COM-Object in ASP with COM-Object as parameter

9. COM-Object in ASP with COM-Object as Parameter

10. Calling VFP COM server with object parameter

11. VB COM object leaks private bytes

12. COM object cloning ByRef

 

 
Powered by phpBB® Forum Software