15,300 Posted Topics
Re: You should be able to call win32 api function [URL="http://msdn.microsoft.com/en-us/library/aa923860.aspx"]SHBrowseForFolder()[/URL] | |
Re: What operating system? Is it something that you are writing ? I did something similar in MS-DOS 6.X (a program with multiple context threads). In that program I had a kernel function (kernel to my program) that pushed all registers onto the stack, switch stacks, then poped registers of the … | |
Re: Learn to program it yourself. Or offer to pay someone in the Looking To Hire board. | |
Re: Welcome to DaniWeb. >>i need input on where to start Sart at the beginning by talking to your college school consoler. | |
Re: [URL="http://msdn.microsoft.com/en-us/library/ms533964(VS.85).aspx"]EnumFonts()[/URL] | |
Re: 1) 2) and 3). Very little, if any, performance gain. Those are not areas to optimize because the compiler will do that. 4) You talking about c++ classes? vertual class methods are extremly handy and I've used them often at my work (before I retired that is). >>the virtual functions … | |
Re: system boot time is the value returned by GetTickCount(). If you want to know the actual date/time, call time() function in time.h, then localtime() to get struct tm pointer. From that subtract the number of seconds returned by GetTickCount(), pass that result to mktime() (from time.h) which will do all … | |
Re: >>so what will be the alternate software for >>Visual basic 2005 Visual Studio 2008 >>etc etc I never heard of that one :) | |
Re: you can use either sprintf() or strcat() to format the output file name. Example: [code] char outname[255]; char inputname[255]; char* ptr; printf("Enter a file name\n"); fgets(inputname,sizeof(inputname),stdin); strcpy(outname, inputname); // truncate the extension ptr = strchr(outname,'.'); if(ptr != NULL) *ptr = '\0'; // now add new filename strcat(outname,"_res.txt"); [/code] | |
Re: Does it work on mothers-in-law too :) | |
Re: You can add controls, but it might be easier to use CFormView which is derived from CView but acts like CDialog. To add a button to your CView, just create an instance of CButton in the CView's class, then when initializing CView class call the button's Create() method. Of course … | |
Re: Please post example code. Are you compiling for UNICODE ? | |
Re: The information is in the registry [URL="http://wiki.tcl.tk/1074"]Example here[/URL] | |
Re: That information is not in a *.ini file. Its in a database, such as MySQL and Microsoft SQL Server (there are lots of others too). The simplest kind of database is a plain text file. *.ini files only contain program configuration information that the user can change via an options … | |
Re: [code] int** array = 0; // allocate first dimension array = new int*[10]; // array of 10 pointers [/code] | |
Re: I think you want to declare testString as [b]static[/b]. That way every instance of the class will reference the same instance of testString. | |
Re: One solution: replace [icode] int store[10];[/icode] with either std::vector or std::valarray. With these you can store seemingly infinite amuont of numbers (of course it isn't really infinite, but close enough for most practical purposes). | |
Re: Yes, we can help, but not without knowing the details of the text file. Exactly what is in the file and how is it formatted. Post an example of the file. Once you know that, all you have to do it open the file with ifstream object then read sequentially … | |
Re: >>Can someone help me on maybe how to start ? Depends. Are you comfortable with writing c++ programs? If no, then start by learning the language. If you know how to write c++ programs, then what is your knowledge of socket program? None, then google for socket program tutorials. | |
Re: Start by understanding the mathametics of the triangle -- see [URL="http://en.wikipedia.org/wiki/Pythagorean_triple"]this wiki article[/URL]. That article gives you the solution for the 16 primitive Pythagorean triples with c ≤ 100. That should give you the data you need to verify the accuracy of your program. One way to do it would … | |
Re: By "string" do you mean std::string or a character array? Character array: [icode]char *str = new char[1234];[/icode] Just replace 1234 with the desired length, which can be a variable. | |
Re: [URL="http://msdn.microsoft.com/en-us/library/ms724911(VS.85).aspx"]RegQueryValueEx()[/URL] | |
Re: see [URL="http://msdn.microsoft.com/en-us/library/ms644906.aspx"]SetTimer().[/URL] With SetTimer() you can have windows call a function of your choicel at set time intervals. | |
Re: >>i'm a first year college student and just starting with turbo c. OMG go to a different college immediately because you won't learn anything where you are at. That compiler has been obsolete for at least 15 years that I know of. >>unable to open include file conio.h Check the … | |
![]() | Re: check out [URL="http://www.google.com/search?hl=en&q=open+source+source+control+software&aq=1&oq=open+source+source+con"]these open source (free) source control programs.[/URL] ![]() |
Re: It just means you can use C language to build gui MS-Windows programs. You can also use other languages, such as C#, VB, php, C++, and others. The win32 api functions were made by Microsoft to be called by as many different programming languages as possible. windows.h is just a … | |
Re: Depends on what you mean by "call my program". If you just want to launch the already compiled *.exe program then the answer is Yes. There are several ways to spawn an executable program. system() is one such function, win32 api CreateProcess() is another. Why do you want to use … | |
Re: Its defining a pointer to a specific address. Works ok (probably) in MS-DOS version 6.X and earlier where that type of syntax was sometimes used, but it will fail in any modern 32-bit operating system such as MS-Windows and *nix. So if you are using a modern compiler then those … | |
Re: >>Can I do easily a dll for windows without using Microsoft Visual C++ compiler ? yes, you can use most any compiler that targets MS-Windows version 2000 or later. | |
Re: [QUOTE=Clockowl;679821] But back to the topic, how come vectors are equally fast as C-arrays in this example? That makes no sense at all. I thought ArkM showed they were at least factor 5 slower?[/QUOTE] Unless I missed something he wasn't commenting on C arrays, but std::valarray versus std::vectors. There is … | |
Re: >> while(!datein.eof()) That is a problem because it will read the last line of the file twice. Here is how it should be coded [icode]while( datein >> year )[/icode] [edit]After changing the above while statement I don't get your problem[/edit] [quote] Easter is on April 4 1999 Easter is on … | |
Re: That error message mesans undefined external -- you forgot to code something. The error message should also have told you what the linker was looking for. | |
Re: The cost will depend on location. Los Vegas or Hong Kong will cost quite a few millions, if not billions. Someone is building a new 3-story motel not far from where I live and they probably paid only about $100,000 USD or so for it (my guess) because its not … | |
Re: Instead of sending the string returned by asctime() why now just convert the integer returned by time() to a string and send that? Then on client side just convert back to int and use it to change the computer's clock. If client needs the string returned by asctime() then it … | |
Re: I'll bet you put line 5 in the header file. Don't. put it in only ONE *.cpp file. | |
Re: [icode]system(d.c_str());[/icode] system() takes a const char*, not std::string | |
Re: [QUOTE=BattlingMaxo;677767] The dev c++ provides no visual GUI design tools, so that compiler is out. i might just bite the bullet and buy visual c++ BattlingMaxo[/QUOTE] Not correct. Dev-C++ provides all the functionality as VC++ 2008 Express, except the debuggin in Dev-C++ sucks cannel water. But you can write Windows … | |
[URL="http://searchsecurity.techtarget.com.au/articles/26194-Black-Hat-roundup-Vista-security-defeated-IOS-rootkit-DNS-flaw-worse-than-thought-#Vista"]Vista security rendered 'uselsess'[/URL] By Dennis Fisher [quote]Two security researchers have developed a new technique that essentially bypasses all of the memory protection safeguards in the Windows Vista operating system, an advance that many in the security community say will have far-reaching implications not only for Microsoft, but also on … | |
Re: [QUOTE=RayvenHawk;678803]On the openfile line, are you telling the compiler that it should check the following: fstream::in (or) fstream::out (or) fstream::app??? if so you are short 1 | for each instance (an OR command is ||).. if not, then completely disregard all the above and kind of explain what you're trying … | |
Re: >>its not lettin others applications to run.. >>i cant use it bec we are workin on realtime systems Do you mean you can't because the os doesn't support it, or because you don't want to use it? If you want to let other applications run then you aren't making full … | |
Re: If you want to initialize aa with something other than 0, here is one way. You don't have to do anything to initilize it with 0 because A's constructor already does that. [code] class A { private: int aa; public: A() {aa = 0;} set(int x) {aa = x;} }; … | |
Re: Vista moved the location of your home directory -- they are now located in c:\Users. Is that what you mean? | |
Re: you can remove the comma by shifting all other characters left one place, assuming the string is in read/write memory. [code] char str[] = "25,000"; // locate the comma char* ptr = strchr(str,','); // shift remaining characters left 1 place memmove(ptr, ptr+1, strlen(ptr+1) + 1); [/code] | |
Re: [QUOTE=Kawasaki8;675458]nevermind. moron has a brain afterall[/QUOTE] brain fart :) | |
Re: Just watched the iTube movie, with popcorn and diet coke in hand. Some I agree with and some I don't. For example I think its very important that we know what Paris Hilton is up to. How can any American survive without knowing that ? Finally, I don't intend to … | |
Re: sounds like homework -- did you look it up in your text book ? Errors tell you there is something wrong with your program, and you have to correct them before the compiler can produce the final executable program. | |
Re: [QUOTE=SiRuS;678608]Well, i believe that a simple thanks is enough for you and for your try.You make me mad due to yours behavior.I didn't say that you have got enough knowledge,but i believe and thats the start of my continue in this forum that you should be more polite to the … | |
Re: Probably [URL="http://www.daniweb.com/forums/forum42.html"]Legacy and Other Languages[/URL] |
The End.