Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Right-click menu item to access *.chm manual topic? Pin
Blake Miller27-Aug-04 7:25
Blake Miller27-Aug-04 7:25 
GeneralRe: Right-click menu item to access *.chm manual topic? Pin
Eduardo M. Rey27-Aug-04 8:25
Eduardo M. Rey27-Aug-04 8:25 
GeneralCan't open the table in the database. Pin
chocm26-Aug-04 3:11
chocm26-Aug-04 3:11 
GeneralRe: Can't open the table in the database. Pin
David Crow26-Aug-04 4:00
David Crow26-Aug-04 4:00 
GeneralRe: Can't open the table in the database. Pin
chocm29-Aug-04 3:35
chocm29-Aug-04 3:35 
GeneralRe: Can't open the table in the database. Pin
chocm31-Aug-04 2:07
chocm31-Aug-04 2:07 
GeneralRe: Can't open the table in the database. Pin
David Crow31-Aug-04 2:28
David Crow31-Aug-04 2:28 
QuestionWhat after GetActiveObject( …. ) ? Pin
anderslundsgard26-Aug-04 3:01
anderslundsgard26-Aug-04 3:01 
I’m trying to get a handle to an wrapped ActiveX class like this:
(The ActiveX is running inside AutoCad.)
<br />
_DDataBaseTreeView *pPE; // the ActiveX class<br />
HRESULT res;<br />
<br />
CLSID clsid;<br />
<br />
CLSIDFromProgID(L"NetModeler.DataBaseTreeView.1", &clsid);  <br />
IUnknown *pUnk = NULL;<br />
IDispatch *pDisp = NULL;<br />
<br />
HRESULT hr = GetActiveObject(clsid, NULL, (IUnknown**)&pPE);//pUnk);<br />
<br />
if(SUCCEEDED(hr)) <br />
{<br />
hr = pUnk->QueryInterface(IID_IDispatch, (void**)&pDisp ); <br />
	if( SUCCEEDED(hr) )<br />
	{<br />
		// this happens if the ActiveX is running!!<br />
	}<br />
		<br />
}<br />
	<br />
_variant_t var;<br />
<br />
//pPE->AttachDispatch( pDisp );<br />
<br />
var = pPE->Func(); // CRACH!!!!!!!!!!!!<br />

What have I missed?

I want to have a handle to an already running ActiveX inside AutoCad.


_____________________________

...and justice for all

APe
AnswerRe: What after GetActiveObject( &#8230;. ) ? Pin
4apai26-Aug-04 3:16
4apai26-Aug-04 3:16 
GeneralRe: What after GetActiveObject( &#8230;. ) ? Pin
anderslundsgard26-Aug-04 5:16
anderslundsgard26-Aug-04 5:16 
GeneralRe: What after GetActiveObject( &#8230;. ) ? Pin
4apai26-Aug-04 22:39
4apai26-Aug-04 22:39 
GeneralRe: What after GetActiveObject( &#8230;. ) ? Pin
anderslundsgard26-Aug-04 23:04
anderslundsgard26-Aug-04 23:04 
GeneralBinarytree Pin
.NetRams26-Aug-04 2:21
.NetRams26-Aug-04 2:21 
GeneralRe: Binarytree Pin
4apai26-Aug-04 2:51
4apai26-Aug-04 2:51 
GeneralCListBox, Items underline Pin
Member 130581126-Aug-04 2:14
Member 130581126-Aug-04 2:14 
GeneralRe: CListBox, Items underline Pin
David Salter26-Aug-04 2:45
David Salter26-Aug-04 2:45 
GeneralRe: CListBox, Items underline Pin
Member 130581126-Aug-04 23:46
Member 130581126-Aug-04 23:46 
GeneralRe: CListBox, Items underline Pin
rotu27-Aug-04 0:37
rotu27-Aug-04 0:37 
GeneralInstallShield Developer 7 launching multiple msi from setup/master msi Pin
TssPrasad26-Aug-04 2:14
sussTssPrasad26-Aug-04 2:14 
GeneralUnable to create a server Pin
Anonymous26-Aug-04 2:08
Anonymous26-Aug-04 2:08 
GeneralRe: Unable to create a server Pin
4apai26-Aug-04 2:25
4apai26-Aug-04 2:25 
GeneralRe: Unable to create a server Pin
Tom Wright26-Aug-04 6:41
Tom Wright26-Aug-04 6:41 
GeneralRe: Unable to create a server Pin
palbano26-Aug-04 8:36
palbano26-Aug-04 8:36 
GeneralRe: Unable to create a server Pin
Anonymous26-Aug-04 16:20
Anonymous26-Aug-04 16:20 
GeneralRe: Unable to create a server Pin
Anonymous26-Aug-04 17:04
Anonymous26-Aug-04 17:04 

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.