Re: Build executable from GUI which uses an existi
- From: "Phil W" <nospam@xxxxxxxxxx>
- Date: Sat, 29 Oct 2005 18:53:14 -0400
Managed to answer my own question, at least partially.
The problem compiling a standalone program that uses VFM.dll goes
away if you rebuild the VFM.dll using mex on the version of matlab
that you use the compiler with. In other words, it seems to be a
problem if you try to compile a program that uses the distributed
dll.
Yet again this seems to be a case where Matlab works fine in one
instance (ie. from the command window) and then fails inexplicably in
another, and there doesn't seem to be any way to find any advice on
it on the support website.
to recompile the dll, use:
mex main.cpp CaptureFrame.cpp ImgBuffer.cpp MenuItem.cpp stdafx.cpp
meximports.lib vfw32.lib
then rename the created main.dll as vfm.dll (sure there's a compiler
switch to do this, but frankly can't be bothered spending another
second looking through the documentation after the amount of time
this problem has wasted)
Hope this helps
Phil
Phil W wrote:
>
>
> Has anyone managed to get to the bottom of this? I'm having the
> same
> problem - I have GUI that accesses the webcam via VFM, which works
> well inside Matlab and compiles without warnings, but when I
> compile
> and run the standalone version, the program can't access the
> webcam.
>
> Any thoughts? Is it even possible to call dlls from Matlab
> standalone programs?
>
> Many thanks
> Phil
.
- Prev by Date: Alternative to equalize function of MATLAB 7
- Next by Date: Conditional Quantiles in ScatterPlot??
- Previous by thread: Alternative to equalize function of MATLAB 7
- Next by thread: Conditional Quantiles in ScatterPlot??
- Index(es):
Relevant Pages
|