2012年10月5日

deploytool_C#(deploytool的使用)

摘要: >> deploytoolC#中调用:引入动态链接库 MWArray.dll路径:D:\Program Files\MATLAB\R2011b\toolbox\dotnetbuilder\bin\win32\v2.0\MWArray.dll引入动态链接库matlab2donet.dll上面编译生成的。usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingMathWorks.MATLAB.NET.Arrays;usingMathWorks.MATLAB.NET.Utilit 阅读全文

posted @ 2012-10-05 21:31 daxiaoyuyu 阅读(524) 评论(0) 推荐(0)

IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds

摘要: 工程(Project)->属性(Properties)->配置属性(Configuration Properties)->c/c++->代码生成(Code Generation)->运行时库(Use run-time library)->多线程调试DLL(/MDd)(Multithreaded DLL/Debug Multithreaded DLL)。有时候需要改成其它的,再改回多线程调试DLL 阅读全文

posted @ 2012-10-05 21:27 daxiaoyuyu 阅读(1543) 评论(0) 推荐(0)

VS2010里调试有时候会出现预编译头通不过的现象,那按一下F7调试,看看什么情况。

摘要: VS2010里调试有时候会出现预编译头通不过的现象,那按一下F7调试,看看什么情况。 阅读全文

posted @ 2012-10-05 21:26 daxiaoyuyu 阅读(240) 评论(0) 推荐(0)

MatCom_C++(MultiThread)解决线程的冲突问题

摘要: MatCom_C++(MultiThread)解决线程的冲突问题一.配置matlib.h 和 v4501v.lib文件二.编程:1.在XXApp类中,添加头文件#include<matlib.h> 在XXDlg类中,添加头文件#include<matlib.h>2. 在XXApp类的初始化实例函数中:BOOLCMatlab_MultithreadApp::InitInstance(){ //在创建对话框之前,初始化MATCOM initM(MATCOM_VERSION); CMatlab_MultithreadDlgdlg;}3.在整个程序结束之前,需要调用exitM( 阅读全文

posted @ 2012-10-05 21:19 daxiaoyuyu 阅读(680) 评论(0) 推荐(0)

MatCom_C++(MatCom_C++混合编程)

摘要: MatCom_C++混合编程安装注意:机子上一定要有VC6.0的编译器(如何安装,参考网上下载的文档)实践部分:文件的配置:一.对于VC++6.01.拷贝matlib.h和v450v.lib文件到当前工作路径(不拷贝也行)2.在VC6.0的Workspace中直接添加v450v.lib 或者:Tools->options->Directories-:Library files ->添加库文件v4501v所在的路径 。然后 Project->Settings->Link:在Object/library modules下添加入v4501v.lib3.Tools-> 阅读全文

posted @ 2012-10-05 18:07 daxiaoyuyu 阅读(964) 评论(0) 推荐(0)

Compiler_C++(Matlab_C++混合编程)

摘要: Compiler_C++混合编程针对我的项目:matlab_compiler2.一.class_Mfunc.m文件的源码:function [maxf minf] = class_Mfunc(f1,f2)t = linspace(0,1,400);y1 = sin(2*pi*f1*t);y2 = cos(2*pi*f1*t);plot(t,y1);figure %分开画出第二条曲线plot(t,y2);maxf = max(f1,f2)minf = min(f1,f2)end>> mbuild –setup>> mcc -l class_Mfunc.m %-l不是数字1 阅读全文

posted @ 2012-10-05 18:02 daxiaoyuyu 阅读(1277) 评论(0) 推荐(0)

导航