15,300 Posted Topics
| |
I recently received up votes for posts I made over 5 years ago! Really?? -- shouldn't there be a time limit for such things? I appreciate the up votes, but they are pretty-much meaningless after all this time. | |
Re: line 348: that is not related to PEmployee class -- it's completly separate object. What you want to do is to use the person member of PEmployee. delete lines 350-354 and use person_data instead of next. | |
Re: I hate *nix -- its just too complicated for me. I like the ease with which I can accomplish things in Windows. For example, yesterday I decided to install Ubuntu because there was a problem I wanted to test out on *nix. That all went well, until I tried to … | |
Re: maybe for thread safety? By "kernel" do you mean your own operating system? | |
Re: From what I read I think Clang is just an IDE, but the description is somewhat confusing. The description calls it a front end in some places, meaning just an IDE, and a compiler in other places. It also says it's still under development, so it might not be very … | |
Re: IMO creating separate partitions for those things is a waste of hard drive space. The only real reason to repartition is so that you can put other operating systems on the same computer. In any event, windows xp doesn't have the software needed to partition the hard drive after the … | |
Re: line 8 is nonsense -- no one in his/her right mind would do such a thing. Useless statement. line 7 might be a problem without typecase. `p = (char*)arr;` line 9 will NOT print the value of arr[0] as you might expect. p is a char pointer, so \*p will … | |
Re: The difference is sooo small that it doesn't really matter. If there is any difference at all it's probably measured in just a few nanoseconds. And a good compiler optimizer will most likely make them both the same. What you should be asking is which is simpler to read, which … | |
Re: change them from int to unsigned int and see what happens. Also change bit1 to be 2 bits instead of 1. | |
Re: Of course it is -- you just need to figure out how to do it. Your program needs to iterate through all the rows of the listbox until it either finds the row that contains the search text (Name) or there are no more items. If it does not find … | |
I just noticed this behavior this morning -- when I select a thread in Chrome the wait cursor never stops unless I click the X stop button or browse to one of the pages that contains list of threads. I tried clearing catch and browsing history, but the problem persists. … | |
Re: [Here](http://www.vbforums.com/showthread.php?308511-Info-use-vbNullString) is another take on that. | |
Re: or maybe [this](http://www.google.com/imgres?imgurl=http://www.istockphoto.com/file_thumbview_approve/4478802/2/istockphoto_4478802-soapy-scrub-brush-and-bucket.jpg&imgrefurl=http://goodguydesigns.com/?p%3D194&h=380&w=285&sz=42&tbnid=MrN7J1kRMaAgJM:&tbnh=90&tbnw=68&zoom=1&usg=__gF4_D_vnlZeCjn-PcMmTGuzmoIg=&docid=MgEn5hQOLzsv0M&sa=X&ei=8eQEUpGvCOOGyQHIloG4CQ&ved=0CGcQ9QEwAg&dur=176) | |
Re: I've had similar problems with my PC, so I just turned sleep mode off. | |
Re: If you look at the calendar you will notice that Jan 1 falls on a different day of the week each year. So if 1 Jan 2001 was a Monday, then 1 Jan 2002 will be Tuesday, 1 Jan 2003 is Wednesday, etc. On leap year a day is skipped, … | |
Re: >But all in all the best approach is fgets(). Agree -- `scanf("%[^\n]%*c")` is awkward and difficult to read. | |
Re: Download free [OpenOffic](http://freedownloads.us.com/lp/openoffice/suite/index.php?pk=905465&s=google)e, it's compatible with Microsoft Office files. As for MS Office, what verion do you have? And what version of Windows are you running? | |
Re: If you are talking about a Service, you can set the Admin Password in the Services control panel. For Windows 8 bring up Task Manager, select Serivces tab, right-ckick on one of the service program, select menu item Goto Services. That will bring up another windows which will let you … | |
Re: >If you define ListView1 in details view with one column Do you mean in Designer view? Then in Columns property, add one column? I did that but when I chick the button the selected item does not get highlighted like it does when you just click the item. And the … | |
Re: The easiest solution is not necessarily the best solution. When writing programs you have to consider the "stupid users" factor by making your program as non-breakable as possible. Murphy's Law -- if anythihng can go wrong, it will. Don't expect averyone to enter perfect data -- when testing your program … | |
Re: >DELETE FROM table1 WHERE Processor="", Memory="", VideoCard="", HardDrive="", AntiVirus="" " Shouldn't there be AMD betweem variables instead of commas? `DELETE FROM table1 WHERE Processor="" AND Memory="" AND VideoCard="" AND HardDrive="" AND AntiVirus=""` Another possibility: use Nothing instead of "" `DELETE FROM table1 WHERE Processor=Nothing AND Memory=Nothing AND VideoCard=Nothing AND HardDrive=Nothing … | |
Re: Read some of [these tutorials](https://www.google.com/webhp?source=search_app#bav=on.2,or.r_qf.&fp=8c1e686b48550523&q=vb+6.0+adodb+tutorial) | |
![]() | Re: how would you ever extract a specific file? Is the data for a specific file static, that is, is the data written in stone and will never change? Or do you need to edit and modify the data occasionally? The jar concept along with an index file might work as … ![]() |
Re: > "we are a bunch of people who don't say LOL at work and need your money even though we have a enough." Two thoughts: * If you never say LOL does that mean you are a bunch of humorless geeks? (I doubt it) * * If you have enough … | |
Re: you will have to tell us what the error(s) are, no one is going to wade through all that code to find out. Also, have you installed Service Pack #5 or #6 for that compiler? Without it the compiler and some of it's header files are very buggy. You might … | |
Re: one way to do it is to use strtok() to separate the original string into its individual parts (tokens). Call atoi() or atol() to convert each part to integer. Next, multiply the year and month by some factor of 10 so as to shift them left and make room for … | |
Re: lines 8 and 9 are unnecessary. Just write line 11 like this `FILE *f=fopen("aux.txt","w");` line 12: What is variable F? line 13: What is mfile? line 17: Don't use feof(). and fseek() is not needed either. Also the parameters are incorrect order for fprintf() while (fgets(s,100,f2) ) { fprintf(f,"%s",s); } | |
Re: I doubt that is possible without hacking the website, which is illegal and possibly get you a nice long prison sentence with free room, board and food for the rest of your life. | |
Re: do you have the original install dvd disks? If you do then you can try booting from it and running it's Repiar program. | |
Re: I would not recommend simple copy/paste/compile as suggested by others. There are many features in C# that are a lot easier to do then they are in C/C++ due mostly to .NET framework api functions. And there are many other things that are done entirely differently. You and your program … | |
Re: You might go over there and take him swimming with concrete shoes :) | |
Re: have you tried any of [these](https://www.google.com/webhp?source=search_app#sclient=psy-ab&q=qvo6+virus+removal&oq=qvo6&gs_l=hp.1.2.0l4.0.0.1.2852.0.0.0.0.0.0.0.0..0.0...0.0.0..1c..16.psy-ab.2DueD913lBw&pbx=1&bav=on.2,or.r_qf.&bvm=bv.47534661,d.aWM&fp=40f38509aa869&biw=1169&bih=604) suggestions? | |
Re: >how will the code/program know the number of days, from the date of hire, to the current date (when I'm processing payroll)? Use functions in time.h (or ctime). You know the date of hire, so populate a struct tm with the day, month and year, zero out all other fields, … | |
Re: how many digits after the decimal point do you want? You can use sprintf() to do it. See [this article](http://www.cplusplus.com/reference/cstdio/printf/) double n = 1.234678901234567890; char str[10]; sprintf(str,"%.5f", n); | |
Re: The easiest way to answer your question is to just compile and run the program on a \*nix computer. | |
Re: You don't need web server software unless you want to use a browser to connect to the database. If you write your own program such as with C/C++, C#, VB.NET, etc all the program needs is the ip address of the computer that hosts the database server. If however you … | |
Re: You don't have to write it yourself, there's already a media control. Read [this article](http://msdn.microsoft.com/en-us/library/windows/desktop/dd564585(v=vs.85).aspx) | |
Re: There is no such thing as `char=''` (no spaces between the two ticks '). Put a space between the two ticks. | |
Re: why is mName char* instead of std::string? IMO c++ programs shouldn't use char* unless there is a good reason for it. If you used std::string then you won't need a destructor. | |
Re: Lets pretend you attend a 12 cinima movie threater. Inside one of the 12 cinimas you will find several rows of seats, each row contains any number of seats. That is a 2d array of seats Now you can consider the entire cinima threater as a 3d array -- the … | |
Re: Well, just so you aren't trying to trick us, you post your code first then someone might post his/her code. If it's too large then just zip it up and attach it to your post. | |
I've been trying all day to find a way to duel boot Windows 8 and Ubuntu. None of the google links I read seem to work on my computer. My computer has two internal hard drives, Widows 8 is installed on the first drive c:. The second hard drive has … | |
Re: I love [this free tutorial PDF](http://www.homeandlearn.co.uk/NET/vbNet.html). It contains a chapter on how to use SQL databaases. I have no clue why you are doing all that HTML stuff. | |
Re: >A forum should have the same expirence on a desktop platform or a mobile platform With Windows 8 maybe that will happen, but for now it's impossible to have the same experience on both PC and mobile platform simply because mobile doesn't have the real-estate necessary to view DaniWeb like … | |
Re: Do you plan on selling your program, or are you writing it just for your own enjoyment? If you want to sell it then you may want to upgrade your operaring system to either Windows 7 or 8 so that you can program with most recent versions of the .NET … | |
Re: You don't even need the if statement private void EnabledCheckBox_CheckedChanged(object sender, EventArgs e) { var checkbox = (CheckBox)sender; SaveButton.Enabled = checkbox.Checked; } | |
| |
Re: autoexec.bat echo "Formatting drive C: Please wait ..." pause | |
Re: That error means it can not find the function cpu_features_init() in any of the file it compiled or in any of the libraries it is trying to link. Check out those warnings -- they might actually be errors which are causing that link problem. |
The End.