3,892 Posted Topics
Re: [quote=melodious_lily;302541][COLOR=#000000][/COLOR] [COLOR=#000000]I tried putting in a for loop -> for (int n=0;n<1000000;n++) but it doesnt work.[/COLOR][/quote] Thats because you modify the control variable used in the for loop inside your for loop i.e. you use the variable [I]n [/I]to control variable but modify the value of [I]n [/I]inside the loop. … | |
Re: [quote=sharky_machine;299462]Yes, it is funny how that works sometimes; originally when entering college for software engineering I was sure I wanted to work for the D.O.D., then after a year or two I was very attracted to database design and was sure that is what I would do. Now I am … | |
Re: I guess its a typo. You jumbled the positioning of the comma and the percentage sign. Here is the fixed one: [code=c]fscanf( fpIn, "%[^,], %d, %[^,], %d", name, &year, cap, &popRank ) ;[/code] Hope it helped, bye. | |
Re: A good description of the problem would help you as well as the one anwering the question. What exact error does the compiler spit out ? BTW, the variable [I]dave [/I]is already a string variable, isn't it ? So why do you want to convert it to ANSI string again … | |
Re: The only resort in such cases is the registry. You can always pull out the information regarding the power settings of the client machine and program your logic accordingly. You can find the power management related keys at [I]HKEY_CURRENT_USER\Control Panel\PowerCfg. [/I]For registry related VB functions look for [I]GetSetting( )[/I] and … | |
Re: I guess thats because when you open your file the next time, you don't use the iostream flag append and thats the reason your previous contents get erased. A file which already has contents when opened for writing needs to be opned in append mode for preserving the previous contents. … | |
Re: Naa, its not just promotion...The people who have played the game tell the tale of its success. Graphics not less than an eye candy, gameplay nothing less than an innovation, the flexibility to provide enjoyment to all kinds of players etc etc....What more do you need ? My opinion: Its … | |
Re: You created the pointer but where is the memory allocated to it ? How do you expect the [INLINECODE]GetCursorPos()[/INLINECODE] to return anything to a mere pointer to whom no memory has been allocated ? In your declaration of LPPOINT variable do this: [INLINECODE] LPPOINT lpPoint = new POINT ;[/INLINECODE] And … | |
| |
Re: It would be really better if you posted the design of your relevant form along with the form elements name so that it would be easier for us to copy paste your code and try it out. Something like this : [code] [lbl_average] [txt_average] [lbl_total] [txt_total] [btn_calculate] [btn_exit][/code] BTW your … | |
Re: A few points:[LIST] [*]Dont use the old style of header inclusion (ie the .h one). Include your headers as[/LIST][code=c] #include <iostream> #include <iomanip> using namespace std ; [/code][LIST] [*]Don't use system("pause") to pause your program. Its a non portable way and takes way too much of resources to just pause … | |
Re: Hey there buddy, welcome to Daniweb. :D May the force be with you....;) | |
Re: Eagerness is good but you can still take the problem as a challenge, solve it but atleast keep the solution to yourself till the OP shows some effort. Just try to help someone out without just pasting out the source code and you would know how it comes out to … | |
Re: [quote=jbennet;300201]oh no wait, i think it was happygeek actually sorry[/quote] You got Mr. Happygeek's and Mushy Pea's name mixed up...:eek: *faints* | |
Re: [quote][I]bFailIfExists[/I] [in] [B]If this parameter is TRUE[/B]and the new file specified by [I]lpNewFileName[/I] already exists, the function fails. If this [B]parameter is FALSE[/B] and the new file already exists, the function overwrites the existing file and succeeds.[/quote] So don't you think you need to change the way the third parameter … | |
Re: Click on [I]Control Panel[/I] (at the top of your screen) ->[I] Edit Avatar[/I] (the link at the top left of the screen). On this page click on the [I]Browse[/I] button for locating the image on your computer which you want to upload as an avatar and then click [I]Save Changes[/I]. … | |
Re: Hello my friend, welcome to Daniweb. :D Wish you a happy 2007. And btw, you really have a good [I]concept[/I] there... (pun intended) | |
Re: Can't say without seeing the code and its problematic part.... | |
Re: > Does anyone know how to do single instance in VB.. Pls help me... Are you talking about creating class instances in a VB program... ? | |
Re: [quote=purple rainx;282939]Hi all, Just wonedering how many other girls are here? [/quote] I think there are a lot, but not many of them are core or regular members so you wont get to see many around here..but yeah if you stick around for some time you can find many of … | |
Re: [quote=joeprogrammer;299845]Grr... not you, too! ;)[/quote] :mrgreen: [quote]Yep, if you ever need to delete one of your own bad posts or get it edited for some reason, using the "Flag bad post" is the quickest way to contact the moderators. Although I don't have personal experience with this, I've heard mods … | |
Hey there my friend, welcome to Daniweb. :D I have requested the thread be moved to the appropriate forum for quick response. ;) | |
Re: Hey there my friend, welcome to Daniweb. Hope you get to know the computer a bit more ...;) | |
Re: Joey really has access to some inside info -- either that or he must have read it on other forums where Miss Narue visits. Anyways, Congratulations Miss Narue, and I hope the best health of you and your baby. God Bless you both. | |
Re: VB can be used to read registy keys. So if you know the path where the application would be placed in the registry (registry path and installation path are two different things) along with the key which is associated with the "version" part of software, you can easily achieve this. … | |
Re: Maybe something like this: [code] Dim rs as recordset set rs = db.Openrecordset("SELECT CompanyCode FROM abc WHERE AboutCompany LIKE '*x*'")[/code] Here * stands for zero or more characters. So this query will pull out records like [I]xaz, taz, z [/I]etc. | |
Re: [edit]Ah..too late[/edit] Create the project of your choice in VB and then make the executable file. Place the file created in the [I]\windows\system32[/I] folder. Then go to the screensaver dialog box by right clicking on the desktop and then selecting properties. Select the screensaver with the name which you had … ![]() | |
Re: [quote=flageolet;300051]If I ask how many patiënts have to be operated, the program should create a variable for each patiënt that can contain their individual data.[/quote] A simple, crude, sample program: [code=cplusplus] #include <iostream> #include <vector> int main() { using namespace std; int count = 0 ; vector<int> vec_int ; cout … | |
Re: If your form name is "frm_MDI" you could try: [inlinecode]frm_MDI.ActiveForm[/inlinecode] to get the current form which is active. Hope it helped, bye. | |
Re: I guess you missed the [URL="http://www.daniweb.com/techtalkforums/announcement8-2.html"]forum policy.[/URL] | |
| |
Re: How about something simple like (this code is not tested, use it just as a sample) Your form structure: [quote]Username: [textbox] Password: [textbox] [ login(button) ] [ cancel (button) ][/quote] [code=visualbasic] Private Sub Login_Click() Dim conn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim user As String Dim password … | |
Re: Hey there Yagyesh, welcome to Daniweb from a fellow Indian.... Hope you enjoy your stay here. :D | |
Re: [quote=jan1024188;299319]but why?[/quote] Probably because of the way in which the object file is generated from the source file... The actual C / C++ source code goes thorough a lot of transformations and platform specific optimizations during its compilation and building phase which make the source code from the object file … | |
Re: Is a image really there ? I don't see any image in my browser window. It would be really a good idea to either attach the image to your post or to upload it at an image hosting site ([url]www.imageshack.us)[/url]. Maybe then everyone would be able to help you out. | |
Re: Well I guess I am good to go when it comes to typing, atleast no spelling mistakes. The only problem I face is of inserting extra spaces between words, spaces which are not required. And I have also made it a point to do touch typing when I started with … | |
Re: I thought all the changes to such critical things were made in the dummy project before touching the live working code...;) | |
Re: Hey there buddy, welcome to Daniweb. :D Good to have an expert like you along our side. Hope you will render your help to newbies our there in dire need of help...;) | |
Re: Hello there. [quote=FireSBurnsmuP;299011]well, It got a little bit of data when I do it that way, but still gave the same output after a few thousand bytes. I think it's a copy-protection thing. I don't know how to get around that though.[/quote] I hope you realize that getting around the … | |
Re: A few guidelines: 1. Don't use non standard functions ([I] getche( ) [/I]) and non standard headers ( conio.h ) since they make your code non portable ( i.e. your code won't compile on compilers other than the one which you are currently using) 2. The main concept behind the … | |
Re: [quote=joydsouza90;297667]:?: How do you put a bitmap (or possibly jpeg) image on the screen in Turbo C++ ? I just want to display the picture on the screen for about 15 seconds or so and then move on to another screen. Please Help.[/quote] How about something like [URL="http://www.brackeen.com/home/vga/bitmaps.html"]this[/URL] or [URL="http://www.writeka.com/emage/bmp16_format.html"]this[/URL] … | |
Re: [URL="http://faculty.gg.uwyo.edu/heller/Historical%20Geology/Historical%20Lect%2011/SOS.jpg"]Mine[/URL] looks interesting, cool, informative...and was very much expected. | |
Re: Hmm... sorry though I dont have the time as such to join your party but I will try to help as much as I can (have made a game once ) 1. For a list of free game engines along with their reviews [URL="http://www.devmaster.net/engines/"]look here[/URL] 2. As far as 3D … | |
Re: [quote=Elfshadow;296625]The only thing bad is the name because I think It makes people think it's one those short books that only briefly go goes thru everything .[/quote] ..which it actually is since its a beginners book. Not many developers would recommend you any of the Sam's series. Ditto with Dietel. … | |
Re: [quote=Ravalon;295942]flushall() is not a standard function so you cannot expect it to work. You use cin.ignore() in C++. [code] #include <iostream> #include <limits> int main() { using namespace std; char letter = 0; cout << "Please type one letter: "; cin.get( letter ); cout << "The next character is: " … | |
Re: Go with the cheaper one if you dont play games that require high amount of graphics. | |
Re: Hey there buddy, welcome to Daniweb. :D Good to have an interesting person like you on our board...;) | |
Re: [quote=Gunner54;297333]Hi, i have made a code. Its meant to announce a "Sentence" but i dont know how to make a string into a sentece. The string up to now only announces the first word of the sentece.[/quote] I would strongly recommend you to go along with [B]Mr.[/B] [B]Raye's[/B] advice. But … | |
Re: Hey there my friend Joey, welcome to the elite club...:D If I get time someday, I would definately go through your blog enteries and see the kind of magic you have woven in them...;) [quote]If you want to get a Featured Blogger badge for yourself, then follow the joeprogrammer example … |
The End.