From: yucheng shu on
My problems are as follows:
1.I'm using matlab r2008a and vc 6.0 sp6.
2.I created a "c++ shared library" (there are functions such as 'sim()', 'train()' & 'newff()' inside the m file) with the deploytool.
3.In vc 6.0, when using the dll file I made, error accurs, like: unhandled exception in *.exe(KERNEL32.dll):0xE06D7363: Microsoft C++Exception.
4.I debuged it, found that error accurs at the function sim(), train() & newff();
5.I googled the problem, despit the function train() & newff(), it is seemd that the function sim() could run perfectly in dlls.
6.Then I changed the platform into matlab7.0, created the same dll by comtool, the function sim() could run correctly then, but still, there were errors at newff() and train().

can anybody help me? it really means a lot to me, and thinks for your attention.
From: Steven Lord on

"yucheng shu" <raincity212(a)gmail.com> wrote in message
news:hsr0o8$e75$1(a)fred.mathworks.com...
> My problems are as follows:
> 1.I'm using matlab r2008a and vc 6.0 sp6.
> 2.I created a "c++ shared library" (there are functions such as 'sim()',
> 'train()' & 'newff()' inside the m file) with the deploytool.
> 3.In vc 6.0, when using the dll file I made, error accurs, like: unhandled
> exception in *.exe(KERNEL32.dll):0xE06D7363: Microsoft C++Exception.
> 4.I debuged it, found that error accurs at the function sim(), train() &
> newff();
> 5.I googled the problem, despit the function train() & newff(), it is
> seemd that the function sim() could run perfectly in dlls.
> 6.Then I changed the platform into matlab7.0, created the same dll by
> comtool, the function sim() could run correctly then, but still, there
> were errors at newff() and train().
>
> can anybody help me? it really means a lot to me, and thinks for your
> attention.

Neural Network Toolbox supports compilation of pre-trained networks; it does
not support compiling network training functions.

http://www.mathworks.com/products/compiler/compiler_support.html

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