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. FredrikE

    Sending & recieving self-defined messages

    I've managed to define a own message. How do I send it (and recieve it)? The API function SendMessage is not an option here, since I want to use the Application->OnMessage handler. According to the help, this will not work. I also tried... /Fredrik Eriksson
  2. FredrikE

    Detecting already executing applications

    Since I'm running Win98 all hPrevInstance are NULL... /Fredrik Eriksson
  3. FredrikE

    Detecting already executing applications

    How can I detect whether my application already is running (or not) ? Theres no need to start one instance for every file double-clicked in the Explorer in an MDI-app. Compare Word etc. which only launches a single window (or at least used to). /Fredrik Eriksson
  4. FredrikE

    Login name to caption bar

    Your code should work, if you replace LabelX->Caption=szBuf; with Child->Caption = szBuf; where Child is a pointer to the active child-window. To get the child-window, use the ActiveMDIChild property in the main class. /Fredrik Eriksson
  5. FredrikE

    Registring filetype

    I wrote a program which creates '.ros'-files. Now I want my program to automatically register this filetype to be opened with my program. Can it be done? /Fredrik Eriksson
  6. FredrikE

    Loading text file into Memo box??

    Funny... the question was unanswered when I wrote my reply... :-) /Fredrik Eriksson
  7. FredrikE

    Include <some> MFC classes into my Prog, e.g. "CString"

    I think there is an install option in BCB for support for mfc-classes such as CArchive... Then you can probably use the old code right away. /Fredrik Eriksson
  8. FredrikE

    Loading text file into Memo box??

    It´t really simple. Just put this line the event of your choice: Memo1->Lines->LoadFromFile("C:\\sample.txt"); /Fredrik Eriksson
  9. FredrikE

    How to get data from SQL table?

    If you use the DBGrid in the way I described earlier, you should have the data/result in the DBGrid. I think I have some sample code if you´re interested(but it will take me a day to retrieve it). /Fredrik Eriksson
  10. FredrikE

    About "stdprn" in C or How to print a graph on a printer in C

    Have you explored the TPrinter object? Perhaps the Canvas in TPrinter can solve your problems... /Fredrik Eriksson
  11. FredrikE

    How to get data from SQL table?

    One way to get the data is to add a TDataSource and a TDBGrid. Connect the components by setting the DataSource property "DataSet" to the TQuery object-name, and then connect the DBGrid to the DataSource(using the DBGrid property DataSource). (If you do not want to display the data...
  12. FredrikE

    How can I open CArchive-files in BCB?

    I need to be able to read files, created in Visual C++´s CArchive class, in BCB. Are there any ways of doing this easy? Does anyone know how the data is stored? (My problem is compability related. My new app shold be able to open old app-files. They are however CArchives...) /Fredrik Eriksson

Part and Inventory Search

Back
Top