Click here to Skip to main content
15,902,275 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster20-May-13 16:49
professionalGarth J Lancaster20-May-13 16:49 
GeneralRe: Suggestion for project type Pin
bkelly1320-May-13 16:59
bkelly1320-May-13 16:59 
GeneralRe: Suggestion for project type Pin
Garth J Lancaster21-May-13 2:16
professionalGarth J Lancaster21-May-13 2:16 
Questionhow to create own button , which can used on .Net/MFC with ATL/C++ Pin
dev C plus24-Apr-13 0:02
dev C plus24-Apr-13 0:02 
QuestionCOM or DCOM? Pin
progDes23-Apr-13 1:17
progDes23-Apr-13 1:17 
AnswerNeither COM nor DCOM - Use sockets! Pin
Marco Bertschi23-Apr-13 1:48
protectorMarco Bertschi23-Apr-13 1:48 
GeneralRe: Neither COM nor DCOM - Use sockets! Pin
progDes23-Apr-13 1:56
progDes23-Apr-13 1:56 
GeneralRe: Neither COM nor DCOM - Use sockets! Pin
Marco Bertschi23-Apr-13 2:33
protectorMarco Bertschi23-Apr-13 2:33 
AnswerRe: COM or DCOM? Pin
Jonathan Davies23-Apr-13 2:52
Jonathan Davies23-Apr-13 2:52 
AnswerRe: COM or DCOM? Pin
pasztorpisti23-Apr-13 3:21
pasztorpisti23-Apr-13 3:21 
AnswerRe: COM or DCOM? Pin
bkelly1320-May-13 16:19
bkelly1320-May-13 16:19 
AnswerRe: COM or DCOM? Pin
imagiro4-Jul-13 1:51
imagiro4-Jul-13 1:51 
QuestionI have backward compatibility, is the forward compatibility is ensured ? Pin
MrKBA17-Apr-13 6:29
MrKBA17-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
protectorMarco 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
ptr_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
yihung.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
yihung.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
yihung.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
yihung.hung12-Apr-13 14:32 
GeneralRe: CoCreateInstance Problem & GetLastError 0x0000007e Pin
Richard MacCutchan12-Apr-13 21:55
mveRichard MacCutchan12-Apr-13 21:55 

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.