Click here to Skip to main content
15,888,454 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Please help me Pin
Dr. Emmett Brown10-Mar-08 10:44
Dr. Emmett Brown10-Mar-08 10:44 
GeneralRe: Please help me Pin
Rahul Vaishnav10-Mar-08 18:36
Rahul Vaishnav10-Mar-08 18:36 
GeneralProblem in getting data from server Pin
MANISH RASTOGI7-Mar-08 18:28
MANISH RASTOGI7-Mar-08 18:28 
GeneralRe: Problem in getting data from server Pin
Ernest Laurentin10-Mar-08 4:47
Ernest Laurentin10-Mar-08 4:47 
GeneralRe: Problem in getting data from server Pin
MANISH RASTOGI11-Mar-08 21:06
MANISH RASTOGI11-Mar-08 21:06 
GeneralEvent Map of an ActiveX control Pin
AbbyIndian6-Mar-08 6:58
AbbyIndian6-Mar-08 6:58 
GeneralError while creating object using CreateInstance() Pin
KASR16-Mar-08 0:31
KASR16-Mar-08 0:31 
GeneralRe: Error while creating object using CreateInstance() Pin
Nathan Holt at EMOM6-Mar-08 4:42
Nathan Holt at EMOM6-Mar-08 4:42 
Sakthi_Vel wrote:
then i create instance of EDCService like

edcobj.CreateInstance(); but showing..

When i compile this code i get the follwing errors i dont know how was solve it


error C2039: 'CreateInstance' : is not a member of 'EDCService'


You aren't supposed to create an instance that way. If you are inside your program, you could use CComObject<edcservice>::CreateInstance. To create it from a client, you would normally assign a class ID to EDCService and the use CoCreateInstance.


Sakthi_Vel wrote:
error C2259: 'EDCService' : cannot instantiate abstract class


IDispatch has four pure virtual methods that you can implement by deriving EDCService from IDispatchImpl. IDispatch derives from IUnknown which has three more methods, which are implemented in CComObject. Also you need an interface map for EDCService so that CComObject::QueryInterface can work correctly.


Sakthi_Vel wrote:
//Main.h
__interface IFileIO : IDispatch
{
[id(1), helpstring("method GetFile")] HRESULT GetFile();
[id(2), helpstring("method getDirectory")] HRESULT GetDirectory();
};


This looks like attributed ATL. You really don't want to use it. Attribute support for standard C++ is much weaker than for .net, and I've found that (at least with VS2003) that it has an extreme problem with interface dependancies, because the generated .idl file neither forward declares types, nor attempts to put them in an order which wouldn't need it. To do anything significant with ATL, you'll need to learn IDL.

Nathan
GeneralBug in atlhost.h Pin
imagiro29-Feb-08 0:51
imagiro29-Feb-08 0:51 
GeneralRe: Bug in atlhost.h Pin
Michael Dunn29-Feb-08 9:29
sitebuilderMichael Dunn29-Feb-08 9:29 
GeneralReporting Bugs Pin
imagiro6-Mar-08 21:57
imagiro6-Mar-08 21:57 
GeneralGetting element id on click event from web browser in ATL Pin
ashish@indianic27-Feb-08 20:28
ashish@indianic27-Feb-08 20:28 
QuestionHow to use messagebox in ATL Pin
KASR126-Feb-08 21:41
KASR126-Feb-08 21:41 
AnswerRe: How to use messagebox in ATL Pin
ThatsAlok26-Feb-08 21:59
ThatsAlok26-Feb-08 21:59 
AnswerRe: How to use messagebox in ATL Pin
prasad_som5-Mar-08 4:57
prasad_som5-Mar-08 4:57 
AnswerRe: How to use messagebox in ATL Pin
dfz6-Mar-08 0:11
dfz6-Mar-08 0:11 
GeneralRe: How to use messagebox in ATL Pin
KASR16-Mar-08 0:14
KASR16-Mar-08 0:14 
AnswerRe: How to use messagebox in ATL Pin
Hamid_RT14-Apr-08 21:53
Hamid_RT14-Apr-08 21:53 
QuestionHow to handle strings in ATL. Pin
KASR126-Feb-08 19:23
KASR126-Feb-08 19:23 
AnswerRe: How to handle strings in ATL. Pin
MANISH RASTOGI26-Feb-08 21:09
MANISH RASTOGI26-Feb-08 21:09 
AnswerRe: How to handle strings in ATL. Pin
ThatsAlok26-Feb-08 21:58
ThatsAlok26-Feb-08 21:58 
GeneralRe: How to handle strings in ATL. Pin
KASR12-Mar-08 19:02
KASR12-Mar-08 19:02 
GeneralRe: How to handle strings in ATL. Pin
ThatsAlok2-Mar-08 19:26
ThatsAlok2-Mar-08 19:26 
GeneralRe: How to handle strings in ATL. Pin
Nemanja Trifunovic5-Mar-08 3:50
Nemanja Trifunovic5-Mar-08 3:50 
GeneralRe: How to handle strings in ATL. Pin
ThatsAlok5-Mar-08 4:55
ThatsAlok5-Mar-08 4:55 

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.