Click here to Skip to main content
15,888,270 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

I need to pass 2 strings from VB.NET to an OCX written for VB6. VS2008 put a wrapper on the OCX, but while the routine is called, the string parameters are not correctly received.

I do not know why but I am guessing that it is because, as I understand it, in VB6 parameters are passed By Ref as a default while in VB.NET, parameters are passed Bv Val as a default.

When I imported the OCX into VS 2008, it seems to have automatically defaulted the string parameters for the routine I need to By Val because the ocx export info did not specify anything.

1. Is there anyway to override VS 2008 so that I can pass the strings correctly to the OCX?

2. Is there something else instead that I could do?

I have 30000 files encrypted with FastEncrypt by JSoft, which seems to have gone out of business, and I need to incorporate FastEncrypt into a VB.NET program in order to use them.

Any help would be greatly appreciated.

Thank you.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900