Page 1 of 1

SDK?

Posted: Wed Aug 05, 2009 2:00 am
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

RE: SDK?

Posted: Wed Aug 05, 2009 10:06 am
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.

RE: SDK?

Posted: Sat Aug 15, 2009 7:43 pm
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


RE: SDK?

Posted: Sat Aug 15, 2009 10:40 pm
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

RE: SDK?

Posted: Sun Aug 16, 2009 3:44 pm
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


RE: SDK?

Posted: Tue Aug 18, 2009 5:21 pm
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

RE: SDK?

Posted: Tue Aug 18, 2009 11:25 pm
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.

RE: SDK?

Posted: Tue Aug 18, 2009 11:35 pm
by rwmorey71
Cool! Thanks.