Help calling a com function from VB.net [modified]
-
I am trying to call a function in a dll which was written in com I am uing the following
Dim myxmlobj As New serviceprovider.ProcessXML Dim returnmesg As String returnmesg = myxml.ProcessXMLFile("c:\myxml.xml")
I have a added a reference to Interop.ServicePorvider in my project. All seems correct but the funtion fails (Giving HRESULT E_Fails), is there anything special I need to consider as I am a calling a com dll. Cheers -- modified at 14:03 Saturday 27th January, 2007 -
I am trying to call a function in a dll which was written in com I am uing the following
Dim myxmlobj As New serviceprovider.ProcessXML Dim returnmesg As String returnmesg = myxml.ProcessXMLFile("c:\myxml.xml")
I have a added a reference to Interop.ServicePorvider in my project. All seems correct but the funtion fails (Giving HRESULT E_Fails), is there anything special I need to consider as I am a calling a com dll. Cheers -- modified at 14:03 Saturday 27th January, 2007No, it should just work.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
No, it should just work.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
Thanks Christian, I wish it were only so. Cheers Geoff