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
Walter Roberson
2011년 7월 19일
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개)
Friedrich
2011년 7월 19일
0 개 추천
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#.
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!