Foxit Corporation Forums  

Go Back   Foxit Corporation Forums > Portable Document Format (PDF) Tools > SDK ( DLL or ActiveX)

SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 8th, 2007, 08:50 AM
hashimsaleem hashimsaleem is offline
Junior Member
 
Join Date: Feb 2007
Posts: 7
hashimsaleem is an unknown quantity at this point
Default What are the exact PInvoke signature of FPDFBookmark_GetTitle

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
Reply With Quote
  #2  
Old November 12th, 2007, 02:49 AM
hashimsaleem hashimsaleem is offline
Junior Member
 
Join Date: Feb 2007
Posts: 7
hashimsaleem is an unknown quantity at this point
Default

47 views and no reply so far?
Reply With Quote
  #3  
Old November 12th, 2007, 07:59 AM
hashimsaleem hashimsaleem is offline
Junior Member
 
Join Date: Feb 2007
Posts: 7
hashimsaleem is an unknown quantity at this point
Default

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.
Reply With Quote
  #4  
Old November 12th, 2007, 08:27 AM
hashimsaleem hashimsaleem is offline
Junior Member
 
Join Date: Feb 2007
Posts: 7
hashimsaleem is an unknown quantity at this point
Default

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);
Reply With Quote
  #5  
Old October 17th, 2008, 11:08 AM
diamondblast diamondblast is offline
Junior Member
 
Join Date: Jul 2008
Posts: 10
diamondblast is an unknown quantity at this point
Default

you are really really good...
all the thread is yours :) both Q and A
well, I've ruined it
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2005-2008 Foxit Corporation. All rights reserved.