Click here to Skip to main content
16,009,255 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralATL, problem with RGS file, shell extension Pin
zilch14-Mar-04 13:19
zilch14-Mar-04 13:19 
Generalsome newbie questions.... Pin
rozbeh13-Mar-04 1:53
rozbeh13-Mar-04 1:53 
GeneralRe: some newbie questions.... Pin
Michael Dunn13-Mar-04 4:52
sitebuilderMichael Dunn13-Mar-04 4:52 
QuestionCan XML be used in a wtl project? Pin
freehawk12-Mar-04 20:46
freehawk12-Mar-04 20:46 
AnswerRe: Can XML be used in a wtl project? Pin
Prakash Nadar12-Mar-04 23:00
Prakash Nadar12-Mar-04 23:00 
QuestionWhat is the possible reason? Pin
freehawk10-Mar-04 22:55
freehawk10-Mar-04 22:55 
QuestionHow to insert/delete some content of text file fastly? Pin
freehawk10-Mar-04 20:23
freehawk10-Mar-04 20:23 
GeneralNewbie activex question Pin
Martin Walker10-Mar-04 3:19
Martin Walker10-Mar-04 3:19 
I have created a simple mfc activex control which works in the activex control test container.
Now I have have created an stl program and use #import to pull in definitions of the control and a wrapper class.

Next I have a function:

HRESULT hr;
_DMysearch *pSearch;

const IID IID_DMysearch = { 0x2887adc2, 0xeba1, 0x4ca9, { 0xb3, 0x58, 0x15, 0xae, 0xf, 0xd2, 0xb9, 0x6a } };

const CLSID CLSID_mysearch = {0x4ae8deda, 0xee97, 0x47ee,{ 0x9c, 0xcc, 0xd, 0x1b, 0x4b, 0x99, 0x6b, 0x88}};

::CoInitialize(NULL);


hr = CoCreateInstance (CLSID_mysearch, // CLSID of coclass
NULL, // not used - aggregation
CLSCTX_INPROC_SERVER, // type of server
IID_Dmysearch, // IID of interface
(void**) &pSearch ); // Pointer to our interface pointer

if ( SUCCEEDED ( hr ) )
{
long res = pSearch->test();

}
else
{
// Couldn't create the COM object. hr holds the error code.
}

I get as far as pSearch->test() which is a simple long function with no parameters and I get an exception from com_dispatch_method.

any ideas?

jema

GeneralService problem. Pin
Prakash Nadar9-Mar-04 17:18
Prakash Nadar9-Mar-04 17:18 
QuestionHow to implement a MFC CFormView in WTL? Pin
Aizz9-Mar-04 14:59
Aizz9-Mar-04 14:59 
AnswerRe: How to implement a MFC CFormView in WTL? Pin
_Magnus_9-Mar-04 21:43
_Magnus_9-Mar-04 21:43 
GeneralRe: How to implement a MFC CFormView in WTL? Pin
Aizz10-Mar-04 16:05
Aizz10-Mar-04 16:05 
QuestionHow can I add a tab control on a ATL Property Page? Pin
larsibam9-Mar-04 4:36
larsibam9-Mar-04 4:36 
GeneralConnection points Pin
Member 169778-Mar-04 3:14
Member 169778-Mar-04 3:14 
GeneralRe: Connection points Pin
Steve S8-Mar-04 4:29
Steve S8-Mar-04 4:29 
GeneralAtl Composite Control don´t draw Pin
Luis Ricardo8-Mar-04 0:56
Luis Ricardo8-Mar-04 0:56 
QuestionHow to save web page to jpeg Pin
AWebDude4-Mar-04 10:21
AWebDude4-Mar-04 10:21 
QuestionHow to have access to the members of a class Pin
Roozbeh694-Mar-04 9:51
professionalRoozbeh694-Mar-04 9:51 
AnswerRe: How to have access to the members of a class Pin
Prakash Nadar5-Mar-04 22:11
Prakash Nadar5-Mar-04 22:11 
GeneralRe: How to have access to the members of a class Pin
Jörgen Sigvardsson5-Mar-04 23:11
Jörgen Sigvardsson5-Mar-04 23:11 
GeneralRe: How to have access to the members of a class Pin
Prakash Nadar12-Mar-04 23:04
Prakash Nadar12-Mar-04 23:04 
GeneralRe: How to have access to the members of a class Pin
Steve S14-Mar-04 22:02
Steve S14-Mar-04 22:02 
GeneralRe: How to have access to the members of a class Pin
Prakash Nadar14-Mar-04 22:29
Prakash Nadar14-Mar-04 22:29 
GeneralRe: How to have access to the members of a class Pin
Steve S15-Mar-04 0:32
Steve S15-Mar-04 0:32 
GeneralRe: How to have access to the members of a class Pin
Prakash Nadar15-Mar-04 0:52
Prakash Nadar15-Mar-04 0:52 

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.