[Interest] '__fastcall' incompatible with the '/clr'

2012-10-31 Thread alexander golks
Hello list,

i am evaluating a possible change of vs2005+qt-4.4.3 to at least 
vs2010+qt-4.8.3, and perhaps qt5.X some time later on...

several of our projects use managed code, too, so we must compile with /clr 
option, but with this last qt version i get many warnings like:

  ..\qchar.h(311): warning C4561: '__fastcall' incompatible with the '/clr' 
  option: converting to '__stdcall'

i have searched the list and internet, but didn't find any explanation which
really says: yes, this is NO problem. as long

can someone give me some more hints or explanations?
is it just a problem when calling qt methods from managed code, or will it be 
save due to the conversion to __stdcall, or is there more to this problem?

can i work around by not compiling whole modules with /clr but rather switch the
mode of the code parts explicitly with e.g.:

  // unmanaged
  #pragma managed(push on)
  // some managed classes used
  #pragma managed(pop)
  // unmanaged, qt classed used, again

i would appreciate some informations  thanks for listening
alex

-- 
The significant problems we face cannot be solved at the
 same level of thinking we were at when we created them.
-Albert Einstein


signature.asc
Description: PGP signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] '__fastcall' incompatible with the '/clr'

2012-10-31 Thread Thiago Macieira
On quarta-feira, 31 de outubro de 2012 10.10.58, alexander golks wrote:
   ..\qchar.h(311): warning C4561: '__fastcall' incompatible with the '/clr' 
 option: converting to '__stdcall'
 
 i have searched the list and internet, but didn't find any explanation which
 really says: yes, this is NO problem. as long
 
 can someone give me some more hints or explanations?
 is it just a problem when calling qt methods from managed code, or will it
 be  save due to the conversion to __stdcall, or is there more to this
 problem?

You simply cannot call those methods that are __fastcall from managed code.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest