MathGroup Archive 2007

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

Search the Archive

Re: MathLink and VC++ 2008

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84007] Re: MathLink and VC++ 2008
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 6 Dec 2007 07:21:19 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <fj8a5b$age$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

a) no

b) that is a Microsoft defect. You must switch of the UNICODE macros
    with the $(NOINHERIT) preprocessor directive.

Regards
   Jens

Gao.Han at news1.tudelft.nl wrote:
> 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: Finding position of an element in a list:
  • Next by Date: Re: Finding position of an element in a list:
  • Previous by thread: MathLink and VC++ 2008
  • Next by thread: Re: MathLink and VC++ 2008