Developer Tools
Questions related to KX Developer Tooling
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

okx not usable?

May I confirm if okx is still usable in k.h?I got the following linker error (compilation was fine):Wind_subscribe.obj : error LNK2019: unresolved external symbol _okx referenced in function "struct k0 * __cdecl Wind::pubsub::invokeCallback(int)" (?i...

Flying by New Contributor III
  • 687 Views
  • 3 replies
  • 0 kudos

sd0/sd1 in Win32?

As I understand, if I need call from C into q's main loop, I'll need to use sd0/sd1.But may I understand what the parameter of type I mean? The sample code given are for Linux, where sys/eventfd.h is used. How about Win32? What kind of handle can I p...

Flying by New Contributor III
  • 806 Views
  • 4 replies
  • 0 kudos

Monday/Sunday of date

In SQL to get previous Monday of a date I do following:DATEADD(day,(DATEDIFF(day,'1900-01-01',GETDATE())/7)*7,'1900-01-01')To get following Sunday I do:DATEADD(day,(DATEDIFF(day,'1900-01-01',GETDATE())/7)*7,'1900-01-07')Note that this gives Monday/Su...

borota by New Contributor
  • 593 Views
  • 2 replies
  • 0 kudos

Variable existence

Hi all.I am curious how can I check existence of system variables (eg which placed in z,q,Q namespaces)?

skuvvv by New Contributor
  • 4195 Views
  • 27 replies
  • 0 kudos

tick.q `length error

http://code.kx.com/wsvn/code/kx/kdb%2Btick/tick.qline 45 char 55-63if[not system"t";system"t 1000"; .z.ts:{ts .z.D}; upd:{[t;x]ts"d"$a:.z.P; if[not -16=type first first x;a:"n"$a;x:$[0>type first x;a,x;(enlist(count first x)#a),x]]; f:key flip value ...

LamHinYan by New Contributor
  • 823 Views
  • 4 replies
  • 0 kudos