Click here to Skip to main content
15,916,293 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCOleVariant to COLORREF Pin
_Flaviu12-May-17 6:27
_Flaviu12-May-17 6:27 
QuestionRe: COleVariant to COLORREF Pin
David Crow12-May-17 9:45
David Crow12-May-17 9:45 
AnswerRe: COleVariant to COLORREF Pin
_Flaviu13-May-17 21:17
_Flaviu13-May-17 21:17 
AnswerRe: COleVariant to COLORREF Pin
_Flaviu14-May-17 20:14
_Flaviu14-May-17 20:14 
QuestionArray of char* Pin
Django_Untaken11-May-17 23:54
Django_Untaken11-May-17 23:54 
AnswerRe: Array of char* Pin
Jochen Arndt12-May-17 0:23
professionalJochen Arndt12-May-17 0:23 
GeneralRe: Array of char* Pin
Django_Untaken12-May-17 1:29
Django_Untaken12-May-17 1:29 
GeneralRe: Array of char* Pin
Jochen Arndt12-May-17 1:35
professionalJochen Arndt12-May-17 1:35 
The C code is there (the malloc call).

Use something like this (for two tokens):
C
tokenSize = 2;
tokens = (char **)malloc(sizeof(char*) * tokenSize);
tokens[0] = token1;
tokens[1] = token2;

/* Use tokens array here */

/* Release memory and reset variables when not used anymore */
free(tokens);
tokens = NULL;
tokenSize = 0;

GeneralRe: Array of char* Pin
leon de boer14-May-17 16:15
leon de boer14-May-17 16:15 
AnswerRe: Array of char* Pin
Huzifa Terkawi14-May-17 16:07
Huzifa Terkawi14-May-17 16:07 
AnswerRe: Array of char* Pin
Munchies_Matt17-May-17 22:27
Munchies_Matt17-May-17 22:27 
QuestionRedraw a CStatic,create it using Create,but the function DrawItem doesn't been run Pin
Member 1114733810-May-17 16:24
Member 1114733810-May-17 16:24 
AnswerRe: Redraw a CStatic,create it using Create,but the function DrawItem doesn't been run Pin
Jochen Arndt10-May-17 21:47
professionalJochen Arndt10-May-17 21:47 
Question[solved] Declare & Use Gobal Variable in C (Just like Singleton Variable) Pin
Django_Untaken9-May-17 1:42
Django_Untaken9-May-17 1:42 
AnswerRe: Declare & Use Gobal Variable in C (Just like Singleton Variable) Pin
Jochen Arndt9-May-17 2:32
professionalJochen Arndt9-May-17 2:32 
GeneralRe: Declare & Use Gobal Variable in C (Just like Singleton Variable) Pin
Django_Untaken9-May-17 3:10
Django_Untaken9-May-17 3:10 
AnswerRe: Declare & Use Gobal Variable in C (Just like Singleton Variable) Pin
Jochen Arndt9-May-17 3:15
professionalJochen Arndt9-May-17 3:15 
AnswerRe: [solved] Declare & Use Gobal Variable in C (Just like Singleton Variable) Pin
Richard MacCutchan9-May-17 4:49
mveRichard MacCutchan9-May-17 4:49 
AnswerRe: [solved] Declare & Use Gobal Variable in C (Just like Singleton Variable) Pin
Rick York12-May-17 7:19
mveRick York12-May-17 7:19 
QuestionCTreeCtrl with CustomDraw Flickering Pin
SamwisePl5-May-17 0:29
SamwisePl5-May-17 0:29 
AnswerRe: CTreeCtrl with CustomDraw Flickering Pin
Richard MacCutchan5-May-17 0:58
mveRichard MacCutchan5-May-17 0:58 
GeneralRe: CTreeCtrl with CustomDraw Flickering Pin
SamwisePl5-May-17 1:17
SamwisePl5-May-17 1:17 
GeneralRe: CTreeCtrl with CustomDraw Flickering Pin
Richard MacCutchan5-May-17 1:48
mveRichard MacCutchan5-May-17 1:48 
AnswerRe: CTreeCtrl with CustomDraw Flickering Pin
Victor Nijegorodov5-May-17 6:00
Victor Nijegorodov5-May-17 6:00 
GeneralRe: CTreeCtrl with CustomDraw Flickering Pin
SamwisePl7-May-17 19:46
SamwisePl7-May-17 19:46 

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.