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

Managed C++/CLI

 
Questionstatic const from MC++ to C# via DLL [modified] Pin
ShermansLagoon7-Jan-07 23:03
ShermansLagoon7-Jan-07 23:03 
AnswerRe: static const from MC++ to C# via DLL Pin
User 5838528-Jan-07 12:17
User 5838528-Jan-07 12:17 
GeneralRe: static const from MC++ to C# via DLL Pin
ShermansLagoon8-Jan-07 20:53
ShermansLagoon8-Jan-07 20:53 
AnswerRe: static const from MC++ to C# via DLL Pin
led mike9-Jan-07 5:39
led mike9-Jan-07 5:39 
GeneralRe: static const from MC++ to C# via DLL Pin
ShermansLagoon11-Jan-07 21:58
ShermansLagoon11-Jan-07 21:58 
GeneralRe: static const from MC++ to C# via DLL Pin
led mike12-Jan-07 4:57
led mike12-Jan-07 4:57 
GeneralRe: static const from MC++ to C# via DLL Pin
ShermansLagoon12-Jan-07 5:55
ShermansLagoon12-Jan-07 5:55 
GeneralRe: static const from MC++ to C# via DLL Pin
led mike12-Jan-07 7:12
led mike12-Jan-07 7:12 
ShermansLagoon wrote:
it is possible to do neat switch-case code with their values.


Yes because IDL is native to C++. You cannot use C++ compiler constants as C# complier constants nor can you use C++ enums as C# enums in a swtich statement. You could use C++/CLI (managed) enums in C# but that does not address your IDL code.

ShermansLagoon wrote:
I hope this give you a more clear way of knowing what I really need


No it doesn't. All you did was restate the same proposed approach you already posted. I want to know the actual project based problem you are facing. There is an alternate design that will solve that problem (whatever it is) that will not require using constants in a switch statement.

ShermansLagoon wrote:
create a compiler for the IDL files that created MC++ code


That would be a code generator not a complier, and it still does not explain what you are attempting to do with it in the C# application. As a wild guess you might need some sort of factory mechanism that would key off of the values defined in the C++/CLI module. The fact that they originate from IDL is irrelevant. It is certainly possible to accomplish this.


led mike

GeneralRe: static const from MC++ to C# via DLL Pin
ShermansLagoon12-Jan-07 20:44
ShermansLagoon12-Jan-07 20:44 
AnswerRe: static const from MC++ to C# via DLL Pin
ShermansLagoon26-Mar-07 0:47
ShermansLagoon26-Mar-07 0:47 
QuestionHow can i use time ? Pin
Banks K7-Jan-07 23:02
Banks K7-Jan-07 23:02 
GeneralRe: How can i use time ? Pin
ShermansLagoon7-Jan-07 23:05
ShermansLagoon7-Jan-07 23:05 
AnswerRe: How can i use time ? Pin
Christian Graus8-Jan-07 9:39
protectorChristian Graus8-Jan-07 9:39 
QuestionHow to execute a function at schedule time? Pin
Banks K7-Jan-07 21:46
Banks K7-Jan-07 21:46 
AnswerRe: How to execute a function at schedule time? Pin
Christian Graus8-Jan-07 9:40
protectorChristian Graus8-Jan-07 9:40 
QuestionHelp with C++ Pin
Member 36662707-Jan-07 11:03
Member 36662707-Jan-07 11:03 
AnswerRe: Help with C++ Pin
Christian Graus7-Jan-07 15:21
protectorChristian Graus7-Jan-07 15:21 
GeneralRe: Help with C++ Pin
Jun Du8-Jan-07 14:03
Jun Du8-Jan-07 14:03 
QuestionMS VC ++ Dot NET 2003: PtrToStringChars Error. Pin
Madhu_TN7-Jan-07 6:31
Madhu_TN7-Jan-07 6:31 
AnswerRe: MS VC ++ Dot NET 2003: PtrToStringChars Error. Pin
Mark Salsbery10-Jan-07 13:46
Mark Salsbery10-Jan-07 13:46 
GeneralRe: MS VC ++ Dot NET 2003: PtrToStringChars Error. Pin
Madhu_TN10-Jan-07 16:04
Madhu_TN10-Jan-07 16:04 
GeneralRe: MS VC ++ Dot NET 2003: PtrToStringChars Error. Pin
Mark Salsbery10-Jan-07 16:10
Mark Salsbery10-Jan-07 16:10 
Questionhelp if any 1 can :) Pin
core996-Jan-07 10:07
core996-Jan-07 10:07 
AnswerRe: help if any 1 can :) Pin
Christian Graus6-Jan-07 10:43
protectorChristian Graus6-Jan-07 10:43 
GeneralRe: help if any 1 can :) Pin
core998-Jan-07 2:10
core998-Jan-07 2:10 

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.