Click here to Skip to main content
16,010,427 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionHow to pass Structures/Types as parameters in COM DLL function? Pin
karnav zaveri11-Dec-05 20:30
karnav zaveri11-Dec-05 20:30 
AnswerRe: How to pass Structures/Types as parameters in COM DLL function? Pin
Starick11-Dec-05 22:09
Starick11-Dec-05 22:09 
QuestionRogueWave ToolsVC? Pin
Ed K9-Dec-05 5:11
Ed K9-Dec-05 5:11 
Questionatlbase.h line 758 assertion failed Pin
hardworkboy7-Dec-05 21:59
hardworkboy7-Dec-05 21:59 
AnswerRe: atlbase.h line 758 assertion failed Pin
Lim Bio Liong7-Dec-05 22:29
Lim Bio Liong7-Dec-05 22:29 
GeneralRe: atlbase.h line 758 assertion failed Pin
hardworkboy12-Dec-05 21:02
hardworkboy12-Dec-05 21:02 
GeneralRe: atlbase.h line 758 assertion failed Pin
Steve S12-Dec-05 21:23
Steve S12-Dec-05 21:23 
GeneralRe: atlbase.h line 758 assertion failed Pin
Lim Bio Liong12-Dec-05 21:50
Lim Bio Liong12-Dec-05 21:50 
Hello hardworkboy,

I'm echoing Steve. Yes, the error indicates that CoInitialize() has not been called in the thread that invoked "pAdd.CoCreateInstance(CLSID_Add);".

You can easily determine the meanings of HRESULT error codes using the "Error Lookup" tool (this is included in the "Tools" menu of Visual Studio).

By the way, it is important to call CoInitialize() as it determines the apartment in which the calling thread will live in throughout its lifetime. Every thread in an application needs to reside in an apartment.

Apartments are used to control cross-thread access to COM objects.

Best Regards,
Bio.

GeneralRe: atlbase.h line 758 assertion failed Pin
Jörgen Sigvardsson13-Dec-05 11:34
Jörgen Sigvardsson13-Dec-05 11:34 
GeneralRe: atlbase.h line 758 assertion failed Pin
hardworkboy13-Dec-05 14:52
hardworkboy13-Dec-05 14:52 
AnswerRe: atlbase.h line 758 assertion failed Pin
Stephen Hewitt8-Jan-06 17:12
Stephen Hewitt8-Jan-06 17:12 
QuestionHow to support session in an ATL web service client app? Pin
CherezZaboro7-Dec-05 7:24
CherezZaboro7-Dec-05 7:24 
QuestionAbout ATL ActiveX Object Pin
elza4-Dec-05 20:25
elza4-Dec-05 20:25 
Questionstring manipulation Pin
alex@zoosmart.us3-Dec-05 21:14
alex@zoosmart.us3-Dec-05 21:14 
AnswerRe: string manipulation Pin
toxcct5-Dec-05 3:31
toxcct5-Dec-05 3:31 
Questionlist class from STL Pin
SanjaySMK1-Dec-05 20:44
SanjaySMK1-Dec-05 20:44 
AnswerRe: list class from STL Pin
Jonas Larsson1-Dec-05 22:37
Jonas Larsson1-Dec-05 22:37 
AnswerRe: list class from STL Pin
Gast12814-Dec-05 6:05
Gast12814-Dec-05 6:05 
QuestionATL Containment Pin
Eytukan29-Nov-05 21:54
Eytukan29-Nov-05 21:54 
AnswerMr. Alok phoo phoos error Pin
Eytukan30-Nov-05 22:47
Eytukan30-Nov-05 22:47 
GeneralRe: Mr. Alok phoo phoos error Pin
Jörgen Sigvardsson1-Dec-05 9:33
Jörgen Sigvardsson1-Dec-05 9:33 
GeneralRe: Mr. Alok phoo phoos error Pin
Eytukan1-Dec-05 20:39
Eytukan1-Dec-05 20:39 
GeneralRe: Mr. Alok phoo phoos error Pin
Jörgen Sigvardsson1-Dec-05 21:14
Jörgen Sigvardsson1-Dec-05 21:14 
GeneralRe: Mr. Alok phoo phoos error Pin
ThatsAlok4-Dec-05 21:28
ThatsAlok4-Dec-05 21:28 
GeneralRe: Mr. Alok phoo phoos error Pin
ThatsAlok4-Dec-05 21:29
ThatsAlok4-Dec-05 21:29 

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.