Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

A MATLAB COM OBJECT THROUGH DLL AND THEN CALL IT IN C#

Status
Not open for further replies.

qasmi

Member level 3
Member level 3
Joined
Apr 24, 2004
Messages
59
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
406
iam working on a digital image processing project and have to design filters in MATLAB, MAKE A COM OBJECT THROUGH DLL AND THEN CALL IT IN C#

>i have created a dll. using MATLAB COM Builder, but i
>got the following errors when i call the class methods
>
>#using MODIESTDll;
>public void to_grayscale()
>{
>MODIESTDll.ImgManiFiltrsClsClass neg = new
>MODIESTDll.ImgManiFiltrsClsClass();
>this.m_Bitmap = neg.negative(1,ref
>m_tempBitmap,m_Bitmap);
>}
>
>1. The best overloaded method match for
>'MODIESTDll.ImgManiFiltrsClsClass.negative(int, ref
>object, object)' has some invalid arguments
>2. Argument '2': cannot convert from 'ref
>System.Drawing.Bitmap' to 'ref object'
>
>please help me how to pass a bitmap and return a
>bitmap too, what is this 1st and second "object"
>argument, and do tell me if the attached fuction files
>are okey
>
>waiting for an urgent reply
>HAROON, FROM NUML, ISB, PK
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top