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: *

  1. BorlandGeek

    A Beginner Pointer Problem

    because you specify the same address too myPhone2 -- Telephone * myPhone2 = &myPhone; when you delete myPhone you are also deleting myPhone2 because in essence they are the same thing.\ Alot of classes (all should but dont) come with a copy constructor. So you might be able to do this...
  2. BorlandGeek

    Broadcasting String to all applications

    Does anyone know the call to broadcast a string to windows so that another app may grab it and use it to display... I have a service that parses a message from SQL and usually displays it to a physical display through a serial connection.. but i would like to mimic this display with bitmaps...
  3. BorlandGeek

    Default Printer

    Sorry guys i figured it out.. you actually cant have a create form in a service.. in the service you have to log on as yourself to have a default printer work for you. Thanks for the ideas though they kept me going!
  4. BorlandGeek

    Service Print

    I think my last post got burried... When i try to find my default printer from a service it tells me I dont have one, but when i try from a normal app it works fine anyone know why?
  5. BorlandGeek

    Query help

    I was talking about the char str[40]; and the sprintf... then turning the null terminated string into a String
  6. BorlandGeek

    Uninstalling C++Builder Services

    Something you should know is that the service window will not refresh when you uninstall or install a service.. so sometimes you can get fooled into thinking it didnt work.. happened to me a few times, so i thought i might mention it
  7. BorlandGeek

    Default Printer

    It seems as if when you are trying to find your default printer from a service app it wont find it... i tried the same code in a normal app and it found the printer with no problems.. same code in a service fails.. does anyone know why?
  8. BorlandGeek

    Default Printer

    I need to find out how to see the name of the Default Printer on my machine from a service... all I need is the name. I think there is a few ways but i dont know what they are? Thanks
  9. BorlandGeek

    Creating Text Files

    Sorry i should have responded earlier... i figured it out I used oldschool methods.. with just a FILE struct and fopen, fwrite, fread... you get the picture.. worked well though...
  10. BorlandGeek

    Creating Text Files

    I am having difficulty figuring out how to create a text file at this point this is what im doing TFileStream * Comm; try { Comm = new TFileStream("text.txt", fmOpenReadWrite); } catch(...) //if the file does not exist { Comm = new TFileStream("text.txt", fmCreate); } now when i print to...
  11. BorlandGeek

    Query help

    why dont you just use AnsiStrings in your program.. it probably wont change anything, but qry's use AnsiStrings and they are easier to work with.
  12. BorlandGeek

    Init Const Vars in a class

    Thanks globos it worked you saved me alot of research
  13. BorlandGeek

    Init Const Vars in a class

    Thanks ill try that... thanks for the Class "Dummy" part too well deserved
  14. BorlandGeek

    Init Const Vars in a class

    Does anyone know how you could init const vars in a class I tried this IN CLASS DECLERATION const int var1; IN CONSTRUCTOR const_cast<int>(var1) = 10; but this says it cannot modify const var
  15. BorlandGeek

    database programming

    Nicasa, sorry i just stumbled on this now, BDE is faster than ADO, but BDE is a way borland interacts with databases. Meaning its compatability isnt very good... If you plan on writing software that may have later versions go with ADO... plus ADO is easier to use than BDE on most windows...
  16. BorlandGeek

    TADOTable Delete Help

    Sorry lastcybord DeleteTable is not a member of TADOTable anyone else got any ideas
  17. BorlandGeek

    TADOTable Delete Help

    The exect error says "Operation is not allowed in this context" calling active didnt work.... Im thought it might not be able to delete, so i called TCursorOptions Option; bool del = false; TCursorOptions Option; Option.operator >>(coDelete); del =...
  18. BorlandGeek

    TADOTable Delete Help

    I want to delete all my records in a table so i do this Table1->Delete(); //preparing for delete Table1->DeleteRecords(arAll); the last line causes an error saying cannot to this in this context anyone have any ideas??
  19. BorlandGeek

    Exception Problem

    Thanks 2ffat, it worked... I thought i could name the ref anything i wanted so i was just going catch(const Exception &ANYTHING) { } didnt know you had to specify, thanks!
  20. BorlandGeek

    Exception Problem

    onrdbandit: I tried that, the thing is I want to be able to display the message the SQL put out when the ADO messes up finnmike: ADO is Advanced Database Object it is a way of connecting to and interacting with many forms of databases

Part and Inventory Search

Back
Top