Click here to Skip to main content
15,878,814 members
Home / Discussions / COM
   

COM

 
QuestionCocreateInstance fails Pin
Shailesh Ha5-Dec-06 19:04
Shailesh Ha5-Dec-06 19:04 
AnswerRe: CocreateInstance fails Pin
prasad_som5-Dec-06 20:22
prasad_som5-Dec-06 20:22 
GeneralRe: CocreateInstance fails Pin
Shailesh Ha5-Dec-06 21:55
Shailesh Ha5-Dec-06 21:55 
GeneralRe: CocreateInstance fails Pin
prasad_som5-Dec-06 22:15
prasad_som5-Dec-06 22:15 
GeneralRe: CocreateInstance fails Pin
Shailesh Ha5-Dec-06 22:31
Shailesh Ha5-Dec-06 22:31 
AnswerRe: CocreateInstance fails Pin
prasad_som5-Dec-06 22:40
prasad_som5-Dec-06 22:40 
AnswerRe: CocreateInstance fails Pin
Stephen Hewitt5-Dec-06 20:27
Stephen Hewitt5-Dec-06 20:27 
GeneralRe: CocreateInstance fails Pin
Shailesh Ha5-Dec-06 23:17
Shailesh Ha5-Dec-06 23:17 
my code ..is somewat like this

HRESULT hrStatus = CLSIDFromProgID( TEXT("some"), &clsControl );

if( SUCCEEDED(hrStatus) )
{
//
// Create the object and initialize it.
//


hrStatus = CoCreateInstance(
clsControl,
NULL,
CLSCTX_INPROC_SERVER,
IID_IControl,
reinterpret_cast<lpvoid *="">(&m_pControl)
);

if( SUCCEEDED(hrStatus) )
{
//some code
}
}

regards
Shailesh
GeneralRe: CocreateInstance fails Pin
Stephen Hewitt6-Dec-06 12:03
Stephen Hewitt6-Dec-06 12:03 
GeneralRe: CocreateInstance fails Pin
prasad_som6-Dec-06 18:10
prasad_som6-Dec-06 18:10 
Questionshell programming Pin
sanwalz5-Dec-06 8:57
sanwalz5-Dec-06 8:57 
AnswerRe: shell programming Pin
prasad_som5-Dec-06 17:38
prasad_som5-Dec-06 17:38 
QuestionAdding form component in outlook 2003 Pin
Abhishektiwary5-Dec-06 2:06
Abhishektiwary5-Dec-06 2:06 
Questionupdating Assembley in GAC Pin
mnaveed4-Dec-06 23:24
mnaveed4-Dec-06 23:24 
Question‘Permission denied’ error Pin
lafleon4-Dec-06 13:17
lafleon4-Dec-06 13:17 
Questionmarshaling char* Pin
deathBell4-Dec-06 6:36
deathBell4-Dec-06 6:36 
AnswerRe: marshaling char* Pin
lafleon4-Dec-06 11:39
lafleon4-Dec-06 11:39 
QuestionPowerPoint effects: How to figure out a current effect name within SlideShowNextBuild event handler? Pin
wasek20014-Dec-06 2:51
wasek20014-Dec-06 2:51 
Questionpassing binary to com Pin
Anilkumar K V4-Dec-06 1:07
Anilkumar K V4-Dec-06 1:07 
AnswerRe: passing binary to com Pin
lafleon4-Dec-06 11:45
lafleon4-Dec-06 11:45 
Questionregarding projects in asp.net Pin
hishhash2-Dec-06 0:16
hishhash2-Dec-06 0:16 
QuestionWMI Win32_pingStatus Pin
abhiramsss1-Dec-06 7:13
abhiramsss1-Dec-06 7:13 
QuestionChanging the size of ToolBand Dynamically Pin
georgekjolly1-Dec-06 0:59
georgekjolly1-Dec-06 0:59 
QuestionHow to take X , Y Coordinates of HTML Element Collections Pin
georgekjolly30-Nov-06 22:13
georgekjolly30-Nov-06 22:13 
QuestionHow do I use a third party Windows Forms control (VB.NET) Pin
tintinchasm30-Nov-06 3:13
tintinchasm30-Nov-06 3:13 

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.