<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>sorry for my english and for annoying you, but I
have a question about FFI...</FONT></DIV>
<DIV><FONT face=Arial size=2>I am a newbie in smalltalk and I tried to use
Seaside to make an ODBC connection.</FONT></DIV>
<DIV><FONT face=Arial size=2>So w</FONT><FONT face=Arial size=2>e tryied to make
a simple connection + query:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#008000 size=2>| con |<BR> con :=
ODBCConnection dsn:'testsqueak' user:'sa' password:''.<BR> (con query:
'SELECT count(*) FROM Clienti') results do:[:row | Transcript show: row;
cr].</FONT></DIV>
<DIV><FONT color=#008000></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT color=#008000> con
close.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT color=#008000></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2>...but we obtained the error explained in the
attachment image file.</FONT></DIV>
<DIV><FONT face=Arial size=2>We use Squeak 3.9 (Seaside OneClickExperience
version) + FFI loaded by Squeak Map + </FONT></DIV>
<DIV><FONT face=Arial size=2>ODBC for Squeak loaded with Squeak
Map.</FONT></DIV>
<DIV><FONT face=Arial size=2>Running that code in an old version of Squeak (3.7)
everithing works...</FONT></DIV>
<DIV><FONT face=Arial size=2>Do you know why? </FONT></DIV>
<DIV><FONT face=Arial size=2>Maybe that are different versions of
FFI?</FONT></DIV>
<DIV><FONT face=Arial size=2>Maybe the call at odbc32.dll <STRONG>OLD
deprecated</STRONG> function "<STRONG>SQLAllocEnv</STRONG>" instead of new
"<STRONG>SQLAllocHandle</STRONG>"?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV id=result_box dir=ltr>Thank you a lot in advance and best wishes for
holidays.</DIV>
<DIV dir=ltr></FONT></DIV></DIV></FONT></DIV></BODY></HTML>