Well, now that I have all of that working great, I have a new problem.
When I try to Raise an error in my DLL, it fails. Specifically, the calling program receives a run-time error zero, with no other information.
I've tried using both of the following methods without success:
Err.Raise Number:=vbObjectError + lMyError, Source:="Test Source", Description:="Test Description"
SetErrorInfo "Test Description", vbObjectError + lMyError, 0, "0", "Test Source"
I even tried wrapping the string values in StrConv as used to solve the previous problems but no luck there either.
Any help on how I can raise a real error from a DLL compiled this way would be appreciated.