SDK?

PureSim Baseball is the ultimate baseball fan's toy, with support for both casual and hardcore baseball fans.

Moderator: puresimmer

Post Reply
rwmorey71
Posts: 17
Joined: Wed Jul 15, 2009 7:25 pm

SDK?

Post by rwmorey71 »

Hi --

How do I get a copy of the SDK and any documentation available with it? I would love to start making some "mods" for PureSim!

Rich
puresimmer
Posts: 2117
Joined: Sun Jul 24, 2005 3:39 pm
Contact:

RE: SDK?

Post by puresimmer »

In the \SDK folder where you installed PureSim.

Note, the docs are a little out of date, I will be updating soon.

That said, the samples in the \SDK\Samples folder should all work just fine.
Developer, PureSim Baseball
rwmorey71
Posts: 17
Joined: Wed Jul 15, 2009 7:25 pm

RE: SDK?

Post by rwmorey71 »

Hey Shaun --

I just downloaded Microsoft Visual C# Express and loaded up one PureSharp sample project and it all looks pretty straight forward. One question I have - you note in the release notes for v1.80 that IPureSim4 interface now returns a live connection to the database. Is there a document about what tables and fields are in the live DB?

Thanks

Rich

puresimmer
Posts: 2117
Joined: Sun Jul 24, 2005 3:39 pm
Contact:

RE: SDK?

Post by puresimmer »

ORIGINAL: rwmorey71

Hey Shaun --

I just downloaded Microsoft Visual C# Express and loaded up one PureSharp sample project and it all looks pretty straight forward. One question I have - you note in the release notes for v1.80 that IPureSim4 interface now returns a live connection to the database. Is there a document about what tables and fields are in the live DB?

Thanks

Rich


No, but if you have Microsoft Access 2007 you can open up all the *.dat files. They are wide open and pretty well commented.

Shaun
Developer, PureSim Baseball
rwmorey71
Posts: 17
Joined: Wed Jul 15, 2009 7:25 pm

RE: SDK?

Post by rwmorey71 »

Hey Shaun -

I am new to C# and thought I would learn more about C# by trying to create an add-in for PureSim. Can you provide a quick instruction on accessing the DB. I changed this line:

IPureSim _pureSim;

to

IPureSim4 _pureSim;

but it doesn't work.

Thanks

Rich

rwmorey71
Posts: 17
Joined: Wed Jul 15, 2009 7:25 pm

RE: SDK?

Post by rwmorey71 »

Hi --

I've tried to "get" the Association DB a few different ways but I'm having no luck. This is my latest attempt:

Code: Select all

        public void InitializeAddIn(ref PureSim2005Interfaces.IPureSim4 oPureSim, double dPureSimVersion) {
             Object db;
             String sFileName;
             oPureSim.AssnAccessDatabase(db, "");
         }

But this code won't compile. It appears that AssnAccessDatabase does not return anything so I'm not sure if the parameters are supposed to be passed TO the function or if those are variables that get updated by the call.

Any help (from anyone!) would be greatly appreciated.

Rich
puresimmer
Posts: 2117
Joined: Sun Jul 24, 2005 3:39 pm
Contact:

RE: SDK?

Post by puresimmer »

Yea, I updated the sample for 1.81, it was out of date.

When 1.81 comes out have a look and you'll be good to go.
Developer, PureSim Baseball
rwmorey71
Posts: 17
Joined: Wed Jul 15, 2009 7:25 pm

RE: SDK?

Post by rwmorey71 »

Cool! Thanks.
Post Reply

Return to “PureSim Baseball”