Click here to Skip to main content
15,914,642 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralGDI+, SetWorldTransform and transformation of objects Pin
flamy23-Jun-05 17:57
flamy23-Jun-05 17:57 
GeneralUsing templates for selecting overloaded functions Pin
ComplexLifeForm23-Jun-05 3:10
ComplexLifeForm23-Jun-05 3:10 
GeneralRe: Using templates for selecting overloaded functions Pin
Joaquín M López Muñoz23-Jun-05 11:37
Joaquín M López Muñoz23-Jun-05 11:37 
GeneralAutomatically scroll a view when using drag and drop Pin
retro_coder22-Jun-05 23:34
retro_coder22-Jun-05 23:34 
GeneralSink Event Problem- Please Help Pin
Raj72321-Jun-05 17:07
Raj72321-Jun-05 17:07 
QuestionA combined Tree View and List View control? Pin
retro_coder20-Jun-05 20:45
retro_coder20-Jun-05 20:45 
AnswerRe: A combined Tree View and List View control? Pin
Jörgen Sigvardsson25-Jun-05 13:50
Jörgen Sigvardsson25-Jun-05 13:50 
QuestionShould COM+ interface be dispatchable ? Pin
duckponf20-Jun-05 14:07
duckponf20-Jun-05 14:07 
I was creating a COM+ class using ATL as the following. The name of the interface was called ISample. The COM+ class was named CSample.

Basically, it looks like that:

interface ISample: IUnknown{
...
}

class CSample: ISample{
...
}

After compiling, I configured CSample using component services manager.

Then, I created a very simple client to use CSample. It looked like that:

void main(){
CoInitialize(0);
{
CComPtr<isample> sample;
HRESULT hr = sample.CoCreateInstance(CLSID_CSample); // <--- I got problem here
...
}
CoUninitialize();
}


I got problem when trying to create the CSample COM+ object. I was told in hr "E_NOINTERFACE".

But if I made the ISample a dual interface, everything became OK.

My question is: Is it required that ISample must be dual or derived from IDispatch? If not, what is wrong with my program?

Thanks a lot!
AnswerRe: Should COM+ interface be dispatchable ? Pin
Anonymous20-Jun-05 17:11
Anonymous20-Jun-05 17:11 
GeneralWindow Title disappears when changing focus Pin
retro_coder20-Jun-05 1:10
retro_coder20-Jun-05 1:10 
GeneralUsing Context Free Grammers Pin
fordge19-Jun-05 22:09
fordge19-Jun-05 22:09 
GeneralRe: Using Context Free Grammers Pin
Stuart Dootson21-Jun-05 21:49
professionalStuart Dootson21-Jun-05 21:49 
GeneralRe: Using Context Free Grammers Pin
Jörgen Sigvardsson22-Jun-05 8:08
Jörgen Sigvardsson22-Jun-05 8:08 
GeneralUsing WTL in Win32 Pin
daydremer19-Jun-05 17:34
daydremer19-Jun-05 17:34 
GeneralGetting the caret position of a running IE Pin
Member 77730117-Jun-05 5:05
Member 77730117-Jun-05 5:05 
GeneralAccessing HTTPS Webservice using VC++ 7.1 Pin
arun140517-Jun-05 3:33
arun140517-Jun-05 3:33 
GeneralRe: Accessing HTTPS Webservice using VC++ 7.1 Pin
Ed K18-Jun-06 18:01
Ed K18-Jun-06 18:01 
GeneralSingle Application Instance Pin
retro_coder16-Jun-05 18:58
retro_coder16-Jun-05 18:58 
GeneralRe: Single Application Instance Pin
Jack Puppy16-Jun-05 19:08
Jack Puppy16-Jun-05 19:08 
GeneralRe: Single Application Instance Pin
retro_coder16-Jun-05 21:47
retro_coder16-Jun-05 21:47 
GeneralRe: Single Application Instance Pin
Jack Puppy17-Jun-05 2:13
Jack Puppy17-Jun-05 2:13 
GeneralRe: Single Application Instance Pin
retro_coder19-Jun-05 15:21
retro_coder19-Jun-05 15:21 
Generalgeneric file streams Pin
RChin15-Jun-05 0:54
RChin15-Jun-05 0:54 
GeneralRe: generic file streams Pin
Joaquín M López Muñoz15-Jun-05 11:00
Joaquín M López Muñoz15-Jun-05 11:00 
GeneralRe: generic file streams Pin
rhdunn22-Jun-05 10:38
rhdunn22-Jun-05 10:38 

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.