Click here to Skip to main content
15,920,111 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralWTL shows compile time error Pin
inbakumar.G27-Feb-05 19:08
inbakumar.G27-Feb-05 19:08 
GeneralRe: WTL shows compile time error Pin
Stuart Dootson27-Feb-05 22:12
professionalStuart Dootson27-Feb-05 22:12 
GeneralRe: WTL shows compile time error Pin
inbakumar.G27-Feb-05 22:20
inbakumar.G27-Feb-05 22:20 
GeneralRe: WTL shows compile time error Pin
Stuart Dootson27-Feb-05 22:26
professionalStuart Dootson27-Feb-05 22:26 
GeneralRe: WTL shows compile time error Pin
inbakumar.G27-Feb-05 22:35
inbakumar.G27-Feb-05 22:35 
GeneralRe: WTL shows compile time error Pin
Michael Dunn28-Feb-05 7:59
sitebuilderMichael Dunn28-Feb-05 7:59 
GeneralSharing a variable between Pin
sameeraperera27-Feb-05 5:16
sameeraperera27-Feb-05 5:16 
GeneralRe: Sharing a variable between Pin
Kevin Tambascio7-Mar-05 4:18
Kevin Tambascio7-Mar-05 4:18 
If you are using the single thread model, then COM will serialize all calls to the CAtlFileMapping object on a single thread, so that your object will only get called on one thread. Unless there's something different about the CAtlFileMapping object. It depends on how you CoCreate the CAtlFileMapping. Of course, if the CAtlFileMapping object is registered as "Both", and you are free threaded, you won't get that.

In that case, I would recommend you create a singleton object that all your COM Automation objects call into, and it uses critical sections to protect against calling into the CAtlFileMapping object.

Another solution might be for a custom class factory object. Have the CAtlFileMapping object as part of the class factory. Use CoGetClassObject to get the class factory, QI for your interface. You still need a critical section though, in the class factory to protect multiple access to the CAtlFileMapping.

Once you get past some of the COM/ATL'isms, its very similar to Win32/C++, just use a critical section to be on the safe side.
QuestionHow to catch events? Pin
Roozbeh6926-Feb-05 20:16
professionalRoozbeh6926-Feb-05 20:16 
AnswerRe: How to catch events? Pin
Stuart Dootson27-Feb-05 3:17
professionalStuart Dootson27-Feb-05 3:17 
GeneralRe: How to catch events? Pin
Roozbeh6927-Feb-05 22:43
professionalRoozbeh6927-Feb-05 22:43 
GeneralWTL can support Virus Program Pin
25-Feb-05 18:26
suss25-Feb-05 18:26 
GeneralRe: WTL can support Virus Program Pin
Tarundeep Singh Kalra4-Mar-05 8:33
Tarundeep Singh Kalra4-Mar-05 8:33 
GeneralATL control Pin
muslcesonvacation25-Feb-05 15:15
muslcesonvacation25-Feb-05 15:15 
Generaldialog display failure Pin
tkarven24-Feb-05 0:56
tkarven24-Feb-05 0:56 
GeneralRe: dialog display failure Pin
devom25-Feb-05 20:23
devom25-Feb-05 20:23 
GeneralRe: dialog display failure Pin
tkarven26-Feb-05 1:40
tkarven26-Feb-05 1:40 
General(Beginner) Resource in static lib Pin
Hades_G23-Feb-05 20:44
Hades_G23-Feb-05 20:44 
GeneralWeb Browser Control Pin
Harshapaulp22-Feb-05 23:57
Harshapaulp22-Feb-05 23:57 
GeneralDIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
tkarven22-Feb-05 6:35
tkarven22-Feb-05 6:35 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
ThatsAlok22-Feb-05 23:35
ThatsAlok22-Feb-05 23:35 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
tkarven23-Feb-05 7:45
tkarven23-Feb-05 7:45 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
ThatsAlok23-Feb-05 19:00
ThatsAlok23-Feb-05 19:00 
GeneralRe: DIID_DWebBrowserEvents2 for dwebbrowserevent2, and ??? for IHTMLImgEvents2 Pin
tkarven23-Feb-05 20:27
tkarven23-Feb-05 20:27 
GeneralPostPaint in WTL::CEdit Pin
blueluna22-Feb-05 4:10
blueluna22-Feb-05 4: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.