[Issue 5680] New: wrong calling convention on wsprintfA/W
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 2 02:17:21 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5680
Summary: wrong calling convention on wsprintfA/W
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: nobody at puremagic.com
ReportedBy: johnch_atms at hotmail.com
--- Comment #0 from johnch_atms at hotmail.com 2011-03-02 02:14:16 PST ---
core.sys.windows.windows exports wsprintfA and wsprintfW with extern(Windows).
However, when I attempt to import the function, OPTLINK reports (for the W
version):
Symbol Undefined _wsprintfW at 8
According to MSDN (see
http://msdn.microsoft.com/en-us/library/ms647550(v=vs.85).aspx), the function
should use the C calling convention.
So the definitions should use extern(C) instead of extern(Windows).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list