Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: BoMi
  • Order by date
  1. BoMi

    C++ Builder 2009 vs. Delphi 2009: UnicodeString

    Hi, theKris! That worked! So, I actually need to tell the compiler clearly that I want 2 bytes per character. What a b***s***! I expected the Unicodestring to be a real unicodestring. Anyway, in Delphi it works right. Thank you very much for the solution, I would actually never think of that...
  2. BoMi

    variable object as parameter

    Like I already said, the easiest is to use templates. Best regards...
  3. BoMi

    Filtering a bandwidth of dates in a DBGrid

    You know, patience is a virtue, and you definitely don't have it. People have their jobs and other stuff to do, and they don't have to answer to your question right away, and sometimes answer requires further investigation. This would be my answer to you. Best regards, anyway.
  4. BoMi

    variable object as parameter

    What about using templates? I don't know about their usage in Delphi, but I use them in C++ all the time. Something like this (mind you, I never did this in Delphi, but this would be the logic as it is in C++): //implementation of the procedure //T is a kind of generic type which will accept...
  5. BoMi

    How to change asInvoker to requireAdministrator

    Hi! Have you read this (very helpfull, to me at least): http://developersoven.blogspot.com/2007/02/leveraging-vistas-uac-with-delphi-part.html Best regards...
  6. BoMi

    Speed optimisation in C++ Builder 2009

    Hi johncp, yes, probably you have too few iterations for your CPU speed. If you set number of iterations higher and measure time you'll might be able to see improvement. But maybe not. For me it works nice. I saved that way around 50 or so miliseconds per iteration. I also set __fastcall to all...
  7. BoMi

    Speed optimisation in CodeGear RAD 2009

    Hey, Glenn9999, thanks for still being around trying to help. I really appreciate it. About those operators. Well, I don't know, never actually thought about it (until now, when I'm desperate and trying everything that comes to my mind), but there must be something to tell compiler that when...
  8. BoMi

    Speed optimisation in C++ Builder 2009

    Hi johncp and thank you for your response! Actually I tried many combinations of those options (thinking maybe they did something wrong with them), but those tries took me nowhere. And floating point calculations run fine (even faster than in 2006), integer arithmetic is the problem. But...
  9. BoMi

    Speed optimisation in C++ Builder 2009

    Actually, I should have been more specific about that math library I use. It is fastmath library standardly included in the C++ Builder. All routines are coded in assembly and stripped off of the most of the error checking utilities. So, I guess, it's very fast. But, I have new info on the...
  10. BoMi

    Speed optimisation in CodeGear RAD 2009

    I have new info on the problem. I did some testing and what I came up with is: integer arithmetic is about 7 times slower in 2009 than in 2006 (at least on my computer). So, my thinking is that something is wrong with the code performing integer arithmetic, but I would definitelly like to know...
  11. BoMi

    Speed optimisation in C++ Builder 2009

    Thanks, 2ffat, for your response. I use standard built in math library. I might try some other libraries, if I find any. But the question remains: why the same code runs slower now? I guess they didn't update their math library to make it slower? Best regards...
  12. BoMi

    C++ Builder 2009 vs. Delphi 2009: UnicodeString

    Thank you, 2ffat, for your response. Actually the same happens with label, edit and richedit components, too. So, I guess, it's not up to the memo. 1) Will check for updates, but I think studio is updated. 2) Nothing happens, you get boxes and question marks instead of real letters, which is...
  13. BoMi

    Speed optimisation in CodeGear RAD 2009

    Thank you both guys! Yes, Glenn9999, I already tried Sampling Profiler, and it, too, shows that the calculations are the most intensive part of the program. But, I simply can't believe it's so different now. It should run the same or even faster than before. You know, I ported another...
  14. BoMi

    Delphi 2009 vs. C++ Builder 2009: UnicodeString

    Thanks DjangMan! As a matter of fact I've already read that paper by Marco Cantu. I'm in the process of trying some stuff he mentioned. No luck so far. The second link is ok, but not helpfull. Anyway, I did a workaround of some sorts. I save all the text I'm using in my program to the unicode...
  15. BoMi

    Speed optimisation in CodeGear RAD 2009

    Thank you, Glenn9999, very much for your very quick response and for your input! First of all, I should be more specific on that speed part. Actually 300 ms is quite good time, even excellent. What does matter is the running time of only one iteration, as it usually runs through only one. Only...
  16. BoMi

    C++ Builder 2009 vs. Delphi 2009: UnicodeString

    Hi! Me again :-) Consider this piece of code: s: UnicodeString; s := '?? ?? ?? ?? ?? ?? ?? ????????????????????'; Memo1.Lines.Add(s); and the same lines in C++ Builder: UnicodeString s; s = "?? ?? ?? ?? ?? ?? ?? ????????????????????"; Memo1->Lines->Add(s)...
  17. BoMi

    Delphi 2009 vs. C++ Builder 2009: UnicodeString

    Hi! Me again :-) Consider this piece of code: s: UnicodeString; s := '?? ?? ?? ?? ?? ?? ?? ????????????????????'; Memo1.Lines.Add(s); and the same lines in C++ Builder: UnicodeString s; s = "?? ?? ?? ?? ?? ?? ?? ????????????????????"; Memo1->Lines->Add(s)...
  18. BoMi

    Speed optimisation in CodeGear RAD 2009

    Hi! I also posted this question on the C++ Builder forum, but I would like to hear your opinion too. This forum has much larger user base, and it's the same IDE after all. Here's the thing: I've been using C++ Builder 2009 for the last couple of days trying to port one of my C++ Builder 2006...
  19. BoMi

    Speed optimisation in C++ Builder 2009

    Hi! I've been using C++ Builder 2009 for the last couple of days trying to port one of my C++ Builder 2006 projects. The porting part went seamlessly. Had to change some parameter types for a couple of functions' calls due to the unicode support, but otherwise everything is great. I like this...
  20. BoMi

    Solving linker warning

    Thank you very much again TonyGroves. That solved my problem. I remember now that I used extern static, ... in C here and there, but I forgot about that. Thanks a lot.

Part and Inventory Search

Back
Top