Board index » cppbuilder » When is a Datamodule not a datamodule?
alisdair.meredit
![]() CBuilder Developer |
Sat, 03 Aug 2002 03:00:00 GMT
|
alisdair.meredit
![]() CBuilder Developer |
Sat, 03 Aug 2002 03:00:00 GMT
When is a Datamodule not a datamodule?
When it's a form, or so it appears.
I just returned to a project I haven't been using for around 3 weeks, Anyone seen anything like this before? Any idea how to recover my AlisdairM |
Team
![]() CBuilder Developer |
Sat, 03 Aug 2002 03:00:00 GMT
Re:When is a Datamodule not a datamodule?Quote: AlisdairM <"alisdair.meredith"@NO_SPAM_PLE...@benettonformula.com> wrote: starting with "class") and the five lines before that? -- Stefan Hoffmeister - http://www.econos.de/ |
Team
![]() CBuilder Developer |
Sat, 03 Aug 2002 03:00:00 GMT
Re:When is a Datamodule not a datamodule?Quote: AlisdairM <"alisdair.meredith"@NO_SPAM_PLE...@benettonformula.com> wrote: What is the exact line where the TDataModule is referenced in the main -- Stefan Hoffmeister - http://www.econos.de/ |
alisdair.meredit
![]() CBuilder Developer |
Sat, 03 Aug 2002 03:00:00 GMT
Re:When is a Datamodule not a datamodule?Quote"Stefan Hoffmeister (TeamB)" wrote: //------------------------------------------------------------------------- The include for Forms.hpp is implicit from the #include <vcl.h> in the The only other time I have seen a similar problem was by adding the For completeness sake, here's the top of the .cpp as well, in case it //------------------------------------------------------------------------- #include "ModEmailResolution.h" |
alisdair.meredit
![]() CBuilder Developer |
Sat, 03 Aug 2002 03:00:00 GMT
Re:When is a Datamodule not a datamodule?Quote"Stefan Hoffmeister (TeamB)" wrote: DesignClass */ and for completeness, here is the top of the .dfm file too ( I don't object DataModule: TDataModule Thanks again Stefan AlisdairM |
Team
![]() CBuilder Developer |
Sat, 03 Aug 2002 03:00:00 GMT
Re:When is a Datamodule not a datamodule?The DFM file declaration is your problem. It should look something like object dmEmailResolution: TdmEmailResolution For whatever reason the initial line that you posted would be a line for the Note that you will get some error messages about a property not existing if you QuoteAlisdairM wrote: Jeff Overcash (TeamB) On waves of silver I dreamed of gold (Please do not email 'Till I lost the peace that dreaming gives me directly unless I dreamed of the moment of my own death asked. Thank You) That no one ever dreams and lives (Marillion) |
alisdair.meredit
![]() CBuilder Developer |
Sat, 03 Aug 2002 03:00:00 GMT
Re:When is a Datamodule not a datamodule?Quote"Jeff Overcash (TeamB)" wrote: Christmas Eve. This is close to up-to-date on the parts of the project that fouled up, so I am up and running again. However, I have a backup of the faulty project (in case I HAD lost too much, and it was easier to battle with this way!) so I will go back and check this fix soon. Once I get a bug, I'm never happy ignoring them, I need them dead and I need to know why! I think this problem stems back to a flaky release of WinShoes (v7.038) Quote> Note that you will get some error messages about a property not existing if you IDE fixes up references in general. Often, if I derive a superior class from a VCL base, I will hack the .DFM to change the control types in the form. Next time I try to say, the IDE want to fix the .h for me. A much appreciated feature! AlisdairM |
Pavel Stejgerl
![]() CBuilder Developer |
Sun, 04 Aug 2002 03:00:00 GMT
Re:When is a Datamodule not a datamodule?Hi, I've had similar problem when using datamodule in dll (RTL, runtime When I've created datamodule, declaration looked like this: class TDataModule1 : public TDataModule Quote} class PACKAGE TDataModule1 : public TDataModule Quote} Voila! After loading back to ide datamodule's dfm is now TForm like! (easy to replicate just create new dll & new datamodule, change it &save) The solution for me is to change declaration to following: class PACKAGE TDataModule1; class TDataModule1 : public TDataModule Quote} Pavel S. stejge...@tribut.ch |
1. To datamodule or to not datamodule
2. Help ! calling another MTS datamodule in MTS datamodule
4. Datamodule not excuting inherited code
5. Accessing TTable not in datamodule.
6. Datamodule not visible as form
7. Opening Datamodule in Design Time/ Blob Not found?