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
P

pithhelmet

@pithhelmet
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DLL wrapper and structs
    P pithhelmet

    Hi Everyone - I am trying to create a C# wrapper around a legacy C .DLL I am stuck on one implementation area... There is a DLL function called GetDateTime extern "C" bool GetDateTime( DateTimeStruct &dateTime ) is how the SDK says it is to be implementated. I have created a wrapper shell for this function below... [DllImport("CarChipSDK", EntryPoint="GetDateTime")] public static extern bool GetDateTime ( //// what goes here??? ); I have create the struc in BOTH the main program, and the shell [StructLayout(LayoutKind.Sequential)] public struct DateTimeStruct { public int year; public int month; public int day; public int hour; public int minute; public int second; } Here are the questions... 1) Do I need to create a struct in both the caller and callee classes? 2) How do i setup the caller class to send the struct to the callee class? thanks tony

    C# question csharp linux help workspace
  • Login

  • Don't have an account? Register

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