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

    How to do Disk and File Access?

    Ok... not my most brilliant day today :(. PhysicalDriveN es a physical drive or a volume. Drives are sector oriented devices. buho (A).
  2. buho

    How to do Disk and File Access?

    What '\\.\PhysicalDrive1' actually is? What kind of device? Yes, CreateFile/ReadFile works well in Delphi (at least till D6). buho (A).
  3. buho

    Pointers on BDS 2006?

    Stars for you both, Glenn and Daddy. Thanks a lot. buho (A).
  4. buho

    How to do Disk and File Access?

    ReadFile is byte oriented. You are reading in 512 bytes chunks due to the fact you are telling ReadFile to read 512 bytes :). Try this: SetLength(buf2, 512); hDiskFile := CreateFile(...); // Error check here, please. SetFilePointer(hDiskFile, 300, Nil, FILE_BEGIN); // Error check here...
  5. buho

    How make an event without generate a package?

    Yes you can, Druid, but... But Delphi events are mimics for Windows messages, so you need to have some knowldege about the Windows message subsystem and the message queue. To generate an event you need to send an "user" (propietary) Windows message. To get the event you need an object looping...
  6. buho

    How to do Disk and File Access?

    var buf2:array of byte; // Dynamic array to hold file data ... ReadFile(hDiskFile, buf2, sizeof(buf2), intreadedamount, nil); The dyn arrays and ansi strings are pointers to the control structures, not pointers to the data space. If you use buf2 : array[1..n] of byte as Glen said, then...
  7. buho

    Pointers on BDS 2006?

    TYVM guys. The upgrade is mainly from D6. Any changes in the packed records, fixed arrays of char/byte or string[n]? I heavily relay on them. The new VCL components support XP themes? buho (A).
  8. buho

    Pointers on BDS 2006?

    Hellow, guys! Please, I need to ask a favor: can anyone post some pointers on BDS 2006? Bugs, compatibility issues, informed opinions, etc? TIA. buho (A). PS: Nice to see most of you are still here!
  9. buho

    Split CSV Procedure problem

    What problem are you having? buho (A).
  10. buho

    Can't get GetASyncKeyState to work in console application.

    I was "dumbified" last night :( The better way to pass the buffer is the simplest one: ReadConsoleInput(InputHandle, InputBuffer[1], 128, InputEventsRead); Defining the parameter as a TInputRecord like Borland does permits calls like: ReadConsoleInput(InputHandle, InputBuffer[n], m - n...
  11. buho

    Can't get GetASyncKeyState to work in console application.

    The function declararation expects a single record and not an array/pointer :( To add insult to the injury, you can't typecast an array as a record. ---------------- Trick 1: UNCHECK "Typed @ operator" in the compiler options and use: var p : PInputRecord; ... begin p := @InputBuffer...
  12. buho

    Style of desktop(ListView)

    Googling the 'net I've got the codes: FCIDM_SHVIEW_LARGEICON = $7029; // 28713 FCIDM_SHVIEW_SMALLICON = $702A; // 28714 FCIDM_SHVIEW_LIST = $702B; // 28715 FCIDM_SHVIEW_REPORT = $702C; // 28716 FCIDM_SHVIEW_THUMBNAIL = $702D; // 28717 FCIDM_SHVIEW_TILE = $702E; //...
  13. buho

    UNC File Copy

    Never failed me. May be a rights issue? buho (A).
  14. buho

    Can't get GetASyncKeyState to work in console application.

    Those functions works in Win9x normal apps. The problem is mostly the console app. buho (A).
  15. buho

    Style of desktop(ListView)

    The AV is due to the VCL TListView not being prepared to have columns inserted "from outside". You code is ok; it inserts the columns with the due names in my TListView. Why it doesn't work in the desktop list I only can guess: a) May be your LV_COLUMN record is not packed and/or b) You are...
  16. buho

    Style of desktop(ListView)

    Mmmm... cchTextMax field is not needed when creating a column but when getting info about one... the help wording got me. buho (A).
  17. buho

    Style of desktop(ListView)

    Column zero being the rightmost column issue solved. Sorry, my mistake. AV resizing columns still here. buho (A).
  18. buho

    Style of desktop(ListView)

    I've tried your code in a "honest" list in the VCL. Some funny things: a) The columns appears with the due names. b) The column zero is the rightmost column. c) I have an AV every time I try to resize the columns with the mouse. I think you forgot the cchTextMax field, but in my case the AV...
  19. buho

    Can't get GetASyncKeyState to work in console application.

    That was what I was thinking. But I never wrote a console for Win9x, so I can't say. buho (A).
  20. buho

    putting db text into button captions

    ctxt" is a string variable, you can't cast it to an object. The form where the buttons are have a method named FindChildControl; it is a function receiving the control name and returning a pointer to it. Try something like this code: var ... Btn : TControl; ... Btn :=...

Part and Inventory Search

Back
Top