I am looking some clarifications for the use of IJW and P/Invoke..... We have one DLLs which is written in Visual C++ (NOT a COM component). We already have a Visual Basic 4.0 program which uses that DLL. Now as the part of .NET migration, the Visual Basic 4.0 code will be converted to Visual Basic.NET. What are the possible ways I can make use of the C++ DLL? What are the advantages and disadvantages of each of those maethods.
After looking at some documents, I found the following ways. I am not clear/ and have doubts in these 1) Use P/Invoke in Visual Basic.NET and call the functions in the DLL 2) Recompile the C++ DLL using IJW switch so that it will be a managed one. Since my VB.NET code is a managed one, I can access that..Is this approach correct? or do I need to write wrappers over managed C++ obtained after compiling with IJW switch to use in VB?(I heard that after compiling with IJW you can use only with managed C++ and not with any code written using other languages like VB.NET or C#) Can anyone give me an answer? Thanks in advance, Madhu. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.