Hi,
I have VS2013 and looking .dll for kdb+ 3.x to add as refference if is posible (exist?), coz I lost in this all many .dll’s (as cst.dll c.dll)
http://code.kx.com/wiki/Cookbook/InterfacingWithCSharp
I sugesting some philosophy around libmysql.dll to cut this type questions in future.
Here is..
- Exist folder but empty now
http://code.kx.com/wsvn/code/kx/kdb%2B/interfaces/csharp/?#aa2a97ba7ee3e6d29f1fcf83cb43d5711
-
Exist example but not working in my case (breaking)
http://code.kx.com/wsvn/code/kx/kdb%2B/c/c.cs
-
just looking simple proof that my kdb+ and c# app working for query “trade” as result
public class c : TcpClient
{
public static void Main(stringargs){
string host = “localhost”;
int port = “5000”;
//query
string query =“trade”;
Console.WriteLine(“test-start”);
Console.WriteLine(result);//result like in console
Console.WriteLine(“test-end”);
//-- Console.WriteLine("Press any key to continue . . . ");
Console.ReadKey(true);
}
you need only http://kx.com/q/c/c.cs
that does not depend on c.dll etc.
Can you be more specific about the error? “Breaking” is too wide a description for us to help.
thanks
public class c : TcpClient
{
public static void Main(stringargs){
//c.ReceiveTimeout=1000;
c c=new c(“localhost”,5000);c.k(“.u.sub[trade;
MSFT.OIBM.N]");while(true){object r=c.k();O(n(at(r,2)));} //c c=new c("localhost",5000); //string result = c.k("trade"); //Console.WriteLine(result); Console.WriteLine("test-end"); //-- Console.WriteLine("Press any key to continue . . . "); Console.ReadKey(true); //c.e=System.Text.Encoding.UTF8; //O("Unicode "+c.k("
$"c"$0x52616e627920426ac3b6726b6c756e64204142”));
//objectx=new object[4];x[0]=t();x[1]=“xx”;x[2]=(double)93.5;x[3]=300;tm();for(int i=0;i<1000;++i)c.k(“insert”,“trade”,x);tm();
//Flip r=td(c.k(“select sum price by sym from trade”));O("cols: "+n(r.x));O("rows: "+n(r.y[0]));
c.Close();
}
by restoring part of code
c c=new c(“localhost”,5000);c.k(“.u.sub[`trade;`MSFT.O`IBM.N]”);while(true){object r=c.k();O(n(at(r,2)));}
Warning 1 Unreachable code detected \Visual Studio 2013\Projects\kx.com\kx\kx\Program.cs 34 10 kx
if
c.ReceiveTimeout=1000;
Error 3 Cannot use local variable ‘c’ before it is declared \Visual Studio 2013\Projects\kx.com\kx\kx\Program.cs 29 9 kx
if
Flip r=td(c.k(“select sum price by sym from trade”));O("cols: "+n(r.x));O("rows: "+n(r.y[0]));
Error 2 A local variable named ‘r’ cannot be declared in this scope because it would give a different meaning to ‘r’, which is already used in a ‘child’ scope to denote something else Visual Studio 2013\Projects\kx.com\kx\kx\Program.cs 40 14 kx
–
The clear working examples step by step can be very helpful. Looks csharp here is not popular.
Q is enough complicated for me to meet rest of class to be sure what is source for all and specialy if no exist any comments.
Some dll can popularise this kdb+ server but if we fighting in first steps then some patience can be destroyied before any work : )
.. like in my case :D
Soo..
I’ll glad for some basic examples (result in c# console like select in kdb). And if any .dll can be published with standard described functions then GREAT! : ]
the exception shown is reporting that the server does not have .u.sub defined.
All the drivers (c#,java,..) are fairly simple [de]serializers, all following the same pattern.
You can serialize objects, send them to kdb+ for execution, and optionally receive a return value.
We’ll create some examples.
Thx, waiting for some links.
Is any chance to get updated adequate kdblib.dll for kdb3.1 and nexts ver from kx ? Similar to mysql lib? Or it’s to much for company?
Looks I made mistake to instal VS2013, coz exist many unexpected cases like bugs (colour for syntax in editor [often missed], and dot.dot adress sugestion) what doing disonanse for me and don’t have trust. I’m new with this all workspace.
W dniu pi?tek, 15 listopada 2013 18:21:29 UTC+1 u?ytkownik Charles Skelton napisa?:
the exception shown is reporting that the server does not have .u.sub defined.
All the drivers (c#,java,..) are fairly simple [de]serializers, all following the same pattern.
You can serialize objects, send them to kdb+ for execution, and optionally receive a return value.
We’ll create some examples.
And examples exist. Thx again.
http://code.kx.com/wiki/Cookbook/InterfacingWithCSharp#Examples
W dniu pi?tek, 15 listopada 2013 22:24:56 UTC+1 u?ytkownik reptile napisa?:
Thx, waiting for some links.
Is any chance to get updated adequate kdblib.dll for kdb3.1 and nexts ver from kx ? Similar to mysql lib? Or it’s to much for company?
Looks I made mistake to instal VS2013, coz exist many unexpected cases like bugs (colour for syntax in editor [often missed], and dot.dot adress sugestion) what doing disonanse for me and don’t have trust. I’m new with this all workspace.
W dniu pi?tek, 15 listopada 2013 18:21:29 UTC+1 u?ytkownik Charles Skelton napisa?:
the exception shown is reporting that the server does not have .u.sub defined.
All the drivers (c#,java,..) are fairly simple [de]serializers, all following the same pattern.
You can serialize objects, send them to kdb+ for execution, and optionally receive a return value.
We’ll create some examples.