3,892 Posted Topics

Member Avatar for melodious_lily

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

Member Avatar for sallyitzme
0
92
Member Avatar for BaD-AiM

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

Member Avatar for PirateTUX
0
267
Member Avatar for degamer106

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.

Member Avatar for Salem
0
78
Member Avatar for elodie

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 …

Member Avatar for Lerner
0
1K
Member Avatar for DenisOxon

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 …

Member Avatar for ~s.o.s~
0
87
Member Avatar for fesago90

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

Member Avatar for jwenting
0
139
Member Avatar for happygeek

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 …

Member Avatar for ~s.o.s~
0
155
Member Avatar for mouko_yamamoto

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 …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for kasilver50
Member Avatar for jbennet
0
91
Member Avatar for brian.p

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 …

Member Avatar for brian.p
0
143
Member Avatar for killerdrummer2

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 …

Member Avatar for murschech
0
189
Member Avatar for the_one

Hey there buddy, welcome to Daniweb. :D May the force be with you....;)

Member Avatar for the_one
0
54
Member Avatar for rajbasu

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 …

Member Avatar for Salem
0
125
Member Avatar for vjw757

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

Member Avatar for ~s.o.s~
0
77
Member Avatar for jan1024188

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

Member Avatar for ~s.o.s~
0
2K
Member Avatar for tmv105

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

Member Avatar for happygeek
0
48
Member Avatar for concept

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)

Member Avatar for concept
0
300
Member Avatar for kshamasb08
Member Avatar for QVeen72
0
87
Member Avatar for yuni

> Does anyone know how to do single instance in VB.. Pls help me... Are you talking about creating class instances in a VB program... ?

Member Avatar for QVeen72
0
115
Member Avatar for purple rainx

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

Member Avatar for Chaky
0
697
Member Avatar for Ancient Dragon

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

Member Avatar for ~s.o.s~
0
130
Member Avatar for ~s.o.s~

Hey there my friend, welcome to Daniweb. :D I have requested the thread be moved to the appropriate forum for quick response. ;)

Member Avatar for happygeek
0
59
Member Avatar for santi2se

Hey there my friend, welcome to Daniweb. Hope you get to know the computer a bit more ...;)

Member Avatar for happygeek
0
8
Member Avatar for John A

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.

Member Avatar for Narue
0
136
Member Avatar for ikhalid

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

Member Avatar for ~s.o.s~
0
93
Member Avatar for asifa1

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.

Member Avatar for ~s.o.s~
0
82
Member Avatar for neodishanku

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

Member Avatar for gcs584
0
631
Member Avatar for flageolet

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

Member Avatar for flageolet
0
95
Member Avatar for yuckadirri

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.

Member Avatar for ~s.o.s~
0
56
Member Avatar for mrik1984

I guess you missed the [URL="http://www.daniweb.com/techtalkforums/announcement8-2.html"]forum policy.[/URL]

Member Avatar for ~s.o.s~
0
56
Member Avatar for Erich K
Member Avatar for Extremist
0
729
Member Avatar for seekerems

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 …

Member Avatar for seekerems
0
119
Member Avatar for yagyeshsharma

Hey there Yagyesh, welcome to Daniweb from a fellow Indian.... Hope you enjoy your stay here. :D

Member Avatar for yagyeshsharma
0
135
Member Avatar for jan1024188

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

Member Avatar for John A
0
141
Member Avatar for Eko

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.

Member Avatar for Infarction
0
202
Member Avatar for roryt

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 …

Member Avatar for happygeek
0
241
Member Avatar for Dani

I thought all the changes to such critical things were made in the dummy project before touching the live working code...;)

Member Avatar for WaltP
1
455
Member Avatar for TT4Titans

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

Member Avatar for mastermind_SEO
0
129
Member Avatar for FireSBurnsmuP

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 …

Member Avatar for John A
0
965
Member Avatar for 80s

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 …

Member Avatar for Aia
0
495
Member Avatar for joydsouza90

[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] …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for The Dude

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

Member Avatar for ~s.o.s~
0
141
Member Avatar for jbennet

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 …

Member Avatar for jbennet
0
519
Member Avatar for blud
Member Avatar for Elfshadow

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

Member Avatar for Colin Mac
0
154
Member Avatar for murschech

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

Member Avatar for Ravalon
1
160
Member Avatar for Wayne.

Go with the cheaper one if you dont play games that require high amount of graphics.

Member Avatar for jbennet
0
133
Member Avatar for Cobrarr2003

Hey there buddy, welcome to Daniweb. :D Good to have an interesting person like you on our board...;)

Member Avatar for happygeek
0
65
Member Avatar for Gunner54

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

Member Avatar for WaltP
0
167
Member Avatar for happygeek

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 …

Member Avatar for blud
1
191

The End.