views:

215

answers:

1

I have a VB6 application that I am converting to .Net in phases. The current phase requires .net to make a call to a VB6 dll through interop to execute VBScript using the MS Script control. Other than the process being "convoluted" are there any known issues with this setup? Sometimes nothing is executed or I get an error "Attempted to read or write protected memory". However, if I call the same method using a VB6 app the VBScript executes as expected.

Thoughts?

A: 

I don't know what could be causing your specific problem, but have you looked at the Interop Forms Toolkit?

See: http://msdn.microsoft.com/en-us/bb419144.aspx

It makes communication between .NET and VB 6.0 really easy.

These Codeproject articles have been useful to me in the past: http://www.codeproject.com/KB/vb-interop/VB6InteropToolkit2.aspx?fid=422404&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26&select=2230658

http://www.codeproject.com/KB/dotnet/VB6%5F-%5FC%5F%5FInterop%5FForm.aspx

ParmesanCodice