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

Managed C++/CLI

 
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 
Hello,

I'm trying to convert a string "CtrlA" to a System::Windows::Form::Shortcut. I've seen examples in C# for doing this:

menuItem_action.Shortcut = (Shortcut)Enum.Parse(typeof(Shortcut), txt);<br />


That seems simple, but I haven't had luck doing it in MC++. Here's my code (broken into seperate lines for easier reading:

Type* tp = __typeof(Shortcut);<br />
Object* obj = (Enum::Parse(tp, txt));<br />
Shortcut* scut = static_cast<Shortcut*>(obj);<br />
menuItem_action->set_Shortcut(*scut);


I get the compilation error:
c:\projects\TestForms\HotKey\Form1.h(210): error C2440: 'initializing' : cannot convert from 'System::Object __gc *' to 'System::Windows::Forms::Shortcut __gc *'

I'm not sure how to convert the parsed value to a Shortcut. Can anyone shed some light on this? Thanks.
AnswerRe: Converting String to a Shortcut in MC++ Pin
George L. Jackson5-May-06 6:37
George L. Jackson5-May-06 6:37 
GeneralRe: Converting String to a Shortcut in MC++ Pin
rob knaack5-May-06 9:00
rob knaack5-May-06 9:00 
QuestionWIA 1.0 Pin
allenmpcx4-May-06 11:56
allenmpcx4-May-06 11:56 
QuestionNewbie: Using a com object in VC 7.1 Pin
ebruinsma4-May-06 4:04
ebruinsma4-May-06 4:04 
AnswerRe: Newbie: Using a com object in VC 7.1 Pin
georgeraafat4-May-06 15:00
georgeraafat4-May-06 15:00 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
ebruinsma5-May-06 3:01
ebruinsma5-May-06 3:01 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
georgeraafat5-May-06 6:18
georgeraafat5-May-06 6:18 
AnswerRe: Newbie: Using a com object in VC 7.1 Pin
toxcct5-May-06 3:14
toxcct5-May-06 3:14 
GeneralRe: Newbie: Using a com object in VC 7.1 Pin
ebruinsma5-May-06 3:28
ebruinsma5-May-06 3:28 
Questionnesting, looping, triangle Pin
Charles Reese3-May-06 8:04
Charles Reese3-May-06 8:04 
AnswerRe: nesting, looping, triangle Pin
Saksida Bojan3-May-06 19:54
Saksida Bojan3-May-06 19:54 
Questionnesting, looping, triangle Pin
Charles Reese3-May-06 8:03
Charles Reese3-May-06 8:03 
Question[urgent newbie] input streams problem with .NET Pin
kkyeung3-May-06 6:46
kkyeung3-May-06 6:46 
AnswerRe: [urgent newbie] input streams problem with .NET Pin
Saksida Bojan3-May-06 20:26
Saksida Bojan3-May-06 20:26 
GeneralRe: [urgent newbie] input streams problem with .NET Pin
kkyeung4-May-06 8:38
kkyeung4-May-06 8:38 
GeneralRe: [urgent newbie] input streams problem with .NET Pin
Saksida Bojan4-May-06 9:31
Saksida Bojan4-May-06 9:31 
QuestionExpose VC++ .Net function to VB .Net Pin
ppanke3-May-06 4:50
ppanke3-May-06 4:50 

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.