Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~9K People Reached
About Me

Student

Favorite Tags

23 Posted Topics

Member Avatar for apcxpc

Hi all I have been following a tutorial on creating win32 GUI applications. I'm having a problem getting a dialog box to pop up on top of my main window ...the CreateDialog() method returns a NULL for some reason. Would really appreciate some help with this. Here is a zip …

Member Avatar for Jens_2
0
666
Member Avatar for apcxpc

'ellos So I'm making a Hangman game, and for the sake of completeness I want to have a HELP feature. When the Help button is clicked, a browser window should open up (not *within* the game frame... but just generally) and display the HTML Help file. How do I do …

Member Avatar for masijade
0
723
Member Avatar for apcxpc

Hi all I am programming a database-related application in Java. I have to facilitate several different types of queries, but I'd like to use the same JTable to display the results of each query (one at a time, of course). The problem is that when I'm using one JTable, I …

Member Avatar for verruckt24
0
200
Member Avatar for apcxpc

Hi all I'm experimenting with win API gui stuff, and I've run into a problem with dialog boxes. Currently, when the "Show DialogBox" option in the menu is pressed, the dialog box pops up. I then need for this dialog box to be draggable/moveable, and to "hide" when its close …

Member Avatar for wamuti
-1
266
Member Avatar for psodhi

The problem is in the paintComponent method of your MyPan class. It should look like this: [code] public void paintComponent(Graphics g) { super.paintComponent(g); g.drawString("Hello India",50,50); } [/code] :cheesy:

Member Avatar for psodhi
0
279
Member Avatar for apcxpc

Hi all My program currently loads a bitmap (given a filename) and draws it to a window (win32 application). The problem is that once a different bitmap is loaded and drawn to the window... if the new bitmap is smaller than the old bitmap, the edges of the old bitmap …

Member Avatar for Ancient Dragon
0
208
Member Avatar for apcxpc

Hi all I am fairly new to C++, and am having problems creating a quick GUI application using the Win32 API. I'd like to use the "windows form project" option in Visual C++ ...which creates windows, textboxes, buttons etc. through a drag & drop interface. The problem is that I …

Member Avatar for WolfPack
0
130
Member Avatar for apcxpc

Hi all I am implementing the TSP problem in Java. Here is the question: [quote] There are many strategies to approximate the optimal solution, amongst is the MST-Preorder-Walk strategy. Implement an algorithm that will give an approzimate solution of the TSP using this strategy. You must be able to save …

Member Avatar for apcxpc
0
223
Member Avatar for apcxpc

Hi all Here is a PHP question I have to answer. [quote]Write a php file called reload.php that contains a table with 2 rows and 3 columns. In each of the cells of the top row of this table there should be the strings AAA, BBB & CCC. In the …

Member Avatar for apcxpc
0
221
Member Avatar for apcxpc

Hi all Sorry, I didn't know where to post my perl programming question. I'm having a problem creating objects in perl. I found a piece of code on the internet, that gives an example of classes and objects in perl. I modified it a little bit, and now have this …

Member Avatar for apcxpc
0
142
Member Avatar for apcxpc

Hi all Here are two questions from my Algorithms & Complexity Theory assignment. 1. A complete binary tree is a binary tree in which every level, except possibly the deepest, is completely filled. At depth n, the height of the tree, all the nodes must be as far left as …

Member Avatar for ITgeneration
0
260
Member Avatar for apcxpc

hi all I'm having an odd problem with Javascript. I created a table with a single row and a single column (and gave all of them IDs). Then I use onclick events to pick up mouseclicks and call the function `clicked(evt)`. I know this function is getting called, and I …

Member Avatar for peter_budo
0
190
Member Avatar for apcxpc

Hi all Here is a question from my assignment in Algorithms & Complexity Theory. I'm having a problem with part 2. A continuous function f(x) such that f(a) and f(b) have opposite signs must have a zero (a point x such that f(x)=0) in the interval [a,b]. By checking whether …

Member Avatar for apcxpc
0
183
Member Avatar for apcxpc

Hi all... I have a JFrame, which contains a JTabbed Pane, which contains two JPanels. The problem is that when I run the program, a completely grey frame shows up, and the contents only becomes visible when I click on the border of the frame. Here is the code. Compile …

Member Avatar for server_crash
0
218
Member Avatar for spdman01
Member Avatar for server_crash
0
169
Member Avatar for apcxpc

Hi all I've programmed a relay chat system in Java. Just having two GUI-related problems with the chat client itself. [B][U]Problem #1[/U][/B] : I can't get the chat windows to scroll as new text appears in them. The scroll bar [i]does[/i] appear when it needs to, but it remains at …

Member Avatar for jwenting
0
392
Member Avatar for apcxpc

It's easy enough in Java. How is it done in C++? for e.g. I have a class called Relation, that has a name field (just a string) and then a vector of strings. I want to specify that wherever I type (for example): Relation* r = new Relation(...); cout << …

Member Avatar for Narue
0
3K
Member Avatar for apcxpc

I've got to implement Prolog in C++ for an assignment. I'm very new to C++, it's a little daunting. Also, I have no idea of where to start. Can someone point me to some basic algorithm and/or some resources online?

Member Avatar for apcxpc
0
390
Member Avatar for sydneyrustle

You just keep a counter. Something like this: [CODE] int count=1; while (count<51){ <dice rolling bit here> count++; } [/CODE]

Member Avatar for sydneyrustle
0
156
Member Avatar for apcxpc

Hi all. Here are two questions to begin with: 1. What is the difference between the C++ standard library, and the C++ standard template library? 2. You know how Java has the API & documentation info. for all classes available? Where can I find similar documentation for the C++ standard …

Member Avatar for Narue
0
98
Member Avatar for psylocke

psylocke... you should really learn to program more modularly & object-orientated-ly. If you had, making little modifications to your program (and controlling the flow of the program) would be much easier. But as it looks now... I think you should switch your program to the following structure: [list] [*]a [b]create()[/b] …

Member Avatar for psylocke
0
162
Member Avatar for psylocke

Well, assuming you structured your program decently... just get your YES button ActionListener to call the appropriate method of whichever object is controlling the game (flow). If not, structure it that way - so that the same method can be called to begin the game, whether you're playing the first …

Member Avatar for psylocke
0
172
Member Avatar for mndeaves

hmmm... [quote]if (e.getSource() == connect){ //THIS DOES NOT THROW THE VALUE OF userName TO loginUser()?????? loginUser(userName.getText()); }[/quote] I don't have Java installed on this computer, so I can't run your program... but the static method you are calling returns a boolean value, so this ActionListener bit should be something like... …

Member Avatar for apcxpc
0
85

The End.