Click here to Skip to main content
15,900,666 members
Home / Discussions / COM
   

COM

 
GeneralMSChart ActiveX Control Pin
Marabou10-Mar-04 21:20
Marabou10-Mar-04 21:20 
General"interface not compatible" Pin
pelos10-Mar-04 20:33
pelos10-Mar-04 20:33 
GeneralRe: "interface not compatible" Pin
emilius1921-Mar-04 5:22
sussemilius1921-Mar-04 5:22 
QuestionHow do I access my ActiveX array from the outside? Pin
Stephen McGeown9-Mar-04 10:48
Stephen McGeown9-Mar-04 10:48 
QuestionHow can I add a tab control to a ATL Property Page? Pin
larsibam9-Mar-04 4:37
larsibam9-Mar-04 4:37 
GeneralDCOM permissioning problems Pin
Jeremy Osner9-Mar-04 2:19
Jeremy Osner9-Mar-04 2:19 
GeneralInvalid Number of Parameters?!! Pin
Member 3538108-Mar-04 17:43
Member 3538108-Mar-04 17:43 
GeneralProblem with Word automation/Shapes/AddCurve Pin
8-Mar-04 15:15
suss8-Mar-04 15:15 
Hi!

I try to do very simple thing:

- Start Word from Visual C++/MFC OLE automation
- Get Shapes object
- Use AddCurve to add Beizer curve

When I run the application, I get error message:
The specified value is out of range.

I tried to do all sorts of things, to pass different types to as COleSafeArray elements, change the value of vertices... nothing works!

When I use AddLine, everything works without a glitch.

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

_Shapes sh = wdoc.GetShapes();

COleSafeArray saRet;
DWORD numElements[2];
numElements[0] = 2;
numElements[1] = 2;

short sngArray[2][2];
sngArray[0][0] = 91;
sngArray[0][1] = 92;
sngArray[1][0] = 93; //50;
sngArray[1][1] = 94; //50;
/*sngArray[2][0] = 0; //100;
sngArray[2][1] = 0;

sngArray[3][0] = 0; //300;
sngArray[3][1] = 0;*/

long index[2];

// Create a double safe array
saRet.Create(VT_R4,2,numElements);

// Fill the array with data.
for (int iRow = 0; iRow < 2; iRow++) {
for (int iCol = 0; iCol < 2; iCol++) {
index[0]=iRow;
index[1]=iCol;
float d = sngArray[iRow][iCol];
// saRet.PutElement(index, COleVariant(d));
saRet.PutElement(index, &d);
}
}

sh.AddCurve(saRet, covOptional);
/////////////////
GeneralRe: Problem with Word automation/Shapes/AddCurve Pin
Member 3538108-Mar-04 15:22
Member 3538108-Mar-04 15:22 
GeneralRe: Problem with Word automation/Shapes/AddCurve Pin
Vi28-Mar-04 18:45
Vi28-Mar-04 18:45 
GeneralThanks, but that isn't a problem Pin
Member 3538108-Mar-04 19:10
Member 3538108-Mar-04 19:10 
GeneralRe: Thanks, but that isn't a problem Pin
Vi28-Mar-04 19:26
Vi28-Mar-04 19:26 
GeneralRe: Thanks, but that isn't a problem Pin
Member 3538108-Mar-04 23:20
Member 3538108-Mar-04 23:20 
GeneralI can't beleive that I wasted so much time with this Pin
Member 3538109-Mar-04 0:56
Member 3538109-Mar-04 0:56 
GeneralMFC executable registration. Pin
oleg638-Mar-04 12:25
professionaloleg638-Mar-04 12:25 
GeneralRe: MFC executable registration. Pin
Mike Dimmick16-Mar-04 2:31
Mike Dimmick16-Mar-04 2:31 
GeneralRe: MFC executable registration. Pin
oleg6316-Mar-04 4:14
professionaloleg6316-Mar-04 4:14 
Questionussoftproblem with COM server registration??? Pin
pelos7-Mar-04 4:41
pelos7-Mar-04 4:41 
AnswerRe: ussoftproblem with COM server registration??? Pin
Steve S7-Mar-04 22:03
Steve S7-Mar-04 22:03 
GeneralRe: ussoftproblem with COM server registration??? Pin
pelos8-Mar-04 11:37
pelos8-Mar-04 11:37 
AnswerRe: ussoftproblem with COM server registration??? Pin
Anonymous8-Mar-04 9:36
Anonymous8-Mar-04 9:36 
AnswerClass not registered Pin
pelos9-Mar-04 20:06
pelos9-Mar-04 20:06 
AnswerRe: ussoftproblem with COM server registration??? Pin
Vi29-Mar-04 20:44
Vi29-Mar-04 20:44 
GeneralRe: ussoftproblem with COM server registration??? Pin
pelos10-Mar-04 0:15
pelos10-Mar-04 0:15 
QuestionCopying an automation object? Pin
Zee man6-Mar-04 22:46
Zee man6-Mar-04 22:46 

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.