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
S

Soundman32 2

@Soundman32 2
About
Posts
35
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sorted xml element while serialising
    S Soundman32 2

    Fixed it. It turns out, fields are serialised before properties and my code was actually like this:

    [Serializable]
    public class Request
    {
    [XmlElement("Type")]
    public string Type
    {
    get;
    set;
    }

    [XmlElement("Id")]
    public int Id; // <<<--- Note this is a field, not a property
    }

    XML / XSL question csharp xml tutorial

  • Sorted xml element while serialising
    S Soundman32 2

    I am using c# serialisation to write some xml. For some reason the output is not necessarily written in the order it appears in the code. How can I order the elements? For example:

    [Serializable]
    public class Request
    {
    [XmlElement("Type")]
    public string Type
    {
    get;
    set;
    }

    [XmlElement("Id")]
    public int Id
    {
    get;
    set;
    }
    }

    Would write

    <Request>
    <Id>1</Id>
    <Type>Get</Type>
    </Request>

    (Note this example is very simplified and doesn't actually write it wrongly).

    XML / XSL question csharp xml tutorial

  • "Cannot open database" if logging into SQL-server too fast [modified]
    S Soundman32 2

    Can you not make your service depend on the SQL 2008 Express Server? Check out the Dependencies tab on the control panel/services/properties page.

    Database database sql-server sysadmin security question

  • Library or Tools for GUI development on Linux
    S Soundman32 2

    I doubt you bought a license for OpenSuse.   You MAY have bought a DVD, but that's not a license. Anyone can download and use it legally for free. Anyway, all Linux distributions are built using the GNU toolchain (gcc etc) which are GPL (or similar). Who decided you couldn't use GPL code?   Do they know what GPL software means?

    Graphics linux tools question

  • Library or Tools for GUI development on Linux
    S Soundman32 2

    If you can't use any GPL stuff, you can't use Linux, or GNU, or X-Windows. How about you write your own OS, compiler, Windowing system etc?

    Graphics linux tools question

  • Xml special character
    S Soundman32 2

    That's the one. Thanks very much.

    C# xml tutorial question

  • Xml special character
    S Soundman32 2

    Can I get the special xml strings (< & etc) directly instead of being translated? For example, given the data "RCI>", the code: xmlReader.ReadStartElement("DATA"); data = xmlReader.ReadString(); xmlReader.ReadEndElement(); Gives: "RCI>". Can I get the raw "RCI>" and if so, how? Thanks

    C# xml tutorial question

  • Xml special character
    S Soundman32 2

    Sorry, forgot to tick the ignore HTML box: Can I get the special xml strings (< & etc) directly instead of being translated? For example, given the data "RCI>", the code: xmlReader.ReadStartElement("DATA"); data = xmlReader.ReadString(); xmlReader.ReadEndElement(); Gives: "RCI>". Can I get the raw "RCI>" and if so, how? Thanks

    XML / XSL html xml tutorial question

  • PC based application using Microsoft Bluetooth Stack
    S Soundman32 2

    Have you looked at http://www.openobex.org/

    C / C++ / MFC

  • PC based application using Microsoft Bluetooth Stack
    S Soundman32 2

    What do you need the dongle to do? As long as it appears in the Device Manager, then all it's capabilities are available. If it's a network device, then it should act like all the other network devices, if it's a sound device, then it should appear in the sound device list.

    C / C++ / MFC

  • Creating and deleting a temp file
    S Soundman32 2

    I wonder if Windows is expecting you to call CreateFile on the filename before you delete it? Have you looked at http://msdn.microsoft.com/en-us/library/aa363875(VS.85).aspx[^] which gives an example of creating and using a temporary file?

    C / C++ / MFC help

  • Nice usage of foreach
    S Soundman32 2

    I have seen this when the array doesn't contain a indexing property. return users[0]; // Doesn't work I seem to remember this being the default behaviour for non generic Lists in early .net (2?).

    The Weird and The Wonderful

  • How to set a breakpoint in code
    S Soundman32 2

    Ah, but that's the problem. By the time I can click on Attach To Process and then select the process and press Attach, the program I'm trying to trap has already run the function I want to trap. I can't modify the source to the program I want to attach to. I need to find a way to set breakpoints in the launched process via the application I am writing. Something like: { CreateProcess("newprogram.exe", ... CREATE_SUSPENDED, ... ); SetBreakpoint(newProcessHandle, "FunctionToDebug"); ResumeProcess(newProcessHandle); }

    C / C++ / MFC debugging json tutorial question

  • How to set a breakpoint in code
    S Soundman32 2

    I am dynamically loading a second process (via CreateProcess) and would like to automatically set breakpoints in that process. VS2005 doesn't automatically set the breakpoints even though the code I want to break on exists in both projects. Is there an API I can call to set a breakpoint on a function in another process?

    C / C++ / MFC debugging json tutorial question

  • Changing the text of label
    S Soundman32 2

    That won't work, it will just delay the code. You need to tell Windows to redraw the label with : label1.Text = " method1"; label1.Refresh(); method1(); label1.Text = "method2"; label1.Refresh(); method2(); label1.Text = "method3"; label1.Refresh(); method3() From the help for Control.Refresh: Forces the control to invalidate its client area and immediately redraw itself and any child controls.

    C#

  • Get Application directory from console program
    S Soundman32 2

    I'd just got to that point, but I'm using : System.Reflection.Assembly.GetExecutingAssembly().Location Thanks.

    C# csharp question

  • Get Application directory from console program
    S Soundman32 2

    I am writing a C# console program that needs to read a file from the same directory as the application. I can't use the current directory as that is not the same as the application directory. Normally I would use Application.ExecutablePath, but console apps don't derive from Application. Ideas?

    C# csharp question

  • DataSet to SQL
    S Soundman32 2

    I have a populated data set (loaded from an XML file) that I want to put in a SQL database. Most of the tables in the DataSet are related, so I can't use a DataAdapter to update because I don't know the update order. All the examples I've seen about updating an SQL database only target one table or know the 'reverse-order' in which to update. Is there an easy way to store a .NET multi-table DataSet to a SQL database.

    Database database csharp xml announcement

  • DataSet to SQL
    S Soundman32 2

    I have a populated data set (loaded from an XML file) that I want to put in a SQL database. Most of the tables in the DataSet are related, so I can't use a DataAdapter to update because I don't know the update order. All the examples I've seen about updating an SQL database only target one table or know the 'reverse-order' in which to update. Is there an easy way to store a .NET multi-table DataSet to a SQL database.

    .NET (Core and Framework) database csharp xml announcement

  • XSD generated AutoIncrement problem
    S Soundman32 2

    I have generated a .cs file from my .xsd file using the command line program XSD. The xml file contains many nested tables, so several of the generated classes have columns with autoincrement=true. If I add a new child row then I would expect the autoincrement column to be set to a value after I add it. Unfortunately, it remains at DBNull. This means it becomes a root level item rather than the child it should be. Any ideas?

    C# xml 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