Click here to Skip to main content
15,918,668 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
UserNameless14-Jul-09 20:57
UserNameless14-Jul-09 20:57 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
Richard Andrew x6414-Jul-09 21:22
professionalRichard Andrew x6414-Jul-09 21:22 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
UserNameless14-Jul-09 21:26
UserNameless14-Jul-09 21:26 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
Richard Andrew x6414-Jul-09 21:35
professionalRichard Andrew x6414-Jul-09 21:35 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
UserNameless14-Jul-09 21:44
UserNameless14-Jul-09 21:44 
QuestionC++/CLI being used with VB and VC++ Pin
Shadowsoal14-Jul-09 8:45
Shadowsoal14-Jul-09 8:45 
AnswerRe: C++/CLI being used with VB and VC++ Pin
N a v a n e e t h14-Jul-09 16:12
N a v a n e e t h14-Jul-09 16:12 
GeneralRe: C++/CLI being used with VB and VC++ Pin
Shadowsoal15-Jul-09 4:13
Shadowsoal15-Jul-09 4:13 
After doing some more reading, it seems I've erred. So from what I've gathered on Wikipedia, Visual C++ is actually just an IDE which is used to develop C, C++ and C++/CLI. My initial impression was that VC++ was a separate language. From what I understand people really only code in C++/CLI to provide access to unmanaged code for managed programs. Someone coding in C++ or C can access the underlying C SDK directly, so there shouldn't be any issue there.

The purpose of what I'm doing is to allow a user who is programming in a .NET language access to an unmanaged C SDK. At this point I've got all the functionality I want in a C++/CLI wrapper and am just whipping up example code. I don't really know much about the .NET framework, I'm not a .NET programmer and haven't really looked into it extensively. I know we have clients who use C# and VB. What I am trying to do is put together some example code for the clients' sake, and as a sanity check to ensure that my wrapper works with the languages that it will get used with.

C# - Good to go, all my testing was done with C#, and it works.
VB - I've never programmed in VB, don't know much about it... What I do know is my code needs to work with it. I'm sure I can figure out the basics of the language, enough to convert my C# example code to VB code. What I'm more worried about is figuring out the mechanism necessary to access my C++/CLI DLL from VB.

So I guess I have two real questions...
First, given a C++/CLI DLL, MyLib.dll, compiled as follows:
$ cl /nologo /clr /LD /FeMyLib.dll MyLib.cpp UnmanagedLib.lib
$ mt /nologo /manifest MyLib.dll.manifest /outputresource:MyLib.dll;2

And a VB program: TestProgram.vb
What do I need to do to allow TestProgram.vb the ability to construct objects defined in MyLib.dll and use said objects' subroutines.

Second, what other .NET languages are widely used, and consequently should be tested?
GeneralRe: C++/CLI being used with VB and VC++ Pin
Shadowsoal15-Jul-09 5:21
Shadowsoal15-Jul-09 5:21 
GeneralRe: C++/CLI being used with VB and VC++ Pin
N a v a n e e t h15-Jul-09 17:49
N a v a n e e t h15-Jul-09 17:49 
GeneralRe: C++/CLI being used with VB and VC++ Pin
Shadowsoal15-Jul-09 17:52
Shadowsoal15-Jul-09 17:52 
GeneralRe: C++/CLI being used with VB and VC++ Pin
N a v a n e e t h15-Jul-09 18:23
N a v a n e e t h15-Jul-09 18:23 
QuestionNeed to call C++ function callback from C code in a Windows Form app Pin
KawiRider13-Jul-09 15:44
KawiRider13-Jul-09 15:44 
AnswerRe: Need to call C++ function callback from C code in a Windows Form app Pin
Mark Salsbery14-Jul-09 6:48
Mark Salsbery14-Jul-09 6:48 
GeneralRe: Need to call C++ function callback from C code in a Windows Form app Pin
KawiRider14-Jul-09 8:59
KawiRider14-Jul-09 8:59 
GeneralRe: Need to call C++ function callback from C code in a Windows Form app Pin
Mark Salsbery14-Jul-09 9:49
Mark Salsbery14-Jul-09 9:49 
GeneralRe: Need to call C++ function callback from C code in a Windows Form app Pin
KawiRider14-Jul-09 12:13
KawiRider14-Jul-09 12:13 
GeneralRe: Need to call C++ function callback from C code in a Windows Form app Pin
Daniel Grunwald20-Jul-09 4:47
Daniel Grunwald20-Jul-09 4:47 
QuestionSample for migrating C++ console app Pin
alleyes13-Jul-09 7:52
professionalalleyes13-Jul-09 7:52 
AnswerRe: Sample for migrating C++ console app Pin
Randor 14-Jul-09 11:24
professional Randor 14-Jul-09 11:24 
GeneralRe: Sample for migrating C++ console app Pin
alleyes15-Jul-09 2:24
professionalalleyes15-Jul-09 2:24 
QuestionPlease Help -- Link Error in Managed Wrapper Pin
Bharat Mallapur11-Jul-09 8:55
Bharat Mallapur11-Jul-09 8:55 
AnswerRe: Please Help -- Link Error in Managed Wrapper Pin
Bharat Mallapur13-Jul-09 23:14
Bharat Mallapur13-Jul-09 23:14 
QuestionMixed DLL Pin
cherrymotion10-Jul-09 5:29
cherrymotion10-Jul-09 5:29 
AnswerRe: Mixed DLL Pin
Richard Andrew x6414-Jul-09 20:12
professionalRichard Andrew x6414-Jul-09 20:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.