<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : LIB edition DllMain</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : LIB edition DllMain]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Jul 2026 20:35:43 +0000</pubDate>
  <lastBuildDate>Thu, 04 Aug 2011 11:57:11 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=1896</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[LIB edition DllMain : Well, I feel rather foolish. The...]]></title>
   <link>http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8159.html#8159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1649">maureen</a><br /><strong>Subject:</strong> 1896<br /><strong>Posted:</strong> 04 Aug 11 at 11:57AM<br /><br />Well, I feel rather foolish. The problem was caused by not including the resource files QuickPDFCMap.res, QuickPDFDingbats.res and QuickPDFGlyphList.res as is quite clearly stated in the Getting Started guide.<br><br>For reference, if you're linking the Quick PDF LIB into a DLL, the correct HINSTANCE value to pass as the first parameter to QUICKPDFLIBXXXX_DllMain() is the HINSTANCE of your DLL, which you get passed by Windows as the first parameter of your own DllMain().<br>]]>
   </description>
   <pubDate>Thu, 04 Aug 2011 11:57:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8159.html#8159</guid>
  </item> 
  <item>
   <title><![CDATA[LIB edition DllMain : http://www.binary-soft.com/dll2lib/dll2lib.htm  ...]]></title>
   <link>http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8133.html#8133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 1896<br /><strong>Posted:</strong> 28 Jul 11 at 1:43PM<br /><br /><div><br></div><span ="Apple-style-span" style="font-family: arial; line-height: normal; font-size: small; "><a href="http://www.binary-soft.com/dll2lib/dll2lib.htm" target="_blank">http://www.binary-soft.com/dll2lib/dll2lib.htm</a></span>]]>
   </description>
   <pubDate>Thu, 28 Jul 2011 13:43:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8133.html#8133</guid>
  </item> 
  <item>
   <title><![CDATA[LIB edition DllMain : Hi tfrost, thanks for the suggestion...]]></title>
   <link>http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8127.html#8127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1649">maureen</a><br /><strong>Subject:</strong> 1896<br /><strong>Posted:</strong> 25 Jul 11 at 12:44PM<br /><br />Hi tfrost, thanks for the suggestion but unfortunately that's not the problem. The only thing I do in my DllMain() is save the HINSTANCE first parameter to a global variable.<br>]]>
   </description>
   <pubDate>Mon, 25 Jul 2011 12:44:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8127.html#8127</guid>
  </item> 
  <item>
   <title><![CDATA[LIB edition DllMain : In your own DLL, where have you...]]></title>
   <link>http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8123.html#8123</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 1896<br /><strong>Posted:</strong> 22 Jul 11 at 9:51PM<br /><br />In your own DLL, where have you put the call to load the QuickPDF DLL?&nbsp; You must not do this in your main DLL entry point, because you are not allowed to recursively load another DLL at this time.&nbsp; You may need to make another initialization call to the DLL from your main program, after your own DLL load is complete, to get&nbsp;your DLL to load the QuickPDF DLL.&nbsp; You should also be careful not to unload the DLL from a thread or process detach case in your DLL main entry.]]>
   </description>
   <pubDate>Fri, 22 Jul 2011 21:51:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8123.html#8123</guid>
  </item> 
  <item>
   <title><![CDATA[LIB edition DllMain : Hi Andrew!Off topc but ...&amp;#034;...The...]]></title>
   <link>http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8122.html#8122</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1896<br /><strong>Posted:</strong> 22 Jul 11 at 4:08PM<br /><br />Hi Andrew!<br><br>Off topc but ...<br>"...<br>The LIB file that we supply is created with a 3rd party tool<br>..."<br>Which is the name of these 3rd party tool?<br>Would be very interesting for me.<br>Thanks in advance.<br><br>Cheers, Ingo<br><br>]]>
   </description>
   <pubDate>Fri, 22 Jul 2011 16:08:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8122.html#8122</guid>
  </item> 
  <item>
   <title><![CDATA[LIB edition DllMain : The LIB file that we supply is...]]></title>
   <link>http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8120.html#8120</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 1896<br /><strong>Posted:</strong> 22 Jul 11 at 8:54AM<br /><br /><div>The LIB file that we supply is created with a 3rd party tool that takes a DLL and makes a LIB file from it so it probably uses some tricks which are getting in the way of allowing us to add the LIB file to a DLL.</div><div><br></div><div>As you know, QPL is complied in Delphi. &nbsp;Delphi creates a different object file format to MSVC (COFF vs OMF) and so the tool we use does some fancy tricks in order to create a LIB file that is compatible with the Microsoft compilers and their require LIB format.</div><div><br></div><div>We are contacting the tool supplier for an answer.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 22 Jul 2011 08:54:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8120.html#8120</guid>
  </item> 
  <item>
   <title><![CDATA[LIB edition DllMain : Additional information...Linking...]]></title>
   <link>http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8116.html#8116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1649">maureen</a><br /><strong>Subject:</strong> 1896<br /><strong>Posted:</strong> 21 Jul 11 at 6:49PM<br /><br />Additional information...<br><br>Linking the LIB straight into an EXE and initialising it with<font size="2"><font face="Courier New, Courier, mono"><b> </b></font></font><b><font face="Courier New, Courier, mono" size="2">QUICKPDFLIB0726_DllMain(GetModuleHandle(NULL), DLL_PROCESS_ATTACH, NULL)</font></b> works just fine.<br><br>When I produce a release build of my DLL and EXE and run the EXE, it crashes and shows the Windows "this program has crashed" message, followed by a message box that says "<b>Runtime Error 217 at 1001B6D1</b>". This is the same for any handle value I pass.<br><br>Again, many thanks in advance for any suggestions.<br>]]>
   </description>
   <pubDate>Thu, 21 Jul 2011 18:49:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8116.html#8116</guid>
  </item> 
  <item>
   <title><![CDATA[LIB edition DllMain : What is the full, correct syntax...]]></title>
   <link>http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8115.html#8115</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1649">maureen</a><br /><strong>Subject:</strong> 1896<br /><strong>Posted:</strong> 21 Jul 11 at 5:34PM<br /><br />What is the full, correct syntax for calling the <b><font face="Courier New, Courier, mono">QUICKPDFLIBXXXX_DllMain()</font></b> function when using the LIB edition of QPL? Specifically, what should the first parameter be?<br><br>I am trying to link the LIB into a C++ DLL which is then called by an EXE. I have tried <b><font face="Courier New, Courier, mono" size="2">QUICKPDFLIB0726_DllMain(GetModuleHandle(NULL), DLL_PROCESS_ATTACH, NULL)</font></b> as per the Getting Started guide, which will pass a handle to the EXE. I have also tried passing the handle to my DLL, which I get as the first parameter to my DLL's <b><font face="Courier New, Courier, mono">DllMain()</font></b>. Both cause <font face="Courier New, Courier, mono"><b>QUICKPDFLIB0726_DllMain()</b></font> to crash.<br><br>Can anyone offer a suggestion? Thanks very much in advance.<br>]]>
   </description>
   <pubDate>Thu, 21 Jul 2011 17:34:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/lib-edition-dllmain_topic1896_post8115.html#8115</guid>
  </item> 
 </channel>
</rss>