Click here to Skip to main content
16,010,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProperty Page OnNotify question Pin
skinnyreptile27-Jun-03 6:03
skinnyreptile27-Jun-03 6:03 
GeneralRe: Property Page OnNotify question Pin
valikac27-Jun-03 6:07
valikac27-Jun-03 6:07 
GeneralRe: Property Page OnNotify question Pin
skinnyreptile27-Jun-03 6:47
skinnyreptile27-Jun-03 6:47 
GeneralVC++, classes and DLLs Pin
KingTermite27-Jun-03 5:38
KingTermite27-Jun-03 5:38 
GeneralRe: VC++, classes and DLLs Pin
basementman27-Jun-03 5:44
basementman27-Jun-03 5:44 
GeneralRe: VC++, classes and DLLs Pin
David Crow27-Jun-03 5:45
David Crow27-Jun-03 5:45 
GeneralRe: VC++, classes and DLLs Pin
KingTermite27-Jun-03 7:03
KingTermite27-Jun-03 7:03 
GeneralRe: VC++, classes and DLLs Pin
Iain Clarke, Warrior Programmer27-Jun-03 5:52
Iain Clarke, Warrior Programmer27-Jun-03 5:52 
Simple answer is "Yes, you can make a DLL export a class". It will tie you into only using one
compiler with that DLL, but this isn't a big restriction most of the time.
You'll want to look up __declspec(export) / __declspec(import) in the MSDN library.

But each instance (EXE / DLL) using your DLL would have a fresh "copy" of the DLL, so you would
get lots of monitors. You can do tricks to make them each refer to a single one, but that gets
a bit too deep.

This sounds like a good project for a COM object. This makes a singleton easier to implement
(look on this site for examples), and means you could use the Monitor from VC++, VB
etc.

I would also think about Event Sinks to inform interested programs of changes in the
real world stuff you are monitoring.

If you have to poll the real world to check on a change, try creating a separate thread which
wakes up at regular intervals briefly.

Good luck, as this is a non-trivial learning curve...

Your experience is the opposite of mine. I've been playing with windows for years, and only
recently had to attack an Arm board...

Iain.
Questionhow to display a colored text on controls? Pin
olinn27-Jun-03 5:16
olinn27-Jun-03 5:16 
AnswerRe: how to display a colored text on controls? Pin
Joan M27-Jun-03 5:35
professionalJoan M27-Jun-03 5:35 
AnswerRe: how to display a colored text on controls? Pin
valikac27-Jun-03 6:08
valikac27-Jun-03 6:08 
GeneralRe: how to display a colored text on controls? Pin
olinn27-Jun-03 6:24
olinn27-Jun-03 6:24 
GeneralRe: how to display a colored text on controls? Pin
valikac27-Jun-03 6:29
valikac27-Jun-03 6:29 
GeneralRe: how to display a colored text on controls? Pin
olinn27-Jun-03 7:04
olinn27-Jun-03 7:04 
GeneralRe: how to display a colored text on controls? Pin
Ryan Binns27-Jun-03 13:51
Ryan Binns27-Jun-03 13:51 
GeneralGetting current mouse position Pin
Tommy2k27-Jun-03 4:51
Tommy2k27-Jun-03 4:51 
GeneralRe: Getting current mouse position Pin
Ryan Binns27-Jun-03 4:57
Ryan Binns27-Jun-03 4:57 
GeneralRe: Getting current mouse position Pin
Tommy2k27-Jun-03 5:11
Tommy2k27-Jun-03 5:11 
GeneralRe: Getting current mouse position Pin
Ryan Binns27-Jun-03 5:17
Ryan Binns27-Jun-03 5:17 
Questionhow to acquire system icon(like my computer) through programming? Pin
Anonymous27-Jun-03 4:31
Anonymous27-Jun-03 4:31 
AnswerRe: how to acquire system icon(like my computer) through programming? Pin
Ryan Binns27-Jun-03 4:43
Ryan Binns27-Jun-03 4:43 
GeneralRe: how to acquire system icon(like my computer) through programming? Pin
tiplip27-Jun-03 17:29
tiplip27-Jun-03 17:29 
GeneralRe: how to acquire system icon(like my computer) through programming? Pin
Ryan Binns27-Jun-03 17:37
Ryan Binns27-Jun-03 17:37 
GeneralRe: how to acquire system icon(like my computer) through programming? Pin
tiplip27-Jun-03 19:35
tiplip27-Jun-03 19:35 
GeneralRe: how to acquire system icon(like my computer) through programming? Pin
Ryan Binns28-Jun-03 0:12
Ryan Binns28-Jun-03 0: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.