Re: Resource for newbie Matlab Builder for COM and ASP .Net programming



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.
.



Relevant Pages

  • Re: Convert C-Builder program to Delphi?
    ... > quite separate from the function declaration itself. ... >this DLL ... >way the only place anything needs to be changed is in the #define macro. ... Exports SomeDLL_Open Name 'SomeDLL_Open'; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Convert C-Builder program to Delphi?
    ... > quite separate from the function declaration itself. ... >this DLL ... >way the only place anything needs to be changed is in the #define macro. ... Exports SomeDLL_Open Name 'SomeDLL_Open'; ...
    (comp.lang.cpp)
  • Re: Access crashes when calling DLL function.
    ... Change the declaration of UNZ_CHECKADDRESS to make all the LineX ... arguments "As String" instead of using the implicit $ suffix. ... I then built a simple input form (in the same mdb) that calls the ... functions from a DLL they provide. ...
    (microsoft.public.access.modulesdaovba)
  • Re: problems calling a function contained in a dll
    ... I'm having difficulties loading a dll in Microsoft Visual Studio 2003, ... If the actual compiler or system is relevant, ... junk.c:19: warning: implicit declaration of function `LoadLibraryA' ...
    (comp.lang.c)
  • Re: ActiveX DLL and Borland C++ Builder
    ... Everything runs like water using Visual Studio. ... An ActiveX Dll comes with a built-in Type Library. ... VB does not normally produce an MIDL-generated header. ... it is possible C++ Builder ...
    (microsoft.public.vb.com)