I'm writing a "Microsoft Visual C++ .NET" unmanaged C++ application and want to use Aspose.Pdf via the COM interface. Do you have any sample code showing how to do this?
To test it out, I was playing around with the COM object using VBScript without much success. Here is my "port" of the Hello World sample from VB to BLOCKED SCRIPT
set pdf1 = CreateObject("Aspose.Pdf.Pdf")
set sec1 = pdf1.Sections.Add()
set text1 = CreateObject("Aspose.Pdf.Pdf.Text")
Windows Script Host reports an error on the line "pdf1.Sections.Add()" stating "Invalid procedure call or argument: 'Sections.Add'. And I don't believe the "set text1" line will work either, but didn't know how to create an Aspose.Pdf Text object.
Again, my goal is to get this to work in C++ via COM, but I was just testing in VBScript before writing any C++ code. C++ samples would be very helpful. Thank you.