![]() |
|
|||||||
| SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I am using the following signatures for FPDFBookmark_GetTitle() // FPDFBookmark_GetTitle: Get title of a bookmark [DllImport("fpdfview.dll", SetLastError = true)] public static extern ulong FPDFBookmark_GetTitle(IntPtr bookmark, IntPtr buffer, ulong buflen); But i m getting PInvokeStackImbalance mda activated. Can someone point out what I am doing wrong? I am programming in Visual Studio 2005 and the language is C#. Regards, Hashim Saleem |
|
#2
|
|||
|
|||
|
47 views and no reply so far?
|
|
#3
|
|||
|
|||
|
I have found the correct signature to be
// FPDFBookmark_GetTitle: Get title of a bookmark [DllImport("fpdfview.dll", SetLastError = true)] public static extern uint FPDFBookmark_GetTitle(IntPtr bookmark, IntPtr buffer, uint buflen); Thanks. |
|
#4
|
|||
|
|||
|
More comfortable signature is
// FPDFBookmark_GetTitle: Get title of a bookmark [DllImport("fpdfview.dll", SetLastError = true)] public static extern uint FPDFBookmark_GetTitle(IntPtr bookmark, [MarshalAs(UnmanagedType.LPTStr)] StringBuilder buffer, uint buflen); |
|
#5
|
|||
|
|||
|
you are really really good...
all the thread is yours :) both Q and A well, I've ruined it |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|