Click here to Skip to main content
15,909,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamic cast problem Pin
toxcct12-Apr-06 1:14
toxcct12-Apr-06 1:14 
GeneralRe: Dynamic cast problem Pin
sunit512-Apr-06 1:39
sunit512-Apr-06 1:39 
GeneralRe: Dynamic cast problem Pin
Abyss12-Apr-06 5:49
Abyss12-Apr-06 5:49 
AnswerRe: Dynamic cast problem Pin
Rage12-Apr-06 1:31
professionalRage12-Apr-06 1:31 
AnswerRe: Dynamic cast problem Pin
Stephen Hewitt12-Apr-06 4:44
Stephen Hewitt12-Apr-06 4:44 
QuestionCryptography Pin
kiran janaswamy11-Apr-06 23:27
kiran janaswamy11-Apr-06 23:27 
QuestionReinstance COM Object in C++ Pin
MarcoNedwig11-Apr-06 23:22
MarcoNedwig11-Apr-06 23:22 
AnswerRe: Reinstance COM Object in C++ Pin
RChin11-Apr-06 23:35
RChin11-Apr-06 23:35 
When you say its not enough, what exactly is happening.

I'm assuming the sequence you are going through is something like:
<br />
IMyInterface* pI = NULL;<br />
<br />
<font color=green>// Instantiate your COM object</font><br />
HRESULT hr  = ::CoCreateInstance(CLS_MyInterface, NULL, CLSCTX_INPROC_SERVER, IID_IMyInterface, (void**)&pI);<br />
if(FAILED(hr))<br />
  return false;  <font color=green>//ERROR!!</font><br />
<br />
<font color=green>//.. Do your stuff here..</font><br />
<br />
pI->Release();<br />
pI = NULL;<br />
<br />
<font color=green>// You are now free to use pI all over again</font><br />
HRESULT hr  = ::CoCreateInstance(CLS_MyInterface, NULL, CLX_INPROC_SERVER, IID_IMyInterface, (void**)&pI);<br />
<font color=gray><br />
..<br />
..</font><br />





I Dream of Absolute Zero

GeneralRe: Reinstance COM Object in C++ Pin
MarcoNedwig12-Apr-06 0:01
MarcoNedwig12-Apr-06 0:01 
GeneralRe: Reinstance COM Object in C++ Pin
RChin12-Apr-06 0:50
RChin12-Apr-06 0:50 
GeneralRe: Reinstance COM Object in C++ Pin
MarcoNedwig12-Apr-06 1:15
MarcoNedwig12-Apr-06 1:15 
QuestionUrgent - How do i programatically display submenu items window Pin
giftsana11-Apr-06 23:19
giftsana11-Apr-06 23:19 
AnswerRe: Urgent - How do i programatically display submenu items window Pin
kiran janaswamy11-Apr-06 23:32
kiran janaswamy11-Apr-06 23:32 
GeneralRe: Urgent - How do i programatically display submenu items window Pin
giftsana11-Apr-06 23:37
giftsana11-Apr-06 23:37 
GeneralRe: Urgent - How do i programatically display submenu items window Pin
thatsme_cool12-Apr-06 0:38
thatsme_cool12-Apr-06 0:38 
AnswerRe: Urgent - How do i programatically display submenu items window Pin
Hamid_RT12-Apr-06 1:31
Hamid_RT12-Apr-06 1:31 
GeneralRe: Urgent - How do i programatically display submenu items window Pin
giftsana12-Apr-06 15:51
giftsana12-Apr-06 15:51 
Questionhyperlink copyright name Pin
Ștefan-Mihai MOGA11-Apr-06 23:13
professionalȘtefan-Mihai MOGA11-Apr-06 23:13 
AnswerRe: hyperlink copyright name Pin
Ravi Bhavnani12-Apr-06 5:08
professionalRavi Bhavnani12-Apr-06 5:08 
QuestionAudio drivers: hook up audio streams Pin
imsaady11-Apr-06 23:09
imsaady11-Apr-06 23:09 
AnswerRe: Audio drivers: hook up audio streams Pin
kakan12-Apr-06 0:11
professionalkakan12-Apr-06 0:11 
GeneralRe: Audio drivers: hook up audio streams Pin
imsaady12-Apr-06 6:33
imsaady12-Apr-06 6:33 
QuestionProblem with CToolTipCtrl::AddTool Pin
Chioo11-Apr-06 23:08
Chioo11-Apr-06 23:08 
QuestionHow to add scrollbar on a view in SDI Pin
zhonglin.liang11-Apr-06 23:06
zhonglin.liang11-Apr-06 23:06 
AnswerRe: How to add scrollbar on a view in SDI Pin
Hamid_RT12-Apr-06 0:56
Hamid_RT12-Apr-06 0:56 

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.