<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Calling Clarion From Python</title>
	<atom:link href="http://www.devpicayune.com/docs/calling-clarion-from-python/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devpicayune.com</link>
	<description>picayune: of little value or importance</description>
	<lastBuildDate>Mon, 31 May 2010 21:40:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Joshua</title>
		<link>http://www.devpicayune.com/docs/calling-clarion-from-python/comment-page-1#comment-34443</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Tue, 16 Mar 2010 21:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.devpicayune.com/calling-clarion-from-python#comment-34443</guid>
		<description>I found out what the problem with my setup was: it&#039;s related to calling win32 DLLs from 64bit compiled code. My development machine is now running Windows 7 (64bit version). I installed the 64bit installer for Python. However, Clarion generates win32 (32 bit code).

It ends up that calling 32bit DLLs from 64bit code is non-trivial in Windows. One trick is to build a 64bit serializing/marshaling wrapper around your 32bit code. The other trick is to avoid using 64bit code and stick to using 32bit code to call 32bit DLLs. This second approach is what I did.

So, the issue here is not Clarion specific, but merely a problem with using mixed binary DLLs (win32/win64)

Hope this saves someone else some grief.</description>
		<content:encoded><![CDATA[<p>I found out what the problem with my setup was: it&#8217;s related to calling win32 DLLs from 64bit compiled code. My development machine is now running Windows 7 (64bit version). I installed the 64bit installer for Python. However, Clarion generates win32 (32 bit code).</p>
<p>It ends up that calling 32bit DLLs from 64bit code is non-trivial in Windows. One trick is to build a 64bit serializing/marshaling wrapper around your 32bit code. The other trick is to avoid using 64bit code and stick to using 32bit code to call 32bit DLLs. This second approach is what I did.</p>
<p>So, the issue here is not Clarion specific, but merely a problem with using mixed binary DLLs (win32/win64)</p>
<p>Hope this saves someone else some grief.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ScW</title>
		<link>http://www.devpicayune.com/docs/calling-clarion-from-python/comment-page-1#comment-34353</link>
		<dc:creator>ScW</dc:creator>
		<pubDate>Fri, 12 Mar 2010 17:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.devpicayune.com/calling-clarion-from-python#comment-34353</guid>
		<description>Actually, me (Steven aka ScW) wrote this article. Brandon and I both write for this site. 

As for your comment, I&#039;m afraid the application I support is Clarion 5 based and won&#039;t be moving, so I&#039;ve not attempted a Clarion 7.1 function export.

If I were giving advice, I&#039;d say, try something ultra  simple (no parameters) and returns a LONG. See if you can get that to work, then make a more complicated example. Good luck.</description>
		<content:encoded><![CDATA[<p>Actually, me (Steven aka ScW) wrote this article. Brandon and I both write for this site. </p>
<p>As for your comment, I&#8217;m afraid the application I support is Clarion 5 based and won&#8217;t be moving, so I&#8217;ve not attempted a Clarion 7.1 function export.</p>
<p>If I were giving advice, I&#8217;d say, try something ultra  simple (no parameters) and returns a LONG. See if you can get that to work, then make a more complicated example. Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.devpicayune.com/docs/calling-clarion-from-python/comment-page-1#comment-34352</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Fri, 12 Mar 2010 17:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.devpicayune.com/calling-clarion-from-python#comment-34352</guid>
		<description>Brandon,

I&#039;m trying to tackle the task of creating and exporting functions with Clarion via DLLs. I have Clarion 7.1 and many items have seemed to change from the version you used for this article! Do you have any experience creating DLLs with C7.1 and then calling them from C/python/perl/etc?</description>
		<content:encoded><![CDATA[<p>Brandon,</p>
<p>I&#8217;m trying to tackle the task of creating and exporting functions with Clarion via DLLs. I have Clarion 7.1 and many items have seemed to change from the version you used for this article! Do you have any experience creating DLLs with C7.1 and then calling them from C/python/perl/etc?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
