If I try and compile a simple C++/CLR project with VS 2008 (or vs2010) I get the following error:
.\PDFFile.cpp(13) : error C2686: cannot overload static and non-static member functions with the same parameter types
p:\aspose\aspose.pdf for .net\bin\net2.0\aspose.pdf.dll: could be ‘bool Aspose::Pdf::Document::(void)’
p:\aspose\aspose.pdf for .net\bin\net2.0\aspose.pdf.dll: or ‘:: ^Aspose::Pdf::Document::(void)’
This diagnostic occurred while importing type 'Aspose::Pdf::Document ’ from assembly ‘Aspose.Pdf, Version=7.7.0.0, Culture=neutral, PublicKeyToken=47b2d0fcacdd3eb6’.
.\PDFFile.cpp(13) : error C2686: cannot overload static and non-static member functions with the same parameter types
p:\aspose\aspose.pdf for .net\bin\net2.0\aspose.pdf.dll: could be ‘void Aspose::Pdf::Document::(void)’
p:\aspose\aspose.pdf for .net\bin\net2.0\aspose.pdf.dll: or ‘Aspose::Pdf::Text::TextOptions::TextEditOptions::FontReplace Aspose::Pdf::Document::(void)’
This diagnostic occurred while importing type 'Aspose::Pdf::Document ’ from assembly ‘Aspose.Pdf, Version=7.7.0.0, Culture=neutral, PublicKeyToken=47b2d0fcacdd3eb6’.
Aspose Words does not have the same problem. What am I doing wrong?
Here’s the very simple code:
namespace SampleProject {
public ref class Class1
{
// TODO: Add your methods for this class here.
public:
void method()
{
Aspose::Pdf::Document doc;
}
};
}
Hi,
Try and compile the attached project. You will need to change the reference in the TestPDF.vcproj file for Aspose.Pdf.dll (line 178) to point to a copy local to you.
Hi,
Thanks for sharing the sample project.
I have tested the scenario and I am able to notice the same problem. For the sake of correction, I have logged this issue as PDFNEWNET-35027 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. Please be patient and spare us little time.
We are sorry for this inconvenience.
I’ve just tried re-testing this and it still doesn’t work. This is a very important problem, without a fix we can’t use the product (which we’ve paid for) in our software. Any idea when it’ll be fixed?
Hi there,
Any update on this?
Hi,
Thanks for your patience.
The development team has been busy resolving other priority issues and I am afraid the above stated problem is not yet resolved. However, I have again intimated the development team to share any possible ETA. As soon as I have some updates regarding its resolution, I would be more than happy to update you with the status of correction. Please be patient and spare us little time.
We are sorry for this delay and inconvenience.
Hi,
The issues you have found earlier (filed as PDFNEWNET-35027) have been fixed in Aspose.Pdf for .NET 8.7.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(3)