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
K

kevinnicol

@kevinnicol
About
Posts
134
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to remove null value from Lambda expression or Array
    K kevinnicol

    try this

    emailMessage.EmailParamHeaders.To.ToArray().ToList().ForEach(x => {if(m != null) m.To.Add(x);});

    C# question linq data-structures functional tutorial

  • Triple Crown curse continues
    K kevinnicol

    Oh I see what you did there....

    The Lounge com

  • F@H Client V7
    K kevinnicol

    the only issue I have with the v7 is that the control application runs at about 1 to 2% of cpu usage, sucking back on the folding capability. That being said, I have noticed only about a second per percentage point difference on a 20 hour smp work unit.

    The Lounge collaboration question announcement

  • What Next?
    K kevinnicol

    Check this out, they have their own board game http://www.indiegogo.com/Sharks-with-Lasers[^]

    The Lounge xml question

  • Friends & Family
    K kevinnicol

    I have used the NCC statement a couple of times now, my relatives usualy balk but when I say I could lose my job they quickly change their tune.

    The Lounge cryptography question

  • Send SMS using GSM modem
    K kevinnicol

    I don't know how to do the connect to 3G phone via usb for sms, but you could try this company, it has an api that allows two way sms communication. Clickatell

    C# csharp help tutorial

  • passing array of doubles
    K kevinnicol

    I Suspect BobJanova is correct, but I just did some messing around with unsafe code and there is a possability that even though the wrapper is taking a double ref, it may be treating it as a pointer. Check this code out

        static void Main(string\[\] args)
        {
            double\[\] testArr = new double\[\] { 1.0, 2.0, 3.0 };
    
            for (int i = 0; i < 3; i++)
                Console.WriteLine(testArr\[i\]);
    
            test(ref testArr\[0\]);
    
            for (int i = 0; i < 3; i++)
                Console.WriteLine(testArr\[i\]);
        }
    
        public static unsafe void test(ref double x)
        {
            fixed (double\* ptr = &x)
            {
                ptr\[1\] = 2.5;
            }
        }
    

    this produces the following instead of an error.

    1
    2
    3
    1
    2.5
    3

    so there is a chance that simply passing a reference to the 0th index in the array might get what you want done. I don't have the wrapper setup to test it out myself.

    C# question csharp data-structures

  • Last Minute Parting Gift
    K kevinnicol

    She bought ammo for her divorce? Wow, she meant business.

    The Lounge question

  • Current workload
    K kevinnicol

    I am on four that require daily attention, 10 that require work on at least a weekly basis and a total of 20 that I am responsible for. I have so many various IDE's open I don't know how my computer can support it. Thankfully I can run two eclipses, and four each of visual studio 2010, 2008 and 2005.

    The Lounge question

  • OdbcDataReader calling IsDBNull changes the behaviour of Get methods
    K kevinnicol

    My only guess at this point is in the first test you are calling GetString first, and in the second test you are calling GetInt32 first. It's possible the the reader is casting your value to what you asked for first?

    C# question

  • Why VB is popular in America!
    K kevinnicol

    My building is built on a hill, so the groud floor is different depending what door you use to enter. Therefore the floor are not numbered, but lettered, from A to I.

    The Lounge c++ php visual-studio com

  • problem
    K kevinnicol

    The NSA Can identify you by your typing rate/style even before your fingers hit the keys.

    Game Development help question

  • Coding style II - O(n) checks instead O(1) or doubling code? [modified]
    K kevinnicol

    Nervous Nigel has just made its way into my weekly vocabulary. Describes people I often refer to perfectly. Thank you good sir.

    C# question

  • Dataset to defined XML schema
    K kevinnicol

    I have done similar things before using an sql data adapter. This produces a seperate file for xml schema though. I'm not sure if this is what your looking for.

            SqlCommand cmd = new SqlCommand();
            cmd.Connection = new SqlConnection(@"cnnstring");
            cmd.Connection.Open();
            cmd.CommandText = "SELECT \* FROM Table1; SELECT \* FROM Table2";
    
            DataSet ds = new DataSet();
    
            SqlDataAdapter da = new SqlDataAdapter(cmd);
            da.Fill(ds);
    
            ds.WriteXmlSchema(@"C:\\dat.xsd");
            ds.WriteXml(@"C:\\dat.xml");
    
            cmd.Connection.Close();
    
    C# database xml help tutorial question

  • Legal human hunting in South Dakota? [modified]
    K kevinnicol

    Might as well just move to Canada now, with global warming the way it is, it should be pretty much tropical before the end of the decade. Might as well move in while the houses are cheap!!

    The Lounge html com question

  • Creating an ADO.Net Datasource from existing data
    K kevinnicol

    I apologize if this the wrong for this question. I have a C# app, more of a framework really that does calculations on a large set of proprietary data, the data in its raw form is unreadable, it has to be processed by the framework. I'm wondering if there is a way to create a driver so that applications can query the framework much like you would query a database? I can put the data into datatables and datasets, but I'm not sure how to make it accessible. Any suggestions are appreciated.

    C# csharp database question tutorial

  • What's the purpose to use Property with set and get to change a field?
    K kevinnicol

    There was no sarcasm intended, I just saw your reply in my email and truly thought I had made a reply in the wrong forum. There was no intent of sarcasm or showing of my "mad skilz". I will choose to take your token of goodwill as that and not passive aggression; in the future will use eg. instead of ie. in those cases. Thanks.

    C# question csharp

  • What's the purpose to use Property with set and get to change a field?
    K kevinnicol

    oops, thought I was in the C# forums, must have stumbled into the C++ forums by accident.

    C# question csharp

  • What's the purpose to use Property with set and get to change a field?
    K kevinnicol

    It also gives hints at what to look for when reflecting through an object. IE Some asp.net data grids will auto bind columns to all properties of an object.

    C# question csharp

  • Freedom! At last!
    K kevinnicol

    No matter how much you learn, you have that much more to learn. It never ends. The realization that you have a lot to learn makes you a programmer.

    The Lounge asp-net csharp javascript database mysql
  • Login

  • Don't have an account? Register

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