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

Managed C++/CLI

 
QuestionHow to include or Add Referance with VC++ 2005? Pin
ALQallaf6-May-06 9:11
ALQallaf6-May-06 9:11 
AnswerRe: How to include or Add Referance with VC++ 2005? Pin
Milton Karimbekallil6-May-06 9:28
Milton Karimbekallil6-May-06 9:28 
GeneralRe: How to include or Add Referance with VC++ 2005? Pin
ALQallaf6-May-06 9:59
ALQallaf6-May-06 9:59 
GeneralRe: How to include or Add Referance with VC++ 2005? Pin
ALQallaf6-May-06 10:23
ALQallaf6-May-06 10:23 
GeneralRe: How to include or Add Referance with VC++ 2005? Pin
Milton Karimbekallil6-May-06 10:39
Milton Karimbekallil6-May-06 10:39 
GeneralRe: How to include or Add Referance with VC++ 2005? Pin
ALQallaf6-May-06 11:40
ALQallaf6-May-06 11:40 
GeneralRe: How to include or Add Referance with VC++ 2005? Pin
ALQallaf6-May-06 11:54
ALQallaf6-May-06 11:54 
GeneralRe: How to include or Add Referance with VC++ 2005? Pin
Milton Karimbekallil7-May-06 2:36
Milton Karimbekallil7-May-06 2:36 
You were in the wrong side.
you again choose an unmanaged project type because win32 project is an unmanged type.

After all what you need is to call MSMQ APIs right? You can do it in two ways:

1) Either use unmanaged MSMQ Apis
2) Or use Managed .Net class libraries, which is the one you chose.

For the first option:
you can go for an unmanaged project type. ie it can be a vc++6 project or a VC++8 MFC application.
Then for accessing the MSMQ apis go thru http://www.thecodeproject.com/w2k/msmq.asp.
This method will be fater as MSMQ apis are unmanged and you are directly dealing with the apis.

Second option is to use managed dlls:
This is the option you chose, by using System.Messaging.dll. This is not that good as the previous one as it wrapes the actual MSMQ COM Apis under the hood.

If you want to go for this option yu can do it in the following ways:
a)Use an Unmanaged VC++ app and use interop for calling the wrapper u created on managed
System.Messaging.dll. For this you have to create one managed wrapper dll (New project -->
Visual C++ -->CLR --> Class library) and wrap all your msmq requirements using
System.Messaging.dll functions.Then use COM iterop to use this managed wrapper dll from ur
Unmanaged VC++8 application.
(Or you can avoid wrapper dll by using CorBindToRuntimeEx(), but more complicated. better dont
go for this if u r beginner).

b)USe a Managed VC++ application (New project --> Visual C++ -->CLR --> Windows forms applicaion /
Class library). This is a c++/cli application.
This will be the easiest methed if you are planning to use System.Messaging.dll (in C++) instaed
of the MSMQ COM apis.

Or another choice is, you really want to go for vc++? if you go for C# and System.Messaging.dll then it will be the easiest of all.

more questions are welcome ...milton
AnswerRe: How to include or Add Referance with VC++ 2005? Pin
ALQallaf7-May-06 12:57
ALQallaf7-May-06 12:57 
GeneralRe: How to include or Add Referance with VC++ 2005? Pin
Milton Karimbekallil7-May-06 13:24
Milton Karimbekallil7-May-06 13:24 
QuestionMicrosoft is looking for potential C++ MVPs Pin
Chris Maunder4-May-06 15:36
cofounderChris Maunder4-May-06 15:36 
AnswerRe: Microsoft is looking for potential C++ MVPs Pin
toxcct4-May-06 23:39
toxcct4-May-06 23:39 
GeneralRe: Microsoft is looking for potential C++ MVPs Pin
georgeraafat5-May-06 6:20
georgeraafat5-May-06 6:20 
GeneralRe: Microsoft is looking for potential C++ MVPs Pin
Nish Nishant5-May-06 6:43
sitebuilderNish Nishant5-May-06 6:43 
AnswerRe: Microsoft is looking for potential C++ MVPs Pin
Nish Nishant5-May-06 6:42
sitebuilderNish Nishant5-May-06 6:42 
GeneralRe: Microsoft is looking for potential C++ MVPs Pin
Naveen5-May-06 20:53
Naveen5-May-06 20:53 
GeneralRe: Microsoft is looking for potential C++ MVPs Pin
ppatel5675-May-06 22:47
ppatel5675-May-06 22:47 
QuestionRe: Microsoft is looking for potential C++ MVPs Pin
Naveen5-May-06 23:00
Naveen5-May-06 23:00 
AnswerRe: Microsoft is looking for potential C++ MVPs Pin
ppatel5675-May-06 23:23
ppatel5675-May-06 23:23 
GeneralRe: Microsoft is looking for potential C++ MVPs Pin
Nish Nishant6-May-06 2:13
sitebuilderNish Nishant6-May-06 2:13 
GeneralRe: Microsoft is looking for potential C++ MVPs Pin
Nish Nishant6-May-06 2:12
sitebuilderNish Nishant6-May-06 2:12 
GeneralRe: Microsoft is looking for potential C++ MVPs Pin
ThatsAlok16-May-06 2:51
ThatsAlok16-May-06 2:51 
GeneralRe: Microsoft is looking for potential C++ MVPs Pin
Nish Nishant16-May-06 13:34
sitebuilderNish Nishant16-May-06 13:34 
QuestionConverting String to a Shortcut in MC++ Pin
rob knaack4-May-06 12:38
rob knaack4-May-06 12:38 
AnswerRe: Converting String to a Shortcut in MC++ Pin
George L. Jackson5-May-06 6:37
George L. Jackson5-May-06 6:37 

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.