Click here to Skip to main content
15,898,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ExitInstance Pin
ThatsAlok4-Oct-06 7:37
ThatsAlok4-Oct-06 7:37 
GeneralRe: ExitInstance Pin
Naveen4-Oct-06 17:35
Naveen4-Oct-06 17:35 
AnswerRe: ExitInstance Pin
David Crow4-Oct-06 3:12
David Crow4-Oct-06 3:12 
AnswerRe: ExitInstance Pin
Antti Keskinen4-Oct-06 8:03
Antti Keskinen4-Oct-06 8:03 
GeneralRe: ExitInstance Pin
Naveen4-Oct-06 17:15
Naveen4-Oct-06 17:15 
GeneralRe: ExitInstance Pin
Antti Keskinen4-Oct-06 19:19
Antti Keskinen4-Oct-06 19:19 
GeneralRe: ExitInstance Pin
Naveen4-Oct-06 19:25
Naveen4-Oct-06 19:25 
QuestionUnable to retrieve Class ID Pin
narayanagvs3-Oct-06 20:00
narayanagvs3-Oct-06 20:00 
Hi,

I have a structure ...
typedef struct
{
CString progId;
IEFCMainForm * pIForm;
}NODEDATA;




char buf[200];
// The structure is initialized

NODEDATA *nd=new NODEDATA;
nd->progId = _T("EFCSkinView.EFCForm.1 ") ;
sprintf(buf,"%s",nd->progId);
nd->pIForm=NULL;


if (nd->pIForm == NULL)
{
CLSID clsid;
wchar_t lszProgID[200];
mbstowcs(lszProgID,buf/*nd->progId*/,nd->progId.GetLength());
lszProgID[nd->progId.GetLength()]=0;
CLSIDFromProgID(_T("EFCSkinView.EFCForm.1 "),&clsid);

HRESULT hr=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,IID_IEFCMainForm,(void**)&(nd->pIForm));

// Iam unable to get clsid ,iam getting GUID_NULL for clsid eventhough iam getting correct progid

if(FAILED(hr))
{
CString str=_T("Failed to Create ");
AfxMessageBox(str+nd->progId);
return;
}

Any suggetions would be helpful


Thanks

Today is a gift, that's why it is called the present.

AnswerRe: Unable to retrieve Class ID Pin
ThatsAlok4-Oct-06 7:33
ThatsAlok4-Oct-06 7:33 
QuestionHow to write text to the command prompt in Dlg based Appln. Pin
zxc893-Oct-06 19:58
zxc893-Oct-06 19:58 
AnswerRe: How to write text to the command prompt in Dlg based Appln. Pin
Naveen3-Oct-06 20:06
Naveen3-Oct-06 20:06 
QuestionRe: How to write text to the command prompt in Dlg based Appln. Pin
zxc893-Oct-06 20:24
zxc893-Oct-06 20:24 
AnswerRe: How to write text to the command prompt in Dlg based Appln. Pin
Naveen3-Oct-06 20:36
Naveen3-Oct-06 20:36 
AnswerRe: How to write text to the command prompt in Dlg based Appln. Pin
David Crow4-Oct-06 3:19
David Crow4-Oct-06 3:19 
GeneralRe: How to write text to the command prompt in Dlg based Appln. Pin
Naveen4-Oct-06 17:27
Naveen4-Oct-06 17:27 
QuestionRe: How to write text to the command prompt in Dlg based Appln. Pin
zxc894-Oct-06 21:13
zxc894-Oct-06 21:13 
Questionsend to the socket Pin
yijia_243-Oct-06 19:23
yijia_243-Oct-06 19:23 
AnswerRe: send to the socket Pin
Naveen3-Oct-06 19:51
Naveen3-Oct-06 19:51 
QuestionRe: send to the socket Pin
yijia_243-Oct-06 20:16
yijia_243-Oct-06 20:16 
AnswerRe: send to the socket Pin
Naveen3-Oct-06 20:22
Naveen3-Oct-06 20:22 
AnswerRe: send to the socket Pin
ThatsAlok4-Oct-06 7:29
ThatsAlok4-Oct-06 7:29 
QuestionButtons problem Pin
radhika283-Oct-06 19:22
radhika283-Oct-06 19:22 
AnswerRe: Buttons problem Pin
_AnsHUMAN_ 3-Oct-06 19:24
_AnsHUMAN_ 3-Oct-06 19:24 
GeneralRe: Buttons problem Pin
ThatsAlok4-Oct-06 7:24
ThatsAlok4-Oct-06 7:24 
AnswerRe: Buttons problem Pin
Nibu babu thomas3-Oct-06 19:31
Nibu babu thomas3-Oct-06 19:31 

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.