How can I get "AddInPtr" from "ApplicationPtr"

Hello,

 

I have an AddIn running in Edge (V17) with a command (cmdID = 0). now I need to start this command from an external app.

 

ApplicationPtr app;

 

AddInsPtr pAddins = app->GetAddIns ( );

 

int Count = pAddins->GetCount();

 

for(int i = 1; i

{

AddInPtr pAddin = pAddins->Item(i); /////Error!!!

}

 

 

/////////////

pAddins->Item(i) not work!

 

 

Posted by: Julia Schneider
Post date: 5/25/2007 12:15:42 AM

2 REPLIES

RE: How can I get "AddInPtr" from "ApplicationPtr"

Posted By Julia Schneider on 5/25/2007 5:15:41 AM

Hello,

 

I have an AddIn running in Edge (V17) with a command (cmdID = 0). now I need to start this command from an external app.

 

ApplicationPtr app;

 

AddInsPtr pAddins = app->GetAddIns ( );

 

int Count = pAddins->GetCount();

 

for(int i = 1; i

{

AddInPtr pAddin = pAddins->Item(i); /////Error!!!

}

 

 

/////////////

pAddins->Item(i) not work!

 

 

 

Julia,

 

Use long instead of int.

 

long Count = pAddins->GetCount();

 

for(long i = 1; i

{

AddInPtr pAddin = pAddins->Item(i); /////Error!!!

}

 

 

Posted by: Jason Newell
Post date: 5/25/2007 12:28:02 AM

RE: How can I get "AddInPtr" from "ApplicationPtr"

Thanks a lot!!!

 

Posted by: Julia Schneider
Post date: 5/25/2007 12:39:26 AM