Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to convert a C# COM object, which I've ported from Pascal, to VB.NET but this time I'm not as successful. I get very odd errors, like not getting any data passed in out-parameters of some of the methods. So if anyone, whom unlike me knows VB.NET, would care to give it a shot some people would be very grateful.

 

Interface

Implementation

 

 

Thanks

Posted
ain't no such animal as a C# COM object. even if there were' date=' why would you want the poor thing to put on VB airs?[/quote']

Ok ok, a regular C# assembly registered as a COM server. I'm converting it to widen a plugin SDK example base.

  • Administrators
Posted (edited)

Does the C# version work as it stands or are you also experiencing problems with that version?

When you say some of the functions are returning data through the out parameters is it any function(s) in particular?

DO you have any VB code so far? If not you may want to look here for a starting point.

Edited by PlausiblyDamp

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

The C# version works just splendid.

 

As far as I can tell, the methods Name, Version and RequiredCoreVersion doesn't pass data well

 

These are the interface footprints I've worked out:

Sub Name(<Out(), MarshalAs(UnmanagedType.LPStr)> ByRef Name As String)

Sub Version(<Out()> ByRef Version As Integer)

Sub RequiredCoreVersion(<Out()> ByRef RequiredCoreVersion As Integer)

 

All others seem to do well though, and I've defined the out-parameters just the same.

Posted

Actually, nevermind. I had earlier only tested with the tools using the plugins, however when trying to connect it and invoking the methods myself in C++ there's nothing wrong. Guess I'll have a word with the developer. Still odd that the C++ and C# versions would work and not the VB.NET though.

 

Thanks for the time anyway.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...