Re: Resource for newbie Matlab Builder for COM and ASP .Net programming
- From: "Tom Boyd" <thomas.boyd@xxxxxxxxxxxx>
- Date: Mon, 16 Jan 2006 10:06:46 -0500
Juan,
Heck of a product for $3.5K, huh? I had this same difficulty and
through a lot of pain and suffering came up with this general scheme.
Create your dll. Make sure you install it to your system using the
packager or directly using a dos window (can't remember the command
right now, but it's in the COM builder docs)
Add your dll as a reference in your project.
At the beginning of your class, make a private variable of type
xxxxx.xxxxclass (i.e. your dll with it's class declaration). Mine was
something like:
Private myXXX as IRMS05.IRMS05class
Then in my sub, I declared again: myXXX = New
IRMS05.IRMS05classClass (it pulls the second Class on the id from the
reference).
Then use this sytax (enclose in Try catch to be safe):
Call myXXX.methodname(1, YYYY, ZZZZ). The intellisense should clue
you into what is an input value (i.e. YYYY) and what is an output
value (i.e. ZZZZ). ComBuilder is supposed to provide this info in
the COM object. Once you type in myXXX and the . , you should see
your m-file methods listed (i.e. what I call methodname). If ZZZ is
your output, you must obviously declare it somewhere in the sub or as
a class variable (i.e. within the scope of your method call).
Give it a try and if you have more problems, let me know
Tom
Juan M wrote:
>
>
> I am new to Builder COM and ASP .NET and need to write a web
> application for a Matlab calculations we have.
>
> I built the dll based on the various .M files I need. After
> that...
> I haven't found any documentation on how to proceed after that.
> The
> documentation fo Builder for COM doesn't have anything for Web
> deployment. However, Mathworks has a video demo for an example
> which
> is ok but I would like to look at some code or more resources "How
> To's".
>
> I would greatly appreciate a pointer to any resources to help me
> program in ASP with the Matlab functions.
.
- References:
- Prev by Date: Re: Indexing things other than variables
- Next by Date: Re: [Q] Question about timer object on start time?
- Previous by thread: Resource for newbie Matlab Builder for COM and ASP .Net programming
- Next by thread: Neural Network to recognize speech
- Index(es):
Relevant Pages
|