Click here to Skip to main content
15,393,377 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionI have backward compatibility, is the forward compatibility is ensured ? Pin
MrKBA17-Apr-13 6:29
MemberMrKBA17-Apr-13 6:29 
AnswerRe: I have backward compatibility, is the forward compatibility is ensured ? Pin
Richard MacCutchan17-Apr-13 9:15
mveRichard MacCutchan17-Apr-13 9:15 
AnswerRe: I have backward compatibility, is the forward compatibility is ensured ? Pin
Marco Bertschi23-Apr-13 2:34
professionalMarco Bertschi23-Apr-13 2:34 
QuestionConverting souce code form serialization/ de serialization "MBCS" to serialization/ de serialization "UNICODE" : MFC Pin
ptr_Electron16-Apr-13 19:56
Memberptr_Electron16-Apr-13 19:56 
AnswerRe: Converting souce code form serialization/ de serialization "MBCS" to serialization/ de serialization "UNICODE" : MFC Pin
Richard MacCutchan16-Apr-13 21:10
mveRichard MacCutchan16-Apr-13 21:10 
QuestionHidden window cannot get WM_COPYDATA message? Pin
yihung.hung16-Apr-13 19:26
Memberyihung.hung16-Apr-13 19:26 
AnswerRe: Hidden window cannot get WM_COPYDATA message? Pin
Richard MacCutchan16-Apr-13 21:09
mveRichard MacCutchan16-Apr-13 21:09 
QuestionCoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung1-Apr-13 20:58
Memberyihung.hung1-Apr-13 20:58 
Hi All

I have this call to CoCreateInstance that fails, and i get 0x0000007e from GetLastError. Has everybody allready had this kind of error ?

Thank you.


// import VoipTestCom.dll
#pragma warning(disable:4146)
#import "C:\workvs2008\binaries\Win32\Release\bin\VoipTestCom.dll" raw_interfaces_only, raw_native_types, no_namespace, named_guids


LRESULT CSTapiCom::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{

ISimpleClientPtr m_sipclicom;
CAxWindow wnd;
CLSID clsid;
LPUNKNOWN pUnkCtrl, pUnkCont;

HRESULT hr = CLSIDFromProgID(OLESTR("VoipTestCom.SimpleClient"), &clsid);


if (hr == S_OK )
{
::MessageBox(NULL, _T("CLSIDFromProgID...ok"), _T("INFO"), MB_OK);
}


hr = CoCreateInstance(clsid, NULL, CLSCTX_ALL, IID_IUnknown, (void**)&pUnkCtrl);

if (hr == S_OK )
{
::MessageBox(NULL, _T("CoCreateInstance...ok"), _T("INFO"), MB_OK);
}
else
{
TCHAR szBuff[64];
swprintf(szBuff, L"CoCreateInstance...fail->%x",GetLastError());
::MessageBox(NULL, szBuff, _T("INFO"), MB_OK);
}

return TRUE;
}
AnswerRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan1-Apr-13 21:32
mveRichard MacCutchan1-Apr-13 21:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung9-Apr-13 19:25
Memberyihung.hung9-Apr-13 19:25 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan9-Apr-13 21:18
mveRichard MacCutchan9-Apr-13 21:18 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 14:32
Memberyihung.hung12-Apr-13 14:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 21:55
mveRichard MacCutchan12-Apr-13 21:55 
AnswerRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt11-Apr-13 23:32
MemberStephen Hewitt11-Apr-13 23:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 15:31
Memberyihung.hung12-Apr-13 15:31 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt12-Apr-13 19:11
MemberStephen Hewitt12-Apr-13 19:11 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung13-Apr-13 2:52
Memberyihung.hung13-Apr-13 2:52 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 22:00
mveRichard MacCutchan12-Apr-13 22:00 
Question[SOLVED] IHTMLDOCUMENT2 get_Script problem in thread Pin
mr_m_imran28-Mar-13 8:20
Membermr_m_imran28-Mar-13 8:20 
AnswerRe: IHTMLDOCUMENT2 get_Script problem in thread Pin
Richard MacCutchan28-Mar-13 8:48
mveRichard MacCutchan28-Mar-13 8:48 
GeneralRe: IHTMLDOCUMENT2 get_Script problem in thread Pin
mr_m_imran28-Mar-13 17:36
Membermr_m_imran28-Mar-13 17:36 
QuestionTo Identify .Net Dll's among many Dll's in a Project. Pin
Vishal_K8927-Mar-13 1:36
MemberVishal_K8927-Mar-13 1:36 
AnswerRe: To Identify .Net Dll's among many Dll's in a Project. Pin
Richard MacCutchan27-Mar-13 3:51
mveRichard MacCutchan27-Mar-13 3:51 
QuestionAdditional Include Directories Pin
bkelly1324-Mar-13 9:47
Memberbkelly1324-Mar-13 9:47 
AnswerRe: Additional Include Directories Pin
Garth J Lancaster24-Mar-13 11:32
professionalGarth J Lancaster24-Mar-13 11:32 

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.