Wiki NewForum | Latest Entertainment News

Wiki NewForum | Latest Entertainment News (https://www.wikinewforum.com//index.php)
-   Oracle Database, SQL, Application, Programming (https://www.wikinewforum.com//forumdisplay.php?f=96)
-   -   CMPLIB32.DCL problems (https://www.wikinewforum.com//showthread.php?t=27199)

bholas 08-20-2010 11:13 AM

CMPLIB32.DCL problems
 
If you install new components frequently, you've probably run in to situations where Delphi is unable to build the components library file -- <tt>CMPLIB32.DCL</tt> -- due to an error occurred compiling certain components. Most of the time, you'll be able to solve the problem by exiting Delphi, removing the problematic components and rebuilding the components library. If for some reason you're unable to rebuild this file, you have following options:
  1. Close Delphi
  2. Look for a file called <tt>CMPLIB32.~DC</tt> in the same directory where you'd normally find <tt>CMPLIB32.DCL</tt>. By default, this would be in "<tt>C:\Program Files\Borland\Delphi 2.0\Bin</tt>"
  3. Copy <tt>CMPLIB32.~DC</tt> (backup of the last good compile of the components library) to <tt>CMPLIB32.DCL</tt>.
  4. Restart Delphi and open the recovered <tt>CMPLIB32.DCL</tt> using "<tt>Component | Open Library...</tt>" menu option.
If you can't find the <tt>CMPLIB32.~DC</tt>, most likely your last option is to copy the <tt>CMPLIB32.DCL</tt> file that came with your Delphi install disk(s). Once you retrieve the original components file, you must reinstall components that you had installed since the original installation of Delphi.

var
f : TextFile;
begin
AssignFile( f, 'LPT1' );
Rewrite( f );

//
// do your printing here...
//
WriteLn( f, 'hello, world!');

CloseFile( f );
end;</pre>


All times are GMT. The time now is 04:35 PM.

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.