Thread Subject: matlab and visual basic 6

Subject: matlab and visual basic 6

From: ahmed

Date: 5 Mar, 2008 07:14:04

Message: 1 of 2

hello

i write m file function in matlab (version 7 sp14) for
summing two variables. i test this function in matlab and
working very good without errors. i make a dll file using
comtool in matlab to call this function in visual basic
version 6. also i tested in visual basic 6 and working
good.

my problem is this function in visual basic working good
in the first time. so when i close my project and open it
again this function send to me error and not give me the
result. also in the second time when loading the file
visual basic make a beep

i don't know wat is the problem

 

Subject: matlab and visual basic 6

From: Villamide Bego

Date: 20 May, 2008 16:56:02

Message: 2 of 2

Hello Ahmed,

I have a similar problem as yours. I have a project
written on Matlab 7 R14 sp3. I use the comtool with C++
compiler version 6.0. This project is divided into 5
subprojects, i.e., many functions grouped in 5 dlls. My
problem appears when i use two functions from different
dlls, one gives an error while the other runs ok.

did you finally find the solution to your problem?

thanks in advance.

Bego?a.





"Ahmed " <mogwari2000@yahoo.com> wrote in message
<fqlh7r$r16$1@fred.mathworks.com>...
> hello
>
> i write m file function in matlab (version 7 sp14) for
> summing two variables. i test this function in matlab
and
> working very good without errors. i make a dll file
using
> comtool in matlab to call this function in visual basic
> version 6. also i tested in visual basic 6 and working
> good.
>
> my problem is this function in visual basic working good
> in the first time. so when i close my project and open
it
> again this function send to me error and not give me the
> result. also in the second time when loading the file
> visual basic make a beep
>
> i don't know wat is the problem
>
>

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com