Calling com component from Visual studio.net

I had created com components using Matlab 7.0. and they were working very fine with MSVS 2003. But due to crash of old system I have loaded WindowsXP virtual machine on new computer and again installed MSVS 2003, Matlab 7.0. and SQL 2000. I have again craeted Com component but when I call it from MSVS 2003 following error is displayed "*Error: Excel Application not setError: Unable to create COM objectData conversio n error: Real and imaginary parts must be same size and typeData conversion erro r: Complex type only defined for numeric arraysData conversion error: Sparse typ e only supported for arrays of type double or logicalData conversion error: Inde x arrays for sparse type must resolve to int32 typeData conversion error: Invali d index or dimension for sparse arrayData conversion error: Length of row index, column index, and array data must match for sparse arrayData conversion error: Unexpected error thrownData conversion error: Unknown errorWarning: Function cal l waman_cal invokes inexact match C:\MATLAB7\wct1\distrib\\wct1_mcr\Documents an d Settings\XPMUser\Desktop\work\Waman\New Folder\WAMAN_Cal.m.
Input argument "stt" is undefined.Error in ==> WAMAN_Cal at 8**BOLD TEXT* Kindly help

1 个评论

Please reformat your question to be readable. I started to reformat it for you, but you seem to have posted only fractions of the error messages, so I do not see any consistent format to put them in.

回答(2 个)

Hi,
what are you trying exactly? As far as I get it you are using MATLAB Builder NE to create a COM DLL (not excel add in!) which you like to call from C#. If so, why don't you create a .NET assembly with the BUILDER NE. This is easier to call from C#.

此问题已关闭。

提问:

2011-7-19

关闭:

2021-8-20

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by