Home > Software engineering >  MFC/Matlab mixed programming problems - Could not initialize XXX
MFC/Matlab mixed programming problems - Could not initialize XXX

Time:09-19

Try the MFC and the mixture of matlab programming, according to the online example,
1. The first matlab (2019 a) wrote a simple small program

 
New=imread (" E: \ useful \ xuexiyong \ CCDsdk \ Demo - giveout \ testbak BMP ");
/r, c=size (new);
Sum1=sum (new);
X=1:1: c;
Plot (x, sum1, '- b).

Run out is a graph:


2. Then generate DLL, lib, h suffix, such as files,

In vs (2017) was added in the project properties related to the directory,
Part of the c + + code base:
 
# include "PCH. H"
#include
# include "test2. H"
Int main ()
{
if (! Test2Initialize ()) {
STD: : cout & lt; return -1;
}

STD: : cout & lt; <"Hello World! \n";
}

After the operation showed:


  • Related