you have some errors:
1) "Salestaxrate = .10;
Discountrate = .10;"
this variable have not type
2) in C++ values "Testvalue" and value "testvalue" are different;
3) operation '.' is't concatenate as it is in PHP
4) you must define value befor you use it
5) '\n' means beark line as ' ' in html and it is purt of the string
you cant write: "test string".\n you must write "test string\n"
6) use MSDN it will help you
I'm currently attempting to develop a simple owner-draw menu, and I need to determine the current menu font in order to return the correct string length via the WM_MEASUREITEM handler (I'm not using MFC).
Does anyone know of a way to do this via the WIN32 API?
im using CFileFind to search for certen file types (EG. .log .tmp .bak" the way i have it is after it finds a file it run another loop to check all the file types im looking for is there a better and fast way to check if the file found matches what im looing for? is there a way to put all the file types in a string and check it once for each file found instead of the loop? and im checking each file found against 2 other list a file exclue and path exclude list. as it is it takes about 6 mins to scan all of my harddrives.
its not just extensions im searching for for some ill find the whole thing like "readme.txt" for some i need to find just the first part like "readme" for the rest it will be the extension i have it where it breaks the word down from "readme.txt" to "readme" ".txt" and i check all 3 but it is very slow running the loop for every file found right now there is about 30 different things im searching for so for each file found the loop runs 30 times and there is 3 list so for each file and folder found the loop really runs about 40 times thats why i need a way to check all 30 at once.
Yes, you are right. I was just thinking about the situation where apply had been hit already, then later the OK button after no new changes were made. A second full refresh of the values seemed like it would be overkill but I guess now that you mention it, it seems silly of me to even worry about it and just do the refresh.
My quest to optimize is starting to cause me to waste time in general.
Sorry about the post and thanks for the wake up call.
Hi all. I am feeling very stupid. I cannot find any article/sample code showing me how to do a simple thing like using a CStatic groupbox in Visual C++ 2005. I am adding controls on top of a groupbox in the designer, but when running the application, the groupbox hides all the controls. MSDN is (as usual) of very little help. Anyone able to show me how to see the controls? When disabling/enabling the groupbox, how do you automatically disable/enable the controls inside it? Thank you.
You may have to set the groupbox control's Transparent property to true.
If the problem is Z-order, you can use Format/Tab Order (ctrl-D) and set the order of the controls,
making the groupbox earlier in the tab order than the controls within it.
Enabling and disabling the controls within the group box is done the same as with any other controls.
The groupbox is just a static control so it doesn't give you any special features for
working with the controls within the groupbox.
I have written a utility program using c++ that does some number crunching. To give access to the users, created a dll by wrapping member functions of this c++ class. I have successfully compiled (using VS2005) and used the dll.
Now I would like to make it available to public. However, the users of the dll may want to use it with differnt compilers (other than VS2005) such as VB, Borland C++, or Delphi.
What is the best way to generate .lib, .h, .pas (delphi), etc files. Any guidence please.