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
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
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
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
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
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
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.