User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 427,395 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,240 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 55
Search took 0.01 seconds.
Posts Made By: apcxpc
Forum: Java May 2nd, 2006
Replies: 3
Views: 3,943
Posted By apcxpc
Troubleshooting Re: help with setting background color!!!

The problem is in the paintComponent method of your MyPan class.
It should look like this:


public void paintComponent(Graphics g)
{
super.paintComponent(g);
g.drawString("Hello India",50,50);
}
Forum: C++ Apr 9th, 2006
Replies: 4
Views: 2,965
Posted By apcxpc
Solution Re: Windows GUI - problem with dialog box

well ... mainly that I was calling DefWindowProc() from within the dialogbox's callback function, which messed things up. :-|
Forum: C++ Apr 9th, 2006
Replies: 4
Views: 2,965
Posted By apcxpc
Solution Re: Windows GUI - problem with dialog box

... nevermind, got it working. :cheesy:
Forum: C++ Apr 9th, 2006
Replies: 4
Views: 2,965
Posted By apcxpc
Question Windows GUI - problem with dialog box

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...
Forum: C Feb 27th, 2006
Replies: 1
Views: 3,426
Posted By apcxpc
Drawing bitmap on window - how to clear window/HDC?

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...
Forum: C++ Feb 26th, 2006
Replies: 12
Views: 7,073
Posted By apcxpc
Re: WIN32 GUI application - Problem popping up dialog box

ah, ok ... nevermind. Something in my project options got reset, and it was no longer including my .rc file in the current project. :o

Thanks again, guys. Much appreciated.
Forum: C++ Feb 26th, 2006
Replies: 12
Views: 7,073
Posted By apcxpc
Forum: C++ Feb 26th, 2006
Replies: 12
Views: 7,073
Posted By apcxpc
Re: WIN32 GUI application - Problem popping up dialog box

Hey guys... thanks for the replies

Yesterday, I used the main.cpp that Wolfpack included in GUI.zip ... everything worked fine, and the dialog box popped up.

Today I had to reinstall dev-cpp ... I...
Forum: C++ Feb 25th, 2006
Replies: 12
Views: 7,073
Posted By apcxpc
Re: WIN32 GUI application - Problem popping up dialog box

ah ... it runs fine in Dev-cpp. Thank you SO much, Wolfpack.

Just one more question. I'm creating this program to do some bitmap displaying/manipulation ... so I'd like to have another window (a...
Forum: C++ Feb 25th, 2006
Replies: 12
Views: 7,073
Posted By apcxpc
Re: WIN32 GUI application - Problem popping up dialog box

Hi Wolfpack

I'm using the Dev-Cpp IDE (I think it's the MinGW compiler that comes along with dev-cpp).

I tried the above, CreateDialogBox() still returns a NULL...
Is there an error in the...
Forum: C++ Feb 24th, 2006
Replies: 1
Views: 3,236
Posted By apcxpc
Visual C++ Form Project - need to get HDC for drawing bitmaps

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,...
Forum: C++ Feb 24th, 2006
Replies: 12
Views: 7,073
Posted By apcxpc
Re: WIN32 GUI application - Problem popping up dialog box

http://www.apcx.3rror.com/main.cpp


The resource file:




Window Procedure of the main window...
Forum: C++ Feb 24th, 2006
Replies: 12
Views: 7,073
Posted By apcxpc
WIN32 GUI application - Problem popping up dialog box

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...
Forum: Computer Science and Software Design Nov 2nd, 2005
Replies: 2
Views: 4,044
Posted By apcxpc
Re: Traveling Salesman Problem ... question about Triangle Inequality

Thanks Rashakil ...I actually handed in the assignment the morning after I posted that, I ended up going with option b) after all. hehe

And also, it's sort of strange to email your lecturer with...
Forum: Computer Science and Software Design Oct 30th, 2005
Replies: 2
Views: 4,044
Posted By apcxpc
Help Traveling Salesman Problem ... question about Triangle Inequality

Hi all

I am implementing the TSP problem in Java. Here is the question:



And here is the MST Preorder walk strategy:
Forum: Java Oct 25th, 2005
Replies: 2
Views: 2,634
Posted By apcxpc
Forum: Java Oct 25th, 2005
Replies: 2
Views: 2,634
Posted By apcxpc
Help Problem changing contents of JTable when button is pressed...

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...
Forum: PHP Oct 9th, 2005
Replies: 6
Views: 1,550
Posted By apcxpc
Re: PHP question regarding Forms

LOL yeah. I tried to do it for myself afterwards, and ran into some troubles again. I'm probably going to have to take a few peeks at my homework to figure it out. :lol:
Forum: Perl Oct 9th, 2005
Replies: 2
Views: 3,908
Posted By apcxpc
Re: Creating objects in Perl

Thanks for the help, Rashakil Fol. :cool:
Forum: Perl Oct 9th, 2005
Replies: 2
Views: 3,908
Posted By apcxpc
Help Creating objects in Perl

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...
Forum: PHP Oct 8th, 2005
Replies: 6
Views: 1,550
Posted By apcxpc
Re: PHP question regarding Forms

