delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/08/07:09:12

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20cc01c1b098$cefe3b90$b90806c0@vipin>
Reply-To: "vipin aravind" <vipin DOT aravind AT wipro DOT com>
From: "vipin aravind" <vipin DOT aravind AT wipro DOT com>
To: <cygwin AT cygwin DOT com>
Subject: gdi+ question
Date: Fri, 8 Feb 2002 17:34:48 +0530
Organization: Wipro Technologies
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

------=_NextPartTM-000-a9ab7897-1c76-11d6-a217-0000e22173f5
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

The  following   code   snippet  is   failing  when  I use
local   variable   for  Pen   and  Graphics   instead  of
dynamically allocating   them. Can  someone  help me  out with a reason?



   StartDoc(dlg.hDC, &di); 
   StartPage(dlg.hDC); 
   GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
   Pen      *pen = new Pen(Color(255, 0, 0, 255));
   Graphics *graphics = new Graphics(dlg.hDC);
   graphics->DrawLine(pen, 0, 0, 800, 200);
   delete pen;
   delete graphics;



------=_NextPartTM-000-a9ab7897-1c76-11d6-a217-0000e22173f5
Content-Type: text/plain;
	name="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="InterScan_Disclaimer.txt"

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.


 ********************************************************************


------=_NextPartTM-000-a9ab7897-1c76-11d6-a217-0000e22173f5
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_NextPartTM-000-a9ab7897-1c76-11d6-a217-0000e22173f5--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019