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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by xGrob

  1. xGrob

    Calling pointers to class methods

    Ahh found out on "Experts Exchange" (this->*f)(nSomeInt, &vpSomePointer)... you were close though chipper
  2. xGrob

    Calling pointers to class methods

    I'm trying to call a pointer to a class method with the compiler spitting out: "term does not evaluate to a function" This is basically what I'm trying to implement: class Thing; typedef long(Thing::*FUNC)(int, void**); class Thing { Thing() { /*code & other junk */ } long...
  3. xGrob

    ALT Key

    dammit, you're right.. i just didn't try to implememt it it any other way by doing: while(1) { sleep(1); if( *((char*)KEY_ADDRESS) & KEY_ALT ) { //bla } } it clearly does work, thanks alot ;-)
  4. xGrob

    ALT Key

    thanks anyway but that's no good, i want to capture the ALT without having to press another key.. eg: press ALT and a pop-up menu opens
  5. xGrob

    ALT Key

    How do you detect keystrokes from a keyboard in DOS -WITHOUT- using getch(). I am specifically trying to detect when the ALT Key is depressed, NOT an ALT+* event.
  6. xGrob

    Please help: Text file to an Array Problem.

    well you should be able to just use this to chop the .mp3 off: *strstr(string, ".mp3") = '\0';
  7. xGrob

    Droping a file on a TRichEdit or a form in general

    put this in the form's class public: BEGIN_MESSAGE_MAP MESSAGE_HANDLER(WM_DROPFILES, TMessage, DropFile); END_MESSAGE_MAP(TForm); this in the form's constructor: DragAcceptFiles(Handle, True); replace Handle with that of a control if you like and a function similar to this...
  8. xGrob

    Getting system Time

    you have to do this i believe: ltime = time(NULL); befor useing localtime()
  9. xGrob

    Drag & Drop / C++ Builder.

    If you're talking about draging & dropping FILES into the application there is a sample program on Borland's site on the CodeCentral page that works: http://codecentral.borland.com/codecentral/ccweb.exe/prodcat?prodid=2&catid=4 unfortunately you havet os 'sign up' to download it, but at least...
  10. xGrob

    Locked NT Workstation

    Is there a way for a program to determine if the NT/2000 workstation it is running on is locked or not? (i don't mean frozen, i mean the ctrl-alt-del then enter on "Lock Computer" method)
  11. xGrob

    Controlling components on another form

    Ahh.. so you already said that you did... :) what is the error message that you're getting?
  12. xGrob

    Controlling components on another form

    did you remember to put #include "Unit2.h" at the top of the calling form? Unit2 of course being replaced by the form's header file name.
  13. xGrob

    TListView

    Has anyone figured out how to change the colour of an individual TListItem's font?
  14. xGrob

    Controlling components on another form

    Form2->SomeComponent->ThingToDo();
  15. xGrob

    Obtain MAC address from Workstation

    Well, if you can read C++, there are examples of how to do it here: http://community.borland.com/article/0,1410,26040,00.html I'm sure the equivalent VB code can be written, or it can be put into a C++ DLL which your VB app can call.

Part and Inventory Search

Back
Top