Click here to Skip to main content
15,922,309 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionCComPtr -> CoCreateInstance failes when threaded!? Pin
virtualnik14-Jan-04 0:42
virtualnik14-Jan-04 0:42 
AnswerRe: CComPtr -> CoCreateInstance failes when threaded!? Pin
virtualnik14-Jan-04 2:06
virtualnik14-Jan-04 2:06 
GeneralRe: CComPtr -> CoCreateInstance failes when threaded!? Pin
Lim Bio Liong14-Jan-04 5:08
Lim Bio Liong14-Jan-04 5:08 
GeneralRe: CComPtr -> CoCreateInstance failes when threaded!? Pin
virtualnik14-Jan-04 12:23
virtualnik14-Jan-04 12:23 
GeneralASSERT Trouble Pin
Monty213-Jan-04 23:42
Monty213-Jan-04 23:42 
GeneralRe: ASSERT Trouble Pin
Tim Smith14-Jan-04 16:24
Tim Smith14-Jan-04 16:24 
Questionhow to input file and display the content to different area? Pin
freehawk13-Jan-04 23:11
freehawk13-Jan-04 23:11 
GeneralATL's auto IDL generating is adding A/W to my methods! Pin
Todd Jeffreys13-Jan-04 10:05
Todd Jeffreys13-Jan-04 10:05 
It's common to see FunctionA and FunctionW for ANSI/UNICODE versions, however my ATL functions are being created like this which is not good.

For example, I made a method called OpenService which returns an IService object (of my creation) and takes as a parameter a BSTR.

So the declaration is as follows:
<br />
__interface IConfigurer : IDispatch<br />
{<br />
	[id(1), helpstring("method Open")] HRESULT Open([in] BSTR machineName);<br />
	[id(2), helpstring("method Close")] HRESULT Close(void);<br />
	[id(3), helpstring("method OpenService")] HRESULT OpenService([in] BSTR serviceName, [out,retval] IDispatch** ppService);<br />
};<br />


I havn't done ATL since VC 6.0 and I'm using 2003 .NET now. It auto creates the IDL file and outputs the OpenService function as OpenServiceA. Aren't BSTR's not supposed to require A/W or distinctions since they are always wide?
I'm an ATL 7.0 noob so help me out Wink | ;-)
GeneralRe: ATL's auto IDL generating is adding A/W to my methods! Pin
Jörgen Sigvardsson13-Jan-04 10:29
Jörgen Sigvardsson13-Jan-04 10:29 
GeneralClosing all browser windows Pin
Vermithrax12-Jan-04 9:39
Vermithrax12-Jan-04 9:39 
GeneralGlobalMultiUse Objects Pin
Roozbeh6910-Jan-04 19:20
professionalRoozbeh6910-Jan-04 19:20 
GeneralRe: GlobalMultiUse Objects Pin
Vi214-Jan-04 4:58
Vi214-Jan-04 4:58 
GeneralA question for Variant Byref parameter In StdMethodImplementation Pin
eternalme10-Jan-04 0:38
eternalme10-Jan-04 0:38 
QuestionHow can I get WM_SIZE event for the BandObject Pin
saisrinivasaln8-Jan-04 20:37
saisrinivasaln8-Jan-04 20:37 
AnswerRe: How can I get WM_SIZE event for the BandObject Pin
Jörgen Sigvardsson10-Jan-04 0:24
Jörgen Sigvardsson10-Jan-04 0:24 
GeneralATL file downloading Pin
Balkrishna Talele6-Jan-04 22:36
Balkrishna Talele6-Jan-04 22:36 
GeneralRe: ATL file downloading Pin
geo_m7-Jan-04 4:54
geo_m7-Jan-04 4:54 
GeneralRe: ATL file downloading Pin
Michael Dunn7-Jan-04 10:58
sitebuilderMichael Dunn7-Jan-04 10:58 
GeneralRe: ATL file downloading Pin
Jörgen Sigvardsson7-Jan-04 12:46
Jörgen Sigvardsson7-Jan-04 12:46 
GeneralRe: ATL file downloading Pin
Michael Dunn7-Jan-04 18:56
sitebuilderMichael Dunn7-Jan-04 18:56 
GeneralRe: ATL file downloading Pin
Balkrishna Talele7-Jan-04 17:10
Balkrishna Talele7-Jan-04 17:10 
GeneralBHO Advise Pin
Monty26-Jan-04 21:29
Monty26-Jan-04 21:29 
GeneralGot it Pin
Monty27-Jan-04 19:11
Monty27-Jan-04 19:11 
Questionhow to realize CWinThread in WTL project? Pin
freehawk6-Jan-04 21:01
freehawk6-Jan-04 21:01 
GeneralEvent Receiver inside a ActiveX Control Pin
Jiff Shen6-Jan-04 20:34
Jiff Shen6-Jan-04 20:34 

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.