{"id":529,"date":"2011-06-07T09:51:21","date_gmt":"2011-06-07T16:51:21","guid":{"rendered":"http:\/\/www.quickpdflibrary.com\/blog\/?p=529"},"modified":"2011-06-21T08:09:34","modified_gmt":"2011-06-21T15:09:34","slug":"unsigned-integers-and-visual-basic","status":"publish","type":"post","link":"https:\/\/www.quickpdflibrary.com\/blog\/2011\/06\/unsigned-integers-and-visual-basic\/","title":{"rendered":"Unsigned Integers And Visual Basic"},"content":{"rendered":"<p><strong>Update: the information in this post has been superseded by the information from this post: <a href=\"http:\/\/www.quickpdflibrary.com\/blog\/2011\/06\/device-context-handles-and-signedunsigned-integers\/\">Device context handles and signed\/unsigned integer<\/a>. It is no longer required to use unsigned integers with the ActiveX edition, this is handled internally by the library.<\/strong><\/p>\n<p>In version 7.25 of Quick PDF Library we made a change to the API which made the use of unsigned integers necessary. Unfortunately not all versions of programming languages support unsigned integers. In this particular case Visual Basic 6 and earlier versions do not support unsigned integers, while Visual Basic .NET and newer versions do.<\/p>\n<p>Although VB6 was released over 10 years ago it still has a strong following and quite a few VB6 programmers use Quick PDF Library. This being the case we&#8217;ve come up with an easy workaround which will enable VB6 programmers to continue using all of the functions in Quick PDF Library.<\/p>\n<p>We&#8217;re now providing a TLB file along with the ActiveX edition that handles the unsigned integers. The TLB file is only used at compile time so you won&#8217;t need to distribute it with your executable, but you will need to distribute the ActiveX as per usual.<\/p>\n<p>The TLB file for Quick PDF Library 7.25 can be downloaded\u00a0<a href=\"http:\/\/www.quickpdflibrary.com\/downloads\/files\/QuickPDFAX0725VB.tlb\">from here<\/a> and will be included in all future installers.<\/p>\n<p>Instructions for using the TLB file:<\/p>\n<ol>\n<li>Register the ActiveX on your machine as per usual<\/li>\n<li>Open your VB6 project<\/li>\n<li>Go to Project &gt; References &gt; Browse&#8230;<\/li>\n<li>Add the &#8216;QuickPDFAX0725VB.tlb&#8217; file<\/li>\n<li>Compile<\/li>\n<\/ol>\n<p>As you are adding the TLB file as the reference it is not necessary to add the ActiveX file as a project reference because the TLB file interfaces with the ActiveX through the registry.<\/p>\n<p><strong>Please note: if you do not use the\u00a0GetCanvasDC, DARenderPageToDC or RenderPageToDC functions then you won&#8217;t run into any issues if you choose not to use the TLB file. The unsigned integers are currently only used with these functions.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: the information in this post has been superseded by the information from this post: Device context handles and signed\/unsigned integer. It is no longer required to use unsigned integers with the ActiveX edition, this is handled internally by the library. In version 7.25 of Quick PDF Library we made a change to the API [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8,6],"tags":[181,194,193,195,192,191,188,189,190],"class_list":["post-529","post","type-post","status-publish","format-standard","hentry","category-news","category-quick-pdf-library","category-tips-and-tutorials","tag-activex","tag-darenderpagetodc","tag-getcanvasdc","tag-renderpagetodc","tag-tlb","tag-unsigned-integers","tag-vb","tag-vb6","tag-visual-basic"],"_links":{"self":[{"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":6,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":534,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions\/534"}],"wp:attachment":[{"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickpdflibrary.com\/blog\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}