hkdani 39 Posting Pro in Training

It's called being an idiot.

Idiot is an inaccurate statement and unacceptable for use.

The word idiot comes from two Greek words which mean "out of mind."

It has become a commonplace expression in our more recent culture on the planet.

Apparently, it was also considered an unacceptable practice when condemned by the Nazarene about 2 millenium previous warning of a very severe penalty for those who wish to call their fellow human beings such terms.

Narue commented: Idiot. ;) -4
hkdani 39 Posting Pro in Training

This is not really a VB question. You're in the wrong forum. Unless you want to use vb to change the registry, etc.

But in Windows Explorer choose the Tools menu>FolderOptions>File Types. Associate the extension with a program. And that's it.

hkdani 39 Posting Pro in Training
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>

int main()
{
     int x1, y1, x2, y2 ;
     char String[80] ;
     printf ("Enter Starting X: ") ;
     gets(String) ;
     x1 = atoi(String) ;
     printf("Enter Starting Y: ") ;
     gets(String) ;
     y1 = atoi(String)  ;
/* ......
    */
     rectangle (x1, y1, x2, y2) ;
     return 0 ;
}
/* that's basically it. I downloaded the Turbo C++ 3.0 IDE. Looks like a free download. But it generates an error linking rectangle.  Running on Windows 2000: undefined symbol _rectangle in graphics.cpp (the name of my source file).  But like the previous poster suggested, the example code given in the help file should be your best source of help. Maybe someone with more experience with this compiler could help you get around the error message here in the linking. Found a post. In the IDE you need to make sure the Graphics Libraries is checked from the Menu: Options>Linker>Libraries!*/

That's the general idea. But that should get you started. After checking the Graphics Library in the options menu, the program compiled, linked, and ran and actually drew a rectangle. Pretty cool for an old IDE. Reminds me of that video I saw on YouTube of this guy who hooked up an ancient 300 baud per second analog modem. He put the phone on microphones to receive and transmit the audio. And then he hooked it up to the current world wide web and using a linux box and used lynx to view a …

hkdani 39 Posting Pro in Training

Good grief!

There was a time when fgets did not exist.

And people said, "gets works."

Now, the more enlightened say it doesn't.

It works under certain conditions. It does not work under other conditions.

Is it safe?

Well, as long as there are hackers out there who have nothing better to do than to break the 1's and 0's of a novice programmer, then there might be a small percentage of instances in the life of gets where gets does not work.

Other than that, I just don't get your logic.

hkdani 39 Posting Pro in Training

Au contraire. If it only sometimes works, it's broken.

Do you work? If so,would you accept a $100 drop in pay this week because the payroll program only makes a mistake once in a while and doesn't add your hours correctly? After all, it is only once in 3 months...

Close enough doesn't work in computers.

Definition: works

It does the job.

Is it acceptable to WaltP?

I really don't care.

WaltP commented: No. Definition: Sometimes doesn't do the job correctly, doesn't work. -2
hkdani 39 Posting Pro in Training

And no, if something allows errors to happen it doesn't work.

Hey, if it works sometimes, it works. That's just a simple, logical fact.

My car works. If it doesn't start the first time, it does not mean that it doesn't work. It just means that it did not work that time.

If it doesn't work sometimes, it does not work sometimes.

You exist. Errors happen.

Do you work?

jephthah commented: gross logical fallacy. -1
hkdani 39 Posting Pro in Training

Don't recommend the use of gets.

I'm aware of that. But I just think that the user needed some simple help. But to get the user started, it helps to not get them bogged down in all the fine details.

A drowning man isn't concerned about the method. He just wants someone to throw out the lifeline.

Aia commented: That's not help. It is not simple and it is not worth invoking. -2
hkdani 39 Posting Pro in Training

what i need to know is the code for manipulating the bit because as u all knows that LSB insertion plays with all the bits stuff..

Two things would be helpful:

1. Give us some example of data that you want to work with.

2. What expected outcome you wish to see from this data.

Without that info, it's pretty hard to help.

Comatose commented: Don't Egg Him On. -2