User Profile

Collapse

Profile Sidebar

Collapse
srinirocks
srinirocks
Last Activity: Oct 20 '08, 03:29 PM
Joined: Sep 11 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • srinirocks
    started a topic Idatareader string values
    in .NET

    Idatareader string values

    I am reading an excel file using ADO.Net. In a column, my first value is nothing and the rest of the values are numbers. But when I read values, I am getting all empty strings. If I replace my first value with some random number, then I am able to read all the values.

    My assumption is that IDataReader is detecting the type by its first value and applying it to rest of the values. Is there a way to tell it to assume everything to be...
    See more | Go to post

  • srinirocks
    started a topic IDataReader getvalue issue
    in .NET

    IDataReader getvalue issue

    can anyone tell how to stop auto type detection for getvalue method?
    See more | Go to post

  • srinirocks
    started a topic pinvoke + C#
    in .NET

    pinvoke + C#

    The following is my data structure in unmanaged code...

    Code:
    typedef struct {
            USHORT   flash_char;            /* flash char (default &)         */
            USHORT   flash_time;            /* flash time (ms)                */
           
            USHORT   reserved[3];
    } MT_PSTN, *PMT_PSTN;
    (this is function in unmanaged code that i have to call..)

    Code:
    _DLLIMPEXPORT MT_RESULT
    ...
    See more | Go to post
    Last edited by Curtis Rutland; Sep 12 '08, 04:40 PM. Reason: Added Code Tags - Please use the # button

  • srinirocks
    started a topic Marshalling issue
    in .NET

    Marshalling issue

    The following is my data structure in unmanaged code...
    [code=c]
    typedef struct {
    USHORT flash_char; /* flash char (default &) */
    USHORT flash_time; /* flash time (ms) */

    USHORT reserved[3];
    } MT_PSTN, *PMT_PSTN;
    [/code]
    (this is function in unmanaged code that i have to call..)
    [code=c]
    ...
    See more | Go to post
    Last edited by Frinavale; Sep 12 '08, 03:42 PM. Reason: added [Code] tags
No activity results to display
Show More
Working...