Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalwriting a resource to a file Pin
Kuniva19-Dec-01 0:17
Kuniva19-Dec-01 0:17 
GeneralRe: writing a resource to a file Pin
Joaquín M López Muñoz19-Dec-01 0:42
Joaquín M López Muñoz19-Dec-01 0:42 
GeneralRe: writing a resource to a file Pin
Jon Hulatt19-Dec-01 1:16
Jon Hulatt19-Dec-01 1:16 
GeneralRe: writing a resource to a file Pin
Kuniva19-Dec-01 2:28
Kuniva19-Dec-01 2:28 
QuestionWhy I can not return an array from a function? Pin
BigMouth19-Dec-01 0:02
BigMouth19-Dec-01 0:02 
AnswerRe: Why I can not return an array from a function? Pin
Joaquín M López Muñoz19-Dec-01 0:11
Joaquín M López Muñoz19-Dec-01 0:11 
GeneralRe: Why I can not return an array from a function? Pin
BigMouth19-Dec-01 18:19
BigMouth19-Dec-01 18:19 
AnswerRe: Why I can not return an array from a function? Pin
Jon Hulatt19-Dec-01 2:31
Jon Hulatt19-Dec-01 2:31 
You should do it with pointers like this

void f( int *a)
{
   a= new int [2];
   // process with a;

   return;
}

void main()
{
   int *a;
   f(a);

   // use a as you need to

   // remember to free the memory for a
   delete a;
}





Sorry to dissapoint you all with my lack of a witty or poignant signature.
GeneralRe: Why I can not return an array from a function? Pin
Ernest Laurentin19-Dec-01 5:26
Ernest Laurentin19-Dec-01 5:26 
GeneralRe: Why I can not return an array from a function? Pin
BigMouth19-Dec-01 18:52
BigMouth19-Dec-01 18:52 
GeneralRe: Why I can not return an array from a function? Pin
BigMouth21-Dec-01 23:33
BigMouth21-Dec-01 23:33 
AnswerRe: Why I can not return an array from a function? Pin
Alvaro Mendez19-Dec-01 6:06
Alvaro Mendez19-Dec-01 6:06 
GeneralRe: Why I can not return an array from a function? Pin
BigMouth21-Dec-01 23:24
BigMouth21-Dec-01 23:24 
GeneralCBitmap to HICON Pin
GurGur18-Dec-01 23:23
GurGur18-Dec-01 23:23 
GeneralRe: CBitmap to HICON Pin
Rashid Thadha18-Dec-01 23:42
Rashid Thadha18-Dec-01 23:42 
GeneralRe: CBitmap to HICON Pin
GurGur19-Dec-01 9:13
GurGur19-Dec-01 9:13 
GeneralRe: CBitmap to HICON Pin
Joaquín M López Muñoz18-Dec-01 23:52
Joaquín M López Muñoz18-Dec-01 23:52 
GeneralRe: CBitmap to HICON Pin
GurGur19-Dec-01 9:18
GurGur19-Dec-01 9:18 
GeneralRe: CBitmap to HICON Pin
Jim Crafton19-Dec-01 10:11
Jim Crafton19-Dec-01 10:11 
Generaldrag'n drop Pin
Jerome Conus18-Dec-01 22:34
Jerome Conus18-Dec-01 22:34 
GeneralRe: drag'n drop Pin
Joaquín M López Muñoz18-Dec-01 23:33
Joaquín M López Muñoz18-Dec-01 23:33 
QuestionHow to set MDIChildFrame title case different view? Pin
wuxy18-Dec-01 22:24
wuxy18-Dec-01 22:24 
AnswerRe: How to set MDIChildFrame title case different view? Pin
Chambers18-Dec-01 23:38
Chambers18-Dec-01 23:38 
GeneralRe: How to set MDIChildFrame title case different view? Pin
wuxy19-Dec-01 15:19
wuxy19-Dec-01 15:19 
QuestionI got a HWND of CFileDialog, how can I use this HWND to get the current path of the CFileDialog? Pin
18-Dec-01 22:22
suss18-Dec-01 22:22 

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.