2,045 Posted Topics

Member Avatar for Basteon

See this: [url]http://www.bobpowell.net/faqmain.htm[/url] Caveat is the examples are in C# and VB.NET, but the usual dot used for namespace in C# changes to C++ :: ,and dot used for member method in C# changes to -> (if the variable in question is a pointer) will apply. Look on MSDN to …

Member Avatar for sathishraji
0
1K
Member Avatar for Netcode

[quote] I would really like us to have a whole new range of digits from next year[/quote] That doesn't buy you anything. Well, it helps with ad revenue, I suppose, but what kind of site would it be if that increase in numbers consisted of 80,000 homework assignments?

Member Avatar for happygeek
-1
128
Member Avatar for neuro

I have been in graduate school in the mighty neurosciences in the past, and I'll tell you that it's nice to be able to program, but Matlab should probably be your main focus. There are options to compile it (into mex files) and to generate C code from it. There …

Member Avatar for verona.jenn
0
238
Member Avatar for Silvershaft

Grab the string textbox.Text into a string mystring and march along it with the index (so mystring[0] is the first character, mystring[1] being the 2nd, etc.)

Member Avatar for Vorac
0
150
Member Avatar for GrimJack

That's really neat. My first thought is talk about a way to blow through your disk space! [quote]at least for average amounts of infinity [/quote] Sure... :)

Member Avatar for GrimJack
1
171
Member Avatar for JuloF26

I remember something about the Objective-C++ compiler not including glibc++ by default as g++ does. Try including the argument [icode] -lstdC++ [/icode] (along with all of the appropriate switches for the other libraries). @Fbody [icode]#import[/icode] does work on Objective-C, so I'm not sure what the nuances are for Objective-C++.

Member Avatar for TPBarnett
0
622
Member Avatar for WASDted

How about "Oh, what a Daniweb we weave when first we practice to inform" (*as he ducks the thrown tomatoes). or "Do IT on our site"

Member Avatar for Netcode
0
989
Member Avatar for amzyz

[icode]#include <iostream> [/icode] to get the standard header. Then you need either [icode] using std::cout; [/icode] at the top or qualify it in the body of your code with std::cout <<"Yada"; You can also go the using namespace std; route but that brings its own problems. EDIT: Dang... JH, does …

Member Avatar for EEBlake
0
2K
Member Avatar for Deepali_Jain

Do you have [URL="http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/fc2e32b5-e55f-416f-8c74-c018d0f793ab"]Service Pack 1 [/URL] installed? Otherwise, try reinstalling VS.

Member Avatar for Ancient Dragon
0
974
Member Avatar for IndianaRonaldo

Get rid of lines 10-13, you can't have two mains. Change line 15 to [icode]int main()[/icode] as per the standard.

Member Avatar for vijayan121
0
330
Member Avatar for YAMNA MIDHAT

If you are not at that level yet, start [i]simple[/i]. -Can you have the user enter a line of text? If not, find out how via Google. -If the user makes a mistake, can you have them show where in the line the change needs to happen? Example, change all …

Member Avatar for YAMNA MIDHAT
-5
4K
Member Avatar for sDJh

It looks like you have somewhere around Qt 4.4. There is now Qt 4.7 which comes with mingw 4.5, which is much more up to date. It could be a corrupt installation of mingw, so reinstalling your version might help, but try the latest version.

Member Avatar for sDJh
0
319
Member Avatar for W1ND0W5

If you look below the signature editing box in the control panel, there's a box [code] Signature Permissions Allow Basic BB Code Yes Allow Color BB Code No Allow Size BB Code No <SNIP> Allow Smilies No Can Upload Images for Signature No <----****---- Can Upload Animated GIF for Signature …

Member Avatar for Kerry W
0
76
Member Avatar for jonsca

Over the past day and a half or so, I've had multiple occasions in which the page "stalls" before loading all the way. The text is all there, but the "bullseye"/solid purple icons next to the posts, and all of the FB/Twitter regalia take a few seconds to come up. …

Member Avatar for blud
0
229
Member Avatar for RodrigoCSouza

What does the code look like in MainScreen_DragDrop, MainScreen_DragEnter, and MainScreen_DragOver?

Member Avatar for bkenwright
0
510
Member Avatar for rahulvramesh
Member Avatar for FriXionX

