15,300 Posted Topics
Re: license plates are publically available -- anyone anywhere can track them. You have no right to privacy when in your car on public roads. If it's visible from outside the car then there is no privacy violation. Big Brother is not going to watch you unless you give him a … ![]() | |
Re: Does your program catch the WM_PAINT event? That is where you need to do all the drawing. | |
Re: >If a boolean return type function contains too many returns in it, does it cause any problem No -- The acual value of true and false is not defined, nor is it guarenteed to be either 0 or 1. It's actual value depends on the compiler -- 128 may be … | |
Re: Your problem is on line 16 -- you are tring to output the wrong prompt variable. Just delete line 14 and change line 16 to output Prompt (capital 'P'). | |
Re: You will find the explanation of them all [here](http://www.cplusplus.com/reference/istream/istream/) >while(cin.get() != '\n') The above is getting characters from the keyboard one at a time until '\n' (Enter key) is reached. | |
Re: If this is your first job and applying for entry level position then don't be overly concerned about your technical skills. Companys don't expect you to be expert for entry-level job. Have you finished your college bachelor's degree yet? That, along with the other things Jorge mentioned are what you … | |
| |
Re: What version of Windows is that? I have never heard of windows having more than one hardware profile. How can that happen? [edit] Oh, I see from [here](http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/hardware-profiles-in-windows-7/438f865a-6067-4f66-b901-f0e7eaafc7af) only XP supports multiple profiles. I still don't know why there should be such a thing. | |
Re: my guess is that the data types in the database table are not the same as the types in your sqlstring. Are all the column data types in the table strings? | |
Re: You begin your research reading the methods and properties from msdn ([link](http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.aspx)) Look though the list of properties and method to find the one that returns the text from the selection field of the combobox. Then all you have to do is copy the text into a textbox (a simple … | |
Re: The code has undefined behavior because check() is returning a pointer to an object that doesn't exist after check() returns to it's caller. That is illegal in C and C++. | |
Re: char\* name is a pointer, while char name[] is illegal because it is attempting to create an array of 0 elements. Some compilers may support declaring arrays with 0 elements, but that is an extension of the standards. It's quite dangerous to use non-standard constructs because that makes the program … | |
![]() | Re: >then it goes back to the beginning of the line with the "\r" erasing the output Not no any computer I have used. \r simply moves the cursor back to the beginning of the line, everything on the line remains intact. ![]() |
Re: I'm glad to be rid of that preview -- it was very confusing | |
Re: Ignoring optimization, I would say code 2 is minutely faster because it doesn't have to initialize the inner loop as often as code 1. Other than that, they are both the same. | |
Re: Check your text file -- your program ran ok for me. I have a text file that lists US state names and their abbreviations. Ran your program with "5 states.txt" and it printed the last 5 lines of that file. If the text file contains blank lines at the beginning … | |
What does that red flag represent, the one next to the word "Featured" beneath my avatar??? ![]() | |
Re: > but is there any other possible easy way to solve this problem What problem? You haven't posted the problem. If all you want to do is get an array of N random characters then the code you posted is way too complicated. All you need is a simple loop … | |
Re: [Read this tutorial](https://computing.llnl.gov/tutorials/mpi/) to find out about MPI. I don't know anything about it either, so I can't answer any questions you may have. | |
Re: Which part of your assignment don't you understand? Do you know how to create an array? Do you know how to get user input? You need to post the code that you know how to write then ask about what you don't understand. Asking us to write the program for … | |
Re: Homework? A prototype tells the compiler about a function such as its return value and parameters. Function prototypes are required if the function has not been previously defined. For example void foo(char* s) { printf("%s\n", s); } int main() { foo("Hello"); } In the above snippet a function prototype for … | |
![]() | Re: You need to get a [resource editor](https://www.google.com/#output=search&sclient=psy-ab&q=free+windows+resource+editor&oq=Free+Windows+Resource+edito&gs_l=hp.1.0.0j0i22i30.979.979.0.4628.1.1.0.0.0.0.159.159.0j1.1.0....0.0..1c.1.20.psy-ab.3Nulper_4fo&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.49478099%2Cd.eWU%2Cpv.xjs.s.en_US.c75bKy5EQ0A.O&fp=f280e31bc91aff1d&biw=1134&bih=578). If you want to create it manually, [here](http://www.winprog.org/tutorial/) is a popular tutorial. ![]() |
Re: Those are called arrays. AFAIK yes, you can create arrays of buttons or other controls. | |
Re: what antivirus program are you running? What api functions does it use? | |
Re: The pointer itself is passed by value, any changes you make to the pointer in reverse() is not visible to the pointer that was declared in main(). I ran your program and it looks like it works as expected. If you want reverse() to change the pointer that's declared in … | |
![]() | Re: what kind of program do you have? win32 api or Windows Forms (which is c++/CLR, not c++ standard). There are hundreds of ways to do what you asked, post some code to show us what you are trying to do. If your program is win32 api then function A() needs … |
![]() | Re: Maybe [this](http://www.vbforums.com/showthread.php?616021-Setting-file-and-folder-permissions) is what you are asking? ![]() |
I have a program with DataGridView which is bound to MS Access table. When I addept to update I get "Syntax error in INSERT INTO", but no explanation about the syntax error. Column names in the table have a space in them, such as "Last Name". Could that be the … | |
Re: > so I can use it in a web request? How does that relate to the code you posted? Why would you want to put random characters in a web request (URL??)? Use a temp buffer. 1. copy the first part of the string into the temp buffer 2. Add … ![]() | |
Re: You woudn't have all those problems if you used a REAL computer instead of that stupid wii. | |
Re: >You don't need a gun to live so this is an incorrect comparison. You will if you live in St. Louis, Missouri or Washington D.C. You people only hear about high crime rates in the big cities of America. There are millions of people living without fear all over the … | |
Re: I would use a temporary char array -- after you find the beginning of the string to be replaced copy the first part of the original string into the temp array, copy the replacement string into the temp buffer, then finally copy the remainder of the original string Maybe a … | |
Re: That, and replace "void main" with "int main" and use cin instead of fscanf. There's nothing else different between C and C++ in that program. | |
Re: [This article](http://www.codeproject.com/Articles/19766/Win32-splitter-window-project) may give you some hints to how you can do it. It creates a splitter window with a tree-view in the left side and something else in the right side. Maybe you can embed IE in one of the two sides. [Here](http://www.codeproject.com/Articles/3365/Embed-an-HTML-control-in-your-own-window-using-pla) is how to embed an IE … | |
Re: >`printf("%u %s",&"hello",&"hello");` You don't need the & symbol because character arrays are ALWAYS passed by addfess. When you use the & in the above it will pass the address of the address, which is not what you want. `printf("%p %s","hello","hello");` Also note that %p prints the address of the string | |
Re: I use google chrome the most, but sometimes IE when I visit web sites that support only IE. I don't actually see much difference between the two. | |
Re: To go back to Form4 from Form5 just close Form5 -- you don't need to create a new Form4 because it's already in memory. private: System::Void btnBack_Click(System::Object^ sender, System::EventArgs^ e) { this->Close(); } | |
Re: [hint](http://social.msdn.microsoft.com/Forums/vstudio/en-US/7cf65aeb-a89c-4a27-924b-4808e4fa28cc/insert-a-picture-into-a-word-documentpdf) -- you should upgrade to fee vb.net 2012 express | |
Re: One way to do it is like below. I'd also put the number of elements in each array into the combined structure so that you know how big the arrays are at runtime. typedef struct _elems { int a; int b; int c; }elems; typedef struct _elms { elems *e1; … | |
Re: Why do adults like watching cartoons? That's all anime is -- just another name for children's cartoons. | |
Can you set up a "IT Equipment/Software For Sale" forum, something similar to Creg's List or Angie's List, but probably limited to IT related stuff? You already have a Webmaster Marketplace, but that is very limited. | |
Re: What version of MS-Windows did you wrikte the program on? Visual Studio 2012 uses .NET Framework 4.0 or newer, so you might have to install .NET 4 on that XP computer. More info [here](http://smallestdotnet.com/). It will tell you what version of .NET your IE browser is using. You might visit … | |
Re: some compilers have an option to produce an assembly code. What compiler do you use? | |
Re: >I realized that stdio functions (and thus their fstream counterparts) use size_t to indicate the position in a file, If you use win32 api function WriteFile() and ReadFile() then it uses 64-bit addresses which is two size_t integers. You will find there is no such thing as unbound storage because … | |
Re: you should call WaitForSingleObject() instead of Sleep(). Also you need to validate ShellExecute() did not return an error number. | |
The other day I installed a second internal hard drive so that I can put ubuntu on it. The primary hd has windows 7. Using the Ubuntu windows installer everything installed without a problem. When I rebooted I got a lot of error messages during bootup and finally the boot … | |
Re: Be careful what you wish for, you might just get it. > Knowing all the science that will ever be known, was known, and known right now Who would believe you? You would probably be put into a straight jacket and locked up in a padded cell for the rest … |
The End.