Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS2005 linking errors. Pin
Jose Lamas Rios21-Aug-05 18:51
Jose Lamas Rios21-Aug-05 18:51 
GeneralRe: VS2005 linking errors. Pin
Christian Graus21-Aug-05 19:17
protectorChristian Graus21-Aug-05 19:17 
GeneralNot able to Call one COM Dll inside ATL Service Pin
Prasannajit Dash21-Aug-05 17:53
Prasannajit Dash21-Aug-05 17:53 
GeneralRe: Not able to Call one COM Dll inside ATL Service Pin
Jose Lamas Rios21-Aug-05 18:12
Jose Lamas Rios21-Aug-05 18:12 
GeneralRe: Not able to Call one COM Dll inside ATL Service Pin
Anonymous21-Aug-05 18:28
Anonymous21-Aug-05 18:28 
GeneralRe: Not able to Call one COM Dll inside ATL Service Pin
Jose Lamas Rios21-Aug-05 18:40
Jose Lamas Rios21-Aug-05 18:40 
GeneralRe: Not able to Call one COM Dll inside ATL Service Pin
Prasannajit Dash21-Aug-05 19:16
Prasannajit Dash21-Aug-05 19:16 
GeneralRe: Not able to Call one COM Dll inside ATL Service Pin
Jose Lamas Rios22-Aug-05 5:43
Jose Lamas Rios22-Aug-05 5:43 
ppInterface is an interface pointer. You need to pass a pointer to the pointer so that CoCreateInstance can load a value in it.

Instead of:
IDllNtServiceCOM* ppInterface = NULL; //COM Dll Interface Pointer
HRESULT hr = CoCreateInstance(CLSID_DllNtServiceCOM, NULL,
                 CLSCTX_INPROC_SERVER, IID_IDllNtServiceCOM, (LPVOID*)ppInterface);

It should be:
IDllNtServiceCOM* pInterface = NULL; //COM Dll Interface Pointer
HRESULT hr = CoCreateInstance(CLSID_DllNtServiceCOM, NULL,
                 CLSCTX_INPROC_SERVER, IID_IDllNtServiceCOM, (LPVOID*)&pInterface);
if (SUCCEEDED(hr))
{
   // Use pInterface
}





--
jlr
http://jlamas.blogspot.com/[^]
GeneralDon't want to inherit Parent's process space Pin
Tony Valiantis21-Aug-05 17:51
Tony Valiantis21-Aug-05 17:51 
GeneralRe: Don't want to inherit Parent's process space Pin
Jose Lamas Rios21-Aug-05 17:58
Jose Lamas Rios21-Aug-05 17:58 
GeneralRe: Don't want to inherit Parent's process space Pin
Tony Valiantis21-Aug-05 18:27
Tony Valiantis21-Aug-05 18:27 
GeneralRe: Don't want to inherit Parent's process space Pin
Jose Lamas Rios21-Aug-05 18:43
Jose Lamas Rios21-Aug-05 18:43 
GeneralVC++ MFC Linking error (LNK 2001, 2019) in VS .NET 2003 Pin
FFKONG21-Aug-05 17:22
FFKONG21-Aug-05 17:22 
GeneralRe: VC++ MFC Linking error (LNK 2001, 2019) in VS .NET 2003 Pin
Jose Lamas Rios21-Aug-05 17:50
Jose Lamas Rios21-Aug-05 17:50 
GeneralRe: VC++ MFC Linking error (LNK 2001, 2019) in VS .NET 2003 Pin
FFKONG21-Aug-05 20:09
FFKONG21-Aug-05 20:09 
GeneralVC++ MFC Linking error (LNK 2001, 2019) in VS .NET 2003 Pin
FFKONG21-Aug-05 17:18
FFKONG21-Aug-05 17:18 
GeneralMS Dos and Dialog Pin
Member 216100421-Aug-05 16:07
Member 216100421-Aug-05 16:07 
GeneralRe: MS Dos and Dialog Pin
Jose Lamas Rios21-Aug-05 16:11
Jose Lamas Rios21-Aug-05 16:11 
GeneralRe: MS Dos and Dialog Pin
Member 216100421-Aug-05 17:36
Member 216100421-Aug-05 17:36 
GeneralRe: MS Dos and Dialog Pin
Jose Lamas Rios21-Aug-05 17:53
Jose Lamas Rios21-Aug-05 17:53 
GeneralSubclass Windows from Different Threads / CBT Hooks Pin
Danielle Schmitt21-Aug-05 13:00
Danielle Schmitt21-Aug-05 13:00 
GeneralX25 network Pin
aguest21-Aug-05 12:13
aguest21-Aug-05 12:13 
GeneralRe: X25 network Pin
Jörgen Sigvardsson21-Aug-05 12:25
Jörgen Sigvardsson21-Aug-05 12:25 
Questionhow do u allow user to "draw" in SDK Pin
Tim Zorn21-Aug-05 12:02
Tim Zorn21-Aug-05 12:02 
AnswerRe: how do u allow user to "draw" in SDK Pin
alex.barylski21-Aug-05 13:27
alex.barylski21-Aug-05 13:27 

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.