Click here to Skip to main content
16,011,447 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: distributing atl71.dll in setup Pin
UncleRedz20-Oct-04 20:34
UncleRedz20-Oct-04 20:34 
GeneralRe: distributing atl71.dll in setup Pin
Stuart Dootson21-Oct-04 8:47
professionalStuart Dootson21-Oct-04 8:47 
GeneralWTL release build with ATL_MIN_CRT Pin
UncleRedz19-Oct-04 4:36
UncleRedz19-Oct-04 4:36 
GeneralRe: WTL release build with ATL_MIN_CRT Pin
UncleRedz19-Oct-04 20:45
UncleRedz19-Oct-04 20:45 
GeneralRe: WTL release build with ATL_MIN_CRT Pin
Jörgen Sigvardsson19-Oct-04 22:12
Jörgen Sigvardsson19-Oct-04 22:12 
GeneralRe: WTL release build with ATL_MIN_CRT Pin
UncleRedz20-Oct-04 4:29
UncleRedz20-Oct-04 4:29 
GeneralRe: WTL release build with ATL_MIN_CRT Pin
ThatsAlok21-Oct-04 2:30
ThatsAlok21-Oct-04 2:30 
GeneralHelp creating VB6 com objects from atl service Pin
nalenb18-Oct-04 7:31
nalenb18-Oct-04 7:31 
Hi, I created a new ATL service using vs.net 2003. In the PreMessageLoop function I create a new thread which does some work (after calling the parent PreMessageLoop method), the rest of the standard service code is unchanged. In this thread I create an instance of a CComObject which is in the same atl project using CComObject::CreateInstance(&a);. This CComObject is free threaded and I've defined free threading in stdafx.h. CoInitializeEx is properly called with multithreading. After the instance is created, a method is called on the object (A->Load()).

In this method (Load) I create an CComPtr<vbobj> vb; object using CoCreateInstance (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER) which is an instance of a com object from a VB6 dll. When I call a method on this newest object (vb), I get a whole bunch of exception errors (First-chance exception at 0x7c57e592 in MyService.exe: Microsoft C++ exception: long @ 0x0151c7e0.) in the output window (thousands of these errors) and my code appears to be hung (it should complete the method call in about 30 seconds, but goes on for minutes before I kill it). I am checking all the hresults before this and they all succeed.

However, if I put my VB6 project in debug mode, my c++ code proceeded just fine, i.e. no errors. It's the same project that created the dll used by ATL and everything is registered properly. Some other methods on this dll work properly (such as fetching the threadid) either way (debug and non-debug).

Any ideas?
Thanks

On a related note, is it not possible to debug services in "service" mode? When I register it as a service it won't run since I think StartServiceCtrlDispatcher fails.

GeneralRe: Help creating VB6 com objects from atl service Pin
nalenb18-Oct-04 17:24
nalenb18-Oct-04 17:24 
Generaldatabase Pin
Anonymous18-Oct-04 1:11
Anonymous18-Oct-04 1:11 
GeneralRe: database Pin
Nemanja Trifunovic18-Oct-04 6:04
Nemanja Trifunovic18-Oct-04 6:04 
GeneralRe: database Pin
bsunil_18519-Oct-04 0:12
sussbsunil_18519-Oct-04 0:12 
GeneralRe: database Pin
Nemanja Trifunovic19-Oct-04 5:05
Nemanja Trifunovic19-Oct-04 5:05 
GeneralRe: database Pin
Lim Bio Liong18-Oct-04 21:15
Lim Bio Liong18-Oct-04 21:15 
GeneralRe: database Pin
bsunil_18519-Oct-04 0:08
sussbsunil_18519-Oct-04 0:08 
QuestionHow to Craete Event Pin
ThatsAlok16-Oct-04 3:58
ThatsAlok16-Oct-04 3:58 
AnswerRe: How to Craete Event Pin
ThatsAlok29-Oct-04 20:44
ThatsAlok29-Oct-04 20:44 
QuestionHow can we persist Custom Interfaces Pin
qur15-Oct-04 0:43
qur15-Oct-04 0:43 
Generalostream_iterator and pair Pin
Kevin McFarlane13-Oct-04 22:26
Kevin McFarlane13-Oct-04 22:26 
GeneralRe: ostream_iterator and pair Pin
Joaquín M López Muñoz14-Oct-04 2:52
Joaquín M López Muñoz14-Oct-04 2:52 
GeneralRe: ostream_iterator and pair Pin
Kevin McFarlane14-Oct-04 6:29
Kevin McFarlane14-Oct-04 6:29 
QuestionUsing WTL with MSLU, crash on Windows 98? Pin
billholt11-Oct-04 19:41
billholt11-Oct-04 19:41 
AnswerRe: Using WTL with MSLU, crash on Windows 98? Pin
billholt12-Oct-04 21:26
billholt12-Oct-04 21:26 
Generalcopy file to netwk Pin
Anonymous8-Oct-04 13:58
Anonymous8-Oct-04 13:58 
GeneralRe: copy file to netwk Pin
ThatsAlok29-Oct-04 20:46
ThatsAlok29-Oct-04 20:46 

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.