Jump to content

mderie

Members
  • Content Count

    11
  • Joined

  • Last visited

Posts posted by mderie


  1. Hi,

     

    I'm trying to perform something which should be basic : I want to print a given form content.

    But wait, with the border and title. So not only the ClientArea... So "self.print" is not enough !

    I'm trying to play with the PrintWindow API but no luck till now. Any clue  ? Thanks in advance

     

    Regards.


  2. Hi folks,

     

    I've discover this a bit by misluck :

     

      function GenerateAppGUID: TGuid;
      const
        guid : TGUID = '{481E85E5-3874-4FCB-BEA1-B65D640AE6D3}';
      begin
        result := guid; // Compile fine !
      end;

     

      function GenerateAppGUID: TGuid;
      begin
         Result := '{481E85E5-3874-4FCB-BEA1-B65D640AE6D3}'; // E2010 Incompatible types: 'TGUID' and 'string'
      end;

     

    I find this quite annoying...

     

    Regards


  3. Hi,

     

    <NOSTALGIA_ON>

    I'm glad to rediscover a Delphi programmer community !

    Back in time I was pleased to find answers through TeamB among other nice people

    And finding good components on Torry's Delphi pages

    </NOSTALGIA_ON>

     

    Now I've quickly test C++ in respect of type redeclarations and global variable redefinitions...

    Well let say that my heart beats for the later one... Delphi just takes too many shortcuts !

     

    Regards

     


  4. Hi,

     

    I was disturbed to say the least that one can declare a global variable the same name as an existing one in another (system) unit.

    IE : I encounter the case today, some funny guy declared a global like this one.

     

    FormatSettings : TFormatSettings;

     

    Althought the exact same line exists in SysUtils... I let you imagine what happened when debugging !

    Since some units does include this funny one and the SysUtils one...

     

    Any idea ? And yes I know that globals are evil :)

     

    Regards.

×