[Mono-bugs] [Bug 444120] New: Use of Alias in Declare Function does not work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 12 06:13:27 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=444120


           Summary: Use of Alias in Declare Function does not work
           Product: Mono: Compilers
           Version: 1.9
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: rkvinge at novell.com
        ReportedBy: ciaran at ciarang.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


For example, definitions such as this:

Declare Ansi Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal
hWnd As IntPtr, ByVal lpClassName As String, ByVal nMaxCount As Int32) As Int32


give a compile error when there is an Alias present, but work fine otherwise.

A workaround is to use the <DllImport> syntax instead.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list