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 SkipVought 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: Duoas
  • Order by date
  1. Duoas

    BCC 5.82 global locale fail

    Hi all, I'm new to this particular forum. I am using Borland C++ 5.82, and the following fails: ... #include "utf8_locale.hpp" const std::locale utf8_locale( // A global object std::locale::classic(), new duthomhas::unicode::utf8_facet ); int main() { wofstream outf...
  2. Duoas

    Threads with TBItmap, TJpegImage, TGraphics32

    I believe it is, but there may be caveats. Make sure you do some reading and heavy testing. http://graphics32.org/wiki/pub/page/Main/HomePage Good luck!
  3. Duoas

    TP/DOS compatibility code

    You are allowed to use forms in Console mode applications. It doesn't have to be visible though. ;-) But the Lst file is really just a direct line-printer text file. You might want to check out the simple OpenPrinter() and WritePrinter() functions. Another useful one is the poorly-named...
  4. Duoas

    Automatic resizing of panels in a form?

    There's no need to do that. He's modifying child control sizes, not the size of the form.
  5. Duoas

    Rounded button suggestion

    Here you go. It is a D3+ package. Files [tab]tGraphicButton.dpk [tab]tGraphicButton.res [tab]uGraphicButton.pas [tab]tGraphicButton.cnt [tab]tGraphicButton.hlp Compilation and Installation From the Delphi IDE, load the DPK file. Click Compile and then Install. You should see a new tab on the...
  6. Duoas

    Rounded button suggestion

    If you want I'll send you my tGraphicButton component (made in D5, but it will work for you). It uses only image(s) to display itself --so you have absolute control over what the button looks like in normal, hover, active, and disabled states.
  7. Duoas

    raising a number to an exponent

    LOL! I figured it was something like that. Lately I've been typing Pascal into C++ forums... In Pascal foo^ is the dereference operator. void do_something( x, y: integer ) :-\
  8. Duoas

    diaabling form resize

    You can also attach to the OnCanResize event (inherited from TControl) Hope this helps.
  9. Duoas

    Memo to CSV

    That is a pretty general question. A CSV file is nothing more than a bunch of lines (aka "records") which are subdivided (into "fields") by commas. type tEmployee = record surname: string; given_name: string; pay_rate: double...
  10. Duoas

    Convert in64 to timestamp

    FileTimeToSystemTime and SystemTimeToFileTime are the procedures you are looking for. (Then you will need SystemTimeToDateTime...) Here's a tutorial I wrote on the (general) subject some time ago: Handling Dates and Time in Delphi Hope this helps.
  11. Duoas

    "/temp/ib_sort_b00120"

    It looks like someone has hard-coded a path into the database or the database query, so when that file or path is missing it complains. The path can be in the table, in the query, or in the db component. I don't know much about DB stuff, but I figured that I could at least bump this for you...
  12. Duoas

    Passing string as const string

    Wow, sorry to respond so late... The C# method is asking for a widestring reference and promising not to modify the string. You can use both ansistring and widestring together, and assign the one to the other: var astr: ansistring; wstr: widestring; begin astr := 'Hello world!'; wstr...
  13. Duoas

    Navigating code in Turbo Delphi

    I can't stand the thing so I've turned it off. But I don't think you can fix it. In the options there is one to keep the Structure View on top of the desktop no matter what --perhaps that will help... If you hold the Ctrl key down and mouse over keywords you can jump directly to the code that...
  14. Duoas

    Cannot copy object to Clipboard

    I presume that you aren't trying to paste items into incompatible places... ...and that you have already tried rebooting your system. It sounds like the IDE has been corrupted. Have you (or some component) made any changes to the standard DCUs? (If you aren't sure you can check the file date...
  15. Duoas

    Runtime error on closing application

    Report them as bugs to your external supplier. RE 216 is an EAccessViolation: an attempt to dereference nil or non-allocated virtual memory, or to write to a code page. It is a cumulative result of those first three messages. There is nothing you can do on your end (from inside a DLL) to fix...
  16. Duoas

    Playing card curl effect

    Or just use a couple of bitblts. You'll need a bitmap for each: 1) the front side of the card 2) the back side of the card 3) a diagonal mask: +------+ | a /| a = transparent | / | | / | | | | b | b = background color +------+ Now blit the cards so that the bottom-right...
  17. Duoas

    Write to a Memo from many different Units

    @6volt A1) It is never appropriate to dump foreign namespaces into the current unless the current explicitly asks for it. Delphi units are simplistic, but they do the right thing. As a visual thought experiment, consider your car. Your car needs an engine to run, but you don't necessarily want...
  18. Duoas

    Disabling the form maximize function

    Ack, my brain was working backwards... Just disabling the maximize should leave the button there, you just can't use it. But exactly as Roo said, the BorderStyle has a direct impact on what kinds of buttons you can have there (without drawing them yourself).
  19. Duoas

    Disabling the form maximize function

    Depending on the Windows version (I don't know about Vista) that will also kill your minimize button. If that is a problem, then you can write yourself a WM_SYSCOMMAND message handler that ignores wParam = SC_MAXIMIZE. Hope this helps.

Part and Inventory Search

Back
Top