15,300 Posted Topics

Member Avatar for Diamond3x

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 " ;`

Member Avatar for asifalizaman
0
362
Member Avatar for bnitishpai
Member Avatar for pssingh1001
0
174
Member Avatar for slasham

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?

Member Avatar for Ancient Dragon
0
191
Member Avatar for Ancient Dragon

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)

Member Avatar for vegaseat
4
242
Member Avatar for Ancient Dragon
Member Avatar for deceptikon
0
175
Member Avatar for desolatebeast

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() …

Member Avatar for desolatebeast
0
395
Member Avatar for n1csaf3

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 …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for harinath_2007

How needs breaks? Any good programmer worth his/her salt can spend 24/7 at the computer.

Member Avatar for CimmerianX
2
322
Member Avatar for karlcunanan

I found [this ebook](http://www.homeandlearn.co.uk/NET/vbNet.html) very helpful, it has a chapter on how to send email

Member Avatar for tinstaafl
0
486
Member Avatar for mishael.pestano

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"

Member Avatar for Ancient Dragon
0
43
Member Avatar for Amy Rami

extract the directory name from the xml file then use that instead of argv[1] in line 22.

Member Avatar for Ancient Dragon
0
86
Member Avatar for josverhoeff

Maybe [this](http://www.daniweb.com/software-development/vbnet/threads/251319/call-a-subroutine-by-variable-name-in-vb.net#post1097462) will help????

Member Avatar for josverhoeff
0
540
Member Avatar for Kareem Klas

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. …

Member Avatar for PrimePackster
0
1K
Member Avatar for mallikaalokam

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 …

Member Avatar for deceptikon
0
146
Member Avatar for pjns19

Move line 31 outside the function so that it becomes global then it can be used any time you want it.

Member Avatar for TnTinMN
0
168
Member Avatar for Reverend Jim

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 …

Member Avatar for <M/>
0
377
Member Avatar for kmaguneyi
Member Avatar for Ancient Dragon
0
182
Member Avatar for <M/>

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)

Member Avatar for <M/>
5
186
Member Avatar for fyra
Member Avatar for bguild

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.

Member Avatar for Ancient Dragon
0
449
Member Avatar for on93

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. …

Member Avatar for on93
0
158
Member Avatar for lexaeterna

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 …

Member Avatar for Lethugs
0
666
Member Avatar for The Dude

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 …

Member Avatar for Ene Uran
9
4K
Member Avatar for Chuck2013

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 …

Member Avatar for Ancient Dragon
0
301
Member Avatar for dadquacker

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 …

Member Avatar for ToddRLittleton
0
293
Member Avatar for eakaglo

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 …

Member Avatar for Ancient Dragon
0
194
Member Avatar for abusby

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).

Member Avatar for Ancient Dragon
0
36
Member Avatar for greatman05

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.

Member Avatar for Ancient Dragon
0
197
Member Avatar for nova37
Member Avatar for Ancient Dragon
0
192
Member Avatar for >shadow<
Member Avatar for killer88

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 …

Member Avatar for killer88
0
596
Member Avatar for Engineer001

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)

Member Avatar for Moschops
0
2K
Member Avatar for shanki himanshu

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 …

Member Avatar for Ancient Dragon
0
232
Member Avatar for LeunamP

Did you try one of[ these tutorials](http://lmgtfy.com/?q=vb.net+database+tutorial)?

Member Avatar for LeunamP
0
102
Member Avatar for murali89

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. …

Member Avatar for Ancient Dragon
0
176
Member Avatar for siaswar

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 …

Member Avatar for Ancient Dragon
0
271
Member Avatar for LeunamP
Member Avatar for meetjatin88
Member Avatar for mike_2000_17
0
192
Member Avatar for wollacott
Member Avatar for NardCake

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.

Member Avatar for <M/>
0
376
Member Avatar for toth.attila.7921

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 …

Member Avatar for tinstaafl
0
849
Member Avatar for dewdropz

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

Member Avatar for Ancient Dragon
0
209
Member Avatar for oail

[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.

Member Avatar for Ancient Dragon
0
212
Member Avatar for silvercats

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 …

Member Avatar for silvercats
0
282
Member Avatar for Suzie999

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.

Member Avatar for Suzie999
0
65
Member Avatar for MRehanQadri

>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.

Member Avatar for Ancient Dragon
0
194
Member Avatar for lewashby
Member Avatar for cereal
0
146
Member Avatar for group256

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" << …

Member Avatar for niario
0
15K
Member Avatar for Skipind

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. …

Member Avatar for savedlema
0
370
Member Avatar for diafol

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 …

Member Avatar for Reverend Jim
2
1K

The End.