Hi
posting again some news about my tests.
The only machine where i can't use this dll is Windows XP on 32 bit processors.
I can't understand why this happens.
following my c# wrapper code



thank you in adavance to anybody could help me
Qt Code:
  1. public class DllInterface
  2. {
  3. [DllImport(@"QTRender.dll", EntryPoint = "??0QTRender@@QAE@XZ")]
  4. public static extern int Init();
  5. [DllImport(@"QTRender.dll", CallingConvention = CallingConvention.StdCall)]
  6. public static extern int DrawTextGiotto([Out] byte[] c, [In][Out] ref int width, [In][Out] ref int height, [In][Out] ref float fontSize, int letterSpacing, int wordSpacing, int fontWeight, [In] byte[] Testo, int lenTesto, [In] byte[] fontName, int lenFontName, int Rfore, int Gfore, int Bfore, int Afore, int Rshadow, int Gshadow, int Bshadow, int Ashadow, QthAlign hAlign, QtvAlign vAlign);
  7.  
  8. [DllImport(@"QTRender.dll", CallingConvention = CallingConvention.StdCall)]
  9. public static extern int DrawTextInSquare([Out] byte[] c, [In][Out] ref int width, [In][Out] ref int height, [In][Out] ref float fontSize, int letterSpacing, int wordSpacing, int fontWeight, [In] byte[] Testo, int lenTesto, [In] byte[] fontName, int lenFontName, int Rfore, int Gfore, int Bfore, int Afore, int Rshadow, int Gshadow, int Bshadow, int Ashadow, QthAlign hAlign, QtvAlign vAlign);
  10.  
  11. [DllImport(@"QTRender.dll", CallingConvention = CallingConvention.StdCall)]
  12. public static extern int DrawTextGiottoFix([Out] byte[] c, [In][Out] ref int width, [In][Out] ref int height, [In][Out] ref float fontSize, int letterSpacing, int wordSpacing, int fontWeight, [In] byte[] Testo, int lenTesto, [In] byte[] fontName, int lenFontName, int Rfore, int Gfore, int Bfore, int Afore, int Rshadow, int Gshadow, int Bshadow, int Ashadow, QthAlign hAlign, QtvAlign vAlign);
  13. }
To copy to clipboard, switch view to plain text mode