Re: using matlab compiled dll without java support



On Mon, 29 Dec 2008 11:10:20 -0500, marina <elizabeth.h1@xxxxxxxxxxx> wrote:

hello
I am using matlab compiled dll from my c application.
And i want to initalize the MCR without using java support, so I am doing the following :

const char* opt[]={"-nojvm"};
bool initm=mclInitializeApplication(opt,0);

and I am calling M file that do plot. The plot window appears but with the menu bar and all controls on it for zooming and rotating the plot.
So it seems that java is loaded after all, and the plot window is sun window although I am initalizing with -nojvm.
Why is this? How to make to initilaize without java?
thank u

From the doc:

bool mclInitializeApplication(const char **options, int count);

mclInitializeApplication. Takes an array of strings of user-settable options (these are the very same options that can be provided to mcc via the -R option) and a count of the number of options (the length of the option array). Returns true for success and false for failure.


Looks like you ought to use
bool initm=mclInitializeApplication(opt,1)
.



Relevant Pages

  • using matlab compiled dll without java support
    ... And i want to initalize the MCR without using java support, so I am doing the following: ... So it seems that java is loaded after all, and the plot window is sun window although I am initalizing with -nojvm. ...
    (comp.soft-sys.matlab)
  • Re: Java outperforms C++?
    ... I didn't know that bool was so inefficient ... What we have is still really transliterated Java. ... directly instead of using the base class method to do so, ...
    (microsoft.public.vc.language)
  • Replace bool with int in a dll used in multi-languages
    ... I have a dll that is beeing called by C++, VBA, Java and C# ... One of my customers does not like that I have bool in the argument list ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Object serialization and NetworkStream - extraneous characters in output
    ... public static int Main ... bool done = false; ... TcpClient client = listener.AcceptTcpClient; ... returns output identical to the Java client. ...
    (microsoft.public.dotnet.framework)
  • Re: 1 or 1/0 doesnt raise an exception
    ... obtain complete evaluation in Java, you use & rather than && ... ... Although & IS the bitwise-AND operator in Java: ... bitwise for int and Boolean for bool, and in both cases they are strict. ...
    (comp.lang.python)