Click here to Skip to main content
15,889,034 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC/C++ caption change SetWindowText() Pin
frexxx15-Dec-03 4:49
frexxx15-Dec-03 4:49 
GeneralRe: MFC/C++ caption change SetWindowText() Pin
David Crow15-Dec-03 6:45
David Crow15-Dec-03 6:45 
GeneralRe: MFC/C++ caption change SetWindowText() Pin
frexxx15-Dec-03 8:00
frexxx15-Dec-03 8:00 
GeneralRe: MFC/C++ caption change SetWindowText() Pin
David Crow15-Dec-03 8:03
David Crow15-Dec-03 8:03 
GeneralA going to lose focus problem Pin
morefalt15-Dec-03 4:28
morefalt15-Dec-03 4:28 
GeneralRe: A going to lose focus problem Pin
jhwurmbach15-Dec-03 4:53
jhwurmbach15-Dec-03 4:53 
GeneralHelp! dev studio add in problem! Pin
YaronNir15-Dec-03 3:08
YaronNir15-Dec-03 3:08 
Generalneed some help for MATLAB C++ Pin
Vincent Sim15-Dec-03 1:41
Vincent Sim15-Dec-03 1:41 
hi everybody,

I am newbie in matlab C++. I am facing some problems during my work. I followed the Matlab manual in the mathworks website and wrote the code like this: --->>

mwArray A = 5;
int i, j = A;
for (i=0; i < j; i++)
cout << "Counting: " << i << endl;


after compiling, the visual C++ studio shows

d:\others\im\me.cpp(29) : error C2440: 'initializing' : cannot convert from 'class mwArray' to 'int'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

there is another problem:

i wrote in MATLAB C++

mArray x;

mArray X1;
X1 = x(1,colon());
max1=max(X1);

mwArray X2;
X2 =x(2,colon());
max2=max(X2);

max3=max(max1,max2);

after compiling,

D:\others\im\me.cpp(99) : warning C4003: not enough actual parameters for macro 'max'
D:\others\im\me.cpp(99) : error C2059: syntax error : ')'
D:\others\im\me.cpp(103) : warning C4003: not enough actual parameters for macro 'max'
D:\others\im\me.cpp(103) : error C2059: syntax error : ')'
D:\others\im\me.cpp(105) : error C2440: '?' : cannot convert from 'class mwArray' to 'bool'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\others\im\me.cpp(105) : fatal error C1903: unable to recover from previous error(s); stopping compilation




I would like to know how I can solve the above-mentioned problems. Thank you for your guidance.

I am using MATLAB 6.1 , MS Visual C++ 6.0 , Window 2000





vincent sim
GeneralRe: need some help for MATLAB C++ Pin
JWood15-Dec-03 15:43
JWood15-Dec-03 15:43 
Generalkodak imgedit Pin
satadru15-Dec-03 0:30
satadru15-Dec-03 0:30 
GeneralRe: kodak imgedit Pin
Michael P Butler15-Dec-03 0:37
Michael P Butler15-Dec-03 0:37 
GeneralRe: kodak imgedit Pin
satadru15-Dec-03 16:42
satadru15-Dec-03 16:42 
QuestionDetecting Resolution Change? Pin
Dov Sherman14-Dec-03 23:55
Dov Sherman14-Dec-03 23:55 
AnswerRe: Detecting Resolution Change? Pin
satadru15-Dec-03 0:27
satadru15-Dec-03 0:27 
AnswerRe: Detecting Resolution Change? Pin
Michael P Butler15-Dec-03 0:35
Michael P Butler15-Dec-03 0:35 
GeneralRedrawing window -help reqd Pin
satadru14-Dec-03 23:09
satadru14-Dec-03 23:09 
GeneralRe: Redrawing window -help reqd Pin
Steen Krogsgaard15-Dec-03 1:45
Steen Krogsgaard15-Dec-03 1:45 
QuestionCFileDialog have a preview function? Pin
Grrrr14-Dec-03 22:40
Grrrr14-Dec-03 22:40 
AnswerRe: CFileDialog have a preview function? Pin
Ravi Bhavnani15-Dec-03 7:19
professionalRavi Bhavnani15-Dec-03 7:19 
GeneralDev Studio Add-in question Pin
YaronNir14-Dec-03 21:59
YaronNir14-Dec-03 21:59 
GeneralRe: Dev Studio Add-in question Pin
Roman Keskenti [SmoCoder]14-Dec-03 22:16
Roman Keskenti [SmoCoder]14-Dec-03 22:16 
GeneralRe: Dev Studio Add-in question Pin
YaronNir15-Dec-03 3:26
YaronNir15-Dec-03 3:26 
QuestionDCOM/COM+ without ATL? Pin
Kene14-Dec-03 21:32
Kene14-Dec-03 21:32 
AnswerRe: DCOM/COM+ without ATL? Pin
Christian Graus15-Dec-03 8:52
protectorChristian Graus15-Dec-03 8:52 
GeneralRe: DCOM/COM+ without ATL? Pin
Kene15-Dec-03 21:44
Kene15-Dec-03 21:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.