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

Managed C++/CLI

 
QuestionKeyboard send Message Pin
WonYG9-Jul-07 14:43
WonYG9-Jul-07 14:43 
AnswerRe: Keyboard send Message Pin
Christian Graus9-Jul-07 15:36
protectorChristian Graus9-Jul-07 15:36 
AnswerRe: Keyboard send Message Pin
Hamid_RT10-Jul-07 9:09
Hamid_RT10-Jul-07 9:09 
QuestionCxImage library Pin
Bieras9-Jul-07 7:50
Bieras9-Jul-07 7:50 
AnswerRe: CxImage library Pin
Mark Salsbery9-Jul-07 8:51
Mark Salsbery9-Jul-07 8:51 
GeneralRe: CxImage library Pin
Bieras9-Jul-07 10:59
Bieras9-Jul-07 10:59 
GeneralRe: CxImage library Pin
Mark Salsbery9-Jul-07 11:10
Mark Salsbery9-Jul-07 11:10 
QuestionWhat's the equivalent to C# static classes? Pin
mid=57417-Jul-07 6:36
mid=57417-Jul-07 6:36 
Is it possible to define static classes as in C#? If not, is the following sufficient:
public ref class MyStaticClass
{
public:

   /* a bunch of static methods */

private:

   MyStaticClass() {};
   ~MyStaticClass() {};
   MyStaticClass( const MyStaticClass% ) {};
};
If I enable code analysis, I get warnings on the copy constructor and the destructor:
warning: CA1811 : Microsoft.Performance : 'MyStaticClass.MyStaticClass(MyStaticClass)' appears to have no upstream public or protected callers.
warning: CA1801 : Microsoft.Usage : Parameter '' of MyStaticClass.MyStaticClass(MyStaticClass) is never used. Remove the parameter or use it in the method body.
warning: CA1822 : Microsoft.Performance : The 'this' parameter (or 'Me' in VB) of MyStaticClass.~MyStaticClass():Void is never used. Mark the member as static (or Shared in VB) or use 'this'/'Me' in the method body or at least one property accessor, if appropriate.

AnswerRe: What's the equivalent to C# static classes? Pin
Mark Salsbery7-Jul-07 7:27
Mark Salsbery7-Jul-07 7:27 
GeneralRe: What's the equivalent to C# static classes? Pin
mid=57417-Jul-07 7:34
mid=57417-Jul-07 7:34 
GeneralRe: What's the equivalent to C# static classes? Pin
Mark Salsbery7-Jul-07 8:04
Mark Salsbery7-Jul-07 8:04 
GeneralRe: What's the equivalent to C# static classes? Pin
mid=57417-Jul-07 8:08
mid=57417-Jul-07 8:08 
GeneralRe: What's the equivalent to C# static classes? Pin
Mark Salsbery7-Jul-07 9:07
Mark Salsbery7-Jul-07 9:07 
Questionunresolved external symbol error when using template function Pin
patrick.steal7-Jul-07 1:40
patrick.steal7-Jul-07 1:40 
QuestionC++/CLI Pin
Subodh Borker7-Jul-07 1:15
Subodh Borker7-Jul-07 1:15 
AnswerRe: C++/CLI Pin
Bartosz Bien13-Jul-07 6:57
Bartosz Bien13-Jul-07 6:57 
QuestionTo add fields on a table Pin
mikobi6-Jul-07 21:47
mikobi6-Jul-07 21:47 
AnswerRe: To add fields on a table Pin
Christian Graus7-Jul-07 1:18
protectorChristian Graus7-Jul-07 1:18 
Question!declared to have 'C' linkage [modified] Pin
abbd6-Jul-07 0:14
abbd6-Jul-07 0:14 
AnswerRe: !declared to have 'C' linkage Pin
Christian Graus6-Jul-07 0:33
protectorChristian Graus6-Jul-07 0:33 
QuestionTo refresh DataSource Pin
mikobi4-Jul-07 23:22
mikobi4-Jul-07 23:22 
AnswerRe: To refresh DataSource Pin
Paul Conrad12-Jul-07 18:00
professionalPaul Conrad12-Jul-07 18:00 
GeneralRe: To refresh DataSource Pin
mikobi13-Jul-07 2:30
mikobi13-Jul-07 2:30 
QuestionHelp reading vector name from file Pin
empaleador4-Jul-07 14:52
empaleador4-Jul-07 14:52 
AnswerRe: Help reading vector name from file Pin
Christian Graus4-Jul-07 15:07
protectorChristian Graus4-Jul-07 15:07 

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.