Click here to Skip to main content
15,917,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStruct problem in C, proberly a simple one Pin
znize17-Sep-04 2:36
znize17-Sep-04 2:36 
GeneralRe: Struct problem in C, proberly a simple one Pin
Tim Smith17-Sep-04 4:00
Tim Smith17-Sep-04 4:00 
GeneralRe: Struct problem in C, proberly a simple one Pin
znize17-Sep-04 4:24
znize17-Sep-04 4:24 
GeneralRe: Struct problem in C, proberly a simple one Pin
David Crow17-Sep-04 6:21
David Crow17-Sep-04 6:21 
GeneralRe: Struct problem in C, proberly a simple one Pin
Tim Smith18-Sep-04 5:34
Tim Smith18-Sep-04 5:34 
GeneralRe: Struct problem in C, proberly a simple one Pin
David Crow20-Sep-04 3:02
David Crow20-Sep-04 3:02 
GeneralRe: Struct problem in C, proberly a simple one Pin
Gary R. Wheeler19-Sep-04 15:33
Gary R. Wheeler19-Sep-04 15:33 
GeneralCoInitialize Pin
shiraztk17-Sep-04 2:33
shiraztk17-Sep-04 2:33 
Hi all

For opening a Database I used CoInitialize in my Service. This creates a hidden window "OleMainThreadWndClass".
Now the problem is whenever I try to logoff or restart windows is not able to proceed because of running OleMainThreadWndClass window.
This issue is only present in NT. If I run the service disabling "interact with desktop" there is no problem.

How can overcome this.? What could be the problem ?

Thanks in advance

Regards
Shiraz


btw: I cannot close the database while logoffs becaouse it is a service and it should keep running.

The Best Relligion is Science.
Once you understand it, you will know God.
GeneralGDI+ question Pin
ZejulioZ17-Sep-04 2:20
ZejulioZ17-Sep-04 2:20 
GeneralRe: GDI+ question Pin
PJ Arends17-Sep-04 7:25
professionalPJ Arends17-Sep-04 7:25 
GeneralRe: GDI+ question Pin
Chris Richardson18-Sep-04 21:43
Chris Richardson18-Sep-04 21:43 
GeneralRe: GDI+ question Pin
ZejulioZ19-Sep-04 14:45
ZejulioZ19-Sep-04 14:45 
GeneralPointer to Dialog Pin
Anonymous17-Sep-04 2:11
Anonymous17-Sep-04 2:11 
GeneralRe: Pointer to Dialog Pin
Blake Miller17-Sep-04 4:05
Blake Miller17-Sep-04 4:05 
GeneralCFileDialog and ActiveX Pin
TUMB17-Sep-04 2:03
TUMB17-Sep-04 2:03 
GeneralDisable the ability to switch to other Windows programs Pin
Sujan Christo17-Sep-04 1:53
Sujan Christo17-Sep-04 1:53 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Blake Miller17-Sep-04 4:07
Blake Miller17-Sep-04 4:07 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Neville Franks17-Sep-04 11:42
Neville Franks17-Sep-04 11:42 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Blake Miller17-Sep-04 11:49
Blake Miller17-Sep-04 11:49 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Neville Franks17-Sep-04 11:58
Neville Franks17-Sep-04 11:58 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Sujan Christo17-Sep-04 18:07
Sujan Christo17-Sep-04 18:07 
GeneralRe: Disable the ability to switch to other Windows programs Pin
normanS19-Sep-04 20:36
normanS19-Sep-04 20:36 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Sujan Christo17-Sep-04 17:58
Sujan Christo17-Sep-04 17:58 
QuestionHow can I send a WM_Quit message Pin
rromerot17-Sep-04 1:47
rromerot17-Sep-04 1:47 
AnswerRe: How can I send a WM_Quit message Pin
Alexander M.,17-Sep-04 2:13
Alexander M.,17-Sep-04 2: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.