Click here to Skip to main content
15,912,665 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExtension DLL's & MFC Class Inheritance Pin
#realJSOP7-Nov-04 23:47
professional#realJSOP7-Nov-04 23:47 
GeneralSimple but need ur response immediately Pin
Billar7-Nov-04 23:13
Billar7-Nov-04 23:13 
GeneralRe: Simple but need ur response immediately Pin
2249177-Nov-04 23:26
2249177-Nov-04 23:26 
GeneralRe: Simple but need ur response immediately Pin
ThatsAlok8-Nov-04 0:33
ThatsAlok8-Nov-04 0:33 
GeneralRe: Simple but need ur response immediately Pin
Mike Beckerleg8-Nov-04 1:06
Mike Beckerleg8-Nov-04 1:06 
GeneralRe: Simple but need ur response immediately Pin
Gary R. Wheeler8-Nov-04 2:20
Gary R. Wheeler8-Nov-04 2:20 
GeneralRe: Simple but need ur response immediately Pin
David Crow8-Nov-04 5:06
David Crow8-Nov-04 5:06 
QuestionSharing data with multiple dialogs? Pin
Cpt Rick7-Nov-04 22:59
Cpt Rick7-Nov-04 22:59 
I have a dialog based app that uses multiple modeless dialogs to overlay portions of the main dialog. I have an array of structs defined in the public portion of the main dialog like this:

public:
MYSTRUCT MainList[MAX_LIST];

The struct looks like this:

typedef struct MyStruct
{
char Index[6];
CString Title;
CString Artist;
CString Album;
CString FileName;
CString Time;
CString Genre;
int TimesPlayed;

} MYSTRUCT, *LPMYSTRUCT;

When I access this list from one of the overlay dialog classes using a dialog pointer, it sometimes works ok, and sometimes doesn't see the data in the list, although the data is there.

If the overlay is created as a child, it works ok, but I lose my menu in the overlay, and parts of the main dialog show through the overlay. If it's created as a popup or overlapped, it gets flaky.

I tried creating the list as a static global, but that only made it not work consistantly in the overlays.

Any ideas as to why it works sometimes, and not others?

TIA,

Rick

AnswerRe: Sharing data with multiple dialogs? Pin
_kane_8-Nov-04 1:50
_kane_8-Nov-04 1:50 
GeneralRe: Sharing data with multiple dialogs? Pin
Cpt Rick8-Nov-04 5:29
Cpt Rick8-Nov-04 5:29 
GeneralGif in Tree Control Pin
Tariq8787-Nov-04 22:41
Tariq8787-Nov-04 22:41 
GeneralRe: Gif in Tree Control Pin
Steve S8-Nov-04 0:38
Steve S8-Nov-04 0:38 
General#include problems Pin
vilmer7-Nov-04 22:35
vilmer7-Nov-04 22:35 
GeneralRe: #include problems Pin
Cedric Moonen7-Nov-04 22:46
Cedric Moonen7-Nov-04 22:46 
GeneralRe: #include problems Pin
vilmer7-Nov-04 23:00
vilmer7-Nov-04 23:00 
GeneralRe: #include problems Pin
Sreekanth Muralidharan7-Nov-04 23:24
Sreekanth Muralidharan7-Nov-04 23:24 
GeneralRe: #include problems Pin
vilmer8-Nov-04 3:09
vilmer8-Nov-04 3:09 
GeneralLinked list headache in VC++. Please help Pin
Sreekanth Muralidharan7-Nov-04 22:03
Sreekanth Muralidharan7-Nov-04 22:03 
GeneralRe: Linked list headache in VC++. Please help Pin
Uwe Keim7-Nov-04 22:35
sitebuilderUwe Keim7-Nov-04 22:35 
GeneralRe: Linked list headache in VC++. Please help Pin
Sreekanth Muralidharan7-Nov-04 23:17
Sreekanth Muralidharan7-Nov-04 23:17 
GeneralRe: Linked list headache in VC++. Please help Pin
FearlessBurner7-Nov-04 23:37
FearlessBurner7-Nov-04 23:37 
GeneralThanks to all... Pin
Sreekanth Muralidharan8-Nov-04 18:04
Sreekanth Muralidharan8-Nov-04 18:04 
GeneralRe: Linked list headache in VC++. Please help Pin
John R. Shaw8-Nov-04 12:40
John R. Shaw8-Nov-04 12:40 
GeneralMy Own Linked List Pin
Sreekanth Muralidharan8-Nov-04 19:35
Sreekanth Muralidharan8-Nov-04 19:35 
GeneralRe: My Own Linked List Pin
Sreekanth Muralidharan8-Nov-04 22:33
Sreekanth Muralidharan8-Nov-04 22: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.