[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spread-users
Subject:    [Spread-users] Win32 DLL options
From:       "Chetan Gadgil" <cgadgil_list () cxoindia ! dnsalias ! com>
Date:       2003-12-15 11:53:34
[Download RAW message or body]

First of all, thanks this great toolkit.
 
I think we should have DLL as the default output on Win32.
This needs minor code changes to the sp_func.h and sp.c files. (I
already have them)
 
Another thing we need, is to slightly change the interface of
SP_receive.
The argument syntax is not friendly towards easy conversion to .NET
PInvoke.
 
I have a modified wrapper, but I have done just enough to suit my
purpose.
 
The C# API was not stable enough for me to use (get runtime exceptions),
so I have wrapped the C library as a DLL within PInvoke.
It was a breeze, thanks to both Spread APIs and Microsoft's cool
PInvoke. This can be standardized as a part of the toolkit too, as the
maintenance overhead should be low.
 
Regards
Chetan
 
 

ACKNOWLEDGE, v.t. 

To confess. Acknowledgement of one another's faults is the highest duty
imposed by our love of truth. 
  - Ambrose Bierce, The Devil's Dictionary
 

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=777044311-15122003><FONT face=Arial size=2>First of all, thanks 
this great toolkit.</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial size=2>I think we should 
have DLL as the default output on Win32.</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial size=2>This needs minor 
code changes to the sp_func.h and sp.c files. (I already have 
them)</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial size=2>Another thing we 
need, is to slightly change the interface of SP_receive.</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial size=2>The argument syntax 
is not friendly towards easy conversion to .NET PInvoke.</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial size=2>I have a modified 
wrapper, but I have done just enough to suit my purpose.</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial size=2>The C# API was not 
stable enough for me to use (get runtime exceptions), so I have wrapped the C 
library as a DLL within PInvoke.</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial size=2>It was a breeze, 
thanks to both Spread APIs and Microsoft's cool PInvoke. This can be 
standardized as a part of the toolkit too, as the maintenance 
overhead&nbsp;should be low.</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial 
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial 
size=2>Chetan</FONT></SPAN></DIV>
<DIV><SPAN class=777044311-15122003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2><EM>
<DT>
<DIV align=left></DIV>
<DT><STRONG>ACKNOWLEDGE, <EM>v.t.</EM> </STRONG>
<DD>To confess. Acknowledgement of one another's faults is the highest duty 
imposed by our love of truth. </DD>
<DT>&nbsp; - Ambrose Bierce, The Devil's Dictionary</DT></DIV>
<DIV></DIV></EM></FONT>
<DIV>&nbsp;</DIV></BODY></HTML>

_______________________________________________
Spread-users mailing list
Spread-users@lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic