When I first started writing programs for betfair, I had a hard time of it,
I'd never written for the PC ( only UNIX and some dinosaurs from the 50's 60's and 80's )
with a decade old compiler and no PC knowledge at all it took me about 4 months to
get a simple Login() function to work.
Now it can be done in an afternoon with practically zero PC knowledge, just a smattering of C#
and a copy of Visual Studio.
In the background there's the pinicle of 50 years of development technology with things like
XML, WDSL, SOAP & DLL's but as a beginner, you'll likely die of a Bill Gates induced migrane
before mastering all that and actually writing a small program.
This tutorial is intended to allow you to skip straight into to world of point and click
having just a little bit of grounding in C# or similar.
So here we have a step by step tutorial where only a basic knowledge of C# is assumed.
Parts 1 and 2 create a general purpose reusable class for talking to betfair with just
the basics of logging in and out. followed by a simple form demonstarting how to use this
class.
If there's enough interest and I find the time, I could take this all the way to a fully
functioning GUI that behaves pretty much as the standard web interface we all know and love so much !
I'm using VS2008 professional but other versions hopefully don't differ enough to make this incomprehensible.
You can obtain a free 'lite' version of C# called "C# Express" ( or something like that ) downloadable from www.microsoft.com
Edit: The tutorial is now goes upto Part 7 in 85 steps and if you complete it you will have this:

PART 1
The Betfair Class
Step 1
First off we want to setup a bit of organisation so Create a folder in your \Users\XXXX\Documents\Visual Studio 2008\Projects\
folder called "My Betfair" ( or whatever name you desire, in this tutorial its called "My Tutorial" )
Step 2
Now in Visual Studio Create a new c# 'Class Library' Project ( Class Library = .dll ) called BetfairAPI
Located in your "My Betfair" folder like so:

After you've filled in the relevant parts of the form and clicked OK it should create our
BetfairAPI project Like this

Step 3
The default name for the class it has created is "Class1" we want to change this to something
more meaningful so:
Right click on the 'class1.cs' file in the Solution explorer
Select 'Rename' from the popup menu
Change the name to "CBetfairAPI.cs"
when you press enter, a pop up message box will appear asking if you
want to rename the class as well. Select Yes
Now the project should look like this

This forum only allows 4 images per post so continued in Netx post
I'd never written for the PC ( only UNIX and some dinosaurs from the 50's 60's and 80's )
with a decade old compiler and no PC knowledge at all it took me about 4 months to
get a simple Login() function to work.
Now it can be done in an afternoon with practically zero PC knowledge, just a smattering of C#
and a copy of Visual Studio.
In the background there's the pinicle of 50 years of development technology with things like
XML, WDSL, SOAP & DLL's but as a beginner, you'll likely die of a Bill Gates induced migrane
before mastering all that and actually writing a small program.
This tutorial is intended to allow you to skip straight into to world of point and click
having just a little bit of grounding in C# or similar.
So here we have a step by step tutorial where only a basic knowledge of C# is assumed.
Parts 1 and 2 create a general purpose reusable class for talking to betfair with just
the basics of logging in and out. followed by a simple form demonstarting how to use this
class.
If there's enough interest and I find the time, I could take this all the way to a fully
functioning GUI that behaves pretty much as the standard web interface we all know and love so much !
I'm using VS2008 professional but other versions hopefully don't differ enough to make this incomprehensible.
You can obtain a free 'lite' version of C# called "C# Express" ( or something like that ) downloadable from www.microsoft.com
Edit: The tutorial is now goes upto Part 7 in 85 steps and if you complete it you will have this:

PART 1
The Betfair Class
Step 1
First off we want to setup a bit of organisation so Create a folder in your \Users\XXXX\Documents\Visual Studio 2008\Projects\
folder called "My Betfair" ( or whatever name you desire, in this tutorial its called "My Tutorial" )
Step 2
Now in Visual Studio Create a new c# 'Class Library' Project ( Class Library = .dll ) called BetfairAPI
Located in your "My Betfair" folder like so:

After you've filled in the relevant parts of the form and clicked OK it should create our
BetfairAPI project Like this

Step 3
The default name for the class it has created is "Class1" we want to change this to something
more meaningful so:
Right click on the 'class1.cs' file in the Solution explorer
Select 'Rename' from the popup menu
Change the name to "CBetfairAPI.cs"
when you press enter, a pop up message box will appear asking if you
want to rename the class as well. Select Yes
Now the project should look like this

This forum only allows 4 images per post so continued in Netx post

















Comment