Just omit the break in the middle. Switch statements "fall through" until they reach a [icode] break;[/icode] [code] case 'a': case 'A': //do stuff here break; [/code]

Member Avatar for jonsca
0
164
Member Avatar for dusktreader

Please don't bump your threads so soon, have a bit of patience. I was actually just about to give you: [icode] e = d.Base::operator*(1.0); [/icode] I'm fairly sure that in cases like this you lose the more aesthetic syntax, but I believe that this works.

Member Avatar for GreenRiver
0
3K
Member Avatar for PratikM
Member Avatar for jonsca
0
353
Member Avatar for mikejz88

What are the error messages? (it looks like you're missing the [icode]std::[/icode] qualification on [icode]cout, endl [/icode] etc. The best way to deal with that in your case is to put [code] using std::cout; using std::endl; using std::cin; [/code] at the top and leaving the rest of the code alone. …

Member Avatar for jonsca
0
184
Member Avatar for mehas

Ivor Horton's is pretty good. It covers a lot of other material, but he teaches some C++/CLI (the "dialect" of C++ required to do programming on the CLR) [url]http://www.amazon.com/Ivor-Hortons-Beginning-Visual-Programmer/dp/0470500883[/url] As an added bonus, it has some information about some of the feature in the newly approved standard (the book came …

Member Avatar for jonsca
0
109
Member Avatar for Dani
Member Avatar for pauj
Re: GUI

What are your requirements, and how would you define "best"? Take a look through [url]http://en.wikipedia.org/wiki/List_of_widget_toolkits#Based_on_C_or_C.2B.2B_.28including_bindings_to_other_languages.29[/url] and check out, e.g., Qt and wxWidgets. Both are very popular. There's always the traditional MFC route, or using the raw Win32 API.

Member Avatar for play_c
0
110
Member Avatar for goco17

If you think about the abstraction of the data structure, it doesn't make sense to. It is a last in/first out (LIFO) system. If you need a queue or even a deque, then you should use those data structures instead.

Member Avatar for jonsca
0
4K
Member Avatar for Transcendent

Chars are really integers (see any ASCII table). [code] char grade = 'A'; grade++; std::cout<<grade; //'B' [/code] but this requires you to go up when you are going down in grades, and the skip between D and F would require some extra logic. What would be even easier, though, is …

Member Avatar for Narue
0
129
Member Avatar for 4everct01

That is a lot of code to go through. You should whittle it down to compilable snippets of the source files in question.

Member Avatar for iamthwee
0
160
Member Avatar for monika pal

[quote]relative information on recent developed softwares[/quote] Code that my aunts and uncles developed? All kidding aside, you are going to have to be a lot more specific if anyone is going to be able to answer that question. Information relative to what? What types of software?

Member Avatar for jonsca
-1
53
Member Avatar for ztdep

Select the tab control, go to the properties window (usually on the right side, but you may need to go to View/Other Windows/Properties Window), go to the [icode]Multiline[/icode] property and change it to [icode]True[/icode].

Member Avatar for jonsca
0
171
Member Avatar for Gentlevic
Re: Mr

Do you have a team? People experienced doing that sort of program? A good database of virus binaries to draw from? A marketing unit to lure customers from the big named products?

Member Avatar for jonsca
0
86
Member Avatar for moneypro

[icode]getdim()[/icode] is declared as public in the base class, and the inheritance is public, so the derived classes will have access to this method (as public). This method retrieves the values of the [icode]dim1[/icode] and [icode]dim2[/icode] variables by reference. In [iCODE]triangle[/iCODE] and [iCODE]rectangle[/iCODE], the values of [iCODE]d1[/iCODE] and [iCODE]d2[/iCODE] are …

Member Avatar for moneypro
0
179
Member Avatar for SlzzyDzzy

What type of project did you select? Make a new project with [icode]Win32 Console [/icode] as the type. Don't select empty project, and you can uncheck Precompiled Headers.

Member Avatar for SlzzyDzzy
0
243
Member Avatar for goluman

Read [icode]training.txt[/icode] into another vector of strings, call it [icode]trainingVec[/icode] or something. Return just [icode]personNames[nearest-1][/icode] (so you have it in a [icode]std::string[/icode] representation. Step through trainingVec, using the [icode].find()[/icode] method of each of the strings to see if it contains [icode]personNames[nearest-1][/icode] If it does, use [icode].find()[/icode] on that same element …

Member Avatar for goluman
0
1K
Member Avatar for siaswar

[quote] I don't know about database securities and how to implement them. [/quote] Just to pick on your one example, it's very good to know the theory of these types of things and be aware of them. However, unless this is your passion, leave the implementation up to people that …

Member Avatar for katmai539
0
223
Member Avatar for nisabalish

Which is faster to get through midtown traffic, a car or a bicycle? If cars are already bumper to bumper, you definitely want the bike. What qualifications are you using to measure "better"? (Ed: not implying anything about C or C++ here as being analogous to either one, just trying …

Member Avatar for jonsca
0
59
Member Avatar for highlite

Paste in one of your case statements and a screenshot of your control (if available), and someone should be able to run you through it. You might be able to shortcut some of your logic based on the characteristics of the controls.

Member Avatar for highlite
0
353
Member Avatar for creative_m

I'm not sure whatever global function [icode] Show()[/icode] is will do the job. Instantiate a form2 object and call it's method: [code] form2^ fm2 = gcnew fm2(); fm2->Show(); [/code] should work. If you want fm2 to persist outside of the current method, declare it as a private member of [icode] …

Member Avatar for jonsca
0
91
Member Avatar for maxzoel

How did you specify the header's and library's directories in the Visual Studio settings? After you built the source, you should have had the static libraries (.lib) files and the DLLs (which I think come prebuilt with the installer if you go that route). You don't have to go into …

Member Avatar for maxzoel
0
364
Member Avatar for jingda

[QUOTE=Nick Evan] He had too few Geek genes[/QUOTE] Perhaps he should have tried khakis.

Member Avatar for jingda
0
168
Member Avatar for ~s.o.s~

[QUOTE=AndreRet]I also get problems in receiving my mails after a member has posted a reply. I need to constantly refresh the pages where I had replies to see if there was any other replies added. This happened yesterday and the day before for a while, then all of a sudden …

Member Avatar for qq7434138
0
832
Member Avatar for Salem

Glad to see you're back! I just figured this out, as I happened to run into one of your old posts and saw that your avatar changed. Good times.

Member Avatar for Ene Uran
7
189
Member Avatar for Abel123

[QUOTE=WaltP]Time to ban [B]ardav[/B] for overuse of sarcasm.[/QUOTE] Boooy, THAT'll be the day! Uh-oh! Me? (*ducks and covers)

Member Avatar for jingda
0
709
Member Avatar for pseudorandom21

[quote]Post your code between the code tags like so: /* code tags intro */[/quote] I think your idea is great, but you could plaster that statement diagonally across the page in glowing "emergency orange" arial bold (I know, that's not really a web font), and people would still ignore it. …

Member Avatar for diafol
0
225
Member Avatar for jingda

From the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]member rules[/URL] [quote] Keep it Clear -Do post in full-sentence English [/quote] Since you are on the thread already you can remind the user that this is the case. Otherwise the punishment is being forced to interact with the site using a 1980 Motorola cell phone with a …

Member Avatar for Rik_
0
309
Member Avatar for shrutinr

The best thing to do is go through and check all of your braces again, even if you don't think that's what it is. Go to the Tools menu/Options/Text Editor and turn on "Automatic Delimiter Highlighting". After that go to the end of your file and clear out all the …

Member Avatar for Smalls518
0
958
Member Avatar for Schecter
Member Avatar for Dani
Member Avatar for Dani
Member Avatar for Ertzel

[quote]to save the images in more then one Picturebox at a time? [/quote] I'm assuming you're doing this as a winforms project? (it seems like that, but there's some ambiguity). To save more than one picturebox into a bitmap at a time, you're going to have to make a [icode] …

Member Avatar for Ertzel
0
1K
Member Avatar for iwishimgoodasu
Member Avatar for iwishimgoodasu
0
167
Member Avatar for Real Engineer

Nobody is going to do it for you. What tonyjv says is true, you must show some effort before anyone is going to help you. As it stands, you have dumped off a handful of programs with no other explanation. The only way we can interpret that is "do this …

Member Avatar for mohamads
-1
261

The End.