Excellent. Thank you so much, zippee. I had tried something along those lines, with trying to get the value of the button, but I messed it up somehow, so I thought it didn't work with buttons at...
Forum: PHP Oct 8th, 2005
Replies: 6
Views: 1,550
Posted By apcxpc
PHP question regarding Forms

Hi all

Here is a PHP question I have to answer.



Now the thing I'm having a problem with is...
When the form is submitted and the page reloads, how do I determine which button was pressed/which...
Forum: Computer Science and Software Design Sep 27th, 2005
Replies: 4
Views: 5,269
Posted By apcxpc
Re: Question about binary tree & heaps

For the Binary Tree Question, I know that the equation is true, from having tried examples of it.

e.g. from the following sketch, the sum would be: 1/8 + 1/8 + 1/4 + 1/2 = 1.
And the equality is...
Forum: Computer Science and Software Design Sep 27th, 2005
Replies: 4
Views: 5,269
Posted By apcxpc
Help Re: Question about binary tree & heaps

Here is my answer to the first one.


a)
struct heap{
int maxsize; //maximum size of the heap
element[] table; //array containing elements of the heap
int last; ...
Forum: Computer Science and Software Design Sep 27th, 2005
Replies: 4
Views: 5,269
Posted By apcxpc
Help Question about binary tree & heaps

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....
Forum: JavaScript / DHTML / AJAX Sep 4th, 2005
Replies: 3
Views: 6,942
Posted By apcxpc
Solution Re: Javascript event & color change problem

Thanks very much peter_budo. Any idea why my code wouldn't work?
Forum: JavaScript / DHTML / AJAX Sep 4th, 2005
Replies: 3
Views: 6,942
Posted By apcxpc
Javascript event & color change problem

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...
Forum: Computer Science and Software Design Aug 24th, 2005
Replies: 5
Views: 6,656
Posted By apcxpc
Re: Algorithms Question (Bisection Method & Sqrt)

ah ok... nevermind...

The square root itself is within error of the correct sqrt, not the sqrt^2 being within error of the correct square.

Don't mind me. :o

Thanks again for the help, guys.
Forum: Computer Science and Software Design Aug 23rd, 2005
Replies: 5
Views: 6,656
Posted By apcxpc
Re: Algorithms Question (Bisection Method & Sqrt)

'ellos

Thanks Rashakil.

I tried implementing it that way. We then had to compare the efficiency (number of iterations) of the BissectionSQRT method with that of another sqrt method. I tried this,...
Forum: Computer Science and Software Design Aug 21st, 2005
Replies: 5
Views: 6,656
Posted By apcxpc
Re: Algorithms Question (Bisection Method & Sqrt)

Thanks for the reply indianscorpion.

So I'm thinking the BissecSQRT algorithm runs only once and looks sort of like this:



The problem I'm having is that, in a later question I will have to...
Forum: Computer Science and Software Design Aug 21st, 2005
Replies: 5
Views: 6,656
Posted By apcxpc
Help Algorithms Question (Bisection Method & Sqrt)

Hi all

Here is a question from my assignment in Algorithms & Complexity Theory. I'm having a problem with part 2.




My answer to part 1 is as follows:
Forum: Java Jun 13th, 2005
Replies: 5
Views: 3,603
Posted By apcxpc
Forum: Java Jun 12th, 2005
Replies: 5
Views: 3,603
Posted By apcxpc
Forum: Java Jun 12th, 2005
Replies: 5
Views: 3,603
Posted By apcxpc
Java GUI problem... contents of JFrame is invisible...

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...
Forum: Java Jun 11th, 2005
Replies: 4
Views: 1,353
Posted By apcxpc
Re: A Java Question??

The prof probably meant for you to write up a method that does it :!:
Forum: C++ May 13th, 2005
Replies: 4
Views: 8,005
Posted By apcxpc
Re: class toString() functionality in C++ ...?

Thanks.

And... I need to stick that snippet of code into the Relation.h file?
Forum: C++ May 13th, 2005
Replies: 4
Views: 8,005
Posted By apcxpc
class toString() functionality in C++ ...?

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...
Forum: Java May 6th, 2005
Replies: 15
Views: 4,415
Posted By apcxpc
Re: two Java GUI problems - please help

The original code as in...


jta.append("Some text!");
jta.setCaretPosition(jta.getText().length());


.. not my original code. :mrgreen:
Forum: Java May 6th, 2005
Replies: 15
Views: 4,415
Posted By apcxpc
Re: two Java GUI problems - please help

Sorry, my bad. I seem to have added the code to one append point and not the other. oops.

The point being... the original code worked! Thanks DeepZ. Much appreciated.
Forum: Java May 5th, 2005
Replies: 15
Views: 4,415
Posted By apcxpc
Re: two Java GUI problems - please help

hi...

I tried this. It seems to have helped just a little, because instead of never showing new text, the scroll pane now remains just one text line behind i.e. the newest line of text appended is...
Showing results 1 to 40 of 55

 
All times are GMT -4. The time now is 4:38 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC