Search Results

Showing results 1 to 40 of 78
Search took 0.01 seconds.
Search: Posts Made By: gampalu
Forum: Java Oct 11th, 2009
Replies: 6
Views: 596
Posted By gampalu
It works now, thank you very much for the help.
I didn't know that the image had to be in the build folder.

Cheers!
Forum: Java Oct 11th, 2009
Replies: 6
Views: 596
Posted By gampalu
The image is there.
I am attaching the project, so if you could take a look I apreciate very much :)
Forum: Java Oct 11th, 2009
Replies: 6
Views: 596
Posted By gampalu
Thank you for your answer.
At the moment I have the image file in that location but the image is not appearing in the applet.

However if I try with the same image from an URL, it works:
image =...
Forum: Java Oct 11th, 2009
Replies: 6
Views: 596
Posted By gampalu
Hi,

I am trying to load an image into an applet, however unsuccessfully.
What's wrong here?

package sess31;

// Import the AWT graphics package
import java.awt.*;
import java.applet.*;
Forum: Java Sep 23rd, 2009
Replies: 2
Solved: applet
Views: 557
Posted By gampalu
Hello,

The idea of this code is to save the clicked-mouse points and creating a line between the last 2 clicked points. Whenever a double-click the screen should be cleared.
This is all working...
Forum: Java Sep 23rd, 2009
Replies: 2
Solved: applet
Views: 557
Posted By gampalu
Hi again,

I have managed to solve the issue by creating a new field to save the actual color as you can see in the code:

public boolean mouseDown(Event evt, int x, int y)
{
//...
Forum: Java Sep 21st, 2009
Replies: 2
Solved: applet
Views: 557
Posted By gampalu
Hi,

I am trying to implement an applet.
The idea is to create the applet, then connect places where I single-click with the mouse with black lines until we give a double-click.
With a...
Forum: C++ Oct 16th, 2006
Replies: 3
Views: 1,942
Posted By gampalu
I'm sorry but your link was this topic...
Forum: C++ Oct 16th, 2006
Replies: 3
Views: 1,942
Posted By gampalu
Does anyone know where to download the library from LAPACk to run under C++?
Forum: C Oct 16th, 2006
Replies: 1
Views: 1,138
Posted By gampalu
Do you know where can I find a Class to operate with matrixes with a fast algorithm? (the class should also have the inverse method)
thanks in advance
Forum: C++ Sep 15th, 2006
Replies: 6
Views: 1,652
Posted By gampalu
I've used the alternative you gave me and it works :)
thanks for your attention.


This link it's in my bookmarks :cheesy:
thanks again
Forum: C++ Sep 15th, 2006
Replies: 6
Views: 1,652
Posted By gampalu
I'm using MFC and I tried your exmeple but I get this:

--------------------Configuration: calculator - Win32 Release--------------------
Compiling...
calculatorDlg.cpp...
Forum: C++ Sep 15th, 2006
Replies: 6
Views: 1,652
Posted By gampalu
But I'm not using cout... The variable m_total is shown at the dialog box in an edit box...
Forum: C++ Sep 15th, 2006
Replies: 6
Views: 1,652
Posted By gampalu
I'm doing a dialog application in C++ to calculate something, but I want the result to be with 2 decimal number, how to do this?

here is the function:

void CCalculatorDlg::Oncalc()
{
//...
Forum: C Sep 15th, 2006
Replies: 3
Views: 1,099
Posted By gampalu
thanks :)
Forum: C Sep 14th, 2006
Replies: 3
Views: 1,099
Posted By gampalu
Hi, can you please indicate me some ebooks about C for beginners,
thanks
Forum: C Jul 17th, 2006
Replies: 14
Views: 1,395
Posted By gampalu
That's it, Thanks
Forum: C Jul 17th, 2006
Replies: 14
Views: 1,395
Posted By gampalu
The input strings are IP names like this: "193.231.035.201"...
Forum: C Jul 17th, 2006
Replies: 14
Views: 1,395
Posted By gampalu
like this?

for (i=0; i<InputNumber; i++)
{
delete []IP_name[i];
}
delete []IP_name;

Also crashes...
Forum: C Jul 17th, 2006
Replies: 14
Views: 1,395
Posted By gampalu
Hi I've done like this and it works:


char **IP_name;
IP_name = new char* [InputNumber];
for (int i=0; i<InputNumber; i++)
{
IP_name[i] = new char[20];
fscanf(...
Forum: C Jul 17th, 2006
Replies: 14
Views: 1,395
Posted By gampalu
Hi, here it is:

// Open for read (will fail if file input.txt does not exist)
if( (fINPUT = fopen( "my_log_input.txt", "r" )) == NULL )
{
printf( "The file 'my_log_input.txt' was not...
Forum: C Jul 17th, 2006
Replies: 14
Views: 1,395
Posted By gampalu
Hi, I've done a new like this:

char *IP_name;
IP_name= new char [InputNumber];

for (int j=0; j<InputNumber; j++)
{

// Read data back from input file: ...
Forum: C Jul 17th, 2006
Replies: 14
Views: 1,395
Posted By gampalu
That's it :)
thanks
Forum: C Jul 17th, 2006
Replies: 14
Views: 1,395
Posted By gampalu
Hi, in the declaration of IP_name:


int InputNumber;
...
// function that gets the InputNumber
...
char IP_name[InputNumber];

I have this error:
Forum: C++ Jul 14th, 2006
Replies: 3
Views: 2,142
Posted By gampalu
Forum: C++ Jul 14th, 2006
Replies: 3
Views: 2,142
Posted By gampalu
Hi I'm creating an application and in DEBUG mode I have zero errors, but when I switch to RELEASE I have this error:


--------------------Configuration: ipfix - Win32 Release--------------------...
Forum: C++ Jul 6th, 2006
Replies: 18
Views: 3,020
Posted By gampalu
Thanks anyway :)
Forum: C++ Jul 6th, 2006
Replies: 18
Views: 3,020
Posted By gampalu
No, not really...
Forum: C++ Jul 6th, 2006
Replies: 18
Views: 3,020
Posted By gampalu
Hi!

How in C++ can we make a pause in the code, waiting for an ENTER?

regards
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
Sorry my tabs and spaces disappeared, I tried with this line:

12[1 space]324[2 tabs]34[8 spaces]32

And it outputs 12 when it should be 4
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
I tried with this line in the file: "12 324 34 32"

And the result was 12, when it should be 4.
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
:) I can't think of an easy way or difficult way :sad:
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
You're right!

How can we do that?
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
I've changed the ' ' by '\t' because I have the strings delimited by tabs

Thanks :)
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
I'm using Visual Studio 6.0. I'm more used to C than C++ :sad:
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
Hi I run your program but it gives me 1 word when it shoul count 4....
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
Yes I'm doing it in C++.

I've searched the getline function, but don´t know properly how to use it...


int main(int argc, char* argv[])
{
int cnt = 0;
FILE *stream;
char* psch;
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
I get the error.

But still I can´t do what I want...
It never exits the while loop...

int main(int argc, char* argv[])
{
int count = 0;
FILE *stream;
Forum: C Jun 9th, 2006
Replies: 19
Views: 2,163
Posted By gampalu
I want to open a file and count the number of strings in the first line.

Assuming that each string is delimited by spaces.

I tried to do some code but yet not successful, can anyone help?

...
Forum: C++ Jun 8th, 2006
Replies: 6
Views: 1,308
Posted By gampalu
Sorry to be boring but I want to count the number of strings only in the first line.
I mean a string each group of one or more caracters limited by a space...

Can you help me? I tried to use the...
Showing results 1 to 40 of 78

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC