868 Posted Topics

Member Avatar for Podge

[QUOTE=iamthwee]> MFC vs WIN forms - Which road to take? Neither...[/QUOTE] Then? Java? ;)

Member Avatar for eggsy84
0
320
Member Avatar for Acidburn
Member Avatar for Bench
0
157
Member Avatar for newgurl

[QUOTE=iamthwee]A ha ha, that would be like the blind leading the blind.[/QUOTE]You are too modest. :cheesy:

Member Avatar for WolfPack
0
308
Member Avatar for Ancient Dragon

[QUOTE=Ancient Dragon]I couldn't access it all day today from where I work using IE6. Kept getting a strange error (I don't recall what it said). But at home using FireFox it was ok. Coincidence??[/QUOTE]Around the time you posted ( 11 AM Japan Time ) I also could not access Daniweb …

Member Avatar for WolfPack
0
88
Member Avatar for fiska

[QUOTE=fiska]ok now this code is working in a c++ project, but I dont understand this part: [code] #pragma comment(lib,"Releasetest4.lib"); [/code][/QUOTE] It is a preprocessor directive telling the compiler to link the Releasetest4.lib library. Anyway I think this is supported only in the Visual Studio compiler. Therefore it is not encouraged. …

Member Avatar for fiska
0
291
Member Avatar for deeptha

