Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   P/Invoke: usually you need CharSet.Auto (via: .NET Column: Calling Win32 DLLs in C# w (https://www.delphipraxis.net/166751-p-invoke-usually-you-need-charset-auto-via-net-column-calling-win32-dlls-c-w.html)

DP News-Robot 28. Feb 2012 05:11

P/Invoke: usually you need CharSet.Auto (via: .NET Column: Calling Win32 DLLs in C# w
 
I don’t do P/Invoke often, and somehow I have trouble remembering the value of CharSet to pass with DllImport. In short,*pass CharSet.Auto unless you P/Invoke a function that is specific to CharSet.Ansi or CharSet.Unicode. The default is CharSet.Ansi, which you*usually*don’t want: when ...http://feeds.feedburner.com/~r/delph...~4/Lry3_IO2m9M

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:11 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz