
Using VBCOM in vb.NET or C#
I have experimented with the following COM dlls:
A string manipulation object: a few minor problems with the fact that it
used defaults in the arguments - ie. Function Parse(pSomeText) - so it was
using default variant data types and default byref parameters. Once I'd
fixed these, no problems.
A data access "helper" DLL - no problems, surprisingly, although the upgrade
wizard resorted to the following, which looks like a horrible fudge:
objAccess =
Microsoft.VisualBasic.Compatibility.VB6.CreateObject("Access.Application")
But it DID all work, first-time.
So, bottom line is that the upgrade wizard DOES mostly do the job - and we
are only in Beta 1, so it looks promising I think.
Has anyone successfuly Converted a COM object written in VB 6 for use in
either
VB or C#?
If so how?
Thanks.