Click here to Skip to main content
14,694,371 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionI have backward compatibility, is the forward compatibility is ensured ? Pin
MrKBA17-Apr-13 7:29
MemberMrKBA17-Apr-13 7:29 
AnswerRe: I have backward compatibility, is the forward compatibility is ensured ? Pin
Richard MacCutchan17-Apr-13 10:15
mveRichard MacCutchan17-Apr-13 10:15 
AnswerRe: I have backward compatibility, is the forward compatibility is ensured ? Pin
Marco Bertschi23-Apr-13 3:34
professionalMarco Bertschi23-Apr-13 3:34 
QuestionConverting souce code form serialization/ de serialization "MBCS" to serialization/ de serialization "UNICODE" : MFC Pin
ptr_Electron16-Apr-13 20:56
Memberptr_Electron16-Apr-13 20:56 
AnswerRe: Converting souce code form serialization/ de serialization "MBCS" to serialization/ de serialization "UNICODE" : MFC Pin
Richard MacCutchan16-Apr-13 22:10
mveRichard MacCutchan16-Apr-13 22:10 
QuestionHidden window cannot get WM_COPYDATA message? Pin
yihung.hung16-Apr-13 20:26
Memberyihung.hung16-Apr-13 20:26 
AnswerRe: Hidden window cannot get WM_COPYDATA message? Pin
Richard MacCutchan16-Apr-13 22:09
mveRichard MacCutchan16-Apr-13 22:09 
QuestionCoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung1-Apr-13 21:58
Memberyihung.hung1-Apr-13 21: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 22:32
mveRichard MacCutchan1-Apr-13 22:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung9-Apr-13 20:25
Memberyihung.hung9-Apr-13 20:25 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan9-Apr-13 22:18
mveRichard MacCutchan9-Apr-13 22:18 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 15:32
Memberyihung.hung12-Apr-13 15:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 22:55
mveRichard MacCutchan12-Apr-13 22:55 
AnswerRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt12-Apr-13 0:32
MemberStephen Hewitt12-Apr-13 0:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung12-Apr-13 16:31
Memberyihung.hung12-Apr-13 16:31 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Stephen Hewitt12-Apr-13 20:11
MemberStephen Hewitt12-Apr-13 20:11 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
yihung.hung13-Apr-13 3:52
Memberyihung.hung13-Apr-13 3:52 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 23:00
mveRichard MacCutchan12-Apr-13 23:00 
Question[SOLVED] IHTMLDOCUMENT2 get_Script problem in thread Pin
mr_m_imran28-Mar-13 9:20
Membermr_m_imran28-Mar-13 9:20 
AnswerRe: IHTMLDOCUMENT2 get_Script problem in thread Pin
Richard MacCutchan28-Mar-13 9:48
mveRichard MacCutchan28-Mar-13 9:48 
GeneralRe: IHTMLDOCUMENT2 get_Script problem in thread Pin
mr_m_imran28-Mar-13 18:36
Membermr_m_imran28-Mar-13 18:36 
QuestionTo Identify .Net Dll's among many Dll's in a Project. Pin
Vishal_K8927-Mar-13 2:36
MemberVishal_K8927-Mar-13 2:36 
AnswerRe: To Identify .Net Dll's among many Dll's in a Project. Pin
Richard MacCutchan27-Mar-13 4:51
mveRichard MacCutchan27-Mar-13 4:51 
QuestionAdditional Include Directories Pin
bkelly1324-Mar-13 10:47
Memberbkelly1324-Mar-13 10:47 
AnswerRe: Additional Include Directories Pin
Garth J Lancaster24-Mar-13 12:32
professionalGarth J Lancaster24-Mar-13 12: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.