|
Agreed. If application data is put there it deserves to be cleaned.
Steve
|
|
|
|
|
Well, ok, easy to move...
But the question still remains, how do you make sure those registry cleaners don't wipe out your important application data?
|
|
|
|
|
chasetoys wrote: ...how do you make sure those registry cleaners don't wipe out your important application data?
You can't.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi,
Yours app settings you should(\can) store in keys:
- general settings for all users:
HKEY_LOCAL_MACHINE\SOFTWARE\MYAPP
- user settings:
HKEY_CURRENT_USER\SOFTWARE\MYAPP
-----------
Mila
|
|
|
|
|
Hey good input.... couple of followups
1) So if I want to install my application to be accessible for *ALL* users, and specify that changes should be made once per user, and then effect ALL USERS, I'd put it in HKEY_LOCAL_MACHINE, but if I wanted user specific settings, I'd install it in CURRENT_USER, correct?
2) Does each user have their own 'Program Files' directory?
Thanks!
|
|
|
|
|
chasetoys wrote: 1) So if I want to install my application to be accessible for *ALL* users, and specify that changes should be made once per user, and then effect ALL USERS, I'd put it in HKEY_LOCAL_MACHINE, but if I wanted user specific settings, I'd install it in CURRENT_USER, correct
Yes.
chasetoys wrote: 2) Does each user have their own 'Program Files' directory?
No.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Ok, so when one user installs an application is it available to everyone on the WinXP machine? If not, does WinXP set the permsisions somehow to only allow the user who installed it?
If one user downloads & installs app A, then another user logs in and downloads & installs app A, what happens?
|
|
|
|
|
chasetoys wrote: Ok, so when one user installs an application is it available to everyone on the WinXP machine?
Sometimes yes, other times no. It all depends on the application's installation program.
chasetoys wrote:
If one user downloads & installs app A, then another user logs in and downloads & installs app A, what happens?
It all depends on app A's installation and what it does.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Generally, Windows from NT family were designed according to access rights. Every user has got his permissions for perform specific operations e.g. users from Users group don't have permission to (de)/installation.
It's lies in Administrator hands to configure operating system correctly.
-----------
Mila
|
|
|
|
|
Hi,
I've trying to detect code page of given string by DetectInputCodePage function of
IMultiLanguage interface. But this fuction does my application were crashed when jump to this function. Pls tell me while?
This is my code:
CoInitialize(NULL);
CComPtr<imultilanguage2> spMLang;
DetectEncodingInfo lpInfo[1000];
INT pnScores;
wchar_t * wzContent;
if (SUCCEEDED(hr = spMLang.CoCreateInstance(CLSID_CMultiLanguage)))
{
spMLang->DetectInputCodepage(MLDETECTCP_NONE, 0, szContent, &nlen, lpInfo,
npScore); // app crash here
}
Thanks,
CoUninitialize();
|
|
|
|
|
I've never seen this API before but the documentation states that the last three parameters are [in, out] parameters. You treat them as out only parameters.
Steve
|
|
|
|
|
Thanks for your suggestion, I've solved the problem.
|
|
|
|
|
Can you publish the fix? Message board etiquette dictates you should so others can benefit from the thread.
Steve
|
|
|
|
|
Correct it very simply.
CoInitialize(NULL);
CComPtr spMLang;
DetectEncodingInfo lpInfo[1000];
INT pnScores;//Incorrect code inmust be specify as size of lpInfo (INT pnScore=1000)
wchar_t * wzContent;
if (SUCCEEDED(hr = spMLang.CoCreateInstance(CLSID_CMultiLanguage)))
{
spMLang->DetectInputCodepage(MLDETECTCP_NONE, 0, szContent, &nlen, lpInfo,
npScore); // app crash here
}
CoUninitialize();
|
|
|
|
|
hello!
I would like to know if the urls entered in the IE can be captured.
I plan to make something like a firewall "check on the urls specified" and if requested for some specific site that is noted in the program,then it requests for an another site.how do i do this? any specific windows apis?
all ideas are welcome!
|
|
|
|
|
I need to make to socket connection to two differnt places with two different remote address and remote port. the question is if I could use the same local port for those connection.
lets say, local port 1250, and remote port 1251 for first connection and and 10000 for the second.
would it work?
Thanks for help.
|
|
|
|
|
I am new to MFC programming. Iam trying to create a dialog box that has to hold data that would run to 3 to 4 pages. I should be able to access all of them by scrolling(horizontal and vertical) the dialog window. I am trying this in a SDI application using VC++ 6.0 Can anyone help / guide me in this regard?
Thanks
|
|
|
|
|
Hi,
I would suggest you to use FormView instead of dialog. you can add controls to the view like a dialog and since its derived from scroll view, scrolling is added by default.
Bye,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
hey there.........thanks for the suggestion.
But as i SAId, i have just started to learn MFC's.
What is Formview? How do I implement this?
Can u help me out?
Thanks.
|
|
|
|
|
Hi,
Check this Form Views[^]
Bye,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
thathvamasi wrote: I am trying this in a SDI application...
Simply derive the view from CFormView . It's one of the last things that AppWizard prompts you with.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
HEY...
thanks for the help.
I tried using CFormView ...
but when I build and run, the main window or the dialog window doesnt show up. I must be missing some line..
i tried debugging but in vain......
any help appreciated.
thanks heaps......
|
|
|
|
|
I want to programatically launch all menus and the submenu items belonging to each menu using their short cut keys only.
e.g in wordpad programatically launch 'File' menu using 'Alt+F' key. once the 'File' menu is up and displayed we have to programatically launch all 'File' submenu items one after the other e.g submenu item 'New' using 'Alt+N' key next launch 'Open' submenu item using ''Alt+O' and so on.
I cld retrieve all short cut keys for menu and submenu items and have logged it into a file.i have extracted the shortcut key from each menu and submenu text using GetMenuString(). I plan to append it to 'Alt' to get 'Alt+F' and so on and use this shorcut key to launch each.pls suggest how do i go ahead from here??
i can take care of closing each window launched by the submenu item but launching menu and submenu items programatically with shortcut keys is posing a problem.
urgent help needed. Pls suggest me a sample code if any.
Thanks in advance.
Sincerely
Giftsana
Singapore
|
|
|
|
|
Hi,
I created a MFC doc/view application.
1. When the main window( the mdi ) is loaded it displays a empty chiled form. I don't want it to display anything.
2.Now I have dialog which i want to dock along the bottom of the parent window when it's displayed.
I am really enw and have done readings and stuff onlien but nothing seem to point in right direction.
Any pointers towards this?
Any help is appreciated
Thanks
|
|
|
|
|
hi ven,
for this approach follow this steps you will get.
1) in OnInitialUpdate(...) of the MDI Form call a
SendMessage(...,Functionname(...))/PostMessage(...,Functionname(...))
in the FunctionName(...) initiate the
Dialog Dlgname d;
d.DoModel(...);
thats it! you will get Cheers and You will get it.
good luck..
uday.
uday kiran
|
|
|
|