Premise:
- Wrote a COM-callable wrapper (CCW) written in C# to be called by VB6 code.
- The C# code has .NET libraries (third party) that it must utilize.
- The wrapped C# class instantiates fine, raises events properly, takes method calls properly.
Problem:
- The VB6 code, when running the C# code, gets an error when the C# code attempts to access the additional .NET libraries mentioned above.
Process tested:
- C# wrapped code completed.
- VB6 code written, references the COM dll created.
- "File not found..." error received when the C# code tries to access the .NET libraries from inside itself.
- Copied the third party .NET libraries into the main folder of the VB6 code (also into system32 folder).
- Still "File not found..." error.
- Wrote a C# Windows Form test project. Referenced the C# wrapped code.
- Received the same error as the VB6 code.
- In C# Windows Form test project, referenced the .NET libraries used by the C# wrapped code.
- The program ran just fine.
Conclusion/Question:
- Can VB6 call/use a com-callable wrapped C# program that references other third party .NET libraries?