Click here to Skip to main content
15,888,286 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionHow to Get Function argument names in mangle data? Pin
mathivanaan21-Nov-10 21:18
mathivanaan21-Nov-10 21:18 
AnswerRe: How to Get Function argument names in mangle data? Crosspost Pin
Richard MacCutchan21-Nov-10 22:21
mveRichard MacCutchan21-Nov-10 22:21 
QuestionHow to determine an inherited managed class in C++ [modified] Pin
Juri Loosme20-Nov-10 4:12
Juri Loosme20-Nov-10 4:12 
AnswerRe: How to determine an inherited managed class in C++ Pin
Nish Nishant20-Nov-10 5:55
sitebuilderNish Nishant20-Nov-10 5:55 
GeneralRe: How to determine an inherited managed class in C++ Pin
Juri Loosme20-Nov-10 6:25
Juri Loosme20-Nov-10 6:25 
GeneralRe: How to determine an inherited managed class in C++ Pin
Nish Nishant20-Nov-10 6:35
sitebuilderNish Nishant20-Nov-10 6:35 
AnswerRe: How to determine an inherited managed class in C++ Pin
Philippe Mori10-Mar-11 15:49
Philippe Mori10-Mar-11 15:49 
QuestionError C2691: 'int __gc[]' Pin
maklein9918-Nov-10 4:09
maklein9918-Nov-10 4:09 
Hi,
i'm working with a itextsharp dll and trying to put a watermark ,but this error of compilation i don't how handled it .
Working in c# is fine but with vc++ 2003 show me Error C2691: 'int __gc[]'

line : iTextSharp::text::pdf::BaseFont *watermarkFont = NULL;

what i should do ?
any ideas please .


private: void WaterMark (String *newPdf,String *PdfIndex,String *TmpPath)
		 {
			

			iTextSharp::text::pdf::BaseFont *watermarkFont = NULL;
			 

            Single watermarkFontSize = 14;
            // System.Drawing.Color  *watermarkFontColor ;
            Single watermarkFontOpacity = 0.9;
            Single watermarkRotation = 45.0;

            String *watermarkText1=NULL;
         
			iTextSharp::text::pdf::PdfReader *reader = NULL;
            iTextSharp::text::pdf::PdfStamper *stamper = NULL;
            // iTextSharp.text.pdf.PdfGState gstate = null;
            iTextSharp::text::pdf::PdfContentByte *underContent = NULL;
            iTextSharp::text::Rectangle *rect = NULL;
            iTextSharp::text::pdf::PdfReader *pages = NULL;

            
            
						
	 try
            {
                
            
            iTextSharp::text::pdf::PdfReader *reader = new iTextSharp::text::pdf::PdfReader(PdfIndex);

            int Pages = reader->NumberOfPages;

            iTextSharp::text::pdf::PdfStamper *stamper = new iTextSharp::text::pdf::PdfStamper(reader, new        System::IO::FileStream(String::Concat(TmpPath,newPdf),System::IO::FileMode::Create));

        			        

                    for (int j = 1; j <= Pages; j++)
                    {

                        watermarkText1 = j.ToString(); 
                        underContent = stamper->GetOverContent(j);
                        underContent->BeginText();            
                 //Error C2691           
						watermarkFont = iTextSharp::text::pdf::BaseFont::CreateFont(iTextSharp::text::pdf::BaseFont::HELVETICA, System::Text::Encoding::ASCII->EncodingName , false);
                        underContent->SetFontAndSize(watermarkFont,6);
						underContent->SetColorFill(iTextSharp::text::BaseColor::BLACK);
					    underContent->ShowTextAligned(iTextSharp::text::pdf::PdfContentByte::ALIGN_CENTER, watermarkText1, 300, 700, 0);
                        underContent->EndText();

                    }
			
                  

                    stamper->Close();
                    reader->Close();

                

               

            }
            catch (Exception *ex)
            {

                throw ex;
            }

		 }

QuestionUsing VC6 MFC DLLs in VS2008 Pin
Radhakrishnan G.2-Nov-10 2:49
Radhakrishnan G.2-Nov-10 2:49 
AnswerRe: Using VC6 MFC DLLs in VS2008 Pin
Nish Nishant2-Nov-10 3:03
sitebuilderNish Nishant2-Nov-10 3:03 
Questionproblem related to "Nural networks face detection algrithm" Pin
inayathussaintoori29-Oct-10 15:14
inayathussaintoori29-Oct-10 15:14 
AnswerRepost Pin
Richard MacCutchan29-Oct-10 22:35
mveRichard MacCutchan29-Oct-10 22:35 
QuestionCasting a function pointer Pin
alleyes26-Oct-10 8:32
professionalalleyes26-Oct-10 8:32 
AnswerRe: Casting a function pointer Pin
Nish Nishant26-Oct-10 10:03
sitebuilderNish Nishant26-Oct-10 10:03 
QuestionMapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
alleyes25-Oct-10 14:33
professionalalleyes25-Oct-10 14:33 
AnswerRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
Luc Pattyn25-Oct-10 14:45
sitebuilderLuc Pattyn25-Oct-10 14:45 
GeneralRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
alleyes25-Oct-10 14:55
professionalalleyes25-Oct-10 14:55 
GeneralRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
Luc Pattyn25-Oct-10 15:14
sitebuilderLuc Pattyn25-Oct-10 15:14 
GeneralRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
alleyes25-Oct-10 15:18
professionalalleyes25-Oct-10 15:18 
AnswerRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
Nish Nishant26-Oct-10 10:02
sitebuilderNish Nishant26-Oct-10 10:02 
GeneralRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
alleyes27-Oct-10 3:43
professionalalleyes27-Oct-10 3:43 
GeneralRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
Nish Nishant27-Oct-10 4:01
sitebuilderNish Nishant27-Oct-10 4:01 
GeneralRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
alleyes27-Oct-10 4:31
professionalalleyes27-Oct-10 4:31 
GeneralRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
Nish Nishant27-Oct-10 5:24
sitebuilderNish Nishant27-Oct-10 5:24 
GeneralRe: Mapping a function pointer (CALLBACK) to a delegate to use in BacgroundWorker function parameter Pin
alleyes27-Oct-10 7:43
professionalalleyes27-Oct-10 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.