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. How to define a function from WIN32 DLL in c# .

How to define a function from WIN32 DLL in c# .

Scheduled Pinned Locked Moved C#
csharptutorialquestion
3 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    dfbx
    wrote on last edited by
    #1

    i want to use a function defined in a win32 dll. which is defined as below: void Func1(int a,int b,USHORT ** VarArray); in C#, which data type should i use for the parameter " USHORT ** VarArray "?

    D 1 Reply Last reply
    0
    • D dfbx

      i want to use a function defined in a win32 dll. which is defined as below: void Func1(int a,int b,USHORT ** VarArray); in C#, which data type should i use for the parameter " USHORT ** VarArray "?

      D Offline
      D Offline
      dr TyGER Konstantin
      wrote on last edited by
      #2

      I suppose ushort [][] VarArray

      D 1 Reply Last reply
      0
      • D dr TyGER Konstantin

        I suppose ushort [][] VarArray

        D Offline
        D Offline
        dfbx
        wrote on last edited by
        #3

        i have the dllimport as below: [DllImport("DS40xxSDK.dll")] private static extern int SetOsdDisplayModeEx(IntPtr hChannelHandle,int color,bool Translucent,int param,int nLineCount,ushort[][] FormatArray); and call it as below: private void myFunc() { int number=OSDStrings.Length; ushort [] [] FormatArray=new ushort[number][]; for(int i=0;i

        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