Cannot asssign a TFont to a TFont
-
Hallo.
Ich kriege eine Meldung vom BCB:
".... Cannpt assign a TFont to a TFont ...."?
ich nutzte nix mit TFont im Quellcode.wenn man ja die exe,dll etc. an andere verteilen will. muß man die Option: "Packages -> Build with runtime packages" ab hacken.
Problem ist, wenn ich das tu, kommt diese meldung mit TFont.
mach ich den hacken wieder rein, kommt der fehler nicht.
-
<a href= schrieb:
Borland Newsgroups">The RTTI in the Dll is not the same as the RTTI in the Exe so when you pass the
Font across the boundary the RTTI check isn't matching up and you get the error
message. Build both your Dll and the Exe with packages to solve this. Better
yet use packages instead of Dll as Packages were designed to fix these types of
problems.Jeff Overcash (TeamB)
-
OK, ich verstehe das soweit.
Aber eins wo es bei mri happert ist, das mit dem Packages...
Soll ichmir nun nen Package selber machen oder wie?
-
Genau. Statt einer DLL solltest du ein Package verwenden.