e******n 发帖数: 439 | 1 【 以下文字转载自 Mathematics 讨论区 】
发信人: electron (奏是一马甲), 信区: Mathematics
标 题: 有谁知道怎么把matlab和VC联接着一起用?
发信站: BBS 未名空间站 (Sat Mar 14 01:04:04 2009)
matlab编译了一个看不懂的c文件
想在vc中调用它 |
a****l 发帖数: 8211 | 2 there are too many ways to do...
【在 e******n 的大作中提到】 : 【 以下文字转载自 Mathematics 讨论区 】 : 发信人: electron (奏是一马甲), 信区: Mathematics : 标 题: 有谁知道怎么把matlab和VC联接着一起用? : 发信站: BBS 未名空间站 (Sat Mar 14 01:04:04 2009) : matlab编译了一个看不懂的c文件 : 想在vc中调用它
|
f**y 发帖数: 138 | 3 Not so easy. Programs written with MFC are usually not compatible with
MatLab's graphics library. Such programs will crash at run time if linked
with dll built with MatLab's compiler.
I only succeeded once with MatLab's old 2.x compiler which compiled m files
into tons of C or C++ files. Then made a wrapper around those C or C++ files
to provide an interface without referring to MatLab's mwArray class. Those
files were compiled into a dll with MSVC. The original MFC program linked
with this dll |