{"id":550,"date":"2008-02-20T21:44:37","date_gmt":"2008-02-20T20:44:37","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/"},"modified":"2008-02-20T21:44:37","modified_gmt":"2008-02-20T20:44:37","slug":"win32api-v0-48-adds-cdecl-function-call-support","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/","title":{"rendered":"Win32::API v0.48 adds cdecl function call support"},"content":{"rendered":"<p><span class='imgright'><img alt='' src='http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg' \/><\/span> <\/p>\n<p>In my (really little) spare time, I enjoy hacking on fun projects.<br \/>Lately, I have been struggling to get <a href=\"http:\/\/search.cpan.org\/~cosimo\/Win32-API\/\" rel=\"nofollow\" target=\"_blank\">Win32::API<\/a> Perl module to work on Vista with various MSVC++ and GCC compilers.<\/p>\n<p>Since many have asked for it, and some brave soul had an old patch available on the net, I decided to give it a shot. I had already tried 2 or 3 times to get this patch (originally for v0.41) integrated in the new Win32::API versions, but always failed at it.<\/p>\n<p>Today I decided to take the full journey, and seems I succeeded. Probably I broke something else&#8230; :-)<br \/>Please bare with me. Anyway, I have 2 things left in this release that I want to address in the new one:<\/p>\n<p>&#8211; There&#39;s a Borland C macro def that is completely broken (thanks to BrowserUk for noticing)<br \/>&#8211; I need to complete the stack cleanup assembler code at the end of Call() function in the XS code. This should be easy, for some definition of &quot;easy&quot;, since I already have some examples of MSVC\/GCC assembler code in my RT queue.<\/p>\n<p>Stay tuned for further updates&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my (really little) spare time, I enjoy hacking on fun projects.Lately, I have been struggling to get Win32::API Perl module to work on Vista with various MSVC++ and GCC compilers. Since many have asked for it, and some brave soul had an old patch available on the net, I decided to give it a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[49,50,134],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Win32::API v0.48 adds cdecl function call support - Random hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Win32::API v0.48 adds cdecl function call support - Random hacking\" \/>\n<meta property=\"og:description\" content=\"In my (really little) spare time, I enjoy hacking on fun projects.Lately, I have been struggling to get Win32::API Perl module to work on Vista with various MSVC++ and GCC compilers. Since many have asked for it, and some brave soul had an old patch available on the net, I decided to give it a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2008-02-20T20:44:37+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"Win32::API v0.48 adds cdecl function call support\",\"datePublished\":\"2008-02-20T20:44:37+00:00\",\"dateModified\":\"2008-02-20T20:44:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/\"},\"wordCount\":198,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"image\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg\",\"keywords\":[\"cpan\",\"perl\",\"Win32::API\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/\",\"name\":\"Win32::API v0.48 adds cdecl function call support - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg\",\"datePublished\":\"2008-02-20T20:44:37+00:00\",\"dateModified\":\"2008-02-20T20:44:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#primaryimage\",\"url\":\"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg\",\"contentUrl\":\"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Win32::API v0.48 adds cdecl function call support\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Win32::API v0.48 adds cdecl function call support - Random hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/","og_locale":"en_US","og_type":"article","og_title":"Win32::API v0.48 adds cdecl function call support - Random hacking","og_description":"In my (really little) spare time, I enjoy hacking on fun projects.Lately, I have been struggling to get Win32::API Perl module to work on Vista with various MSVC++ and GCC compilers. Since many have asked for it, and some brave soul had an old patch available on the net, I decided to give it a [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/","og_site_name":"Random hacking","article_published_time":"2008-02-20T20:44:37+00:00","og_image":[{"url":"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg"}],"author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"Win32::API v0.48 adds cdecl function call support","datePublished":"2008-02-20T20:44:37+00:00","dateModified":"2008-02-20T20:44:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/"},"wordCount":198,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"image":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#primaryimage"},"thumbnailUrl":"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg","keywords":["cpan","perl","Win32::API"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/","name":"Win32::API v0.48 adds cdecl function call support - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#primaryimage"},"image":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#primaryimage"},"thumbnailUrl":"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg","datePublished":"2008-02-20T20:44:37+00:00","dateModified":"2008-02-20T20:44:37+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#primaryimage","url":"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg","contentUrl":"http:\/\/files.myopera.com\/cstrep\/blog\/cpan.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2008\/02\/win32api-v0-48-adds-cdecl-function-call-support\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"Win32::API v0.48 adds cdecl function call support"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/550"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=550"}],"version-history":[{"count":0,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/550\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}