Re: [foxboro] windows I/A programming

I care and want to do more on Windows but it is difficult given the  
lack of programming documentation or examples related to the use of  
FoxAPI on Windows.

I have used .NET to implement a FoxAPI application on IA Windows. The  
program is written using .NET 2.0 and C# and runs as a service. It  
uses FoxAPI to open data sets on IA, leaves them open and performs  
read/write operations. It communicates with an off platform machine.

The .NET runtime did not break IA and it has been running fine for  
over a year.

I did not install a compiler on IA because I felt this could cause a  
problem due to all the dll's that get updated. I wrote the program off  
platform and did testing on a test bed machine using visual studio  
2005 and remote debugging. The remote debugging worked great and was  
very easy to implement. It did not require major changes to the test  
machine and allowed me to step through my code as it ran on the IA  
machine.

I used interopservices to call the unmanaged foxapi dll calls I needed  
from managed C#.

In my opinion .NET (C#,VB.NET etc) is a great step forward from C++.  
With the vast class library available in the runtime it has enabled me  
to create programs which would have been much more difficult to write  
and would have taken much longer using C or C++ or VB6. I have found  
the runtime overhead to be minimal, I don't notice it.

Ted Jirik
Real Time Solutions


On Apr 21, 2009, at 9:44 AM, Corey R Clingo wrote:

> I care, but a) I have yet to write a C program on I/A, and b) I only  
> have
> one Windows station at the moment.
>
> The Windows API seems larger than the Unix one, and it changes much  
> more
> frequently.  I think that is what has kept me away from programming
> Windows (well, that and an inherent distaste for C++) with anything  
> but
> "scripting" languages.
>
>
> And now Microsoft also wants you to incur the .NET overhead, learn  
> another
> language (C#), etc. etc.  From what I read  I could use some of those
> scripting languages with .NET, but will a .NET install break I/A?   
> And I
> still have to make native calls to I/A libraries I would guess.
>
>
> I am curious, though.  Are you now supposed to use FoxAPI/AimAPI?  I  
> saw
> Alex's comparison of the two approaches, and there are some  
> drawbacks to
> using [Fox|AIM] API, but do you just have to live with those drawbacks
> now?
>
>
> Corey Clingo
> BASF Corp.
>
>
>
>
> Jeremy Milum <jmilum@xxxxxxxxx>
> Sent by: foxboro-bounce@xxxxxxxxxxxxx
> 04/21/2009 08:59 AM
> Please respond to
> foxboro@xxxxxxxxxxxxx
>
>
> To
> foxboro@xxxxxxxxxxxxx
> cc
>
> Subject
> Re: [foxboro] windows I/A programming
>
>
>
>
>
>
> On Wed, Apr 15, 2009 at 12:49 PM, Jeremy Milum <jmilum@xxxxxxxxx>  
> wrote:
>> this makes me sad.
>
> No one else cares? Does windows programming intimidate people? Were
> the UNIX users requesting the programming classes and the Windows user
> base is not? What does this say about the two groups? Inquiring minds
> want to know...
>
>
>
>
>
>
> _______________________________________________________________________
> This mailing list is neither sponsored nor endorsed by Invensys  
> Process
> Systems (formerly The Foxboro Company). Use the info you obtain here  
> at
> your own risks. Read http://www.thecassandraproject.org/ 
> disclaimer.html
>
> foxboro mailing list:             http://www.freelists.org/list/ 
> foxboro
> to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx? 
> subject=join
> to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx? 
> subject=leave
>
>

 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: