Hello all.
I have a function with paremeter double *col_zero that contains integger values. like 0, 1, 2. I am 100% sure of that.
I cant change the inputs and I have to use these values in a for loop for a count.
For now I am just printing my values in a file to be sure the output are as I want.
fp is a FILE pointer.
If I make :
fprintf(fp, " %d or %i \n ", row_zero[k],(int)row_zero[k]...
Search Result
Collapse
6 results in 0.0014 seconds.
Keywords
Members
Tags
-
How to convert efficiently double to int
-
Dynamic casting of string to other .net objects like XMLElement, Color
Hi
I am trying to read the parameters of a method dynamically and then call that method with the passed parameter values (string type). I am able to write the code that reads the parameter of simple .net types like - string, int, float, double etc. I read them and convert to required type using ChangeType method. But I am not able to make the code work for other types like - XMLElement, Color, etc.
Here is my generic... -
Problem in HAVING Clause with Date
I have some SQL which runs fine without the HAVING clause, yet when I uncomment either of the HAVING clause versions in the SQL it errors.
...Code:SELECT TOP 10 [OH_LEDGER] ,CAST(Max([OH_ENTERED_DATE]) AS DateTime) AS [MaxDate] FROM [Progress].[dbo].[ORDER_HEADERS] GROUP BY [OH_LEDGER] --HAVING ([MaxDate]<Cast('2010-02-10' AS DateTime)) --HAVING ([MaxDate]<#02/10/2010#)Last edited by NeoPa; Jul 14 '10, 04:44 PM. -
Dynamic Cast
How can I make this work? ClassType is the type of an homemade class.Code:void Whatever(Type ClassType, ArrayList myArrayList) { ClassType myClass = new ClassType(); myClass = (ClassType)myArrayList[0]; } -
byte[] to System time
Hi, my question is a bit like http://bytes.com/topic/net/answers/6...-date-datetime but more complex
I have an array of byte in FILETIME structure in C/C++
typedef struct {
DWORD dwLowDateTime;
DWORD dwHighDateTime;
} FILETIME,
*PFILETIME,
*LPFILETIME;
How can I transfer them to readable time format?
e.g. 9ea85071c0fdc80 1... -
C# cast to anonymous type
consider the following code:
an anonymous type is created than placed into ArrayList.Code:var test1 = new { field1 = "hello" }; ArrayList al = new ArrayList(); al.Add(test1); //compile error Console.WriteLine(al[0].field1);
al[0] obviously returns Object, how to cast this back to anonymous type to retrieve value of 'field1'?