Click here to Skip to main content
15,895,557 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Minimizing Memory Pin
Michael Dunn10-Sep-04 7:09
sitebuilderMichael Dunn10-Sep-04 7:09 
GeneralRe: Minimizing Memory Pin
Matt Gerrans9-Sep-04 13:51
Matt Gerrans9-Sep-04 13:51 
GeneralHandling .Net Events in VC++ Pin
nalan8-Sep-04 21:08
nalan8-Sep-04 21:08 
GeneralRe: Handling .Net Events in VC++ Pin
andy_cn8-Sep-04 21:39
andy_cn8-Sep-04 21:39 
GeneralObject of MFC class in ATL DLL Pin
zahid_ash8-Sep-04 21:00
zahid_ash8-Sep-04 21:00 
General(?:) CAxDialogImpl does not receive WM_CREATE Pin
.Suchit7-Sep-04 0:16
.Suchit7-Sep-04 0:16 
GeneralRe: (?:) CAxDialogImpl does not receive WM_CREATE Pin
Jörgen Sigvardsson7-Sep-04 1:50
Jörgen Sigvardsson7-Sep-04 1:50 
GeneralATL dialog with ActiveX control used inside Windows service Pin
.Suchit6-Sep-04 2:40
.Suchit6-Sep-04 2:40 
I need to take an opinion on whether our approach is right (described below):

Problem
We have a ATL windows service which also exposes one COM class - say MainServer. MainServer interacts with other internal COM objects and a VB ActiveX control. Client application can instantiate MainServer component and fire some methods on it. The VB ActiveX control needs a form container - so we are using ATL dialog (invisible, modeless) to host it. And fire methods on the dialog.

Output
Service when tested through control panel GUI, it works perfectly and we can fire methods on ActiveX control through its container in ServiceWinMain(), Run() and other methods.

But when tested with Client application which instantiates MainServer and fires methods, we have an unspecified exception.

My questions are:
1. Is it possible to host ATL dialog like I mentioned in a Windows service?
2. What is the best way to make this application thread safe?
3. Is this approach right?
GeneralRe: ATL dialog with ActiveX control used inside Windows service Pin
Jörgen Sigvardsson6-Sep-04 8:46
Jörgen Sigvardsson6-Sep-04 8:46 
GeneralThanks/Solved: ATL dialog with ActiveX control used inside Windows service Pin
.Suchit7-Sep-04 1:39
.Suchit7-Sep-04 1:39 
GeneralRe: Thanks/Solved: ATL dialog with ActiveX control used inside Windows service Pin
Jörgen Sigvardsson7-Sep-04 1:48
Jörgen Sigvardsson7-Sep-04 1:48 
GeneralRe: Thanks/Solved: ATL dialog with ActiveX control used inside Windows service Pin
.Suchit14-Sep-04 4:04
.Suchit14-Sep-04 4:04 
QuestionATLControls.h? Pin
Anthony_Yio5-Sep-04 22:36
Anthony_Yio5-Sep-04 22:36 
AnswerRe: ATLControls.h? Pin
Jörgen Sigvardsson6-Sep-04 8:47
Jörgen Sigvardsson6-Sep-04 8:47 
AnswerRe: ATLControls.h? Pin
Michael Dunn7-Sep-04 7:55
sitebuilderMichael Dunn7-Sep-04 7:55 
Generalvery odd IExtractImage::Extract() behaviour Pin
seriema4-Sep-04 11:53
seriema4-Sep-04 11:53 
GeneralIs It a Memory leak Pin
omarjchaudry2-Sep-04 17:37
omarjchaudry2-Sep-04 17:37 
GeneralRe: Is It a Memory leak Pin
Stuart Dootson2-Sep-04 21:31
professionalStuart Dootson2-Sep-04 21:31 
GeneralRe: Is It a Memory leak Pin
Jörgen Sigvardsson3-Sep-04 8:28
Jörgen Sigvardsson3-Sep-04 8:28 
GeneralRe: Is It a Memory leak Pin
Stuart Dootson3-Sep-04 8:44
professionalStuart Dootson3-Sep-04 8:44 
GeneralRe: Is It a Memory leak Pin
Jörgen Sigvardsson3-Sep-04 9:01
Jörgen Sigvardsson3-Sep-04 9:01 
GeneralExport STL from a DLL Pin
Fernando A. Gomez F.1-Sep-04 11:15
Fernando A. Gomez F.1-Sep-04 11:15 
GeneralRe: Export STL from a DLL Pin
Neville Franks1-Sep-04 12:08
Neville Franks1-Sep-04 12:08 
GeneralOT Pin
Jörgen Sigvardsson1-Sep-04 21:03
Jörgen Sigvardsson1-Sep-04 21:03 
GeneralRe: Yes, it should be extern c Pin
Fernando A. Gomez F.2-Sep-04 5:10
Fernando A. Gomez F.2-Sep-04 5:10 

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.