MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

MathLink and VC++ 2008

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83994] MathLink and VC++ 2008
  • From: Gao.Han at news1.tudelft.nl
  • Date: Thu, 6 Dec 2007 02:47:30 -0500 (EST)
  • Organization: www.tudelft.nl

Does anybody have experience with getting MathLink running under VC++ 2008? I 
got major troubles with it. I started with the MathLink package that came 
with Mathematica 6.0 (mprep rev 12). I've put all the files in the right 
place, and added an entry for the linker to link with the library. Since i 
could not get it working, i switched to the mathlink version that came with 
5.2 (MPrep rev 11). 

The errors i am currently running into are these:

template.cpp(70) : error C2664: 'GetModuleHandleW' : cannot convert parameter 
1 from 'const char [7]' to 'LPCWSTR'. Types pointed to are unrelated; 
conversion requires reinterpret_cast, C-style cast or function-style cast
template.cpp(73) : error C2664: 'GetModuleFileNameW' : cannot convert 
parameter 2 from 'char [260]' to 'LPWCH' Types pointed to are unrelated; 
conversion requires reinterpret_cast, C-style cast or function-style cast
template.cpp(83) : error C2664: 'LoadIconW' : cannot convert parameter 2 from 
'const char [7]' to 'LPCWSTR' Types pointed to are unrelated; conversion 
requires reinterpret_cast, C-style cast or function-style cast
template.cpp(88) : error C2440: '=' : cannot convert from 'LPSTR' to 
'LPCWSTR' Types pointed to are unrelated; conversion requires 
reinterpret_cast, C-style cast or function-style cast

and so on....


Anybody any sugestions?

Sincerely,
Gao Han

-----------------------------------------------------------
Posted using Android Newsgroup Downloader: 
    .... http://www.sb-software.com/android 
-----------------------------------------------------------


  • Prev by Date: Re: Exporting Sound
  • Next by Date: Re: expressions list -> equations list
  • Previous by thread: Re: Mathematica 6 installation problem on Vista.
  • Next by thread: Re: MathLink and VC++ 2008