Jump to content
Xtreme .Net Talk

FieldDoc

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by FieldDoc

  1. I have added a menu to the top of my form. I have changed the background colour of the form to white, however the background around the menu bar is still the control colour! How do I change it to white?
  2. I haven't tried reinstalling it.....but how could VB files have gotten corrupted? Could SP1 have done it?
  3. I loaded up Visual Basic.NET 2002 Standard edition today to carry on writing a program i'm doing at the moment. However, whilst the project was loading a message box popped up saying: Fatal Execution Engine Error (0x7924c900) I can only click OK. When I do so, another box pops up saying: Just in Time Debugging, and gives me a list of debuggers. As I have no idea what these do, I click that I don't want to debug and then VB exits. I am not only unable to load this project, I cannot load ANY projects, nor create any new projects as this error just pops up! The only thing that I have done recently is to install XP Service Pack 1 and .NET framework SP2. I'm guessing it has something to do with this but it may be a coincidence. Can anybody help me please?
  4. Not really. You can only upgrade if you have visual STUDIO, I have visual BASIC only. This is ridiculous.....I'm not spending £90 on a brand new version, when the one I have is only a few weeks old! Someone must have kept a copy of the beta SDE download, surely? Please help. At least I bought my copy of Visual Basic and didn't warez it....I feel i'm being ripped off. Help!
  5. I am teaching myself Visual Basic with my copy of VB.NET 2002. I am really enjoying it but i only started to learn because I have a few ideas for my Pocket PC. I tried using the embedded VB SDK from MS but found that it lacked tonnes of features that VB.NET 2002 offers. I have been reading about an add-in for VB.NET called "Smart device extensions" that apparently allows you to write programs for the PPC using the VB.NET 2002 IDE. This would be perfect. However, the links to this download have now been withdrawn and I can't find them anywhere!!! It seems that VB.NET 2003 offers it as standard. However, I only bought 2002 3 weeks ago and can't afford to pay £90 for 2003 standard edition!! Is there any way to buy the SDE add-in for Visual Basic.NET 2002? Please say there is!
  6. I have Visual Basic.NET 2002 standard edition. Is it possible to take program I have written with this compiler and use them on my Pocket PC? I also have the embedded VB SDK but it is not as comprehensive as VB 2002.
  7. Thankyou!!!! That's what I needed. Thankyou sooo much!
  8. Is that C or VB code?
  9. I'm not sure I follow you (sorry). Any chance of a snippet of example code?
  10. Hi, I am a relative newbie and I have been struggling with a problem for several days now and I need some help. It's quite long-winded (sorry) so i'll start from the top. I am trying to make a turn-based 2-player strategy game based on the warhammer 40K tabletop game (i.e. tabletop wargame). In this game there are many different types of units that the player can control, each unit with many stats, these are: WeaponSkill (WS) BallisticSkill (BS) Strength (S) Toughness (T) Wounds (W) Leadership (Ld) Save (Sv) I thought the best way to input all these units would be to make a new public structure, termed Infantry. This is shown below: Public Structure Infantry Public Race As String Public Name As String Public Points As Short Public WeaponSkill As Short Public BallisticSkill As Short Public Strength As Short Public Toughness As Short Public Wounds As Short Public Initiative As Short Public Attacks As Short Public Leadership As Short Public Save As Short Public Weapon As String End Structure I created a public function to add units stats as below: Public Function AddInfantry(ByVal Race As String, ByVal Name As String, ByVal Points _ As Short, ByVal WeaponSkill As Short, ByVal BallisticSkill As Short, _ ByVal Strength As Short, ByVal Toughness As Short, ByVal Wounds As Short, _ ByVal Initiative As Short, ByVal Attacks As Short, ByVal Leadership As Short, _ ByVal Save As Short, ByVal Weapon As Short) As Infantry With AddInfantry .Race = Race .Name = Name .Points = Points .WeaponSkill = WeaponSkill .BallisticSkill = BallisticSkill .Strength = Strength .Toughness = Toughness .Wounds = Wounds .Initiative = Initiative .Attacks = Attacks .Leadership = Leadership .Save = Save .Weapon = Weapon End With End Function Let's take 2 units - a "Space Marine" and a "Fire Warrior". I can add all the relevant stats easily by typing the following: Public FireWarrior = AddInfantry("Tau", "Firewarrior", 10, 2, 3, 3, 3, 1, 2, 1, 7, 4, 10) This would mean that, for instance: FireWarrior.Race = "Tau" Still awake? Cool. When 1 unit shoots at another unit, I call a function named ShootingEngine. This is quite long and complex but it requires to be passed to it the following variables by value: Attackers BS Attackers S Defenders T Defenders Sv I can do this quite easily if I want say, the "FireWarrior" to attack the "Space Marine" (therefore, space marine = defender) as I simply use the following syntax (the variable 'Result' stores the outcome of the shooting): Result = ShootingEngine(FireWarrior.BallisticSkill, FireWarrior.Strength, SpaceMarine.Toughness, SpaceMarine.Save) Fine and dandy. HERE IS THE PROBLEM IF YOU ARE STILL AWAKE! As you can imagine, there will be many more than 2 units and hundreds of combinations of attackers and defenders. I have 2 more variables which I hoped would solve the problem: PlayerOne (a string variable that stores the name of the unit currently controlled by player one, e.g. "FireWarrior") PlayerTwo (a string variable that stores the name of the unit currently controlled by player two, e.g. "SpaceMarine") I want to be able to do the following: Result = ShootingEngine(PlayerOne.BallisticSkill, PlayerOne.Strength, PlayerTwo.Toughness, PlayerTwo.Save) IS THIS CLEAR? I want to somehow figure out a way to make the compiler see 'PlayerOne.Strength' as the same as 'FireWarrior.Strength' (assuming that PlayerOne = "FireWarrior") I hope someone can help me and I appreciate it if you got this far. FieldDoc
×
×
  • Create New...