Computing.Net > Forums > Programming > Vb6 dll

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Vb6 dll

Reply to Message Icon

Name: igor12
Date: September 10, 2009 at 20:41:40 Pacific
OS: Windows XP
Product: Microsoft Visual basic 6.0 win32 professional ed. full product cd-rom
Subcategory: General
Tags: VB6, DLL, OLE
Comment:

I have a DLL written in VB6 and it calls a function that calls an OLE object that returns a string. Simply the function declaration is something like this:
Public Function myFunc(myString As String) {}

Is it possible to call another (.NET Based) DLL from this function and pass the string to it?

I have tried to convert and rewrite this DLL in .NET but for some reason the function on the OLE object does not get called unless it's compiled in VB6.

Thanks,
Igor



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: September 11, 2009 at 05:23:52 Pacific
Reply:
0

Response Number 2
Name: igor12
Date: September 14, 2009 at 08:47:00 Pacific
Reply:

I have tried this example with Visual Studio 2008 and VB6. I have added a reference to PhysServer2 in VB6 and it's there but for some reason I can't access any of its properties. Any Ideas? I registered the VS2008 DLL with COM interop and made it COM visible.


0

Response Number 3
Name: Razor2.3
Date: September 15, 2009 at 13:16:47 Pacific
Reply:

I'd need to see what you're doing, but I don't have VS2008 to play along. Make sure the properties are declared Public, they're declared in the Interface, and you use a strong name.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Vb6 dll

dummy dll's in VB6 www.computing.net/answers/programming/dummy-dlls-in-vb6/6080.html

VB6 & control panel www.computing.net/answers/programming/vb6-amp-control-panel/7532.html

VB6 installation on win2k server www.computing.net/answers/programming/vb6-installation-on-win2k-server/7559.html