Click here to Skip to main content
15,909,835 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: list::sort() question Pin
toxcct23-Nov-04 21:37
toxcct23-Nov-04 21:37 
GeneralRe: list::sort() question Pin
peterchen23-Nov-04 22:28
peterchen23-Nov-04 22:28 
GeneralRe: list::sort() question Pin
Nemanja Trifunovic24-Nov-04 2:21
Nemanja Trifunovic24-Nov-04 2:21 
GeneralATL7 and VS.NET2k3 wizard, completely stuck Pin
seriema19-Nov-04 10:59
seriema19-Nov-04 10:59 
GeneralRe: ATL7 and VS.NET2k3 wizard, completely stuck Pin
Michael Dunn19-Nov-04 13:25
sitebuilderMichael Dunn19-Nov-04 13:25 
GeneralRe: ATL7 and VS.NET2k3 wizard, completely stuck Pin
seriema19-Nov-04 13:33
seriema19-Nov-04 13:33 
GeneralPrevent IHTMLDocument2 from updating IE screen Pin
Wim Jans19-Nov-04 9:33
Wim Jans19-Nov-04 9:33 
Questionhow to use char* in ATL Pin
yingkou18-Nov-04 23:26
yingkou18-Nov-04 23:26 
I am learning Program COM by ATL,I build a inpro-server dll and add a com object ComputerInfo,I only add a method to IComputerInfo and not to any thing just as bellow:

interface IComputerInfo : IDispatch
{
[id(1), helpstring("method Test")] HRESULT GetCPU(char* bufName,const int* size);
};

STDMETHODIMP CComputerInfo::GetCPU(char* bufName,const int* size)
{
// TODO: Add your implementation code here

return S_OK;
}
Compiler shows:

ATLFirst.cpp
error C2259: 'CComObject<class ccomputerinfo="">' : cannot instantiate abstract class due to following members:
atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator<class atl::ccomobject<class="" ccomputerinfo=""> >::CreateInstance(void *,const struct _GUID &,void ** )'
f:\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : warning C4259: 'long __stdcall IComputerInfo::GetCPU(unsigned char *,const int *)' : pure virtual function was not defined

if I have change the metho to GetCPU(unsigned char* bufName,const int* size)
all right,it works well,why???
AnswerRe: how to use char* in ATL Pin
geo_m18-Nov-04 23:39
geo_m18-Nov-04 23:39 
GeneralRe: how to use char* in ATL Pin
yingkou19-Nov-04 1:56
yingkou19-Nov-04 1:56 
GeneralRe: how to use char* in ATL Pin
geo_m19-Nov-04 2:52
geo_m19-Nov-04 2:52 
GeneralMemory leaks with BSTR Pin
prasad_som18-Nov-04 22:03
prasad_som18-Nov-04 22:03 
GeneralRe: Memory leaks with BSTR Pin
22491718-Nov-04 22:57
22491718-Nov-04 22:57 
GeneralRe: Memory leaks with BSTR Pin
prasad_som18-Nov-04 23:35
prasad_som18-Nov-04 23:35 
GeneralRe: Memory leaks with BSTR Pin
Steve S19-Nov-04 0:20
Steve S19-Nov-04 0:20 
QuestionHow can I create a colour btimap ? Pin
Darked developer18-Nov-04 19:59
Darked developer18-Nov-04 19:59 
AnswerRe: How can I create a colour btimap ? Pin
Rory Solley18-Nov-04 23:34
Rory Solley18-Nov-04 23:34 
GeneralRe: How can I create a colour btimap ? Pin
Darked developer19-Nov-04 2:41
Darked developer19-Nov-04 2:41 
GeneralCall to one Method of a COM component returns 0x80020008. But works on other machine Pin
User 21559718-Nov-04 18:39
User 21559718-Nov-04 18:39 
GeneralRe: Call to one Method of a COM component returns 0x80020008. But works on other machine Pin
geo_m19-Nov-04 2:58
geo_m19-Nov-04 2:58 
GeneralRe: Call to one Method of a COM component returns 0x80020008. But works on other machine Pin
User 21559719-Nov-04 3:28
User 21559719-Nov-04 3:28 
GeneralRe: Call to one Method of a COM component returns 0x80020008. But works on other machine Pin
geo_m19-Nov-04 3:48
geo_m19-Nov-04 3:48 
GeneralRe: Call to one Method of a COM component returns 0x80020008. But works on other machine Pin
User 21559721-Nov-04 17:13
User 21559721-Nov-04 17:13 
GeneralMoment of file Close Pin
moyeenm18-Nov-04 4:26
moyeenm18-Nov-04 4:26 
GeneralRe: Moment of file Close Pin
geo_m19-Nov-04 3:10
geo_m19-Nov-04 3: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.