Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Please explain your problem in more detail. Can we help you do what, exactly?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

What DiasplayEvent() are you talking about? I know of no such MS-Windows api function.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Instead of line 3 and 4, why not just this:

 if(line!=deleteMovie)
 {
     outfile<<line<<endl;
 }
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted, everyone is bored to death.

I wish I could time travel

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Many studies (such as this one) over the years have tied life expectancy to economic status. Whether availability of heal insurance has anything to do with it, I don't know. But I would expect it to have some influence. Example: I probably would have died about 8 years ago had it not been for my health insurance paying for heart doctor putting stints in my heart. Someone without heart insurance probably would have just died.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted -- you are the ball in this song

I winsh I were a mouse in Bill Gate's house.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

my post count dropped by about 5,000

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Didn't notice any problems on my Windows 7 or 8.1 computers (I have one of each).

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Yes, someone has to pay for it sometime -- the docctors, nurses, hospital staff, etc don't all work for free, they have to make a living too otherwise they'd do something else such as digging ditches. I've heard for years that the top dollar-makers leave the UK because if high taxes.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Recheck the function prototype at the top of the program to make sure it has two parameters. If you still can't find the problem then post the code you wrote. Please start a new thread for your question(s).

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

or switch to linux or mac

My friend has a mac -- it crashes constantly and sometimes he looses some data.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Ooooh I would kill for a Krispy Kreme.

I never liked them -- they always tasted greasy to me. My favorite donut is cake donut with coconut frosting.

They have closed down many of them because a lot of schools banned them because they make the kids fat which decreased their sales ;

Yeeaahhhoooooo! There's one near me but I've only been there once in the past 20 years.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

In fact, one of the major criticism about Windows is that it does not have a proper package management system (like all Linux, BSD, Unix-like, and Mac OSes

Hallelujah! I have found *nix a lot more difficult to install new programs because it gives me a list of packages that are not installed. That's one reason I don't even use *nix when I don't have to. Just too damned complicated.

On the otherhand, I have to agree with you a little -- anyone who has experienced "DLL Hell" knows all about that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

jelly filled sugar cookies

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

@AD, not that kind of stick man! like a little sketch, lol!

Ok, then I used an eraser and erased you.

I wish i didnt have to go to work

Granted -- you got fired so you never have to work again.

I wish I didn't have to eat.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Beverly Hills Cop 2 -- 4 star movie :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Warm this morning -- rained all day yesterday.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Then the people are apparently not using MS-Windows at all, but some other operating system. Nearly all programs that run on MS-Windows and *nix use shared libraries, if they didn't then the hard drive would fill up pretty quickly not to mention tripling the RAM requirement.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted -- I chopped you up for firewood and burned in in a bondfire.

I wish I could sleep more.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

VB Users, always include "stdafx.h"

Why?? It's only necessary if you use Visual C++ and then only if you use precompiled headers option. Otherwise you can delete it.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

lines 22 and 27 are wrong -- files can't be read directly into structures like that, unless that was the way the file was written. First read the file into individual variables of the appropriate type, then copy them into the structures. The reason is that the structure contains other members (such as pointers) which are not in the file, so using sizeof() will make the program read the file incorrectly. See the code snippet I posted previously in this thread for example.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I prefer dereferencing using -> because it's simpler and doesn't make me think about it. Similar to a native English speaking person reading code written in English instead of some other language that has to be translated into English. Both might do the same thing, but one is more easily read than the other. And that's one of the big purposes you want to achieve with the code you write -- make it understandable, not cute.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

This wiki article explains how to calculate the sandard deviation.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You might investigate wxWidgets -- another cross-platform GUI library. I don't know if it can be statically linked or not.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Is there a question or problem with your code? Why did you post it???

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted buuuut ur backyard was overgrown with pioson ivy and oak.

No problem -- I'm not alergic to either, I just go out and pull them up with my bare hands.

<M/> commented: tough guy ;) +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Maybe a picture of Fred Flintstone chiseling a program on a stone tablet???

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Granted -- you are now 80 years old, have a pop belly, and placed in an institution for crazy people because you think you can jump down people's chimmneys, which is just ridiculous.

I wish I had a new house with a big back yard.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Here is a more complete and compilable program snippet

#include <string>
#include <iostream>

int main(int arc, char* argv[])
{
   std::string input;
   if( argc > 1)
      input = argv[1]; // get string from command-line argument
   else
       std::cin >> input; // get string from keyboard or from stdin
}

argc is the number of command-line arguments plus the name of the program. On most platforms the value of argc is at least 1. argv is an array of strings that represent each of the command line arguments. argv[0] is the name of the program.

So, if the name of the program is myprog.exe and you execute it like this on the command line
myprog one two three

