VB statment to C# statment..
-
I want to convert this code from vb.net to c#.net:
Declare Function ExitWindowEx Lib "User32" (Byval l as long ,Byval s as long ) as long
or this:Declare Function FormatMessage Lib "kernel32" Alias _ "FormatMessageA" (ByVal dwFlags As Int32, ByVal lpSource As Int32, _ ByVal dwMessageId As Int32, ByVal dwLanguageId As Int32, _ ByVal lpBuffer As StringBuilder, ByVal nSize As Int32, ByVal Arguments As Int32) _ As Int32
what is equal forDeclare
andlib
in C#? Regards'Amir Jalaly life is tow days' one is paid for love someone ' and one day is paid for hate him' -
I want to convert this code from vb.net to c#.net:
Declare Function ExitWindowEx Lib "User32" (Byval l as long ,Byval s as long ) as long
or this:Declare Function FormatMessage Lib "kernel32" Alias _ "FormatMessageA" (ByVal dwFlags As Int32, ByVal lpSource As Int32, _ ByVal dwMessageId As Int32, ByVal dwLanguageId As Int32, _ ByVal lpBuffer As StringBuilder, ByVal nSize As Int32, ByVal Arguments As Int32) _ As Int32
what is equal forDeclare
andlib
in C#? Regards'Amir Jalaly life is tow days' one is paid for love someone ' and one day is paid for hate him'Amirjalaly wrote: what is equal for Declare and lib in C#? Check the documentation for DllImportAttribute Class[^]. - Nick Parker
My BlogLast time I checked, all programmers have selective ignorance. I know nothing about 3D graphics. I know a lot about COM. VB gets under people's skin because one can be ignorant of computer architecture and ASM and still get a lot done. - Don Box