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

In c++ we use either cin or getline() to get characters from the keyboard, and you have to allocate the buffer yourself

Use this if the password contains no spaces

std::string  saltedPassword;

std::cin >>  saltedPassword;

if the password contains spaces then it's like this:

std::string  saltedPassword;

std::getline(std::cin, saltedPassword);

In both cases you have to include the standard c++ header files <string> and <iostream>

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

Combine the two lines

"C:\Program Files\SyncToy 2.1\SyncToyCmd.exe" -R > C:\Users\Test\Desktop\logs.txt

The quotes are probably required because of the space in the path.

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

Start here:

#include <iostream>

int main()
{
   // put your code here

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

There's a space between each of the numnbers in that huge square, which leaves room for the |, _ and - characters areound the number in the center.

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

What's wrong with Windows File Explorer?

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

Since we have no clue what that program is supposed to do how do you expect anyone to help you? Help you do what, exactly?? Do you take your car to a repair garage and tell them "it's broke. Please help me fix it."? Of course not, you have to tell then what you think is wrong. Same thing here.

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

who can solve this?

Probably anyone who has half a brain.

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

Just goes to prove how the English language is changing over time -- from my generation to yours today, and how it's usage is somewhat different from country-to-country, and even within different parts of the same country (like USA). When I was in school the word "ain't" was not in any dictionary, which is why my teachers always told us there is no such word. It's probably in all the dictionaries today.

But this forum is not a formal setting

That's certainly right -- which is why I rarely critize grammer on any of these forums. These are IT forums, not English grammer forums. I've often found that people who's mother toung is not English are better English writers than native-English people, most likely because of the formal training they had to have in order to learn the language. I know several Americans who can't write a coherent sentence if their life depended on it.

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

Now you need to post the code what you are trying to do because combobox only accepts strings, never integers.

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

Happy Cyber Monday!

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

Are both PCs connected to the internet? What operating system do they run? If have several PCs running Windows 7 and 8 all connected via internet by setting up a Home Network.

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

"Home Premium and lower editions can't connect to domains."

Ok, I was thinking of Windows 7 Pro. Sorry for misleading you. You will need to upgrade the computers from Home edition to Pro. And if you are going to do that you might as well upgrade them to Windows 8.1 Pro. There's a big of retraining needed but the learning curve isn't all that great.

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

home Premium should not be a problem. Only one computer needs to run the Server software -- I don't know whether it can manage passwords without human intervention or not in case someone forgets his/her password.

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

Are the printers wifi ready? Or are they connected directly to computers? What operating systems are running on the 6 computers?

With MS-Windows 7/8 you don't really need a computer to act as a server, just set up a home network and all the computers on the network are considered servers which can share files and printers with each other.

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

In another 20 years or so you won't be able to read English newspapers and magazines any more -- young people are growing up learning to text and use shortened forms of English words. "LOL" is just one of hundreds of such shortened words and phrases.

And I ain't an expert

When I was in school you would have gotten your knuckles smacked for saying "ain't" because "there's no such word".

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

the difference between a pointer size and char size isn't going to be an issue.

sizeof(char) == 1
sizeof(char*) == 4 (except Turbo C compilers where it could be either 2 or 4)

That's quite a bit of difference, especially if there are thousands of nodes in the linked list.

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

what compiler are you using? You could draw a box by using the line-drawing bytes of the ascii character set (the values between 179 and 223). google for "ascii character set" and you will find the table of all possible 255 values and a picture of they they look like when printed (assuming your computer is set up to use ascii character set).

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

you are trying to compile the program for UNICODE, which is the default for Visual Studio compilers. Either got to Project--> Properties-->ConfigurationProperties --> General, then on the right paine change CharacterSet to "Not Set", which disables UNICODE. Or convert the code to use UNICODE strings.

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

Have you tried something like this:

Select SaleID, RepID1, RepID2, RepID3,RepFName,RepLName
FROM tblSalesMain as s, tbnlRepMain
WHERE s.RepID1 = tblRepMain.RepID

This would work in Sybase SQL, not sure about others.

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

Are you sure it's called CDocableView?? I'm looking at the MFC Hierachy Chart and don't see such a vew.

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

It looks like it's already divided into small functions. Maybe you just misread the code.

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

try google

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

Never heard of copyright "detection". Do you mean "protection"? There really is no fullproof way to do it, someone is always going to find a way to pirate software.

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

I think you will want to use a structure or class to hold the names so that it's easier to search on just one of the fields. But ... if you want to use binary search then the entire array will have to be sorted by either the first or last names before beginning the search.

struct names
{
   string lastname;
   string firstname;
};

names NameArray[SIZE];
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

cin uses >> instead of <<, such as

cin >> num1;

Have you studied recursive functions? Did your instructor talk about them in class?

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

If you buy Apple you will pay too much money. They're overpriced.

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

Use a pointer and expand the array as needed. Better yet, use std::vector or std::list, both will auto expand for you. For example:

StudentList* Students; // pointer to an array

or

std::vector<StudentType> Students;

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

Post the code you have attempted to write and ask specific questions. We are not going to do the work for you.

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

What is the question??

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

This is a typical day today at WalMart and other stores throughout the USA

http://abcnews.go.com/US/black-friday-turns-dark-twitter-websites-track-injuries/story?id=21048805

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

Are you asking how to get Notepad to recognize fonts and colors in the text you saved from RighEdit control? That will never happen.

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

or, using c-string directly

char string[255] = {0};

cin.getline(string,sizeof(string));

The difference between cin >> and cin.getline() is that cin >> stops reading the keyboard when it encounters the first white-space character, while cin.getline() only stops when either the buffer is fulled or the Enter key is detected. So if you want to put spaces in the string you have to use cin.getline().

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

How are the LED lights connected to the computer?

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

The reason is usually performance, but that's not as common as some would have you believe.

At least not any more with present-day fast computers. When I started out in the 1980s computers were ungodly slow, so we had to get every bit of speed that we could muster. Many of the things we did back then I wouldn't bother with today.

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

what do you want to do with the image?

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

Check if any of the windows are derived from CDocablePane.

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

,types of pointers like near pointer , far pointer

Those are obsolete -- no longer used by modern compilers. You will only run into those if you use Turbo C or some other 16-bit MS-DOS compilers.

Otherwise, yes, pointers can become very difficult and confusing even to old programmers.

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

Just finished traditional Thanksgiving dinner at my favorite restaurant -- Fisher's in Belleville, Illinois. They put on a huge buffet-style spread at Thanksgiving, and for only $20.00USD per head it's a lot easier than cooking it myself and doing cleanup afterwards.

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

Are you trying to put the cust id in one control and cust name in another? That could get confusing to keep them straight. Much easier to put them in a grid control and let the grid control keep then together. And you can do it all in just one SQL statement. You can even bind the grid control to the database so that you don't have to loop through the result sets.

If you want to know how to do that, then see this excellent free tutorial

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

White space includes space, line feed, and tab characters. So testing for just space isn't right. And line 5 uses the assignment operator = instead of the boolean operator ==.

The easiest way to test for white space is to use the standard macro isspace()

char char1;

// iterating through a file

if ( issapce(char1) )
{
cout << "WHITE SPACE" << endl;
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Oh, yes -- let's never forget this

THE ORIGINAL THANKSGIVING FEAST occurred in 1621 and was shared between the Pilgrims and the Wampanoag tribe of what is now southern New England. During the previous year, the Native Americans had taught the Pilgrims how not to start to death during winter and get a good crop going during the growing season. The 1621 affair was apparently a peaceful gathering to express gratitude.

Nowadays, there are few explicit reminders on the fourth Thursday of November of the events that followed: basically, murder, land theft, and genocide. By the late 1700s, nearly the entire Wampanoag population had been killed off or shipped to the West Indies as slave laborers.

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

Tomorrow I'm taking my family to a local restaurant for lunch -- had to make reservations because they are packed on Thanksgiving day. They have a buffet room that is probably 3 or 4 times the size of my house!

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

Can you find a safe way to execute an external program?

No. It doesn't matter how you do it someone can always replace the intended program with his/her own malicious one. If you are that parinoid about it, the best way to prevent it is to not execute external programs at all.

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

i have a problem in ConfigureSerialPort function.

What is the problem? Have you compiled for debug and single-stepped through the function to find out where it goes wrong? Or is there a compiler error?

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

It's because you're using eof() incorrectly eof() doesn't know it's end-of-file until an attempt is made to read it. A better loop is like this. Note: eof() is unnecessary, at least I've never found a use for it.

while(in_file>>eve>>am>>dat>>bal )   
    {
        cout<<eve<<setw(10)<<am<<setw(20)<<dat<<setw(10)<<bal<<endl; 
    }
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

In the few posts which I have had on here asking for help I have generally had to solve the problem myself (and that is always the best way right?)

Actually -- yes, that is right. We are here to "help" you solve the problem, not solve it for you. You learn a great deal more if you are forced to research the problem and write the code yourself. Programming is all about problem solving, not about getting someone else to do your work for you. How long do you think you will last on a job if you can't solve programming problems?

Additionally, almost everyone here are unpaid, they post here and try to help you out with only the goodness of their own hearts. So don't get mad when volunteers ask you to post the code you try so that they can help you. Instead, you should be greatful for whatever help you get. If you want paid tutors then it's going to cost you a lot more than you have to pay to ask questions on DaniWeb (which is free).

And don't get too upset if someone disagrees with you. Heaven only knows the number of times I've been critisized for things :) I'm not right about everything, and all the regulars here knows it. My post cound only means I'm a blabbermouth, has no relationship to being an expert at anything.

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

(really bad) movie, Idiocracy

I thought it was hilariously funny :)

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

Have you looked at this example Wordpad program?

Here is another example program that does printing.

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

Why would you want to do that? Older versions may not be compatible with Windows 8.

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

According to the link you providexd prussian blue is used in lots of things

Because it is easily made, cheap, non-toxic, and intensely colored, Prussian blue has attracted many applications. It was adopted as a pigment very soon after its invention and was almost immediately widely used in oil, watercolor and dyeing.[18] The dominant uses are for pigments: approximately 12,000 tonnes of Prussian blue are produced annually for use in black and bluish inks. A variety of other pigments also contain the material.[12] Engineer's blue and the pigment formed on cyanotypes—giving them their common name blueprints. Certain crayons were once colored with Prussian blue (later relabeled Midnight Blue). It is also a popular pigment in paints. Similarly, Prussian blue is the basis for laundry bluing.