Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Matlab C++ Interface
Date: Sun, 8 Nov 2009 18:57:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <hd749t$fqk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257706621 16212 172.30.248.35 (8 Nov 2009 18:57:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 8 Nov 2009 18:57:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2083105
Xref: news.mathworks.com comp.soft-sys.matlab:583388


Hi all!
I use this version of Microsoft Visual C++ Express Edition
Microsoft Visual Studio 2005
Version 8.0.50727.867  
Microsoft .NET Framework
Version 2.0.50727 SP2
Installed Edition: VC Express
I use this version of Matlab:
MATLAB Version 7.8.0.347 (R2009a)
and i use this operating System: Microsoft Windows Vista Version 6.0 (Build 6001: Service Pack 1) Home premium

 I am trying to compile 'engwindemo.cpp' example  but i take this error message:

1>Compiling...
1>win.cpp
1>.\win.cpp(39) : error C2664: 'MessageBox' : cannot convert parameter 2 from 'LPSTR' to 'LPCTSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win.cpp(104) : error C2664: 'MessageBox' : cannot convert parameter 2 from 'LPSTR' to 'LPCTSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win.cpp(113) : error C2664: 'MessageBox' : cannot convert parameter 2 from 'LPSTR' to 'LPCTSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win.cpp(122) : error C2664: 'MessageBox' : cannot convert parameter 2 from 'LPSTR' to 'LPCTSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

Can anyone help me?

Thank you in advance!