No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
14 Posted Topics
I downloaded QBASIC 4.5 onto a Windows XP computer, and placed it into C:\QBASIC\. When I try to run QB.EXE though, I get the error: C:\QBASIC\QB.EXE Invalid startup directory, please check your pif file. Choose 'Close' to terminate the application. What do I do here? | |
I'm not sure if my title adequately explains what I want to do, so I'll provide a scenario. I have two classes in a folder, one named UserInterface.class and another named HelloWorld.class, and the contents are as follows: [code=java] import java.util.Scanner; public class UserInterface { public static void main(String[] args) … | |
Two questions here, the first is whether the following error refers to the command exceeding 60 seconds or the whole page taking over 60 seconds to execute. "Fatal error: Maximum execution time of 60 seconds exceeded in /***/panel.php on line 35" The code is as follows. [PHP] <html> <head>Text</head> <body> … | |
When using the Form1.KeyDown, keystrokes don't seem to register. For example, the Click works fine: [code] Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click MsgBox("Hello") End Sub[/code] That will display the message box when the form is clicked, but if you change it to: [code] Private … | |
How do you add controls through code instead of the form editor? I wasnt to do things like make a textbox appear when a button is pressed, but I'm looking for another way to do it than make a huge clutter of controls and edit the VISIBLE statement. Something like: … | |
Re: Adding to what cpopham said, make a subroutine for one of your buttons like this: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click objNewForm.ShowDialog() End Sub Also make sure you put Dim objNewForm as New Form somewhere near the top. It should be "as New Form" … | |
I'm using MS Visual Studio.NET, and when I try to open a project, nothing happens. I can open the Form1.vb or whatever I've named it to, but I can't see the graphic version of the form editor anymore. Do I have to load something else or is there a view … | |
At the beginning of an "IF" statement, I have: [code]if (SHORT GetKeyState(int 48)==1){[/code] When compiling I get a syntax error just before the constant, and I've played around with it a bit, but haven't found what to do. Could someone fix this or explain to me why it's not working? | |
Re: Oh nevermind, you already know Java... C++ is a good, powerful language that takes a lot of work, and Visual C++ would also be a good choice. | |
Re: Also, next time you post code use code tags to make it easier to read. | |
Re: I don't know the function, but search for "define window" "resize window" and "split window" | |
I have a PvP TicTacToe program running, and everything is working fine, except for one thing: when a text character (q,w,e,etc) is entered the loop goes wild. Here's the portion of the code the loop is in, and if a text character is input instead of a digit, the loop … | |
Re: I won't write it in executable code, but this would be how to break out of the loop when 999 is entered. [code] while exit is not one{ input number if number is not 999 sum=sum+number else exit=1 } [/code] This way, at the end of the "while" loop, it … | |
I have just started using C++ after a year or two of a BASIC language, and I wanted to do something that required some logic, but not a lot of different commands. I decided to do a tic tac toe playing program where your opponent was the program. The way … |
The End.