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
M

Member 13260538

@Member 13260538
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [SOLVED] System.AccessViolationException When Calling Dll Function Again
    M Member 13260538

    Hello May I consult you how did u solved this problem? I have the similar problem [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool _B_B(byte O1, byte O2, byte O3, byte O4, byte O5); private IntPtr hMod; private _B_B funA; if (chk = (hMod = LoadLibrary("my.dll")) != IntPtr.Zero) if (chk = (pFunc = GetProcAddress(hMod, "funA")) != IntPtr.Zero) funA = (_B_B)Marshal.GetDelegateForFunctionPointer(pFunc, typeof(_B_B)); private void button_Click(object sender, EventArgs e) { bool chk = false; byte temp1 = 1, temp2 = 0, temp3 = 15, temp4 = 45, temp5 = 90; try { if (!(chk = funA(temp1, temp2, temp3, temp4, temp5))) MessageBox.Show("set fail!"); } catch (Exception ex) { MessageBox.Show("fail!"); } }

    C# csharp performance help question
  • Login

  • Don't have an account? Register

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