Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: COM/C# datatype mismatch Pin
Heath Stewart2-Feb-04 10:29
protectorHeath Stewart2-Feb-04 10:29 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite2-Feb-04 10:59
KingTermite2-Feb-04 10:59 
GeneralRe: COM/C# datatype mismatch Pin
Heath Stewart2-Feb-04 11:01
protectorHeath Stewart2-Feb-04 11:01 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite2-Feb-04 11:09
KingTermite2-Feb-04 11:09 
GeneralRe: COM/C# datatype mismatch Pin
Heath Stewart2-Feb-04 11:14
protectorHeath Stewart2-Feb-04 11:14 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite2-Feb-04 11:40
KingTermite2-Feb-04 11:40 
GeneralRe: COM/C# datatype mismatch Pin
Heath Stewart2-Feb-04 11:49
protectorHeath Stewart2-Feb-04 11:49 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite3-Feb-04 3:24
KingTermite3-Feb-04 3:24 
According to that link (and another article I've found), when you add the COM reference to the project in VS.Net, it automatically converts it for you so that you are "on the same page".

Anyway....I found the assembly info you were talking about....I had to use a VS.Net command line tool called ildasm (which I didn't know about before).

But anyway...here it the info it generates:
<br />
.method public hidebysig newslot virtual <br />
        instance string[] <br />
        marshal( safearray bstr) <br />
        MyFunction([in][out] string[]&  marshal( safearray bstr) varNames) runtime managed internalcall<br />
{<br />
  .custom instance void [mscorlib]System.Runtime.InteropServices.DispIdAttribute::.ctor(int32) = ( 01 00 15 00 03 60 00 00 )                         // .....`..<br />
  .override COMInterface._COMClass::MyFunction <br />
} // end of method COMClass::MyFunction<br />


I'm still trying to match the C# datatype for the argument for that VB6 COM function.


There are only 10 types of people in this world....those that understand binary, and those that do not.
GeneralRe: COM/C# datatype mismatch Pin
Heath Stewart3-Feb-04 3:44
protectorHeath Stewart3-Feb-04 3:44 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite3-Feb-04 4:04
KingTermite3-Feb-04 4:04 
GeneralRe: COM/C# datatype mismatch Pin
Heath Stewart3-Feb-04 4:26
protectorHeath Stewart3-Feb-04 4:26 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite3-Feb-04 4:40
KingTermite3-Feb-04 4:40 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite4-Feb-04 7:28
KingTermite4-Feb-04 7:28 
GeneralCalling a .NET Component from a COM Component Pin
Shahin772-Feb-04 9:11
Shahin772-Feb-04 9:11 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart2-Feb-04 9:57
protectorHeath Stewart2-Feb-04 9:57 
GeneralRe: Calling a .NET Component from a COM Component Pin
Shahin772-Feb-04 11:12
Shahin772-Feb-04 11:12 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart2-Feb-04 11:45
protectorHeath Stewart2-Feb-04 11:45 
GeneralUrgent help (Calling a .NET Component from a COM Component) Pin
Shahin773-Feb-04 4:16
Shahin773-Feb-04 4:16 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart3-Feb-04 6:30
protectorHeath Stewart3-Feb-04 6:30 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Shahin774-Feb-04 6:48
Shahin774-Feb-04 6:48 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart4-Feb-04 7:04
protectorHeath Stewart4-Feb-04 7:04 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Shahin774-Feb-04 7:42
Shahin774-Feb-04 7:42 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart4-Feb-04 8:41
protectorHeath Stewart4-Feb-04 8:41 
GeneralRe: Calling a .NET Component from a COM Component Pin
KingTermite2-Feb-04 10:14
KingTermite2-Feb-04 10:14 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart3-Feb-04 5:56
protectorHeath Stewart3-Feb-04 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.