| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> uses base 100 <1> wait, what? <0> yes. <0> Base 100 <0> array of byte <0> 0..99 in it <1> ah, ok <0> (That pretty much ****s) <0> they didn't even implement it properly <0> to "convert" it to double or integer <2> bye all <0> to first convert it to string <0> then parse it with strtoint/strtodouble <0> some idiot implemented this. <0> aaargh <0> and they wonder why delphi ****s these days.
<3> hehe <4> hi <0> hey crc <0> you happen to know how to convert VT_DECIMAL to BCD and back ? <4> oo. variants, ive tried to avoid them like the plague since VB3 <3> heh <4> guess you could always be lazy and convert it via a string? :D <5> bcd as in binary coded decimal as in 0x92 = 92 ? <0> ootje: not sure yet, I know it's base 10/100 <0> something illogical <5> BCD is usually just like that <6> Hey hello everybody <0> I'd look in the help <4> BCD? <0> but that doesn't work on vista. <5> a=0..99 -> ((a div 10) shl 4) or (a mod 10) <4> each nibble encodes a decimal digit <0> yep <4> so the issue is, how is that VT_DECIMAL stored :) <5> heh bcd also= "birth control device" <6> I'm trying to get all my outlook calendar items with a Delphi application but I get an error I can't uderstand, may you help me? <6> Undersant* <6> Items:= CalendarItems.Restrict('([Start] > ''11/01/2007'') And ([Start] < ''12/01/2007'')'); <0> LordCrc: 3 ints (low,mid,high) <0> then an other int containing sign & scale <4> ki9a: so the 3 ints are "one"? <0> yes <0> it's how any sane person <0> would store integers <0> in a format a computer understands. <4> well, they ARE variants, thus not sane :P <0> variants are actually quite good <0> boreland ****ed it up <0> when they implemented custom variants. <4> yeah i guess that didnt help <0> remember that variants can be quite efficient. <0> and they're ole compatible <0> (They were invented to support OLE) <6> Anyone may help please? <4> so these ints, are they encoded in any way or just one 48bit good 'ol number? <4> never used outlook calendar, so i wouldnt know <6> LordCrc: Thanks :) <6> The errors I get are <6> [Error] Unit1.pas(34): Left side cannot be ***igned to <6> [Error] Unit1.pas(34): Incompatible types: 'TGUID' and '_Items' <6> It is the line I pasted you <0> LordCrc: well they're 3xinteger <0> just 3x32 bits <4> right <4> there's the scale tho... <4> but lets leave that out for now :) <6> Any idea please? <6> Items:= ItemtoGuid(CalendarItems.Restrict('([Start] > ''11/01/2007'') And ([Start] < ''12/01/2007'')')); <6> That works better now <6> But I still get that error <6> [Error] Unit1.pas(34): Left side cannot be ***igned to <6> What that means? <0> LordCrc: that's documented though <6> Whwat does that mean sorry <4> Mr_Jingle: means that Items its a read only property <4> ki9a: got an url handy?
<6> LordCrc: And is this problem solvable? lol <6> I'm trying to create an easy interface for blind people to use the Outlook Calendar <0> just because I said it was documented <6> It is impossible to navigate trough it with a screen reader <0> doesn't mean I know where ;) <4> lol <4> ki9a: to be honest, going via a string would be the least amount of code by far :) <4> Mr_Jingle: well since i have no idea what "Items" is, i cant tell <6> thanks LordCrc <0> LordCrc: It's sorta like this http://msdn2.microsoft.com/en-gb/library/ms962433.aspx <4> ki9a: k, so youll need some sort of 96 bit modulo then to transform it into a BCD <0> I think I;'ll need to keep dividing by 100 <0> till I have nothing left. <4> by 10, each nibble = one decimal digit <0> that's possible too <4> but you still need to do it on a 96bit integer :) <0> I did it on integers of dynamic size <0> with my large integer unit <4> think id modify llmod <4> __llmod that is <0> llmod ? <4> yeah delphi's 64bit modulo <4> dont think it would be too hard to modify it to 96 bit <0> it's in asm though <0> I want to avoid tht. <4> true <4> hmm <4> guess you could rewrite it as "code" :) <4> // we don't expect this to actually <4> // work <4> lol <4> nice comment <0> where ? <4> from llmod <0> heh <4> you can optimize it a bit since your doing mod 10/100 <4> and you get your div for free <4> ki9a: i can take a stab if you want? <0> I need to do it myself <0> it's for RO <4> i figured <0> now this might actually work: VarDecFromStr <0> :) <4> as i said, going via a string would wastly simplify your code, although it might be a tad slower <0> I think that's my only option really <0> LordCrc: what's the longest amount of characters a 96 bit number can take ? <0> in base 10 <5> http://www.sgknox.com/2007/01/11/no-porn-on-blu-ray/ <0> oke <0> then it's decided <7> Hei LordCrc :) <7> question: what exactly delphi does when i declare "function blah (number: integer); external "dll.dll"? <0> it creates an import table <7> does it call "loadlibrary and stuff behind the stages? <0> well an entry most likely. <0> no <0> it creates an import entry. <7> so lets think that i have dll that uses such external function <5> then your dll will load a dll :P <7> right.. but when in the main app that loads the main dll i load it in threads <0> you don't "load" it in a a dll <0> it's loaded when you start the app <0> if it's not there <0> it won't load. <7> ki9a, no.. i mean.. <7> this "external" stuff is coded inside dll - lets call it A <7> So the main application creates a new thread.. loads the A dll in the thread <7> then it executes a method in A which calls the function blah <0> LoadLibrary will fail <0> if A isn't there. <0> but it's loaded from that thread then yes. <7> i understand this.. my question is a bit different <7> now.. the first thread still doing the calculations.. <7> then a second thread is started..
Return to
#delphi or Go to some related
logs:
mirc $fulladdress #solaris #iptables fdprintf posix Sian Lupe died were #beginner goolux +vim +badatom #computers #beginner
|
|