views:

850

answers:

3

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.

+2  A: 

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
We don't save .dproj files to our source code repository, so that does not seem like an easy solution.
Lars D
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
A: 

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

Ryan VanIderstine
+1  A: 

Adding lnkdfm120.dll solved the problem.

Lars D