15,300 Posted Topics

Member Avatar for tootypegs

You should be able to call win32 api function [URL="http://msdn.microsoft.com/en-us/library/aa923860.aspx"]SHBrowseForFolder()[/URL]

Member Avatar for Ancient Dragon
0
93
Member Avatar for rocosd

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 …

Member Avatar for Ancient Dragon
0
107
Member Avatar for shafaqmerchant
Member Avatar for Ancient Dragon
0
28
Member Avatar for tonyski99

Welcome to DaniWeb. >>i need input on where to start Sart at the beginning by talking to your college school consoler.

Member Avatar for Ancient Dragon
0
15
Member Avatar for ehsan_op

[URL="http://msdn.microsoft.com/en-us/library/ms533964(VS.85).aspx"]EnumFonts()[/URL]

Member Avatar for Ancient Dragon
0
90
Member Avatar for monkey_king

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 …

Member Avatar for Narue
0
151
Member Avatar for Flawless

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 …

Member Avatar for brain
0
2K
Member Avatar for kishor_darji

>>so what will be the alternate software for >>Visual basic 2005 Visual Studio 2008 >>etc etc I never heard of that one :)

Member Avatar for StewartRoonie
0
81
Member Avatar for ambarisha.kn

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]

Member Avatar for ambarisha.kn
0
78
Member Avatar for ithelp
Member Avatar for PuQimX
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
2K
Member Avatar for onemanclapping
Member Avatar for scratchnloved

The information is in the registry [URL="http://wiki.tcl.tk/1074"]Example here[/URL]

Member Avatar for scratchnloved
0
97
Member Avatar for hapiscrap

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 …

Member Avatar for Ancient Dragon
0
173
Member Avatar for vvtc

[code] int** array = 0; // allocate first dimension array = new int*[10]; // array of 10 pointers [/code]

Member Avatar for grumpier
0
145
Member Avatar for monogana

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.

Member Avatar for Ancient Dragon
0
162
Member Avatar for vijaysoft1

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

Member Avatar for mahlerfive
0
87
Member Avatar for alecho

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 …

Member Avatar for Ancient Dragon
0
120
Member Avatar for bobbleheadbuu

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

Member Avatar for Ancient Dragon
0
68
Member Avatar for Shaftage

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 …

Member Avatar for Ancient Dragon
0
146
Member Avatar for vijaysoft1

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.

Member Avatar for entei
0
253
Member Avatar for yuriythebest

[URL="http://msdn.microsoft.com/en-us/library/ms724911(VS.85).aspx"]RegQueryValueEx()[/URL]

Member Avatar for yuriythebest
0
64
Member Avatar for sciwizeh

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.

Member Avatar for sciwizeh
0
213
Member Avatar for zabr

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

Member Avatar for Aia
0
127
Member Avatar for DigitalPackrat

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]

Member Avatar for DigitalPackrat
0
202
Member Avatar for fromthatside

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 …

Member Avatar for ArkM
0
172
Member Avatar for dirt14
Member Avatar for fromthatside

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 …

Member Avatar for fromthatside
0
134
Member Avatar for Dawee1

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 …

Member Avatar for Dawee1
0
102
Member Avatar for mabuse

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

Member Avatar for mabuse
0
476
Member Avatar for salman1354

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

Member Avatar for grumpier
0
267
Member Avatar for SurviBee

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

Member Avatar for ArkM
0
224
Member Avatar for errorman

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.

Member Avatar for Ancient Dragon
0
84
Member Avatar for TimothyKhoo

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 …

Member Avatar for jwenting
0
52
Member Avatar for marcosjp

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 …

Member Avatar for ArkM
0
243
Member Avatar for kerenLinux
Member Avatar for kerenLinux
0
123
Member Avatar for mammoth

[icode]system(d.c_str());[/icode] system() takes a const char*, not std::string

Member Avatar for William Hemsworth
0
79
Member Avatar for BattlingMaxo

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

Member Avatar for msk88
0
154
Member Avatar for Ancient Dragon

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

Member Avatar for R0bb0b
0
139
Member Avatar for dmanw100

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

Member Avatar for l4z3r
0
159
Member Avatar for nivea_jmd

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

Member Avatar for Salem
0
176
Member Avatar for vadan

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;} }; …

Member Avatar for Ancient Dragon
0
115
Member Avatar for newb1e

Vista moved the location of your home directory -- they are now located in c:\Users. Is that what you mean?

Member Avatar for newb1e
0
53
Member Avatar for c_ytsui

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]

Member Avatar for jephthah
0
172
Member Avatar for Kawasaki8

[QUOTE=Kawasaki8;675458]nevermind. moron has a brain afterall[/QUOTE] brain fart :)

Member Avatar for forumdude123
0
111
Member Avatar for Dave Sinkula

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 …

Member Avatar for GrimJack
0
610
Member Avatar for abhigame

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.

Member Avatar for jephthah
0
95
Member Avatar for SiRuS

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

Member Avatar for Ancient Dragon
0
166
Member Avatar for bajanpoet
Member Avatar for Ancient Dragon
0
47

The End.