IJW or P/Invoke
-
I am looking some clarifications for the use of IJW and p/Invoke..... I have a DLL which is written in Visual C++ (NOT a COM component). I am planning to use that from Visual Basic.NET. Infact there is a VB code earlier written to call that DLL. Now the application is being rewritten in VB.NET and I want use that DLL. What are the ways I can use that DLL? I found the following ways (I am not 100% what I found are correct or not) 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#) Whar is the performance difference between IJW and P/Invoke ? Can anyone give me an answer? Thanks in advance, Madhu.
-
I am looking some clarifications for the use of IJW and p/Invoke..... I have a DLL which is written in Visual C++ (NOT a COM component). I am planning to use that from Visual Basic.NET. Infact there is a VB code earlier written to call that DLL. Now the application is being rewritten in VB.NET and I want use that DLL. What are the ways I can use that DLL? I found the following ways (I am not 100% what I found are correct or not) 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#) Whar is the performance difference between IJW and P/Invoke ? Can anyone give me an answer? Thanks in advance, Madhu.
Madhu C wrote: Recompile the C++ DLL using IJW switch so that it will be a managed one Very confusing! What's an IJW switch? Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Madhu C wrote: Recompile the C++ DLL using IJW switch so that it will be a managed one Very confusing! What's an IJW switch? Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
He is talking about the /clr switch in C++ compiler options. (BTW. He posted the same question to DOTNET mailing list)
-
He is talking about the /clr switch in C++ compiler options. (BTW. He posted the same question to DOTNET mailing list)
Rama Krishna wrote: He is talking about the /clr switch in C++ compiler options Oh! Thanks. That explains it :-) Rama Krishna wrote: He posted the same question to DOTNET mailing list) I am not a member there Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Rama Krishna wrote: He is talking about the /clr switch in C++ compiler options Oh! Thanks. That explains it :-) Rama Krishna wrote: He posted the same question to DOTNET mailing list) I am not a member there Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
I was talking about the /clr switch in C++ compiler options. BTW I got some really good answers about IJW and P/Invoke from DOTNET mailing list. Madhu.
-
I was talking about the /clr switch in C++ compiler options. BTW I got some really good answers about IJW and P/Invoke from DOTNET mailing list. Madhu.
Madhu _Cheriyedath wrote: I was talking about the /clr switch in C++ compiler options. Thanks. Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.