archive-com.com » COM » E » EFG2.COM

Total: 878

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".

  • Is it at all possible to have my program only calculate when the processor is idle I suggest you change the programs thread priority to IDLE PRIORITY CLASS This is the lowest thread priority and according to the win32 help file it only gets processor time when the processor is idle The easiest way to set your programs thread priority is by starting it from another program with CreateProcess The

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/1999/0402.txt (2016-02-14)
    Open archived version from archive



  • References Organization Another Netscape Collabra Server User X MimeOLE Produced By Microsoft MimeOLE V4 72 3110 3 Newsgroups borland public delphi graphics Try to set higher priority to your program var hProc Integer hProc GetCurrentProcess SetPriorityClass hProc REALTIME PRIORITY CLASS

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/1999/0824.txt (2016-02-14)
    Open archived version from archive


  • the life of an application Everything works just fine but I ve noticed that the CPU usage always bumps to 100 when the background thread is running The thread is pretty simple It just loops until the application is terminated and processes any deferred items about every 60 seconds or so The code below is the actual Execute code from a TThread decendant You should probably add a call to

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/1999/0428d.txt (2016-02-14)
    Open archived version from archive


  • plain charset us ascii Organization SIP Solutions Mime Version 1 0 Newsgroups borland public delphi ide I am seeing a bizarre problem I installed D5 as Admin in W2K Delphi works fine Now when I login as another user and load up Delphi the entire VCL is missing except the Frames component What s going on I don t want to constantly set up Delphi and 3rd party components for

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2000/0427a.txt (2016-02-14)
    Open archived version from archive


  • have an application that uses TPrinter to do its printing I now have a need to programtically select the outpin bin on the printer I am using the following code to set the bin before calling BeginDoc Yet it does not seem to do what I would like it to do Any ideas what I am doing wrong if DevMode dmFields and dm defaultsource dm defaultsource then begin DevMode dmFields DevMode dmFields or dm defaultsource DevMode dmDefaultSource DevMode dmDefaultSource and 256 or cBinTranslate FBin end Why are you using this tortuous construct Simply set the two fields DevMode dmFields DevMode dmFields or dm defaultsource DevMode dmDefaultSource cBinTranslate FBin You may also want to change the start of the routine to Printer GetPrinter FDevice FDriver FPort DeviceMode Printer SetPrinter FDevice FDriver FPort 0 Printer GetPrinter FDevice FDriver FPort DeviceMode This forces a reload of the devmode which is sometimes necessary to get the printer object to behave And finally pointers are your enemy they byte Avoid them if you can and in this case it is easy to do so Declare your variables as FDevice FDriver FPort array 0 128 of char Get rid of the GetMem FreeMem statements Oh bin

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2000/0110a.txt (2016-02-14)
    Open archived version from archive


  • DeviceHandle THandle DevMode PDeviceMode A Pointer to a TDeviceMode structure begin First obtain a handle to the TPrinter s DeviceMode structure Printer GetPrinter ADevice ADriver APort DeviceHandle If DeviceHandle is still 0 then the driver was not loaded Set the printer index to force the printer driver to load making the handle available if DeviceHandle 0 then begin Printer PrinterIndex Printer PrinterIndex Printer GetPrinter ADevice ADriver APort DeviceHandle end If

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/1999/1102.txt (2016-02-14)
    Open archived version from archive


  • delphi vcl components using In article David M wrote Is there a way to specify a paper tray to use using delphi standard components TPrinter handles printer changes but not paper trays as far as i can tell YOu have to drop down to the API level and modify the TDeviceMode API DEVMODE record for the selected printer Usually the printer itself selects a tray based on the requested paper

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/1999/0819a.txt (2016-02-14)
    Open archived version from archive


  • advice But in memory bitmap request too many resources I have found accidentally after many experiments other solution of my problem var NewBrush OldBrush hBrush lb TLogBrush MyBrushBmp TBitMap Create MyBrushBmp LoadFromFile c MyBrush bmp 8x8 pix with Printer Canvas do begin MyBrushBmp PixelFormat pf24bit it is necessary immediately before creating brush lb lbStyle BS PATTERN lb lbHatch MyBrushBmp Handle NewBrush CreateBrushIndirect lb OldBrush SelectObject Handle NewBrush Rectangle 0 0

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/Printing/HelS_PrinterBrush.txt (2016-02-14)
    Open archived version from archive



  •