Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. VB statment to C# statment..

VB statment to C# statment..

Scheduled Pinned Locked Moved C#
csharpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amirjalaly
    wrote on last edited by
    #1

    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 for Declare and lib in C#? Regards'Amir Jalaly life is tow days' one is paid for love someone ' and one day is paid for hate him'

    N 1 Reply Last reply
    0
    • A Amirjalaly

      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 for Declare and lib in C#? Regards'Amir Jalaly life is tow days' one is paid for love someone ' and one day is paid for hate him'

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Amirjalaly wrote: what is equal for Declare and lib in C#? Check the documentation for DllImportAttribute Class[^]. - Nick Parker
        My Blog

      Last 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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups