[C SDK] Reading values from cursor

Olaf Schmidtmann os at brainbits.net
Thu Nov 6 09:34:40 CST 2003


Hello Ruslan,

> >> ALSO, import "strange" feature of VCSDK is that it return 
> you string 
> >> pointer...and you need COPY that string to OWN buffer immediately, 
> >> because any other operation that also return
> >> char* will reuse that buffer.
> > 
> > Uuuh, that's bad, because to speed the asynchronous behavior up I 
> > wanted to do this:
> > 
> > - get cursor ref
> > - get field count
> > - loop all field and get their references
> > - loop *all* field references and get their names & types
> > - loop *all* field references and get their values (with proper 
> > method)
> > 
> > Looks like I have to wait for the callback for each field. 
> If that is 
> > the case I think I can forget everything because this is 
> getting much 
> > too slow: :-(
> 
> I am not agree Olaf.
> 
> Guys, C langauge IS fast.

I know - I am not completey dumb. C is fast and the Valentina code is surely
fast, too. And that is the reason WHY I always try to let her do as much as
possible. The problem is that it seems that the callbacks are slowed down.
It works like this:

Flash ("hey, gimme the ref of field 1 in table xy")
Screenweaver ("wait, I try to tell this this strange VCSDK.DLL, I'll give
you a call")
ValentinaDLL ("here you go sucker: 385638568") [text in slowmotion to enable
you to read this]
Screenweaver ("thanks", "hey, flash callback, here is your data")
Flash ("thanks, I will put the data here")
Flash (some other instance "wow, we've got new data, let's get some
more")...

Besides from being childisch, that was what it takes to get just one field
reference. Valentina might be a fast bitch but she is sitting in a slow bus
(Screenweaver) and tries to reach Flash city.
I cannot access anything Valentina offers directly - everything needs to be
passed with the Screenweaver wrapper. Watching the console I could nearly
write the data down myself - and that's hust a little exaggerated.


> You even cannot image self how much work in done in 
> background in MM director or in Valentina :-)
> 
> So do not think this will be slow.

Again: I really do not think that Valentina is the problem here.
Also, I'd like to thank you very much for your help which was - as always -
just great. I would not have come so far with this even if I consider it a
failure (technically).

Greetinx from a sunny Cologne
Olaf

-- 
***        http://www.brainbits.net/        ***


More information about the Valentina mailing list