Forum: Java Oct 6th, 2007 |
| Replies: 17 Views: 1,346 Re: Running Java Program outside an IDE Thanks again... The registry keys were exactly what I was looking for. Well my app is required to run only on Windows, so platform-independence is not an issue right now. I chose Java simple because... |
Forum: Java Oct 5th, 2007 |
| Replies: 17 Views: 1,346 Re: Running Java Program outside an IDE Thanks everyone, I now know many ways to distribute my Java apps... jar files, batch files, web start or exes'. You guys are really helpful...
One more question... Is there a standard registry... |
Forum: Java Oct 4th, 2007 |
| Replies: 17 Views: 1,346 Re: Running Java Program outside an IDE Yes, I know all about javac and java and compiling and executing Java programs... Thats really the first thing I learnt. But I wouldn't expect the end users of my application to go to the command... |
Forum: Java Oct 4th, 2007 |
| Replies: 17 Views: 1,346 |
Forum: Java Oct 4th, 2007 |
| Replies: 17 Views: 1,346 Re: Running Java Program outside an IDE No, it is not so on my system. The .class does not have an association with any program and isn't opened. I have to select the program I want to open the .class file with.
What I'm actually... |
Forum: Java Oct 3rd, 2007 |
| Replies: 17 Views: 1,346 Running Java Program outside an IDE Hi everyone, I need to be able to run a Java application (not an applet) directly, that is not from an IDE or the command line. How can this be done for a Windows PC? I have seen many applications... |
Forum: C Jun 28th, 2007 |
| Replies: 6 Views: 789 Re: Linking Behaviour Found the reason, finally...
@thekashyap
You were actually right!
I checked and it turns out there is a shared library /usr/X11R6/lib/libX11.so. So I figure -lX11 refers to libX11.so if it is... |
Forum: C Jun 26th, 2007 |
| Replies: 6 Views: 789 Re: Linking Behaviour @thekashyap
It makes a difference where in the command you write this option; the linker searches and processes libraries and object files in the order they are specified. Thus, `foo.o -lz bar.o'... |
Forum: C Jun 25th, 2007 |
| Replies: 6 Views: 789 Re: Linking Behaviour I believe this may be the reason, though dont know exactly how.
No, there are no .o files in the path, if thats what you meant.
Well, its true! |
Forum: C Jun 25th, 2007 |
| Replies: 6 Views: 789 Linking Behaviour I have two static libraries:
/usr/X11R6/lib/libX11.a - Standard library, ~ 1.5MB
./libxbgi.a - Created by me, ~60KB
Now I use the following commands to compile a program, test.c:
$gcc -o test... |
Forum: C May 25th, 2007 |
| Replies: 7 Views: 1,983 Re: Linking Static Libraries Well the reason is that I want "users" to be able to compile their code with my library without needing lots of compiler options... yeah, thats stupid. Another reason is that the location of libX11.a... |
Forum: C May 24th, 2007 |
| Replies: 7 Views: 1,983 Re: Linking Static Libraries @thekashap and Narue:
I know both are acceptable solutions, but what I'm looking is for the library libxbgi.a itself to contain the linked object codes from libX11.a and libm.a
Kinda something... |
Forum: C++ May 24th, 2007 |
| Replies: 3 Views: 521 Re: I need your help with functions You have to write two more functions to compute the total marks and the highest marks.
I can suggest the prototypes as:
void totalmarks( int ¤tTotal, int &marks );
void highestmarks( int... |
Forum: C May 24th, 2007 |
| Replies: 7 Views: 1,983 Linking Static Libraries Hi...
I have a static library, libxbgi.a. When I want to properly link a program with this library I have to write:
gcc prog.c -o prog -lm -L /usr/X11R6/lib -lX11 -L. -lxbgi
It is... |
Forum: Java May 22nd, 2007 |
| Replies: 4 Views: 1,006 Re: Java for Windows Device drivers?? No buddy, not here... Looks like you're new to this... Create a new thread for your question. Don't reply to an existing thread and ask a question there.
And here I was anticipating a... |
Forum: Java May 21st, 2007 |
| Replies: 4 Views: 1,006 |
Forum: Java May 20th, 2007 |
| Replies: 4 Views: 1,006 Java for Windows Device drivers?? Hi everyone...
I need to build a file browser for a wireless multimedia device for a Windows PC. The objective is to be able to browse contents of the device. The device defines its own protocols... |
Forum: C++ Mar 18th, 2007 |
| Replies: 6 Views: 792 Re: variables holding operators? You can do this to have the same effect:
#define a +
int b = (2 a 3);
But 'a' is not really a variable here.
And I see no reason why you would want to do that... |
Forum: C Mar 18th, 2007 |
| Replies: 2 Views: 561 |
Forum: C Mar 17th, 2007 |
| Replies: 2 Views: 561 Real Number Problem Check this code:
float velocity, acc, time;
.
.
velocity = velocity - acc * time
if( velocity == 0.0 )
{ |
Forum: C Dec 19th, 2006 |
| Replies: 5 Views: 1,188 Re: What errors can occur while reading a file? >> Is the file a binary file or text file?
It is a text file, because I am creating the file in some other program.
>>this is how I would have coded it
i = 0;
while( i < count && fin >>... |
Forum: C++ Dec 18th, 2006 |
| Replies: 2 Views: 1,412 Re: Analog Clock (TorboC++ Graphics) If you are going to erase and redraw without sufficient time interval in between, it will cause blinking which is visible. You don't need to draw anything until the position of the second hand... |
Forum: C Dec 18th, 2006 |
| Replies: 5 Views: 1,188 What errors can occur while reading a file? I want to read a file which contains a list of integers. The first 4 bytes( or whatever sizeof(int) is ) indicates how many numbers the file has.
Suppose I check the file size before reading so that... |
Forum: C++ Dec 15th, 2006 |
| Replies: 6 Views: 1,495 |
Forum: C++ Dec 15th, 2006 |
| Replies: 40 Views: 36,478 |
Forum: C Dec 12th, 2006 |
| Replies: 7 Views: 1,633 |
Forum: C Dec 12th, 2006 |
| Replies: 7 Views: 1,633 Re: Parameter lists for fucntion pointers?? Yes, that would be a function taking variable number of arguments... And you can more than two arguments, as long as the first two arguments match the prototype. The remaining parameters can be of... |
Forum: C++ Dec 12th, 2006 |
| Replies: 7 Views: 1,975 Program that prints its own code? Can you write a program that prints its own source code ( in C/C++ )? Of course it would be easy to do that referring to the source file, but how can this program be written assuming that the souce... |
Forum: C Dec 12th, 2006 |
| Replies: 7 Views: 1,633 Re: Parameter lists for fucntion pointers?? No you can't... When you declare void (*fptr)(const void* , const void*); it explicitly means that the function pointer can point only to the functions which take two pointers as arguments and return... |
Forum: C++ Dec 11th, 2006 |
| Replies: 7 Views: 1,198 |
Forum: C++ Dec 10th, 2006 |
| Replies: 7 Views: 1,198 Re: Coding standard? Yes, but there are some widely accepted ways to do certain things, like using all caps for constants. I was thinking what would that be here.
It may be true that writing this-> could be... |
Forum: C++ Dec 9th, 2006 |
| Replies: 7 Views: 1,198 Coding standard? While calling a member function from within another member function, isn't it better to write
this->member_fun( )
rather than
member_fun( ) ?
That would make it very clear that we are calling a... |
Forum: C++ Jul 21st, 2006 |
| Replies: 32 Views: 2,681 Re: Constrcutors and Destructors Ok, I think I am beginning to understand, finally...let me get this straight...
When I write string s3; , the default constrcutor is called and so s3 is empty.
Then when s3 = s1 + s2; only... |
Forum: C++ Jul 20th, 2006 |
| Replies: 32 Views: 2,681 |
Forum: C++ Jul 20th, 2006 |
| Replies: 32 Views: 2,681 |
Forum: C++ Jul 20th, 2006 |
| Replies: 32 Views: 2,681 Re: Constrcutors and Destructors A copy constructor is really needed in this case because we are allocating space dynamically. If you let the default copy constructor do the job, it'll mess up the whole thing when you pass... |
Forum: C++ Jul 20th, 2006 |
| Replies: 32 Views: 2,681 Re: Constrcutors and Destructors I just don't get it...its clearly mentioned in many books that if a copy constructor is explicitly defined it'll be called. In this program we have done that...and it creates a new object...then why... |
Forum: C++ Jul 19th, 2006 |
| Replies: 32 Views: 2,681 Re: Constrcutors and Destructors Overloading the = operator is same as writing a copy constructor, the same thing will be called when
s3 = s1 + s2;
is executed. |
Forum: C++ Jul 19th, 2006 |
| Replies: 32 Views: 2,681 Re: Constrcutors and Destructors I dont think the code will work if you write it as: ( in main )
String a = "My cool string";
String b = " is so crappy";
String c = " ya know";
String d;
d = a + b + c ; |
Forum: C++ Jul 18th, 2006 |
| Replies: 32 Views: 2,681 |