WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

petroleum refining with

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

95%

Only missed 1 question -- pedestrians beware!!!

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I also had to get used to the 'dirty' background, but I did get used to it. Even so, I have a possible solution....

Have a setting on the Options page to use a clear background. Explain the option only enough to know where it happens, not exactly what happens.

Benefits:
1) Knowlegable members can turn it off. If you are new, you won't know about the setting.
2) If a member finds the setting they will not know what it means. The member will most likely go to a forum and see what the option is about and probably actually read it. Then go back and turn it off.
3) Most members will never even enter the options page, so they won't turn it off

Problems:
1) Some savvy new forumers will go directly to the options and even without knowing what it is may turn it off. But they will probably know what code tags are, and if not there will probably be few who do this.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

wierd.......

Yeah weird. Where do you guys get the money for so many computers??? :confused: :mrgreen:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

No offense Mr Disney, but if you allow such a precedent to be set I could drag up all other posts that haven't been answered and answer them.

Mr. Thwee, the mods and Dani have had this discussion. It is OK to resurrect a thread with relevant information or question. Not being a mod, you would not have been privy to this information.

The official word:

Keep in mind that the majority of people find DaniWeb through the search engines and land on specific threads. Therefore, while a thread might be a year old, thousands upon thousands of people might still be ending up at that thread daily via a google search, and it might still be helping all of them.

For this reason, I have no problem with members resurrecting dead threads so long as the reply is on topic and relevant. Remember, the thread helps a lot more people than just the thread starter.

If someone provides an alternative solution a year after the original thread starter's question has been solved, then great. That solution might help thousands of other people who ended up at the thread because they have the same problem as the thread starter.

Also keep this in mind - what is the difference between forums and live chat? In live chat, if someone posts a question, and someone else answers it, only that person got helped. The advantage to forums is that questions and answers live on to help others, and conversations can …

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Hi there I was wondering how to get visaul basic to bring up another form when a button is clicked. what I am looking to do is have a database (SQL 2005) that uses two tables but in the same database but have each table on a different form. but what i want to do is link these forms together at a click of a button:?:

Just show the form ( formName.Show ) in the click event of the button.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

In my experience an excellent analytical mind and an ability to go without sleep on a diet of just a heavily cafeinated drink are far more important ...

Don't forget the Twinkies! :mrgreen:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

After reading the various methods of clearing the screen, I guess there is not a single method which extends portability to the language:eek:
Or is there?

So I think there is no point in trying to use alternate methods to clear the screen when its always going to be paltform dependent.

#include <stdio.h>

#define SCREEN_HEIGHT 25

int main ( void )
{
  int i;
  
  for ( i = 0; i < SCREEN_HEIGHT; i++ )
    putchar ( '\n' );
    
  return 0;
}

I think this is a good method to avoid the system("cls") function since it is so much resource consuming but there are limitations regarding the size of the console and how do I make the cursor come back to the top of the screen from the bottom?

Except I haven't used a 25-line screen in years. I'd change it to at least 100 ;)

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Yeah, what Ravalon said. You can check out this series for deeper understanding of why we say "stop using scanf() "

Also, there is absolutely nothing C++ about what you posted so why the using namespace std ?

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Start by putting a timer and a text box on a form.
Set the timer's enabled property to TRUE and interval to 2000 (2 seconds, 2000 milliseconds)

Now in the timer's TIMER function, increment a value and put it in the text box's text property.

You now should have a program that counts every 2 seconds.

That should get you started.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Hi nick, good to see your enthusiasm. But please refrain from responding to threads that are clearly dead.

Why? It seems like a perfectly good question that someone who knows LISP can answer. It the resurrections that have no questions that are useless bumps.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

After two years and his last login was Jun 1st 2005 2:22 pm I wouldn't hold my breath waiting for a response. It really does help to look at post dates...

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

There are 2 easy ways - 1 put it in the startup menu of windows by copying it there, 2 call it in autoexec.bat

Neither accomplish what the user wants. A "service" is not started via autoexec.bat nor startup menu.

Try the information at
http://www.overclock.net/faqs/119474-how-run-program-service.html or http://kennethhunt.com/archives/001728.html.

If that doesn't quite do it, google for "run program as service" or something like that. You can find programs that will load the program as a service or instructions to do it yourself.

If still nothing, I'll post the instructions I used a while ago.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

thanxz im tryin 2 figure out the rest if i need nemore help ill let u kno...

CPato, did you read the Rules? You definitely need to read the first paragraph of this and this rule.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

That's a very good rant.... Totally agree.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

a turkey baster

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Illustrator? You can't even draw a straight line!

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Only the direction each '*' is moving needs to be saved. The coordinates of the first '*' needs to be remembered, but not each one. And the coordinate where the snake turns has to be remembered.

And rather than reallocating the size, just make a static array. Define it to be the maximum size your snake can become.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

3) ++a-- becomes ++(a--)

Undefined. See this

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Oh, okay. So it's not any specific language, it's just an example?

In a sense. It's a list of instructions to accomplish the job. Another example of pseudocode would be:
1) Open the car door
2) Slide in behind the steering wheel
3) Close the door
4) Insert the key in the ignition
etc

When you actually get to the car, you then have to figure out whether you pull up on a handle, or push a button to unlach the door before opening it. And so on. Pseudocode is generic instructions to get the job done. You then translate those instuctions into the specific language you are programming in.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Another thing you need to do is indent your code properly. Break the habit now of left-justified code because as you progress to larger programs, the bad habit will be harder to break and your code becomes unreadable very quicky.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

