Click here to Skip to main content
16,004,854 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: const char* to LPCTSTR conversion Pin
Christian Graus28-Aug-05 20:07
protectorChristian Graus28-Aug-05 20:07 
GeneralRe: const char* to LPCTSTR conversion Pin
fjlv200528-Aug-05 20:11
fjlv200528-Aug-05 20:11 
AnswerRe: const char* to LPCTSTR conversion Pin
hamster129-Aug-05 15:17
hamster129-Aug-05 15:17 
QuestionAutorun checks in registry Pin
gnjunge28-Aug-05 3:25
gnjunge28-Aug-05 3:25 
Answer[Message Deleted] Pin
Saksida Bojan29-Aug-05 1:08
Saksida Bojan29-Aug-05 1:08 
AnswerRe: Autorun checks in registry Pin
Saksida Bojan29-Aug-05 1:10
Saksida Bojan29-Aug-05 1:10 
Questionvariables initialization in the constructor Pin
chen_k27-Aug-05 18:56
chen_k27-Aug-05 18:56 
AnswerRe: variables initialization in the constructor Pin
Christian Graus28-Aug-05 17:14
protectorChristian Graus28-Aug-05 17:14 
name = {"10 chars long"};

OR

name = new char[10];
::strcpy(&name[0], "value"); // going from memory, args could be the wrong way around


If you use the second method, don't forget to release memory in the destructor. If you use the first, don't change the value of the string, which means it should be const. Overall, you'd do better to use a string class to hold the value, if practical.


Christian Graus - Microsoft MVP - C++
AnswerRe: variables initialization in the constructor Pin
hamster129-Aug-05 15:26
hamster129-Aug-05 15:26 
AnswerRe: variables initialization in the constructor Pin
Nemanja Trifunovic30-Aug-05 2:32
Nemanja Trifunovic30-Aug-05 2:32 
Questionpossible memory leak Pin
Saksida Bojan25-Aug-05 20:51
Saksida Bojan25-Aug-05 20:51 
AnswerRe: possible memory leak Pin
Nemanja Trifunovic26-Aug-05 2:26
Nemanja Trifunovic26-Aug-05 2:26 
QuestionCan not marshal parameter #4: The type definition of this type has no layout information. Pin
AnsGe25-Aug-05 19:04
AnsGe25-Aug-05 19:04 
AnswerRe: Can not marshal parameter #4: The type definition of this type has no layout information. Pin
HumanOsc30-Aug-05 7:21
HumanOsc30-Aug-05 7:21 
QuestionMultithreading Pin
Saksida Bojan25-Aug-05 10:41
Saksida Bojan25-Aug-05 10:41 
QuestionDownload accelarator Pin
Y_R25-Aug-05 6:23
Y_R25-Aug-05 6:23 
QuestionDriver interface Pin
Paresh emb25-Aug-05 5:52
Paresh emb25-Aug-05 5:52 
QuestionManifest Pin
Alex_Y25-Aug-05 2:36
Alex_Y25-Aug-05 2:36 
QuestionCall dll problem Pin
Kash25-Aug-05 0:22
Kash25-Aug-05 0:22 
AnswerRe: Call dll problem Pin
ursus zeta25-Aug-05 5:34
ursus zeta25-Aug-05 5:34 
QuestionCan't close main form!! Pin
richiemac24-Aug-05 23:58
richiemac24-Aug-05 23:58 
AnswerRe: Can't close main form!! Pin
Saksida Bojan25-Aug-05 20:50
Saksida Bojan25-Aug-05 20:50 
GeneralRe: Can't close main form!! Pin
richiemac25-Aug-05 21:55
richiemac25-Aug-05 21:55 
GeneralRe: Can't close main form!! Pin
Saksida Bojan28-Aug-05 10:46
Saksida Bojan28-Aug-05 10:46 
GeneralVisual Studio 2005 Pin
Anonymous24-Aug-05 20:33
Anonymous24-Aug-05 20:33 

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.