J
Jethro
Hi all
upgrade a VB6 Project, and am now stumped.
The project contained 4 class modules. These were upgraded from :
Public Class HTMLMail
to :
<System.Runtime.InteropServices.ProgId("HTMLMail_NET.HTMLMail")> Public
Class HTMLMail
My code gets a string from the registry (I had to rewrite my registry
handlers to dump the API), and attempts this :
sClass = GetString()
objClass=CreateObject(sClass)
objClass.MyMethod() <--------------------
This line fails with a System.IO.Runtime.Exception "Path not found".
If I replace the CreateObject with Dim objClass as new HTMLMail then all is
well.
Obviously I have missed a subtlety here of the upgrade ...
I want to keep this way of working, as it allows me to introduce new
features (i.e. paid for) by simply putting additional DLLs on the client
machine - No DLL, no feature ! Additionally I can maintain features
independently ...
Thanks in advance
Jethro
upgrade a VB6 Project, and am now stumped.
The project contained 4 class modules. These were upgraded from :
Public Class HTMLMail
to :
<System.Runtime.InteropServices.ProgId("HTMLMail_NET.HTMLMail")> Public
Class HTMLMail
My code gets a string from the registry (I had to rewrite my registry
handlers to dump the API), and attempts this :
sClass = GetString()
objClass=CreateObject(sClass)
objClass.MyMethod() <--------------------
This line fails with a System.IO.Runtime.Exception "Path not found".
If I replace the CreateObject with Dim objClass as new HTMLMail then all is
well.
Obviously I have missed a subtlety here of the upgrade ...
I want to keep this way of working, as it allows me to introduce new
features (i.e. paid for) by simply putting additional DLLs on the client
machine - No DLL, no feature ! Additionally I can maintain features
independently ...
Thanks in advance
Jethro