Click here to Skip to main content
15,916,042 members
Home / Discussions / COM
   

COM

 
QuestionAccessing file system in client with .net winform control used as Activex in page Pin
Daniel Santillanes18-Jan-06 13:28
professionalDaniel Santillanes18-Jan-06 13:28 
QuestionSigning Assemblies with strong names Pin
oceanexplorer18-Jan-06 11:46
oceanexplorer18-Jan-06 11:46 
QuestionSet properties in the all ActiveX instances Pin
Andrey200617-Jan-06 23:03
Andrey200617-Jan-06 23:03 
QuestionHow to Debug the dependency dll from the vb Pin
srinu.m17-Jan-06 18:05
srinu.m17-Jan-06 18:05 
QuestionHow to get http response header from IE WebBrowser Control ? Pin
realroot16-Jan-06 18:23
realroot16-Jan-06 18:23 
AnswerRe: How to get http response header from IE WebBrowser Control ? Pin
Stephen Hewitt17-Jan-06 17:46
Stephen Hewitt17-Jan-06 17:46 
GeneralRe: How to get http response header from IE WebBrowser Control ? Pin
realroot17-Jan-06 20:39
realroot17-Jan-06 20:39 
QuestionMatlab ActiveX Variant Datatype Pin
Tolpan16-Jan-06 3:22
Tolpan16-Jan-06 3:22 
Hi,
I try to use a Dragonfly ActiveX - XY-Plotter in Matlab SP3.
You will find the Dragonfly ActiveX Library here: http://www.dragonflydas.com/

It's possible to set the properties of the object like colour, grid etc.
I have the problem to plot the data, because I have to call the function PlotXYData of the object with datatype Variant.
I use cell arrays or struct arrays to plot the data, but it didn't work.
I only get the bool value false back.
May you help me, how I should handle functions with datatype Variant in Matlab?

Best Regards

Tolpan


The Matlabcode:

dfpos = get(0,'DefaultFigurePosition');

hfig = figure('Position', dfpos,'Menu', 'none','Name', 'ActX-Test');


hXYChart = actxcontrol('Scope.XYChart.1',[0 0 0 0],hfig);


posfig = get(hfig,'Position'); % Clientfläche des Parent-Windows


sizeactx = [0 0 1 1].*posfig([3 4 3 4]); % Berechnung der ActX-Element-Fläche

move(hXYChart, sizeactx);


hXYChart.invoke('ResetAll'); % Eventuelle Voreinstellungen zurücksetzen

hXYChart.set('bkColor', 140000); % Farbeinstellungen

hXYChart.set('PlotBackgroundColor', 60000);








hXYCurveProp = actxserver('Scope.XYCurveProp.1');

hXYCurveProp.set('Name', 'Curve1');

hXYCurveProp.set('Key', 'Curve1');

hXYCurveProp.set('Unit', 'm');

hXYCurveProp.set('UnitFactor', 1);

hXYCurveProp.set('Max', 100);

hXYCurveProp.set('Min', 0);

hXYCurveProp.set('Color', 0);

hXYCurveProp.set('Width', 1);

hXYCurveProp.set('LineStyle', 0);

hXYCurveProp.set('CurveStyle', 0);

hXYCurveProp.set('PointSize', 6);

hXYCurveProp.set('PointStyle', 2);




% Kurve zum XYChart hinzufügen:

hXYChart.invoke('AddCurve', hXYCurveProp)



% Zeilenvektoren erzeugen:

x = [0 10 20 30 40 50 60 70 80 90 100];

y = [0 10 20 30 40 50 60 70 80 90 100];


xv=num2cell(x);

yv=num2cell(y);

size=length(x);

a=hXYChart.invoke('PlotXYData', 'Curve1', size, xv,yv)



The methods of the object are:

AddCurve = bool AddCurve(handle, handle)
GetCurveProperties = [bool, handle] GetCurveProperties(handle, string)
PlotXYData = bool PlotXYData(handle, string, int32, Variant, Variant)
RemoveCurve = bool RemoveCurve(handle, string)
ResetAll = void ResetAll(handle)
ResetCurve = void ResetCurve(handle, string)
SetAreaCurveTop = void SetAreaCurveTop(handle, string)
SetCurveProp = bool SetCurveProp(handle, string, handle)
hWnd = int32 hWnd(handle)


QuestionPlease help : Speech API COM Component .Net Pin
naresh_pandey1316-Jan-06 1:23
naresh_pandey1316-Jan-06 1:23 
QuestionI want to learn COM ? Pin
vikas amin16-Jan-06 0:55
vikas amin16-Jan-06 0:55 
AnswerRe: I want to learn COM ? Pin
Gizzo16-Jan-06 4:54
Gizzo16-Jan-06 4:54 
GeneralRe: I want to learn COM ? Pin
vikas amin17-Jan-06 0:51
vikas amin17-Jan-06 0:51 
QuestionMFC DLL with automation in VC++ .NET 2003 Pin
Mila02510-Jan-06 19:53
Mila02510-Jan-06 19:53 
QuestionATL-Objects can't have multiple instances Pin
hvse10-Jan-06 0:02
hvse10-Jan-06 0:02 
AnswerRe: ATL-Objects can't have multiple instances Pin
Stephen Hewitt10-Jan-06 12:03
Stephen Hewitt10-Jan-06 12:03 
QuestionDrag and Drop Pin
Anil_vvs9-Jan-06 23:36
Anil_vvs9-Jan-06 23:36 
QuestionCOM Interdependency Pin
msumit8-Jan-06 16:46
msumit8-Jan-06 16:46 
AnswerRe: COM Interdependency Pin
Stephen Hewitt10-Jan-06 12:05
Stephen Hewitt10-Jan-06 12:05 
GeneralRe: COM Interdependency Pin
msumit12-Jan-06 7:46
msumit12-Jan-06 7:46 
AnswerRe: COM Interdependency Pin
Roger Stoltz12-Jan-06 22:05
Roger Stoltz12-Jan-06 22:05 
AnswerRe: COM Interdependency Pin
Skond20-Jan-06 5:38
Skond20-Jan-06 5:38 
Questionopeneing popwindow as in parent wind using AxWebBrowser Pin
Sufyan_shani6-Jan-06 19:31
Sufyan_shani6-Jan-06 19:31 
QuestionCalling COM DLL in Pocket PC Pin
Logan from Singapore5-Jan-06 0:51
Logan from Singapore5-Jan-06 0:51 
NewsAt Last! My DCOM Tutorial for VS.NET is Here! Pin
Brian C Hart30-Dec-05 22:30
professionalBrian C Hart30-Dec-05 22:30 
QuestionIWebBrowser2::SetUIHandler doesn't call back to get IDocHostUIHandler Pin
Bernie Pallek30-Dec-05 7:04
Bernie Pallek30-Dec-05 7: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.