I'm having trouble getting a VB6 dll working in C#. I believe that I have everything setup in the C# program correctly because it doesn't complain until I try to call a function from my VB6 ActiveX dll. When it tries to call the function, I get the following error:
Unable to find an entry point named 'startImport' in DLL 'ImportActiveX.dll'
I tried a bunch of things and nothing has worked so far. I believe that there is something wrong with my dll because I checked it with Dependency Walker and none of the functions show up. Here is the code from the class interface:
g_sImportError is declared in a module.Code:Option Explicit Public Event Finished(message As String) Public Function startImport(inSiteName As String, inDriver As String, inServer As String, inUserID As String, inPassword As String, inDatabase As String) As String 'Declarations 'Valid input checks 'Call private functions if input is good RaiseEvent Finished(g_sImportError) startImport = g_sImportError End Function
I'm probably missing something obvious or basic so please don't leave those out. If any more information is needed, I'll be glad to provide it. Thanks in advance for any help provided.




Reply With Quote