Jump to content
Xtreme .Net Talk

Darc

Avatar/Signature
  • Posts

    93
  • Joined

  • Last visited

Everything posted by Darc

  1. End works sometimes, but not always, it's kinda weird...
  2. yup
  3. I've never known the difference between all of them so if someone could help it would be great. I know of End, Application.Exit() and System.Environment.Exit(System.Environment.Exitcode) but I don't understand the difference at all.
  4. I use Select Case in KeyPresses myself, looks better and easier to understand. Btw, Chr() is the function I use for getting Chars, here's what I got: Private Sub txtNumbersOnly_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSoloNumeri.KeyPress Select Case e.KeyChar 'The user can press Enter. Case Chr(13) e.Handled = False MsgBox("You pressed Enter.") Exit Sub 'The user can press Backspace to make corrections. Case Chr(8) e.Handled = False Exit Sub End If 'The user can press Tab. Case Chr(9) e.Handled = False Exit Sub End Select 'The user is not allowed to type in letters. If e.KeyChar <> "1" And e.KeyChar <> "2" And e.KeyChar <> "3" And e.KeyChar <> "4" And e.KeyChar <> "5" And e.KeyChar <> "6" And e.KeyChar <> "7" And e.KeyChar <> "8" And e.KeyChar <> "9" And e.KeyChar <> "0" Then e.Handled = True MessageBox.Show("Please use only numbers.", "Invalid data", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) Exit Sub End If End Sub
  5. I'd get Visual Studio C++ .NET anyways, it can do Unmanaged (6.0) applications as well as C++ .NET, plus it has a great Debugger. As for features of .NET, I personally like it because it's easier to look at, and is alot more sensical in how it works. If you like VB 5, you might wanna look into VB .NET too, it's fully OOP which is loads of fun with VB's RAD caps. Hope this helps.
  6. if the user has the DX 9.0b SDK installed, it works, otherwise I just get the error, even with the Managed DX Redistribution I still get the error...
  7. 1st Page is what I use... comes with some nice features too
  8. looks good but one prob... I don't have MS Access... (Grade 9 student with no allowance, kinda hard to get ahold of MS Office)
  9. can someone give me a good site/tutorial on how to do Databases? I've never really done them before, but I'd like to :)
  10. I have a question... I've used VB .NET for a while, and I have C++ .NET (I only really ever make Win32 apps with it though). Is it worthwile to go get C# .NET or to learn C++ .NET? VB .NET was my first language when I started a month ago, but it now seems a little slow for gaming uses. Input?
  11. I have one image that I want to slowly draw over another (slowly increase its opaqueness) but I have absolutely no idea how to do it. Any help (preferably in VB .NET, but I can probably make heads or tails of C# or C++ .NET)?
  12. I run Visual Studio 2002 with it, and it runs fine.
  13. well, they all installed that too, and it still isn't working :(
  14. all the users of my programs get Assembly Not Found (Microsoft.DirectX) errors, they all have DirectX 9.0b installed, what's goin on? any help is appreciated, thanx.
  15. hey, I just learned Direct3D 9 an hour ago (I used Direct3d 8 a bit before) so bear with me. I have a camera point stored in a Vector3, how can I create a point thats infront of it? (using a Direction variable or something). I just wanna know how to do a first person view type thing and create an engine for walking around. Thanx.
  16. can VB read that string class?
  17. I've managed to get it working except for one part. I want str to delete the returned value from itself (plus the "<") so: Dim str as string = "abc^def" Dim str2 as string = GetDataFromString(str) 'str equals "def", str2 equals "abc"
  18. I've done lots of work with C++ before, but I've never gotten into string functions. bring on the challenge :)
  19. the String class is .NET though, is it not? I want to use Unmanaged C++...
  20. I have the following function in VB .NET: Public Function GetDataFromString(ByRef str As String) As String Dim x As Integer = str.IndexOf(">") If x = -1 Then GetDataFromString = str Exit Function End If GetDataFromString = str.Substring(0, x) str = str.Substring(x + 1) End Function what would a simple unmanaged C++ equivalent be? (I've never used strings in C++ before)
  21. I made a Sprite class for a game (it doesn't actually have an image, but rather a number corresponding to an image) and I'd like to use C++ to speed it up but how can I use a Win32 .DLL to read a .NET class?
  22. got it! longs in C++ are integers in .NET :S working fine now thanx everyone
  23. ok, I changed the Function definition to: short _stdcall SetYPosition(long NumCards, long crdNum, int crdHeight, int arHeight, int arY) //it was: //short _stdcall SetYPosition(int arY, long NumCards, long crdNum, int crdHeight, int arHeight) now its returning the value of crdHeight every time!
  24. when I call it, it returns JUST the value of arY, nothing else
  25. I've had some problems with KeyDown and KeyUp before... In some apps they just don't work, and in others they work fine. I haven't pinpointed the problem yet
×
×
  • Create New...