Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConvert grayscale to monochrome Pin
lastdays14-Jan-05 8:52
lastdays14-Jan-05 8:52 
GeneralRe: Convert grayscale to monochrome Pin
PJ Arends14-Jan-05 9:42
professionalPJ Arends14-Jan-05 9:42 
GeneralRe: Convert grayscale to monochrome Pin
lastdays14-Jan-05 10:09
lastdays14-Jan-05 10:09 
GeneralRe: Convert grayscale to monochrome Pin
PJ Arends14-Jan-05 10:37
professionalPJ Arends14-Jan-05 10:37 
GeneralRe: Convert grayscale to monochrome Pin
lastdays14-Jan-05 12:06
lastdays14-Jan-05 12:06 
GeneralRe: Convert grayscale to monochrome Pin
Chris Losinger14-Jan-05 12:24
professionalChris Losinger14-Jan-05 12:24 
GeneralRe: Convert grayscale to monochrome Pin
lastdays15-Jan-05 0:34
lastdays15-Jan-05 0:34 
GeneralPassing arrays to different dialogs Pin
dlarkin7714-Jan-05 8:46
dlarkin7714-Jan-05 8:46 
Hi,

I have a dialog-based application.

I have 2 2D arrays which wil be used by 2 different dialogs. Creating the arrays involves reading from a file. What I would like to do is to create the arrays as soon as my application starts so that they are readily available when they are needed by the other dialogs.

What is the best way to do this?

What I had thought of doing was letting each dialog have it's own member variables to hold the arrays. I would call a function to initialise them whenever the dialog is made modal.

Or should I have them as global variables?

Which of these is the better way of doing it? Or is there a different way of doing it?

Thanks very much,

dlarkin77 Confused | :confused:
GeneralRe: Passing arrays to different dialogs Pin
David Crow14-Jan-05 9:26
David Crow14-Jan-05 9:26 
Generalbinary file reading Pin
bwagz14-Jan-05 6:20
bwagz14-Jan-05 6:20 
GeneralRe: binary file reading Pin
Antony M Kancidrowski14-Jan-05 6:57
Antony M Kancidrowski14-Jan-05 6:57 
GeneralRe: binary file reading Pin
bwagz14-Jan-05 7:09
bwagz14-Jan-05 7:09 
GeneralRe: binary file reading Pin
Antony M Kancidrowski14-Jan-05 15:11
Antony M Kancidrowski14-Jan-05 15:11 
GeneralRe: binary file reading Pin
White Owl14-Jan-05 10:00
White Owl14-Jan-05 10:00 
GeneralHelp IM gonna fail me course at college if i get no help Pin
Member 165528414-Jan-05 5:53
Member 165528414-Jan-05 5:53 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
charlieg14-Jan-05 6:03
charlieg14-Jan-05 6:03 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
David Crow14-Jan-05 9:07
David Crow14-Jan-05 9:07 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
alex.barylski14-Jan-05 18:26
alex.barylski14-Jan-05 18:26 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
Malcolm Smart15-Jan-05 7:36
Malcolm Smart15-Jan-05 7:36 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
Branislav14-Jan-05 22:16
Branislav14-Jan-05 22:16 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
Member 165528416-Jan-05 10:43
Member 165528416-Jan-05 10:43 
GeneralLoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj14-Jan-05 5:39
greekgoddj14-Jan-05 5:39 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj14-Jan-05 5:51
greekgoddj14-Jan-05 5:51 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
Chris Losinger14-Jan-05 12:25
professionalChris Losinger14-Jan-05 12:25 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj16-Jan-05 22:12
greekgoddj16-Jan-05 22:12 

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.