Click here to Skip to main content
15,881,850 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWinthread Pin
LCI5-Mar-08 12:38
LCI5-Mar-08 12:38 
GeneralRe: CWinthread Pin
Mark Salsbery5-Mar-08 13:40
Mark Salsbery5-Mar-08 13:40 
GeneralRe: CWinthread Pin
LCI6-Mar-08 1:20
LCI6-Mar-08 1:20 
GeneralRe: CWinthread Pin
LCI6-Mar-08 1:33
LCI6-Mar-08 1:33 
GeneralRe: CWinthread Pin
Mark Salsbery6-Mar-08 5:10
Mark Salsbery6-Mar-08 5:10 
GeneralRe: CWinthread Pin
Mark Salsbery6-Mar-08 5:14
Mark Salsbery6-Mar-08 5:14 
GeneralService or Singleton COM exe or DLL Pin
act_x5-Mar-08 11:13
act_x5-Mar-08 11:13 
GeneralRe: Service or Singleton COM exe or DLL Pin
Matthew Faithfull5-Mar-08 12:23
Matthew Faithfull5-Mar-08 12:23 
I think a stand alone exe will do the trick. You can prevent more than one instance running at a time easily enough with a named mutex. You can have the main window as your hidden window which keeps things simple, perhaps one DLL to encapsulate the system tray icon stuff, I've seen that done well although it's not easy unless you're targetting only XP or only Server 200?, and another to encapsulate the USB WM_DEVICE_CHANGE stuff, I've written one like that but it's closed source Frown | :( . I can tell you that you may need to download a DDK to get the correct headers for the defines you might need, again if you use any XP and upward only defines it won't work on earlier system. Win2K in the earliest that has usably reliable USB device stuff although some things work a bit on Win98.
Do you need COM? You might need a little to get the System tray stuff to work, It's been too long since I looked at it, but nothing more complex than emulating a VB enumeration type if that.
A Service? No as long as you can start your app on or near startup and automatically I can't see the need for it being a service. A service shouldn't interact with the UI anyway so not if it's going to have an icon. Remember to scan for already plugged in USB devices on startup and also that they can be reported as fixed or removable, sometimes depending on the chipset revision on the removable media in the removable drive!
Enjoy Smile | :)

Nothing is exactly what it seems but everything with seems can be unpicked.

Generalusing New Opperator for object pointers ( Polymorphism ) Pin
ScotDolan5-Mar-08 10:07
ScotDolan5-Mar-08 10:07 
GeneralRe: using New Opperator for object pointers ( Polymorphism ) Pin
led mike5-Mar-08 11:34
led mike5-Mar-08 11:34 
GeneralRe: using New Opperator for object pointers ( Polymorphism ) Pin
ScotDolan5-Mar-08 12:18
ScotDolan5-Mar-08 12:18 
GeneralRe: using New Opperator for object pointers ( Polymorphism ) Pin
Randor 5-Mar-08 13:06
professional Randor 5-Mar-08 13:06 
GeneralRe: using New Opperator for object pointers ( Polymorphism ) Pin
Mark Salsbery5-Mar-08 14:16
Mark Salsbery5-Mar-08 14:16 
GeneralRe: using New Opperator for object pointers ( Polymorphism ) Pin
led mike6-Mar-08 6:09
led mike6-Mar-08 6:09 
GeneralRe: using New Opperator for object pointers ( Polymorphism ) Pin
Mark Salsbery6-Mar-08 6:12
Mark Salsbery6-Mar-08 6:12 
GeneralRe: using New Opperator for object pointers ( Polymorphism ) Pin
led mike6-Mar-08 6:31
led mike6-Mar-08 6:31 
GeneralKnowing if the Application is already beeing executed (Previnstance) Pin
marcio kovags5-Mar-08 7:44
marcio kovags5-Mar-08 7:44 
GeneralRe: Knowing if the Application is already beeing executed (Previnstance) Pin
Randor 5-Mar-08 7:57
professional Randor 5-Mar-08 7:57 
GeneralRe: Knowing if the Application is already beeing executed (Previnstance) Pin
Joan M5-Mar-08 7:59
professionalJoan M5-Mar-08 7:59 
GeneralRe: Knowing if the Application is already beeing executed (Previnstance) Pin
CPallini5-Mar-08 8:04
mveCPallini5-Mar-08 8:04 
AnswerRe: Knowing if the Application is already beeing executed (Previnstance) Pin
Roger Stoltz5-Mar-08 21:12
Roger Stoltz5-Mar-08 21:12 
GeneralWindows Service Pin
act_x5-Mar-08 6:59
act_x5-Mar-08 6:59 
GeneralRe: Windows Service Pin
Joan M5-Mar-08 7:19
professionalJoan M5-Mar-08 7:19 
GeneralRe: Windows Service Pin
Mark Salsbery5-Mar-08 11:53
Mark Salsbery5-Mar-08 11:53 
GeneralRe: Windows Service Pin
Randor 5-Mar-08 8:13
professional Randor 5-Mar-08 8:13 

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.