Author |
Prestige Calculator! |
BackSlash Marshal Galactic Navy
Joined: March 23, 2003 Posts: 11183 From: Bristol, England
| Posted: 2005-12-15 08:46  
Quote:
|
On 2005-12-15 07:08, Nax wrote:
If you're using VS .Net it should be easy to add it all into a single project.
As a rule, any compiled executible/library/add-in should be fully available to you.
Nax
|
|
Still a bit hard, as I've tried importing it and tried working with the code. I guess VB just doesn't like a mix of C# and VB...
_________________
|
Philky!
Joined: July 19, 2004 Posts: 90
| Posted: 2005-12-15 14:36  
What version of VB.NET are you using? All libraries created in .NET should work across all .NET languages.
_________________
|
BackSlash Marshal Galactic Navy
Joined: March 23, 2003 Posts: 11183 From: Bristol, England
| Posted: 2005-12-15 14:44  
Quote:
|
On 2005-12-15 14:36, Antdizzle wrote:
What version of VB.NET are you using? All libraries created in .NET should work across all .NET languages.
|
|
Not using .NET..
Microsoft Visual Basic 2005 Express Edition <
_________________
|
Philky!
Joined: July 19, 2004 Posts: 90
| Posted: 2005-12-15 15:16  
Are you linking to old libraries and an old compiler? If not, then you are using VB.NET. Reference the DLL in your project and look in the object browser. Find the dll and then uncollapse it. You should then see a namespace named Antdizzle, and then the class with two methods in it.
_________________
|
BackSlash Marshal Galactic Navy
Joined: March 23, 2003 Posts: 11183 From: Bristol, England
| Posted: 2005-12-15 17:48  
I'm good at VB...
Mixing C# and VB... 'nother story..
I can give you the project zipped up if you like, so you can meld it a bit.
_________________
|
Philky!
Joined: July 19, 2004 Posts: 90
| Posted: 2005-12-15 18:17  
Ok, send it to me. I'll add it into your project.
EDIT: I just downloaded VB.NET Express 2005 and I can see why you're having problems.
[ This Message was edited by: Antdizzle on 2005-12-15 18:26 ]
_________________
|
BackSlash Marshal Galactic Navy
Joined: March 23, 2003 Posts: 11183 From: Bristol, England
| Posted: 2005-12-15 18:39  
Quote:
|
On 2005-12-15 18:17, Antdizzle wrote:
Ok, send it to me. I'll add it into your project.
EDIT: I just downloaded VB.NET Express 2005 and I can see why you're having problems.
|
|
Yeh :/
I'll upload it later, and I'll PM you the password to the rar file.
_________________
|
Philky!
Joined: July 19, 2004 Posts: 90
| Posted: 2005-12-15 19:02  
You don't need to send me the code, I have the answer. The first thing you need to do is reference my plugin in your project. To do that, look in the solution explorer and right click on your project name. Go to Add Reference and then go to the browse tab and find the GetProfileStats.dll. After you do that, my plugin will be ready for use. This is the VB code for the sample application in my zip file.
Module Module1
Sub Main()
Dim userid As Integer
Dim stats(16) As String
Console.WriteLine("Please enter a Darkspace UserID and press ENTER")
userid = Integer.Parse(Console.ReadLine())
stats = Antdizzle.ProfileStats.GetStats(userid)
Console.WriteLine("Kills: {0}", stats(0))
Console.WriteLine("Killed: {0}", stats(1))
Console.WriteLine("Bonus Prestige: {0}", stats(2))
Console.WriteLine("Ships Damaged: {0}", stats(3))
Console.WriteLine("Ships Captured: {0}", stats(4))
Console.WriteLine("Planets Damaged: {0}", stats(5))
Console.WriteLine("Planets Captured: {0}", stats(6))
Console.WriteLine("Friendy Fire: {0}", stats(7))
Console.WriteLine("Repair: {0}", stats(8))
Console.WriteLine("Construction: {0}", stats(9))
Console.WriteLine("Kamikaze: {0}", stats(10))
Console.WriteLine("Self Destructs: {0}", stats(11))
Console.WriteLine("Jumps: {0}", stats(12))
Console.WriteLine("Planet Collisions: {0}", stats(13))
Console.WriteLine("Scout: {0}", stats(14))
Console.WriteLine("Resources Lost: {0}", stats(15))
Console.ReadLine()
End Sub
End Module
It should be pretty straightforward.
[ This Message was edited by: Antdizzle on 2005-12-15 19:02 ]
_________________
|
BackSlash Marshal Galactic Navy
Joined: March 23, 2003 Posts: 11183 From: Bristol, England
| Posted: 2005-12-16 12:23  
Right, You dimed "userid" (The value) in the module, and I needed to use it in the form code, so I tried to turn it into a "global". Trouble is .net doesn't understand "global" anymore...
:/
_________________
|
Philky!
Joined: July 19, 2004 Posts: 90
| Posted: 2005-12-16 12:39  
I don't think that module needs to be there. I just made a Windows Application and instead of a module, it gives me a class. Try declaring userid inside the form class.
_________________
|
BackSlash Marshal Galactic Navy
Joined: March 23, 2003 Posts: 11183 From: Bristol, England
| Posted: 2005-12-16 13:03  
Correct
I did a bit of modding, but it works, and it's now up for download.
Thank you Mr Dizzleypoo's!
_________________
|
Nimitz Fleet Admiral Courageous Elite Commandos
Joined: April 19, 2005 Posts: 141 From: Melbourne, Australia
| Posted: 2006-01-07 00:34  
Ok, I just tried the getstats part of it and lol and behold, it did not work.
In case you're wondering, I was connected on the DS Client.
The prestige calculator worked brilliantly though. GJ on that Jack
[ This Message was edited by: Nimitz on 2006-01-07 00:38 ]
_________________ \"Programming today is a race between software engineers striving to build bigger and better idiot proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.\" -- Rich Cook
|
Philky Cadet
Joined: January 06, 2006 Posts: 2
| Posted: 2006-01-07 00:38  
You need the .NET framework 2.0. Download it from this link: http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en
_________________
|
Nimitz Fleet Admiral Courageous Elite Commandos
Joined: April 19, 2005 Posts: 141 From: Melbourne, Australia
| Posted: 2006-01-07 00:39  
Erm, if I did not have .NET Framework 2.0, I would not have been able to run the program in the first place!
_________________ \"Programming today is a race between software engineers striving to build bigger and better idiot proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.\" -- Rich Cook
|
Ospolos Grand Admiral
Joined: January 31, 2004 Posts: 567 From: ON, CANADA
| Posted: 2006-01-07 10:56  
All you do is fill in the user ID and hit get stats O.o...
_________________ Honoured,
Osp
|