cancel
Showing results for 
Search instead for 
Did you mean: 

kdb interface c, example

mcnmcn773
New Contributor
Hi I was following the tutorial of kdb-c-api-exmaple http://www.timestored.com/kdb-guides/kdb-c-api-example. First I setup the tickerplant as http://code.kx.com/wiki/Startingkdbplus/tick#6.5_Running_the_Demo. Then I use the example c client subscribe to the tickerplant, but upon receiving data in the client, right after "tbl = kK(r)[2]->k;", I found tbl->t is "101", which it is expected to be "98"? Do I miss something here? Thanks
4 REPLIES 4

mcnmcn773
New Contributor
The example is running at windows, also I run the first Query example, and got the return result->t as "1", NOT 98 or 99 as the following comments: http://www.timestored.com/kdb-guides/kdb-c-api-example

if(result->t!=99&&result->t!=98) // accept table or dict

Thanks for hints!

can you post your code and your query?
ta, jack

Thanks effbiae! I just downloaded the codes from timestored's pubic tutorial page. It works fine now.

mcnmcn773
New Contributor
I made a silly error, forget to set KXVER version. Now example work well. Thanks