Re: How to pass arguments to a CreateThread(...)
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 24 Jan 2006 08:26:29 -0500
"Joao Rego" <JoaoRego@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:74A16FC9-2124-4207-8359-95E221C32F2D@xxxxxxxxxxxxx
> Thanks for the example, I implemented it but in run time it gets an
> error in line 2 of
> MyThreadFuncion(...)
> {
> ...
> CComGITPtr<ICMyCOMClasse> gitPtr(gitCookie);
> ...
> }
>
> the error is altbase.h line 4577:
> Expression:((HRESULT)(hr)>=0)
>
> in altbase.h...
> 4555: CComPtr<T> spT;
> 4556: HRESULT hr = CopyTo(&spT);
> 4557: ATLASSERT(SUCCEEDED(hr));
> ...
For some reason, retrieving a pointer from GIT cookie failed. What's the
value of HRESULT at the point of failure? Did you use my code exactly as
shown, or have you perhaps omitted something? Is there marshalling
support for your interface?
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Re: How to pass arguments to a CreateThread(...)
- From: Igor Tandetnik
- Re: How to pass arguments to a CreateThread(...)
- From: Joao Rego
- Re: How to pass arguments to a CreateThread(...)
- Prev by Date: Re: how to launch a notepad with the supplied information
- Next by Date: Re: another COM-Question: how to inject a type-lib into a dll?
- Previous by thread: Re: How to pass arguments to a CreateThread(...)
- Next by thread: Re: Why does QueryInterface return E_ACCESSDENIED?
- Index(es):
Relevant Pages
|
|