15,300 Posted Topics
Re: You need to put quotes around FirstNumber and no quotes around variable names. Also put spaces where necessary so that FirstNumber and the value of x do not run together. `cout << "FirstNumber " << x << " SecondNumber " ;` | |
Re: [Like this](http://lmgtfy.com/?q=create+database+sql) | |
Re: MS-Windows can only be installed on either FAT32 or NTFS file systems. Your installation diskette should have given you the option to format the hard drive. Did you buy an upgrade version of Windows 8 or a new user version? | |
I don't repost from Facebook here, but I can't resist reposting [this one](http://www.facebook.com/photo.php?fbid=530759673611499&set=a.310367648984037.72447.169504066403730&type=1&ref=nf) | |
Re: Are you using [\*nix](http://www.daniweb.com/software-development/cpp/code/216812/searching-linux-directories) or [MS-Windows](http://www.daniweb.com/software-development/cpp/code/216612/transversion-system-directories), how to get the folder contents depends on the os you are using. I have written a code snippet for each. boost has library that is os independent. Which ever you use it will not be as simple as it was in python. _getcwd() … | |
Re: According to [this Microsoft article](http://msdn.microsoft.com/en-us/library/k8d11d4s(v=vs.71).aspx) /clr may not be sufficient to make a managed-code DLL. Be sure to read the Remarks section of that aricle carefully. >The /clr option does not imply that classes, interfaces, or structs are managed; use __gc to explicitly specify when you want a construct to … | |
Re: How needs breaks? Any good programmer worth his/her salt can spend 24/7 at the computer. | |
Re: I found [this ebook](http://www.homeandlearn.co.uk/NET/vbNet.html) very helpful, it has a chapter on how to send email | |
Re: maybe [this](http://www.techonthenet.com/sql/count.php) is what you want? It's written in php, but the sql code is the same in any language. For example SELECT COUNT(\*) from [tablename] WHERE status = "OPEN" | |
Re: extract the directory name from the xml file then use that instead of argv[1] in line 22. | |
Re: Maybe [this](http://www.daniweb.com/software-development/vbnet/threads/251319/call-a-subroutine-by-variable-name-in-vb.net#post1097462) will help???? | |
Re: Programs can run other programs, for example I could write a program that runs PrimePackster's program. So if his program was supposed to hit jack in the head, but missed and returned an error number from main() instead of 0 then my program would know that and take some action. … | |
Re: The function main() is most likely named "main" because it is the first function that you write which is called by the program's startup code. There is a bunch of code that you do not write which is executed first, then when it's done it calls main(). If main() were … | |
Re: Move line 31 outside the function so that it becomes global then it can be used any time you want it. | |
Re: Maybe the real problem is that young people (high school age and younger) just don't have enough experience using computers to know how to google for their questions. Sure they are well versed in how to play games and post in Facebook, but how to do something useful may be … | |
Re: What part of that do you want help doing? We are not going to do it for you. | |
Re: Happy Birthday Michael, February is a great month for birthdays. Mine, my son and my daughter were also born during February. The only memoriable thing I could find on my birthday was 1. 4 chaplains drown after giving up their life jackets to others (WWII) | |
Re: what is the exact error message, maybe you misunderstood it? | |
Re: I like that idea, have thought the same thing myself on occasion. But on the otherhand people would probably not use that feature, it's nearly impossible to get them to put code in code tags let alone think of matching up line numbers with error messages. | |
Re: line 156: you are passing the wsrong type of data. selectionSort() wants an array of integers, not an asrray of structures. If you are tring to sort the class's data array (line 18) then remove the parameter to selectionSort() as it is not necessary. Just have selectionSort() sort data directly. … | |
Re: You don't need winsock for vb.net -- that is for c++ and c. [ Here ](http://www.homeandlearn.co.uk/net/vbnet.html)is a great tuorial for beginners, I read through it myself and learned a great deal about vb.net. One of the chaptes covers databases, doesn't matter where the database is located. If it is not … | |
Re: One afternoon, a lawyer was riding in his limousine when he saw two men along the roadside eating grass. Disturbed, he ordered his driver to stop and he got out to investigate. He asked one man, "Why are you eating grass?" "We don't have any money for food," the poor … | |
Re: Since client and server run on different computers how do you think the client is going to be able to use an ocx that's on the server computer? Since we know nothing about either program we don't know if the two ocx files are needed or not. You might be … | |
Re: I'd suggest he starts to learn how to program any language, but probably start with VB.NET (Microsoft Visual Studio Express version is free). There are lots of intro tutorials on the web, and several books at amazon.com. Unfortunately he is too young to join DaniWeb (minimum age is 13). There … | |
Re: You don't have to do anything in your code to prevent adding rows that contain duplicate key field(s), the database server to do that if you designed the table to require key fields to be unique values. All your program needs to do is catch the db server's exception. If … | |
Re: It has to know what kind of file system your computer is using. How on earth do you expect it to install the os without that knowledge? If your intent is to duel boot then you have to first install MS-Windows then the other operating system(s). | |
Re: Do you mean CSplitter from MFC ([link](http://msdn.microsoft.com/en-us/library/5xttbe5t(v=vs.80).aspx))? AFAIK you change the size of each pain by drag-and-drop, not by double clicking or other key combinations. That's all build into the CSplitter class, you need to do nothing. | |
![]() | Re: you will most likely have to download the source code and compile it yourself. |
| |
Re: I can't tell you how to check for spam in email, but [StopForumSpam](http://www.stopforumspam.com/search) has an API that lets you can search by ip address, email address or username. This has stopped probably 99% of the spam I got before I started checking on that site. I see no reason why … | |
Re: It thinks -1 is the name of a function. You can't code an algorithm like that. Do you mean `-1* (exp(double (n))) / n; ` ?? (multiplication) | |
Re: c++ has static functions just like the ones on C language, and it also has static class methods, which one do you mean? **Static Functions** Static functions are visible to only the \*.cpp file in which it is defined. This is only really useful in programs that have two or … | |
Re: Did you try one of[ these tutorials](http://lmgtfy.com/?q=vb.net+database+tutorial)? | |
Re: Seems to me you have too many if statements. All you need is something on the order of this: Note: I just write this off the top of my head so it might not be completly correct. It also assumes all the nodes have unique values, there are no duplicates. … | |
Re: With Crystal Reports you have a choice of a variety of data sources such as standard SQL databases (MS SQL, MySQL, SqLite, etc), Excel worksheets, text files etc. So in your case it might depend on how much data there might be and do you need to frequently query the … | |
Re: [Link here](http://lmgtfy.com/?q=ms+sql+server+express) | |
Re: Since both are the same, it will probably depend on what "<lines of code>" contains. | |
Re: Ok, nice code, but what is your question? | |
Re: Are you kidding? The only thing kids know how to do nowdays is play on the computer. I don't think I'd trust some kid to shovel snow off the driveway or rake the leaves, they might get a heart attack from lack of exercise. | |
Re: This is NOT a c++ program, but a language called CLR/C++, they are not the same nor do they use the same header files/libraries. CLR/C++ is more closely related to C# then C++. You cannot use iostream or cmath, or any other of the libraries/functions from standard c++ library or … | |
Re: A csv file format is just comma or tab separated fields. If a field may contain commas or tabs then the field should be enclosed in quotes For example: Joe,90,100,50,95,98 Mark,40,50,60,70,80,90 | |
Re: [This](http://www.homeandlearn.co.uk/net/vbnet.html) is my favorite tutorial. And while you are looking for tutorials you should upgrade to Visual Studio 2012 Express, still free. | |
Re: How do you know which items in the other two list boxes belong to the one you select in item_name? Are the positions in the list boxes the same so that if you select the 5th item in item_name then you will need to get the 5th item in each … | |
Re: The limit is probably the maximum size of an executable imposed by the file and operating systems. On 32-bit os it's probably 4gb. | |
Re: >This might work for you. But then again, maybe not. You don't know beforehand how many leading 0s there are. And there is no way to find out unless it's a string. | |
Re: just use normal tar. WinZip for MS-Wiondows knows how to uncompress it. | |
Re: replace those tabs with setw() as shown in previous post. If you want the text left-justified (meaning, padded with spaces on the right side of the text) then also add [b]left]/b] [code] #include <iomanip> #include <iostream> using namespace std; int main() { cout << left << setw(10) << "Hello" << … | |
Re: I have vb.net 2012, don't know if it's the same as vb 2005 or not. Can you connect using local access? If yes, map a drive from your computer to the computer hosting the database then in vb set up the database just like you did for the local computer. … | |
![]() | Re: This has been going on for a few generations now with the "spare the rod and spoil the child" attitude. Ok, so the phrase is pretty old (coined in 1662) Parents can't even spank a child without getting arrested for child cruelty. I got ass likings when I was a … |
The End.