There is a facility called [URL=www.google.com]google[/URL] you know. Anyway [URL=http://www.keil.com/uvision2/]refer[/URL] this site.

Member Avatar for deeptha
0
134
Member Avatar for sandra2005

[QUOTE=sandra2005][B]And I want to ask you one question that if I get a homework can you help me in solving it.[/B] [/QUOTE]Yeah sure. But only if you prove that you have tried it yourself first. [URL=http://www.daniweb.com/techtalkforums/announcement8-2.html]We only give homework help to those who show effort[/URL]

Member Avatar for sandra2005
0
128
Member Avatar for madonnamama

[QUOTE=madonnamama]I'm sorry about the indenting problem. I originally had the program written in word with indents and when I copied it to notepad so that I could open it from my email at school all the indents disappeared. [/QUOTE] Dont use MS=Word to write code. Most of the the text …

Member Avatar for madonnamama
0
1K
Member Avatar for lanario
Member Avatar for javamum

Check the Parts in Red. And post code within tags next time. [code] #include <iostream> #include <math.h> using namespace std; int main () { double k1; double n1; double tolerance; int N; double L; double a, b; cout << "Welcome to the Root Finding Calculator using the Bisection Method!" << …

Member Avatar for WolfPack
0
146
Member Avatar for prof.thakur

I guess you could show a dialog with the required graphics in it's backgound at startup, on the WM_INITDIALOG event, or WM_CREATE event; set a timer at that moment, and when the timer throws the WM_TIMER event after the required time-interval, you can close the Splash Screen.

Member Avatar for Ancient Dragon
0
161
Member Avatar for grunge man

What you say about binary handling in computers is correct Dragon. But what Server_Crash did, was not [INLINECODE]int n = "100001";[/INLINECODE] he did[INLINECODE]int n = 1000001; // this is correct.[/INLINECODE] What I don't get is how did [code]char( int n ) [/code]work. It gives you the correct character output. Is …

Member Avatar for iamthwee
0
365
Member Avatar for grunge man

[QUOTE=grunge man]cool thanks guys it worked and as far as the tutorial walkthroughs and samples i have all ready read them but i dont compleatly understand them mostly i have a tendency to `look so far ahead of the situation in to the abstract that i dont know whats happening …

Member Avatar for grunge man
0
363
Member Avatar for grunge man

[QUOTE=grunge man]um ok you said b4 that endif is not santax of c++ but in that site you gave me it is used many times[/QUOTE]It is [CODE]#endif[/CODE] man. Not just [CODE]endif[/CODE]. Those are two different things. It is about time you bought one of those books in the list you …

Member Avatar for grunge man
0
152
Member Avatar for heavyc

[code] t->p = [B]p1[/B]; [/code] What is this p1 inside the addprocess function? [CODE]struct Node { [B]info[/B] p; Node *next; };[/CODE] What is the type called info inside the Node structure? Does this code compile? Anyway you should add the ProcessHandle returned in [INLINECODE]ProcessInfo[/INLINECODE] to the linked list. Otherwise you …

Member Avatar for WolfPack
0
148
Member Avatar for vietbong87

[code] #include<iostream> using namespace std; int main() { int count; double grade, total, average; grade = 0; total = 0; count = 0; cout <<"\nTo stop entering grades. Type in the number"; cout <<"\n 999.\n\n"; total = total + grade; cout << "Enter a grade: "; cin >> grade; count++; …

Member Avatar for vietbong87
0
97
Member Avatar for grunge man

Better if you name this thread with something relevant. Like "[B]Similarities between C++ vectors and Physics Vectors[/B]". That would describe the content better. Thanks for considering my request. :D PS. Within 15 or 30 minutes of posting you can see the "[B]Edit this Post[/B]" button.

Member Avatar for server_crash
0
195
Member Avatar for javamum

[code] enter m: 1 enter a value for k: 1 enter a value for n: 1 enter a value for L: 3 enter an endpoint a: 0 enter an endpoint b: 5 Enter the level of tolerance: .001 enter the maximum number of iterations: 25 Monitor iterations? (1/0): 1 Iter …

Member Avatar for WolfPack
0
82
Member Avatar for manar

You will have to read the image into a two dimensional structure, maybe a two dimensional array, and then apply the operations to corresponding elements at position x and y. [code]ResultantImage[x][y] = Image1[x][y] - Image2[x][y][/code] You could do this even with a single dimensional array, but that is rather unintuitive …

Member Avatar for plazmo
0
207
Member Avatar for degamer106

[url=http://www.daniweb.com/techtalkforums/showthread.php?t=36375]this[/url] should help.

Member Avatar for Salem
0
356
Member Avatar for chelo77

When you post C/C++ code, put the code inside tags like this, [B][[/B][B]code[/B][B]][/B] #include <iostream> int main() { [INDENT]std::cout << "Hello World\n"; return 0;[/INDENT] } [B][[/B][B]/code][/B] and it will appear like this. [code]#include <iostream> int main() { std::cout << "Hello World\n"; return 0; }[/code]

Member Avatar for WolfPack
0
208
Member Avatar for grunge man

[QUOTE=grunge man]well no duh statments dont bring help questions bring help[/QUOTE]Then keep on asking, just as you are doing right now. It would be interesting to see how you get by. [QUOTE=thefreedictionary.com] as·set 1. A useful or valuable quality, person, or thing; an advantage or resource [/quote]

Member Avatar for Narue
0
168
Member Avatar for gropedersen

What would happen if you ran this code? [code]void List::ListMax() { recordptr temp = head; recordptr max = head; int maxAge = 0; if(temp!=NULL) maxAge = temp->age; temp = temp->next; while (temp!=NULL) { if ( temp->age > maxAge) { maxAge = temp->age; max = temp; } temp = temp->next; } …

Member Avatar for gropedersen
0
163
Member Avatar for Apg

I knew a Mrs. Melissa Pointer who suffered the same misfortune. Also from Kenya. Any chance that esophageal cancer is contaigous?

0
23
Member Avatar for ani_manit

I guess you can find a lot about the JPEG files specs and the BMP files specifications if you google for it. Just searching for "BMP image format" and "JPEG image format" would do.

Member Avatar for Ene Uran
0
76
Member Avatar for registry

[QUOTE=iamthwee]I wouldn't bother learning win32 (sorrie wolfie), waste of time in my opinion. Look to C# and the .net environment.[/QUOTE] Hell I should concentrate more on answering some generic C/C++ questions. :cheesy:

Member Avatar for iamthwee
0
96
Member Avatar for complete

If you want to add new options, you can use the edit box in the Linker-Command Line dialog box. If you want to change the existing options, they can be changed through the other linker options. For e.g the [inlinecode]/PDB:"Debug/CPP_Console.pdb" [/inlinecode] part of the linker command line can be changed …

Member Avatar for WolfPack
0
87
Member Avatar for complete

Try something like this. [code] INITCOMMONCONTROLSEX InitCtrlEx; InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX); [COLOR=Red]InitCtrlEx.dwICC = ICC_PROGRESS_CLASS; // This depends on the control you are tryinn to initialize[/COLOR] InitCommonControlsEx(&InitCtrlEx); [/code]

Member Avatar for complete
0
99
Member Avatar for Moe

Remove the files you copied into the bcc5/bin and include directories and try following steps below. I used the Visual Studio Command line so the compiling commands in bcc may be different. 1. Extract all the files to any directory you want. I used a directory called [INLINECODE]lnk41b[/INLINECODE] so the …

Member Avatar for WolfPack
0
2K
Member Avatar for musicmancanora4

[code]tmpMonth = validateMonth(valMonth, prompt, result);[/code] What is this parameter [INLINECODE]result[/INLINECODE] that you are passing? It is not in the declaration or the definition of the function. Also the [code]return m;[/code] line in [code]validateMonth[/code] returns null as you are not assigning any value to m.

Member Avatar for Narue
0
133
Member Avatar for heavyc

Nothing is wrong with your code. It compiles fine in my Visual Studio 2002 compiler. Anyway the following change is needed. [CODE] CloseHandle(ProcessInfo.hThread); CloseHandle(ProcessInfo.hProcess);[/CODE] Maybe the error is not in the code you posted. This is the code I tested it in [CODE]#include <windows.h> #include <iostream> int main() { char …

Member Avatar for WolfPack
0
178
Member Avatar for rc_ashish

I guess no further explaination is needed required for the OP's initial requirement. He needs to 1. Print the results to a text file 2. Change the font size that is written in to the text file. Astronox's answer is the most complete regarding these requirements. You cant change the …

Member Avatar for WolfPack
0
284
Member Avatar for pdhaz

[QUOTE=calcop]That type of reply is excatly what im talking about :)[/QUOTE] At least his reply made some sense. If you think that a newbie is ready to incorporate dlls that shows how inexperienced you are in guiding someone in programming. Ancient Dragon was not saying to RTFM, a newbie of …

Member Avatar for WolfPack
0
127
Member Avatar for akshayabc

If I were you I'd google for "Speech Recognition in C/C++" or something like that and see what comes up.

Member Avatar for calcop
0
114
Member Avatar for YoTaMiX

[QUOTE=YoTaMiX]Hello :-) I have installed Fedora Core 4 and we learn in college C++ . where can i find a C++ author and compiler for Fedora Core 4? Thank you[/QUOTE] C++ Author : I dont know what you mean by this. compiler : Fedora Core 4 comes with the g++ …

Member Avatar for WolfPack
-1
149
Member Avatar for benyam_dessu

Out of curiosity, what made you name this thread after one of the members here :?:

Member Avatar for iamthwee
0
87
Member Avatar for jack223

Intuitively my answer will be O(N^2). Will look for a way to prove it( if that is correct). Edit. Hey. I just had a look at your first piece of code. What is the difference? The loops are the same. The only difference is that the first one does nothing …

Member Avatar for WolfPack
0
95
Member Avatar for shahnazurs

[QUOTE=shahnazurs]That is right, it has to open any picture file like *.bmp.[/QUOTE] If this means "yes. it has to open the file in mspaint", a quick, easy, but dirty way is to use [code] int main() { system("mspaint filename.bmp");// filename.bmp is the image file name return 0; } [/code] in …

Member Avatar for shahnazurs
0
117
Member Avatar for Lothia

This type of program is called Win32 GUI Application programming. You dont have a main function for those programs. Instead there is a [inlinecode]WinMain[/inlinecode] function for the starting point. The way you start such a program is different than from a console program. This depends on the compiler you use. …

Member Avatar for WolfPack
0
210
Member Avatar for Kiba Ookami

For your information there is nothing recursive about this piece of code. Anyway did you run this and check the results? For example what is the output for input 5?

Member Avatar for iamthwee
0
196
Member Avatar for WolfPack

In a moment of folly I disabled the shared video memory of my computer at the BIOS settings. :o Now I can't see anything. How can I restore the original values?

Member Avatar for WolfPack
0
82
Member Avatar for Sun
Member Avatar for Narue
0
93
Member Avatar for fitfool

Well, according to the error messages you havent given all the required parameters. Did you check that out?

Member Avatar for fitfool
0
102
Member Avatar for rontab68

What about using [URL=http://msdn2.microsoft.com/en-us/library/esb6sz20(VS.80).aspx]CFile::Write()[/URL] ??? Have you tried it?

Member Avatar for rontab68
0
157
Member Avatar for mhm_ra

[QUOTE=mhm_ra]:lol: hello i want to show the time in a certain program in part of seconds but i don't know,can you help me in solve this problem? thanks[/QUOTE] What is the language you are using? Is it a console program or a GUI program?

Member Avatar for WolfPack
0
452
Member Avatar for musicmancanora4

Check your [INLINECODE]getYear()[/INLINECODE] and [INLINECODE]getMonth()[/INLINECODE] functions. They are not returning the values you want. That is why you are always getting 0. Also the parameters in the [inlinecode]calDays = totalDays(month, year);[/inlinecode] call are reversed.

Member Avatar for andor
0
105
Member Avatar for Mr Violent

When the connection fails, get the error number by using GetLastError(). Then lookup for it's description in MSDN or the winerror.h file. That will give you an idea on what is causing it.

Member Avatar for Mr Violent
0
93
Member Avatar for leedurr

put the missing semicolons. define undefined variables. there is whitespace between [code]hourly rate[/code] and [code]gross pay[/code]. Remove them. I dont know how you got this to compile in Visual C++ 6.0 correct the mistakes I pointed out and post the code again.

Member Avatar for WolfPack
0
148
Member Avatar for mice_cs

[QUOTE=iamthwee]I think the difference is the syntax. [/QUOTE] There is more than syntax difference. Object Oriented Programming Support. template support. are two of the most important IMHO that come to my mind. [QUOTE]But the STL in c++ is supposed to make things easier than C when you learn it. :lol:[/QUOTE]And …

Member Avatar for Narue
0
109
Member Avatar for polishcannon

[QUOTE]Problem is, I don't know if this is possible[/QUOTE]It is possible. [QUOTE]how to do it[/QUOTE]Depends on the language you use. If using C search for examples on using fread, fopen If using C++ search for examples in fstream, std::istream.

Member Avatar for WolfPack
0
72

The End.