User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 391,677 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,162 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 65
Search took 0.01 seconds.
Posts Made By: vicky_dev
Forum: Java Oct 6th, 2007
Replies: 17
Views: 1,346
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
Re: Running Java Program outside an IDE

Well a .jar file open with WinRAR on my system! It seems that jarfiles are like a collection of zipped .class files.
Forum: Java Oct 4th, 2007
Replies: 17
Views: 1,346
Posted By vicky_dev
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
Posted By vicky_dev
Question 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
Posted By vicky_dev
Solution 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
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
Question 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
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
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 &currentTotal, int &marks );
void highestmarks( int...
Forum: C May 24th, 2007
Replies: 7
Views: 1,983
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
Re: Java for Windows Device drivers??

Ok, thanks. That was helpful [:)]
Forum: Java May 20th, 2007
Replies: 4
Views: 1,006
Posted By vicky_dev
Question 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
Posted By vicky_dev
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
Posted By vicky_dev
Re: Real Number Problem

Got it, thanks.
Forum: C Mar 17th, 2007
Replies: 2
Views: 561
Posted By vicky_dev
Question 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
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
Question 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
Posted By vicky_dev
Re: Doubt in Outtextxy in C++ graphics

There is a better way to do it:


char buffer[30];

sprintf( buffer, "i = %d", num );
outtextxy( x, y, buffer );
Forum: C++ Dec 15th, 2006
Replies: 40
Views: 36,478
Posted By vicky_dev
A General Performance Tip - Arithmetic involving powers of 2

Multiplication, division and modulus operations on powers of 2 can be made much faster using bitwise operators.

1. Modulo
Finding the modulus is particularly expensive. This operation can be...
Forum: C Dec 12th, 2006
Replies: 7
Views: 1,633
Posted By vicky_dev
Re: Parameter lists for fucntion pointers??

Actually both the function pointer and the function must have the same prototype,



void (*fptr)(const void* , const void*, ... );

void f1(int*, int*, ... );
Forum: C Dec 12th, 2006
Replies: 7
Views: 1,633
Posted By vicky_dev
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
Posted By vicky_dev
Help 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
Posted By vicky_dev
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
Posted By vicky_dev
Re: Coding standard?

K, I got my answer... thanks!!
Forum: C++ Dec 10th, 2006
Replies: 7
Views: 1,198
Posted By vicky_dev
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
Posted By vicky_dev
Question 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
Posted By vicky_dev
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
Posted By vicky_dev
Re: Constrcutors and Destructors

One more thing Wolfie...

I really dont get difference between assignment and copy constrcutor, try to explain:confused:
Forum: C++ Jul 20th, 2006
Replies: 32
Views: 2,681
Posted By vicky_dev
Re: Constrcutors and Destructors

With reference to my original program here's the output with for the two cases

1.

string s3;
s3 = s1 + s2;



Output:
Forum: C++ Jul 20th, 2006
Replies: 32
Views: 2,681
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
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
Posted By vicky_dev
Re: Constrcutors and Destructors

If that is how it happens, how come I dont get correct answer for s3 ( the result is shown blank, it must be String1String2 )
Showing results 1 to 40 of 65

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