|
For a dialog-based app:
* Use SetWindowText of the main dialog to set the dialog's title - this text will also appear in the task bar
* Design two dialog resources, one 16x16, the other 32x32, use LoadImage to load them, then use the Dialog's SetIcon to set both the small and the large icon (the small one will be displayed as the dialog's system emnu, and in the taskbar. the large one will be displayed when Alt-Tabbing between apps, as EXE icon in IE, etc.)
There is no documented method (at least none I'm aware of) to show something else in the task bar than in the dialog title. However, there were one or two samples at CP showing how the Taskbar can be rearranged (it's really only a group of radio buttons) - they could have tips how you can customitze them.
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
What is the *real* purpose of this file and how to use it? Please tell me the secret (if somebody knows).
|
|
|
|
|
is there any function or idea which can monitor direcrory (delete, copy, replace, edit files and sub-directory) of windows 95?
thx
includeh10
|
|
|
|
|
One solution is FindFirstChangeNotification().
Kuphryn
|
|
|
|
|
you may want to go to amazon.com and looking up windows shell programming by dino espisito. They still sell it new on e-book
hey
|
|
|
|
|
When writing a MFC app (typically MDI type), how do people usually store the configuration options ? The samples I've looked at usually don't save them so you have to reset any option whe nyou restart the application.
Preferred methods or any to avoid ?
Thanks.
Elaine
The tigress is here
|
|
|
|
|
One solution is the registry.
Kuphryn
|
|
|
|
|
Registry is fine, but not the newest thing under the stars...
For "partially trusted" applications (kind of the .NET sandbox), there's Isolated Storage.
There was also a relatively quick way to serialize a class to an XML file in the Application Data of the current user - which might be the "modern" way.
[edit] damn! I'm just back from the C# forum - for good old MFC it's the registry[/edit]
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
You could always go with the ultra-modern INI file!
|
|
|
|
|
XML files are the best for saving configuration data!
|
|
|
|
|
|
After years of storing information in the registry, we are now standardizing on... ini files! The reason? MUCH lower support costs for our particular niche.
My company sells to schools and our products are typically run in networked situations. School networks
<gross generalization="">
1. Are run by sysadmins who have a poor understanding of their networks.
2. Are EXTREMELY concerned with locking down the system.
3. Often have some truly bizarre policies in place.
4. Often rebuild a standard working environment on every login.
We have found that our customers like being able to edit, copy and move a straight-forward text file and they can usually solve their problems themselves. With our old registry-based solution we spent enormous amounts of time trying to make our system support their (often bizarre) needs and then explaining the solution to them.
Paul Hooper
If you spend your whole life looking over your shoulder, they will get you from the front instead.
|
|
|
|
|
What is the best way to access large arrays of numberic values to use in separate class functions?
Thanks for any help in advance.
|
|
|
|
|
oops! fat fingered numeric.
|
|
|
|
|
Use vectors:
#include <vector>
using namespace std;
vector<int> a;
a.push(100);
a.push(200);
.
.
.
|
|
|
|
|
|
thanks for the reply!
Where would i locate this code so that it is accessible by all functions within a class?
|
|
|
|
|
how to get the registers - REGS in other compilers - in vcpp6.REGS is not even found in the msdn when searched!!
|
|
|
|
|
Try looking up the _asm keyword. If you are trying to connect assembly language code to a higher level language, lookup "calling conventions".
Software Zen: delete this;
|
|
|
|
|
The REGS structure was for 16-bit applications. Check out the _asm keyword as suggested by Gary. With embedded assembly, you can access the registers.
|
|
|
|
|
Hi
I have a set of characters i.e. [a,b] and i have to find out the number of combinations of length 4 i.e.
aaaa,aaab,aaba,abaa,baaa,aabb,abab,abba,baba,bbaa,abbb,babb,bbab,bbba,bbbb
The problem is that
The set can be of any length( n number of characters can be in the set) and words can be of any length( from 1 to n)
How can i find out the number of words of length n formed with the help of n characters ??
Any help will be appreciated
Thanks
|
|
|
|
|
This is a permutation problem. One solution is a loop.
Kuphryn
|
|
|
|
|
If you have n characters available and your word is length w...
The first character in the word could be anyone of the n available.
The second character in the word could be anyone of the n available.
The third character in the word could be anyone of the n available.
.
.
.
The last (w) character in the word could be anyone of the n available.
As each of these characters is independent, the total number of words can be found by
n*n*n*.......*n
or
n^w (n to the power w)
In your example, 2 characters and a word length of 4, the total number = 2^4 or 16 possibilities. You only listed fifteen - you missed baab.
BTW, you really should tell us who you are. I only just noticed that you are anonymous. I probably would not have answered if I had seen earlier.
Paul Hooper
If you spend your whole life looking over your shoulder, they will get you from the front instead.
|
|
|
|
|
Hi!
I recently use CHTMLEditView in vc7 to create a simple html editor. I modify the sample "htmledit" provide in VisualStudio. It switch design mode and navigate mode by the method "SetDesignMode". But when in the navigate mode, i don't know how to implement back and forward buttons just like the IE. I think it maybe very simple, but i don't find the right material describing it.
Any idea?
BTW, do you notice a class about insert table in the sample, but never be used? I think the writer of this sample try to implement a feature of inserting table into html, but fail to achieve it.
|
|
|
|
|
I meet a problem when making a multicast program these days.I first create a multicast receiver program and join a host group, and then i create a multicast sender program to send data to the host group.But the problem is if I send a packet with size larger than 28112 bytes, the receiver would not receiver it and if the size is smaller than 28112 ,it works ok.
I am really confused. Anybody who met similiar problem, please tell me your experience, any information is useful to me.Thanks very much!
To be better, better and better ...
|
|
|
|