868 Posted Topics
Re: [QUOTE=iamthwee]> MFC vs WIN forms - Which road to take? Neither...[/QUOTE] Then? Java? ;) | |
Re: [CODE]if(a.find == 1 , "$") [/CODE] Is the syntax correct? | |
Re: [QUOTE=iamthwee]A ha ha, that would be like the blind leading the blind.[/QUOTE]You are too modest. :cheesy: | |
Re: [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 … | |
Re: [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. … | |
Re: There is a facility called [URL=www.google.com]google[/URL] you know. Anyway [URL=http://www.keil.com/uvision2/]refer[/URL] this site. | |
Re: [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] | |
Re: [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 … | |
Re: 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!" << … | |
Re: 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. | |
Re: 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 … ![]() | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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++; … | |
Re: 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. | |
Re: [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 … | |
Re: 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 … | |
Re: [url=http://www.daniweb.com/techtalkforums/showthread.php?t=36375]this[/url] should help. | |
Re: 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] | |
Re: [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] | |
Re: 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; } … | |
Re: I knew a Mrs. Melissa Pointer who suffered the same misfortune. Also from Kenya. Any chance that esophageal cancer is contaigous? | |
Re: 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. | |
Re: [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: ![]() | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: [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. | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: If I were you I'd google for "Speech Recognition in C/C++" or something like that and see what comes up. | |
Re: [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++ … | |
Re: Out of curiosity, what made you name this thread after one of the members here :?: ![]() | |
Re: 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 … | |
Re: [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 … | |
Re: 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. … | |
Re: 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? ![]() | |
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? | |
Re: Get the input as a char and then try validating it's ascii code. | |
Re: Well, according to the error messages you havent given all the required parameters. Did you check that out? | |
Re: What about using [URL=http://msdn2.microsoft.com/en-us/library/esb6sz20(VS.80).aspx]CFile::Write()[/URL] ??? Have you tried it? | |
Re: [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? | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: [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 … | |
Re: [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. |
The End.