with a toothbrush

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Start and you'll never stop, you have no willpower.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

But I found when I'm not looking .. I meet the nicest women.

This is also what I've found...

To paraphrase pty, look at it from a different perspective. You've had 23 girlfriends. That's more than most so you've got something good going for you. Are you still friendly with any? If so, talk to them. If it's something you do, you'll have something to work on.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

"Hush, my dear. You seem to have had a shock and you need to rest," the doctor said. He placed a warm, caring hand on her forehead as he smiled at her.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

globals are evil. They reek of design errors.

But if you insist on using them, put them in a header file you #include in everything.

And in so doing create multiple definition errors for each variable. Instead, put the extern declarations in the header file and leave the globals defined in one source file.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

That's a problem with int's. 011 == 11 and is an invalid input. 010 will probably have the same problem. Try making the input to string and switch on that.

Actually, 011 = 9. When you specify a numeric value with a leading 0, you are using an [search]octal[/search] value. You can't specify binary the way you are trying to do it. Enter it as a string and convert the string into it's binary equivalent. And in the switch, just use it's decimal value.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

For win32 i can use case WM_KEYDOWN: tod etect a keypress during the course of a program...
but wat can i do if i have to do teh same for a platfornm independent application???
Thanks,

There is no platform independent way to do what you want. Each platform may (or may not) have a way to do this. You will have to code the program special for each platform.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

"Come in here, quickly" he called. Apprehensively, she walked to the open study door and took a deep breath before entering.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

less damage than

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Chicks were born last night, they are soooo cute!

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

VB6 came out nearly 10 years ago and apart from maintaining old apps nobody really uses it (I'll probably get told otherwise but nobody uses it for anything serious).

See this thread, starting 3rd post from the bottom... ;)

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Sorry, I just don't always start with post#1 when I come into a discussion. I start where I left off.

The download links for both the free compilers is posted in the sticky "Starting C". Maybe I should have being more concise and posted the link to the sticky rather than posting the download link....

Or we can have 1 sticky post listing ALL the possible links to useful compilers (leaving Digital Mars out!). Mods can (I hope) edit the post to keep it up to date.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

UP or LP?

Motor City. :eek:

(Y'always gotta watch out fer dem YOO-pers.)

So true. But they make GREAT pasties!!!

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

"Is that you, Caroline?" her husband called from his study.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I said

I don't remember anyone posting a link.

:confused:

And my main point was

Wouldn't that be a good idea when it's recommended?

:rolleyes:
This way someone that wants to download it can...

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

This is a small program i have try to do but with errors... can anyone help me to solve up the error?

What error? We can't help it you don't tell us.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I don't see a problem here. You claim

if (OpenFileDialog->Execute())
  {
   dave = OpenFileDialog->FileName;
   std::ifstream
       infile(dave.c_str(), std::ios::in | std::ios::binary);
  }

doesn't work. Well, infile doesn't take C-Strings, does it? Then you say

dave = "H:\\MyDocuments\\file";
      std::ifstream
       infile(dave.c_str(), std::ios::in | std::ios::binary);

works fine. So use the form that works:

if (OpenFileDialog->Execute())
  {
   dave = OpenFileDialog->FileName;
   std::ifstream
       infile(dave, std::ios::in | std::ios::binary);
  }
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

I would recommend going with Code::Blocks

I've see a lot of mention of this compiler here, but I don't remember anyone posting a link. Wouldn't that be a good idea when it's recommended?

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

that was posed

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

:eek: :eek: A college and university is supposed to teach you about moden skills. If you want to be an archologist and learn ancient laguages then learn VB6 But if you want to learn a skill that you can actually use on a job somewhere learn VB .NET. VB6 is only a toy nowdays for amiture programmers.

Gee, I hope the hundreds of thousands of VB programmers out in the industry learn soon that VB is only a toy! They're in for a shock! ;)

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

that might be easier to program, but it's not a desirable solution.
If the file gets larger it will inevitably be a LOT slower than modifying the existing file.
It could also easily lead to out of memory errors.

I see your point -- in a professional setting. But

I'm doing a homework for my programming class, ...

tells me your apprehension is unfounded and the OP may be using a technique beyond him at this time. I may be wrong, but it's worth pointing out.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

not all editors save files as text files -- some, like MS Word, will save internal formatting data which will look like just in Notepad.

True. But if it's not readable by Notepad, it's not source code compilable by a compiler. And MS Word is not an editor, it's a word processor. There's a big difference.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

Beautiful though it may be, the Sun is also extremely hot.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

No, I was responding to the "of Origin" part.

I'm a NoDak transplant, not a native Minnesoootan.

Ahh. Me too. Michiganderanian, or whatever they're call today :mrgreen:

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

My breakfast! It

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

It would be easier to read youe header record, then read the number of students specified into a student array. After you add a new student to the array, recreate the file by outputting the header and all the students.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

That's the problem. I'm not sure if what I have is source code or not; that line makes me think it is, but the vast majority of the file weighs in against the sourcecode theory.

Why would you think it's source code? You claim most of the file is unreadable. NotePad would open the file and all you would see is code if it was source code, not junk.

WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague

To reverse a given number

To reverse a given number? That's a weird question. Have you read the Forum Rules