|
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 ...
|
|
|
|
|
I have used the hashtable in java but I want to use the same functionality in vc++.
What exactly i want is that I want to use "192.168.2.61"IP's as my keys and Macs "00:50:8D:39:61:E1" as my items. So that I may be able to insert(put) the item(Mac) w.r.t ip(key) in the table and get it back when is needed, so I may be able to manage my routing table.
Please help me.
Reply me soon
|
|
|
|
|
CMapStringToString mYmAcMaP;
mYmAcMaP[_T("192.168.2.61")] = _T("00:50:8D:39:61:E1");
|
|
|
|