The value of argc will be 4.
argv[0] == "myprog.exe" (sometimes it includes the full path)
argv[1] == "one"
argv[2] == "two"
argv[3] == "three"

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

That's what I said.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't know a thing about it, but according to wiki there is only one king of the Belgiums (Philippe).

at the moment we have two kings and three queens!

Oh, I didn't know they were Mormons :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Well, let's get back to X-mas. So J.C. was born 25 december of the year 0, right?

No, he was most likely born in the spring because shephards don't herd their sheep in the middle of winter. The three kings didn't see Jesus in the manger either -- it probably took the three kings several years before they saw him. Afterall, you can't walk or ride a camel across the desert over night. Well, maybe you could if you had a really really fast camel. Also, there is no mention where those three kings came from. Three kings all from the same country -- doubtful.

Matthew says only that these visitors came from "the east." Scholars have speculated that they came from Persia, Arabia, or even India.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I am considering 'a' and 'A' as same character

Instead of lines 13-21, just use toupper() or tolower() to convert the characters

if( isalpha(string[i]) )
    token[toupper(string[i])-65]++;
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't know python either. If you need it for school project then I assume they think you already know python. If you don't, then get a book or online tutorial and read it. You won't learn a thing if someone else does your schoolwork for you. Afterall, learnikng is why you are in school, isn't it???

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I'm not sure what you want. Something like this???

int main(int arc, char* argv[])
{
   std::string input;
   if( argc > 1)
      input = argv[1]; // get string from command-line argument
   else
       cin >> input; // get string from keyboard or from stdin
}

cin does not allow space in the string, so if you need the spaces you can not use cin with >>, but call getline() instead of cin

assiming input is of type std::string
getline(cin,input);

when input is char array and not a pointer

char input[80];
cin.getline(input, sizeof(input));
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Neither -- all .NET languages are compiled into what is called Common Intermediate Language (CIL), conceptually similar to .obj. Then it uses a Just In Time (JIT) linker to produce the final executable. I have not done it but I understand CIL code can be easily disassembled back into its original source code, either CLR/C++, C# or VB.NET. On some platforms I suppose CIL could be just interpreted, but normally it's compiled.

Visual Studio (and probably other .net compilers as well) does all that for you if you tell it to create an executable.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

But beware of unconventional constructs like ++x-- or y = ++x - x--; Such constructs have undefined behavior, the compiler is free to produce any results it wants.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Oh to be young again! I'm only 39 (like Jack Benny, if any of you know who he was), with just a few years experience at that age.

Happy Birthday, everyone. Have a virtual Beer on me :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Great warm day today, the snow we got a few days ago is nearly all melted. It can stay that way now until next year.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If you don't know python why do you want to convert that code? Learn python then you can convert it yourself.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Being an atheist back then was tantamount to signing your own death warrant,

Yes, you have a good point :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

and I'm hoping to learn more of win32 programming before .Net.

IMO learning win32 api us only useful for maintaining lagecy (existing) code -- not for starting new project. win32 api could be deprecated sometime in the not-too-distant future.

(read somewhere) that CLR/C++ is a massive bloat and slows apps down

That may have been true at first, but it has evolved since then, and is still evolving. It uses the same identical .NET functions as C# and VB.NET.

I'll stop there before I come across as advertising it.

No need to worry, QT is recommended by almost everyone for writing cross-platform programs.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't mean to deny anyone from using the Gregorian calendar -- it's just seems a little odd we didn't standardize on the Hebrew or Chinese calendar instead, and I'm sure there probably have been many other calendard around the different nations on earth.

Why should the Chinese calendar be a better option?

Because AFAIK it is not based on any religion.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I'm in NYC and us jews use the hebrew calendar, so yes. :

According to that wiki article, even the Hebrew calendar has some reference to the birth of Christ

Until the Tannaitic period (approximately 10–220 CE)

CE -- Common Era or Christian Era

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Christians usually think they're better than everybody else and thus deserve special priviledges

Not at all -- I just find it rather funny that the entire world has adopted the Christian calendar. Why not adopt the Chinese calendar? It just goes to show that the birth of Christ was one of the most significant and important events in world history. No other person, living or dead, has had more influence on the history of the world.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

textbox values in Excel as .xls format

I mentioned this before -- if you want to write directly into xls format you have to use Office Autimation. I know VB.NET 2012 and 2013 easily does that, and in that case there is no need for all those text boxes. I even posted a picture of that in this thread.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

yea, I enjoy stirring the pot occasionally to see what falls out. :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Your link doesn't work.

Why start a new program using pure win32 api? It is a lot easier just to use Windows Forms and CLR/C++, C# or VB.NET. Visual Studio will create a basic windows GUI app for you in just a few seconds.