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
F

Flysocket

@Flysocket
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • OpenFileDailogBox
    F Flysocket

    give a file name to openFileDialog you can confirm if the file exist if not you can create the same name file.

    I want to make some friends here

    C#

  • UDP send file issue
    F Flysocket

    I try to use UDPClient to send a file but when i send a small file like 50k, the UDPClient works good but when i send a file 500k the UDPClient.Send() throw an exception A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself Someone can help me to fix this issue, it looks like the send buffer and receive buffer are to small.

    I want to make some friends here

    C# help sysadmin

  • hi, c# forms
    F Flysocket

    Form1 f = (Form1)this.owner; f.fillDataGrid(); // this method belongs to Form1 this.Close(); if these code wrote in the form2's closing or closed event?

    I want to make some friends here

    C# csharp database help question announcement

  • I have some questions in C#
    F Flysocket

    I have get some informations from you guys and i select platform target X86 in build tag then run again, it is ok. if the AEXMLAdapter.dll build in x86 machine so the project must build in x86 mode? As the program is a unit test assembly, when i try to build in x86 mode, the Nunit cannnot open the assembly. Any body has some experience in this issue?

    I want to make some friends here

    C# help csharp com sysadmin windows-admin

  • I have some questions in C#
    F Flysocket

    using System; using System.Text; using System.Runtime.InteropServices; namespace AEXMLAdapterTester { internal sealed class NativeMethods { private NativeMethods() {} [DllImport("AEXMLAdapter.dll", EntryPoint="GetAllSettings", SetLastError=true, CharSet=CharSet.Unicode)] public static extern uint GetAllSettings(StringBuilder lpBuffer, ref uint lpnSize); [DllImport("AEXMLAdapter.dll", EntryPoint= "SetAllSettings", SetLastError=true, CharSet=CharSet.Unicode)] public static extern uint SetAllSettings(string lpBuffer); [DllImport("AEXMLAdapter.dll", EntryPoint= "ReloadSettings", SetLastError=true, CharSet=CharSet.Unicode)] public static extern uint ReloadSettings(); }; /// /// Summary description for XmlAdapterInterop. /// /// internal sealed class XmlAdapterInterop { private XmlAdapterInterop() {} public static string GetAllSettings() { uint retVal; StringBuilder buffer = null; uint size = 0; retVal = NativeMethods.GetAllSettings(null, ref size); if (retVal == 122) { buffer = new StringBuilder((int)size); retVal = NativeMethods.GetAllSettings(buffer, ref size); } if (retVal != 0) throw new ApplicationException("Interop Error calling GetAllSettings"); return buffer.ToString(); } public static void SetAllSettings(string buffer) { uint retVal; retVal = NativeMethods.SetAllSettings(buffer); if (retVal != 0) throw new ApplicationException("Interop Error calling SetAllSettings - retVal = " + retVal); } public static void ReloadSettings() { uint retVal; retVal = NativeMethods.ReloadSettings(); if (retVal != 0) throw new ApplicationException("Interop Error calling SetNothing - retVal = " + retVal); } } } These code running correctly in Windows 2003 server 32Bit but when use in Windows Server 64Bit when i invoke XmlAdapterInterop.GetAllSettings() an exception occured "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" Any one can help me, i will thank you a lot

    I want to make some friends here

    C# help csharp com sysadmin windows-admin
  • Login

  • Don't have an account? Register

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