Jump to content
Xtreme .Net Talk

Denaes

Avatar/Signature
  • Posts

    975
  • Joined

  • Last visited

Everything posted by Denaes

  1. But... Dark Basic Roxxors!! VB Suxxors! umm, did I get my "web trash" syntax right? And yes, I'm joking :p
  2. Well, my XP Home comes with SP1 already. So installing it isn't too much of a chore. In fact installing it once sp2 comes out would be easier because most of those "fixes" would be wrapped up into the service pack. eh, it took me like 3 hours from reformatting the hard drive to getting everything configed and set up enough to run a game that I played for 5 hours :) I've had MUCH longer turnaround times for installing OS's (win9x). I don't have MSDN subscription and access to vs.net 2005 beta. I had VB and C# 2005 express on my computer, but I kept getting pissed at it. I have projects to get done, but there is a "No Go Live" discosure on the 2005 beta products. So I'd keep saying "This is so cool!" "this is the easiest way to do it!" Then I'd remember that I couldn't release it targeting the 2.0 framework for another year (maybe less hopefully) and I'd get depressed and stop using it. It was like a tease. If i were just hobby programming I'd use VB or C# Express beta. Right now I'm studying for my MCADs which are based on 2003.
  3. Check out System.Environment.CommandLine I can't get more detail that that at the moment, though you could probobly check that out in the MSDN. I used it for an optional parameter for another app. Of course you have to perform a check to see if it was nothing, -log, -whateverElseYouMightWant. I didn't use multiple arguments, but I think it's all handled as one and you have to parse out the different ones if there are more than one. I just reinstalled XP Home last night and I'm on the Marathon VS.Net installation... MS must have compressed these CDs something fierce, it takes like an hour per cd of constant unpacking and copying. Oh yeah! time to start the second installation disc :)
  4. More Schedule Settings... I could imagine having your machine locked down might prevent some of your permissions from working, but I wouldn't know how - I don't do that. I'd try setting it to go off in 5 minutes and lock the machine and see what happens (when you have time to spare of course). Lets check your Properties for the Scheduled Task (rightclick->properties) On the Task tab, I see a setting "Run only if logged on" mine is unchecked. being "Locked Down" may count as being logged off temporarily. You might want to make sure it can run when you're not logged on. (thats default on XP Home) Settings Tab - in the power management I have three options. Don't start if running on batteries, stop if battery mode begins (those two are checked - I'm on a laptop) and Wake the computer to run this task. The last is not checked for me. If you're "Locked Down" you might be 'sleeping' or on some power conservation mode as well. Thats all I can think of to help other than recreating the problem and documenting what is happening.
  5. I used my 10 gb MP3 player for such occasions... harder to loose than a memory key as well :D How would .Net facilitate you being on two machines? If you're networked there are utilities to check in and check out code. Otherwise you still have to get code from Machine A to Machine B and back again. Not anything VS can help with that... other than letting you run your project from the same location on both machines... the jump drive/mp3 player. Anything else is going to require copying and duplating files which could end up with you working on a version for 5 hours and 'misplacing it' or copying over it. I personally found my jump drive to be my ideal solution. There isn't a chance of deleting anything or copying the wrong thing, or anything. You never copy anything as it's always there. If you have a tight security work environment they might get more wigged about the mp3 player because those normally require drivers, the jump drives don't. (my Archos mp3 player requires drivers at least).
  6. Go to OfficeMax, WallMart, CompUSA or look online. Buy a JumpDrive. Its a USB harddrive that fits on your keychain. About 20 bucks for a small hard drive size... maybe 20-30 for 32-64mb. For under a hundred you can probobly get up to 512mb... maybe. Definately 256mb. Just keep your solution on this baby and when you go to open up your solution, just doubleclick on the .SLN file and it'll open up VS.Net with your solution. If your VS.net is storing paths (like output paths) in a literal (C:\myApp\Build) rather than a relational (\Build), then set up both computers to recognize your jump drive as the same drive... maybe S, T... X and Z normally sound the coolest, but some network applications in a workplace environment conflict. I think Novell and/or Computer Associates conflict. All I know is that I set some of my network drives to X, Y & Z and it wigged out some apps. You may even need your Admin's permission to add a hard drive (jump drive) to the computer. Best bet is to ask your boss for a personal laptop to do work at home and work. failing that, ask for a company laptop. failing that, they can't argue with the logic of spending 100 bucks for a jump drive. Heck, if you're lucky you might get a laptop out of it :)
  7. I think 0x0 means it ran perfectly without errors. That's what my MP3 Alarm Clock on the Scheduler says. Not saying its your problem, but its comical logic. If the Oracle connection cannot be open it sends the message to Oracle? I don't know anything about Oracle, do you mean you're sending it to the application Oracle, or to the database you cannot open? But really... It runs fine normally, but sometimes it doesn't. The only thing I can think of is the log file. You need to find out EXACTLY what it's doing, what procedures its going through, how many itterations, how many files it's picking up. etc. IF you're just adding in this sort of debugging software now, a suggestion might be to create a procedure to initate it all, have it all dependant on a single variable or something. This way you can set it to false and not have to write out the entire log again, but you can setup your app to run in 'logged mode' by typing "myApp.exe -Log" or something like that with command aruments. If it takes hours to run because it points to a directory(s) with many files, try a test run where you point it at a directory(s) with a controlled number of files. I created an app that goes through a directory and sorts files by their extension. Makes an MP3 directory and puts all mp3s in there, a .avi directory, etc. Nothing grand, but nice to organize a download directory. When I tested it, I used the textbox and aimed at directories with only a few files set up for the purpose of testing. Last thing I want is an error and it deleting good files or throwing 800 exceptions :P
  8. I'd love it as well. The answer will be that anything game related can be broken down into "General", "Syntax", "Graphics", "Database", "components/Forms", "Directory/IO/registry" or "Network". I think it's more than that. Different crowds hang out in different forums. I hang out in the General and winForms mostly. I don't even look in the database, directory and network unless I have a problem. I don't know enough about them to help out. It's true that you can break them all down, but now you won't get many game developers. If you had the choice of a site which had a forum devoted to helping you out and you could find 90% of your gaming help in one place - or another site where the same information was there, but not directed towards you and scattered to the 9 winds and you'll have to translate your information from productivity and office integration apps to figure out how to use it... I know I'd be over in the other forums. Thats were I go when I need game info.
  9. I don't think I can help you on your specific problem, but I can echo what the Powers That Be around here would say. Ditch the migration tool. It often produces faulty code. I believe it gets exponentially worse. It's alright for a straight forward app, but the more complex it gets, the more chances of code messing up. my advice is to run the wizard. You can now see what it's doing and what the wizard has translated your code to. Keep that open. Now I'd open up VB6 and .Net and translate the app over procedure by procedure, class by class. Refer to the other code as needed, but also refer to the MSDN and these forums. At best you're going to get some crappy code from that wizard. At worst you're going to get some code you think is good and doesn't work properly down the line. The wizard uses many legacy VB compatibility functions, especially for file access which are 1-5 times slower than the .net functions. Just my opinion, worth the paper it's printed on :)
  10. I had similar problems... working in a bank creating automated backups, front ends to run other apps on the task scheduler. Most failed because they refused to give me the servers password. If there is a password, Taskmanager requires it to go off. What OS are you using? Don't run the app, but go into your scheduled tasks folder, find the task. It'll have the Name, when it's scheduled to run (ie 11:30 AM every day), it's Next run Time (11:30 AM Tuesday), last run time (last time it ran), Last Result and Creator. Your password needs to match Creator. If it's "Last Run Time" was never, it isn't running. To test it out in the Scheduled Tasks environment to see what's going on, rightclick on the task (normally the filename, but you can name it differently) and select run. This will make it act just like it's going off at it's schedule appointed time. and it may not run. If it's running Scheduled sometimes and not other times, there might be something else using the database and causing your app to not be able to open it. I know you know how, have your app produce a log. Just at each step having it print out a line "Begging X function" basically documenting where the logic is taking it and most definately if there is an error and when it quits. Timestamps help as well. Because I'm lazy I normally create apps that'll have no GUI with a GUI and just make the GUI a large textbox which displays all of the information. When finished I delete the textbox and all the txtOutput lines will show up as errors and are easily deleted as well.
  11. I'm sure you could get away with using a "Debug" project. Debug projects have more inline code for debugging information and I believe normally come with a seperate debugging file. A Release version is a bit more streamlined and a little smaller. If you want to switch the project type, it's normally up on the tool bar. If not, go to your solution explorer (the one that shows all the classes and forms), rightclick the solution and go down to properties or settings (I don't have VS.Net installed at the moment). I believe its in the build section or somewere around there. Just remember that if you're not done, Release has awful debugging help if an error does come up, so remember to switch it back if you go back to debugging.
  12. No problem. I've been comming here since literally my first days of VB.Net programming asking questions like "I did this in VB6, how do I do it in .Net". I enjoy helping others when I get the chance and hope you do the same when you get the chance :)
  13. The deal is done. 10gb Windows drive 800mb Virtual Memory drive (only set for 250mb, but just in case I need more Virtual Memory) 10gb Program Files drive 2gb myFiles drive 17gb Blitz drive - Everything I download. my computer now starts up in like 12 seconds (vs 2 minutes), both monitors work perfect out of the XP "box". I havn't even needed to install external software to manage them. I'm now networked to my wifes OSX machine and sending her our Wedding Videos I'd grabbed to pure video (one is like 18gb for about an hour!!). Actually if you have a large hard drive, it really seems optimal to seperate it like this. You never need to worry about Windows fragging program files or your downloads messing with your system or applications. You can defrag any partition in about an hour rather than doing the whole thing in about 3 hours. It was a bonus that when I was 'reformatting and installing' I didn't need to wait an hour to format the entire hard drive, but only the 10gb partition to house Windows. Bauldurs Gate just installed without error, so all in all, I think I'm finally happy with XP. As I watched XP crash in college opening MS Word or Excel I kept saying "Hey, it might be a good OS once they finish making it" :D
  14. Not a whole lot involved in making handlers in VB.Net, and it can be very powerful and clean up your code considerably more than having procedure calls all over with if...Then or case statements directing them. In a large app, that could take up 100's of lines of code. It doesn't matter where "AddHandler boolEventTest.BoolChanged, AddressOf Bool_Changed" is located. In fact I'm fairly certain that there are even other ways of doing this. What you need to walk away knowing is that this line of code is what adds the Handler from myClass.BoolChanged to your procedure. It doesn't matter if it's in Form_Load, a button, a mouseover, etc. What does matter is that a handler won't be attached to your procedure (in this case Bool_Changed) until this code is fired. Bool_Changed is just a normal procedure with the argument of a Boolean. As such you can call it or use it elsewere. I'm sorry I can't really help you out with Web services specifically, thats after Win programming on my MCAD list. Almost. the code I used would trigger whenever booSuccess changed. The code you used would only trigger whenever booSuccess was False and could continue to trigger if something like a loop kept setting it to false. If BooSuccess <> Value BooSuccess = Value [color=#0000ff]RaiseEvent[/color][size=2] BoolChanged(BooSuccess)[/size] End If This will only result in the event triggering if the value is changed (true becomming false; false becomming true) The only other thing I was wondering about is this: If I am really going to be able to use this construct as a 'global transaction flag' then I am going to need to know where the code blew up when it did. How do I trap for the name of the method that caused booSuccess to be false?Instead of "Public Property BooSuccess as Boolean" Try this: Data Type boolArgs created to pass multiple arguments [size=2][color=#0000ff]Public[/color][/size][size=2][color=#0000ff]Class[/color][/size][size=2] BoolArgs [/size][size=2][color=#008000]'private variables [/color][/size][size=2][color=#0000ff]Private[/color][/size][size=2] mBool [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Boolean [/color][/size][size=2][color=#0000ff]Private[/color][/size][size=2] mSender [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]String [/color][/size][size=2][color=#0000ff]Public[/color][/size][size=2][color=#0000ff]Property[/color][/size][size=2] BooleanResult() [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Boolean [/color][/size][size=2][color=#0000ff]Get [/color][/size][size=2][color=#0000ff]Return[/color][/size][size=2] mBool [/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Get [/color][/size][size=2][color=#0000ff]Set[/color][/size][size=2]([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] Value [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Boolean[/color][/size][size=2]) mBool = Value [/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Set [/color][/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Property [/color][/size][size=2][color=#0000ff]Public[/color][/size][size=2][color=#0000ff]Property[/color][/size][size=2] Sender() [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]String [/color][/size][size=2][color=#0000ff]Get [/color][/size][size=2][color=#0000ff]Return[/color][/size][size=2] mSender [/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Get [/color][/size][size=2][color=#0000ff]Set[/color][/size][size=2]([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] Value [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]String[/color][/size][size=2]) mSender = Value [/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Set [/color][/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Property End[/color][/size][size=2][color=#0000ff]Class [/color][/size] Altered get/set properties. I split it into a get Property and a Set property. Get returns just the boolean variable. Set passes the BoolArgs to provide information for the event. [size=2][color=#008000]' Standard declaration. Public makes it available to an outside class [/color][/size][size=2][color=#008000]' which instantiates this class "WithEvents". [/color][/size][size=2][color=#008000]' Funny, even in VB this looks like a C# declaration. [/color][/size][size=2][color=#0000ff]Public[/color][/size][size=2][color=#0000ff]Event[/color][/size][size=2] BoolChanged([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] BoolArg [/size][size=2][color=#0000ff]As[/color][/size][size=2] BoolArgs) [/size][size=2][color=#008000]' Private member variable. [/color][/size][size=2][color=#0000ff]Private[/color][/size][size=2] mBool [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Boolean [/color][/size][size=2][color=#0000ff]Public[/color][/size][size=2][color=#0000ff]WriteOnly[/color][/size][size=2][color=#0000ff]Property[/color][/size][size=2] setBool() [/size][size=2][color=#0000ff]As[/color][/size][size=2] BoolArgs [/size][size=2][color=#0000ff]Set[/color][/size][size=2]([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] Value [/size][size=2][color=#0000ff]As[/color][/size][size=2] BoolArgs) [/size][size=2][color=#008000]' only change the variable and raise [/color][/size][size=2][color=#008000]' the event if mBool and the new value [/color][/size][size=2][color=#008000]' are different [/color][/size][size=2][color=#0000ff]If[/color][/size][size=2] mBool <> Value.BooleanResult [/size][size=2][color=#0000ff]Then [/color][/size][size=2][color=#0000ff]Dim[/color][/size][size=2] tempArgs [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]New[/color][/size][size=2] BoolArgs mBool = Value.BooleanResult [/size][size=2][color=#0000ff]With[/color][/size][size=2] tempArgs .BooleanResult = Value.BooleanResult .Sender = Value.Sender [/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]With [/color][/size][size=2][color=#0000ff]RaiseEvent[/color][/size][size=2] BoolChanged(tempArgs) [/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]If [/color][/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Set [/color][/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Property [/color][/size][size=2][color=#0000ff]Public[/color][/size][size=2][color=#0000ff]ReadOnly[/color][/size][size=2][color=#0000ff]Property[/color][/size][size=2] getBool() [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]Boolean [/color][/size][size=2][color=#0000ff]Get [/color][/size][size=2][color=#0000ff]Return[/color][/size][size=2] mBool [/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Get [/color][/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Property [/color][/size] I also attached a new Zip of whats happening with the BoolArgs and how to use setBoolSuccess to differentiate what caused it. Remember, on the BoolArgs Class, you can provide whatever information you think you'll need and in whatever method you desire. You don't always have to use it, but you should always set it. This is like the Args in a button_Click event. How often do you use those args? Not very. But the Args are always there and set in case you want to use them. Instead of Sender being a string, it can be the reference to the sending class as an object, you could include all sorts of information. A timestamp for when it's set to False (as a string or Date), a Notes as string to pass along information... whatever you want. Just make sure you fill out all that information when you change boolSuccess (and thus raise the event), and in the setBoolSuccess pass all those parameters through the event. TestEvents complex arguments.zip
  15. I was surprised. Microsoft used to be all against such things saying they were stupid. But it was Microsoft that suggests this for XP! (or one of their developers who has public say there) :eek: Damn! you're a lean mean partitioning machine! It makes sense to keep things seperate like that though. Downloading things won't have a chance of fragmenting Visual Studio or any System settings. I've got a 37 gb hard drive internally on my laptop and a 180 gb hard drive externally via USB 2.0. I'm pretty sure I'm going to repartition my external harddrive soon. It's in two partitions, 100gb and 80gb, mostly because Windows (as of win2k sp3) couldn't handle a single 180gb drive. Right now I have two of my wedding videos captured to pure uncompressed avi... read: an hour and a half of video is taking up about 50gb. This is preventing me from messing with those partitions at the moment. I'm going to get a filesplitter and move them to my wife's Mac where she is going to edit them into a movie to burn onto DVD for family and friends. Once that's done, I can drop the origional files (she can burn origional backups on 5 dvds. I'm going to burn origional backups on 60 CDRs!! I'm probobly going to do my reformat tonite or tomorrow, so if anyone has advice on the sizes of the partitions or anything, that would be swell
  16. Look at the other thread. I uploaded a project and showed the code. In the class I declared the event and fired the event. In the form I added a handler and provided a procedure which was handled by the event. Hope it helps.
  17. Hope this is what you're looking for. The class in which the event is created and triggered: [size=2][/size][size=2][color=#008000]' Standard declaration. Public makes it available to an outside class [/color][/size][size=2][/size][size=2][color=#008000]' which instantiates this class "WithEvents". [/color][/size][size=2][/size][size=2][color=#008000]' Funny, even in VB this looks like a C# declaration. [/color][/size][size=2][/size][size=2][color=#0000ff]Public[/color][/size][size=2] [/size][size=2][color=#0000ff]Event[/color][/size][size=2] BoolChanged([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] Bool [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]Boolean[/color][/size][size=2]) [/size][size=2][color=#008000]' Private member variable. [/color][/size][size=2][/size][size=2][color=#0000ff]Private[/color][/size][size=2] mBool [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]Boolean [/color][/size][size=2][/size][size=2][color=#0000ff]Public[/color][/size][size=2] [/size][size=2][color=#0000ff]Property[/color][/size][size=2] Bool() [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]Boolean [/color][/size][size=2][/size][size=2][color=#0000ff]Get [/color][/size][size=2][/size][size=2][color=#0000ff]Return[/color][/size][size=2] mBool [/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]Get [/color][/size][size=2][/size][size=2][color=#0000ff]Set[/color][/size][size=2]([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] Value [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]Boolean[/color][/size][size=2]) [/size][size=2][color=#008000]' only change the variable and raise [/color][/size][size=2][/size][size=2][color=#008000]' the event if mBool and the new value [/color][/size][size=2][/size][size=2][color=#008000]' are different [/color][/size][size=2][/size][size=2][color=#0000ff]If[/color][/size][size=2] mBool <> Value [/size][size=2][color=#0000ff]Then [/color][/size][size=2]mBool = Value [/size][size=2][color=#0000ff]RaiseEvent[/color][/size][size=2] BoolChanged(mBool) [/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]If [/color][/size][size=2][/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]Set [/color][/size][size=2][/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]Property [/color][/size] I don't know why, I'm Copy & Pasting the code, but it seems to have lost it's indentation and everything. Relevent code in Form1, the class which receives the delegate/event and the procedure raised when the event is raised [size=2][color=#0000ff]Dim[/color][/size][size=2] [/size][size=2][color=#0000ff]WithEvents[/color][/size][size=2] boolEventTest [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]New[/color][/size][size=2] TestEvent [/size][size=2][color=#0000ff]Private[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub[/color][/size][size=2] ComboBox1_SelectedIndexChanged([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] sender [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.Object, [/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] e [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.EventArgs) [/size][size=2][color=#0000ff]Handles[/color][/size][size=2] ComboBox1.SelectedIndexChanged[/size] [size=2]' This is just a combobox changing the Bool property on the class. boolEventTest.Bool = [/size][size=2][color=#0000ff]CType[/color][/size][size=2](ComboBox1.GetItemText(ComboBox1.SelectedItem), [/size][size=2][color=#0000ff]Boolean[/color][/size][size=2]) [/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub [/color][/size][size=2][/size][size=2][color=#0000ff]Private[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub[/color][/size][size=2] Bool_Changed([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] e [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]Boolean[/color][/size][size=2]) MessageBox.Show("Bool has changed to: " & e.ToString) [/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub [/color][/size][size=2][/size][size=2][color=#0000ff]Private[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub[/color][/size][size=2] Form1_Load([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] sender [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.Object, [/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] e [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.EventArgs) [/size][size=2][color=#0000ff]Handles[/color][/size][size=2] [/size][size=2][color=#0000ff]MyBase[/color][/size][size=2].Load [/size][size=2][color=#0000ff]AddHandler[/color][/size][size=2] boolEventTest.BoolChanged, [/size][size=2][color=#0000ff]AddressOf[/color][/size][size=2] Bool_Changed [/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub [/color][/size] Also provided the project in case you wanted to open, run and view it in it's whole. Hope that helps some. TestEvents.zip
  18. I have a 37 gb hard drive in my Laptop (Dell Inspirion 8500) and I'm going to install XP Home tomorrow or the next day. I hear that its best to have a seperate partition for your paging files (virtual memory) because it prevents them from being fragmented. I also keep seeing that it's best to have your Windows XP on it's own partition and everything else on another. Makes sense in theory, you won't have to worry about XP system resources getting fragmented. I tried this once with a 2gb partition, but some apps kept installing on Windows 2000 (it was a while ago) partition and filled it up. I know the memory partition makes sense. How about having an OS and Application partition? practical? If so, how much would be a good size for XP Home?
  19. They say it's available upon request. I got another "Key" on the CD Sleeve, which I thought was the key. But it's not. I remember some other OEM places wouldn't even give you an OS disc, but a system restore disc. Which ment if your hard drive crashed you had to send it to them or request an actual OS disc. Compaq did that in the past, but I don't think they do that anymore. I don't want a refund for my computer. I LOVE my laptop!! I just want to OWN my OS. I threw away my old win98/95 cds and all I have is windows 2000 pro and XP Home. What with XP sp2 comming out and me finding a BETTER solution for developing ASP.Net apps than running IIS constantly, I want to give XP Home another shot.
  20. I know how to reformat my hard drive silly :p I need to get a windows Key to install XP on my machine. Dell keeps telling me to "Repair" and I'm like: "Hey, I get paid to be a computer consultant, network admin, computer programmer, etc, trust me when I tell you that a "OS Repair" will only repair certain OS related problems." I've only had this install of Win2kPro for like 3 weeks and just "feels" unstable or wrong. I don't know. When I use my computer, I get the feeling of how stable it is. I want to install XP Home, all my programming software and ghost the hard drive to prevent having to download and install over and over. The good thing about a Laptop is that your hardware configuration doesn't change very often :)
  21. Thanks for the 411 on trying to get games windowed. Bauldars Gate (DVD with sword coast) and Icewind Dale both won't install on my computer. At all. the Setup process just dies and hangs. Nothing loads or happens and I have to kill the process in my Task Manager. I'm almost afraid to try Fallout 1 or 2 (same company, but older games)... Maybe I'll try Arcanum or install some of the old Wizardry games. Its starting to look like the only games I can get to run (win2kPro sp4) are pirated games (emulation roms mostly) and playstation games. I'm half tempted to find a pirated version of Bauldars Gate online. I own the DVD and BioWare seems to have their heads up their bums in respect to XP/2000 with their games. They really have no solutions. I'm sure some 12 year old cracker/hacker has come up with some solutions :D I think it's actually humorous that I have more stability playing playstation games in an emulator on my computer than running games written for the computer
  22. C# is no VB.Net. 2002 and 2003 have rudimentary intellisense. I found that basically you have to rebuild (or just normal Build) the application after changes to have intellisense pick it up. So that's good practice to get into in C#. C# 2005, you can download the beta off of the Visual Studio homepage, has VB.Net quality Intellisense. It's really nice :)
  23. As a rule of thumb, each public class should have it's own file which matches the name of the class. This helps you tell what you're looking at without opening up the file. It's okay to have 3 (or however many) private classes or structs in the file to help it out, but if it's public, you want to keep it simple. Say you're making SuperGeometryClass. Anyone knows Geometry has Pi. To what precision do you care? You're going to use it in like 80 functions. So you make a constant variable. Every time it's used, your class knows Pi will be 3.14. It doesn't need to check. It's a little faster. Now when you decide you need more precision, say to 8 decimal places, you just have to change it in that one place, rather than in 80 functions. A constant (private const string = "hi";) is something that you're not going to need to change on the fly, but you may need to change at some point. Rather than just typing in the literals (typing in 3.14 in 80 functions) you type in the variable. constants usually arn't that common. I've used them mostly for global variables that cannot be changed after compilation.
×
×
  • Create New...