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...
User Profile
Collapse
-
Idatareader string values
-
IDataReader getvalue issue
can anyone tell how to stop auto type detection for getvalue method? -
pinvoke + C#
The following is my data structure in unmanaged code...
(this is function in unmanaged code that i have to call..)Code:typedef struct { USHORT flash_char; /* flash char (default &) */ USHORT flash_time; /* flash time (ms) */ USHORT reserved[3]; } MT_PSTN, *PMT_PSTN;
...Code:_DLLIMPEXPORT MT_RESULT
Last edited by Curtis Rutland; Sep 12 '08, 04:40 PM. Reason: Added Code Tags - Please use the # button -
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]
...
No activity results to display
Show More