1

Has anyone succeeded to compile a Win32 GUI app with the command line dcc32.exe compiler, under 64-bit Windows Vista, without installing Delphi 2009? On our system it fails, with a message that the DFM files contain unknown 16-bit resources. This is usually an indication that the DFM files cannot be read. It works perfectly on all 32-bit Vista and Windows XPs, that we tried.

I am asking, because we want to ensure that we can rebuild our current exe files later, if needed, so even if we all switch to 64-bit OSes in the future, we want to be able to rebuild the old 2009 versions.

Lars D
  • 8,483
  • 7
  • 34
  • 37
  • 1
    I have seen similar message with Delphi 5 when the lnkdfm50.dll was not in the bin directory. I would run the build under depends.exe (MSFT Dependency Walker) or one of the SysInternals tools first, to check that all necessary DLLS (even those that are dynamically loaded) are there. – mghie Jun 17 '09 at 14:03
  • Without installing Delphi? Why would you put that restriction on yourself? – Rob Kennedy Jun 17 '09 at 19:10
  • For Rob: We want to ensure, that we can compile the source code in the future, even if Delphi 2009 should not be able to install itself on the future Windows versions. – Lars D Jun 18 '09 at 12:54
  • Adding lnkdfm120.dll solved the problem, thanks :-) – Lars D Jun 18 '09 at 12:54
  • @Lars: Well, then you should probably add an answer to explain how to make it work, and accept it. People with the same problem who find this question will not necessarily read the comments. Since Delphi runs this brain-dead activation scheme there may be a time when people will need to run the compiler this way. – mghie Jun 18 '09 at 15:10

3 Answers3

2

With Delphi 2009 you should use msbuild to commandline compile your projects (msbuild YourProject.dproj). Be sure to do this from the RAD Studio commandprompt. This ensures some environment variables are set. Does this solve your problem?

Lars Truijens
  • 42,837
  • 6
  • 126
  • 143
  • We don't save .dproj files to our source code repository, so that does not seem like an easy solution. – Lars D Jun 18 '09 at 12:33
  • Wow. How about you start doing that? You sound like you're deadlocked in "use delphi 2009 like it's delphi 7". I'd call that a failure to install a service pack on DelphiDeveloper 7.0 to upgrade him to 12.0. dproj files are full of valuable settings. If you aren't going to use .dproj files to hold those settings, then you should probably keep doing your command line builds in delphi 7. – Warren P Jul 15 '09 at 15:19
1

Adding lnkdfm120.dll solved the problem.

Lars D
  • 8,483
  • 7
  • 34
  • 37
0

Yes, we are performing console builds via dcc32 through nant in both Vista 64-bit and Windows 2008 64-bit. You may have to deal with some path issues the (X86) if you installed to the default location (we do not to remove these types of dependencies).