Hi,
When I try to register the Aspose.Pdf for .Net library using the regasm tool, I get the following warning (in red below).
After this when I try to compile my code, which imports this library, I get the errors shown in blue below.
All these errors refer to the block of code, shown in green below, starting on line 7447 of the "aspose.pdf.tlh" generated by the first regasm.
Can you please tell me what is causing these warnings and errors to occur, and how I can resolve these?
Thanks,
Saif Faruqui
--------------------------------------------------------------------------------------------------------------------
C:>regasm "C:\Program Files (x86)\Aspose\Aspose.Pdf for .NET\Bin\net4.0\Aspose.Pdf.dll" /tlb: "C:\Program Files (x86)\Aspose\Aspose.Pdf for .NET\Bin\net4.0\Aspose.Pdf.tlb" /codebase
Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
Types registered successfully
Type library exporter warning processing 'Aspose.Pdf.Watermark.☺, Aspose.Pdf'. W
arning: The public struct contains one or more non-public fields that will be ex
ported.
Assembly exported to 'C:\Program Files (x86)\Aspose\Aspose.Pdf for .NET\Bin\net4
.0\Aspose.Pdf.tlb', and the type library was registered successfully
C:>
--------------------------------------------------------------------------------------------------------------------
Error 1 error C2018: unknown character '0x1' c:\users\sfaruqui\documents\visual studio 2010\projects\testasposedotnetwin32console\testasposedotnetwin32console\debug\aspose.pdf.tlh 7452
Error 2 error C2059: syntax error : ';' c:\users\sfaruqui\documents\visual studio 2010\projects\testasposedotnetwin32console\testasposedotnetwin32console\debug\aspose.pdf.tlh 7452
Error 3 error C2238: unexpected token(s) preceding ';' c:\users\sfaruqui\documents\visual studio 2010\projects\testasposedotnetwin32console\testasposedotnetwin32console\debug\aspose.pdf.tlh 7452
Error 4 error C2018: unknown character '0x1' c:\users\sfaruqui\documents\visual studio 2010\projects\testasposedotnetwin32console\testasposedotnetwin32console\debug\aspose.pdf.tlh 7453
5 IntelliSense: unrecognized token c:\users\sfaruqui\documents\visual studio 2010\projects\testasposedotnetwin32console\testasposedotnetwin32console\debug\aspose.pdf.tlh 7452
6 IntelliSense: unrecognized token c:\users\sfaruqui\documents\visual studio 2010\projects\testasposedotnetwin32console\testasposedotnetwin32console\debug\aspose.pdf.tlh 7453
v
-------------------------------------------------------------------------------------
#pragma
pack(push, 4)
struct
__declspec(uuid(“fc4e4413-45d7-3834-808a-ac83875cfc5a”))
Watermark
{
struct _Image * ;
struct _Aspose_Pdf_Rectangle * _2;
};
#pragma
pack(pop)
#pragma
pack(push, 4)
struct
__declspec(uuid(“fc4e4413-45d7-3834-808a-ac83875cfc5a”))
Watermark
{
struct _Image * ;
struct _Aspose_Pdf_Rectangle * _2;
};
#pragma
pack(pop)