|
Hey Guys,
Quick question...
I am using WMI method win32_product::install to install a software(VC++). But it doesn't wait for the installation to complete.
Is there any way to execute this method and wait till it is over? Thanks in advance...
-- Varun
|
|
|
|
|
Hi ,In program somethings of MFC wrote In registry,like Toolbar ,menu,and so on,I want to clean Mfc Toolbar info from the registry,in order to switch version and load different toolbar in different version,How to do it,I use SetRegistryKey(TEXT("Myprogram")),HOw to do it,how to clean the toolbar.
Thanks
|
|
|
|
|
|
Are you referring to the keys/values that are written to HKCU\Software\<company>\<product>\Workspace?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
|
Yes,I wrote it in HKEY_CURRENT_USER\Software\Test\workspace,In workspace,there so many infos,like MFCToolBarParameters,MFCToolBar-593980,MFCToolBar-59392 ,MFCToolBar-169 and so on,I don't know delete what
to only delete toolbar.
|
|
|
|
|
Have you looked at CMFCToolBar::RemoveStateFromRegistry() ?
I ran into this same issue about a year ago. Try searching for "cmfctoolbar registry" and see what comes up.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
I have Microsoft Visual C++ 2008. It was a free download.
It refuses to access .rc (resource source-form) files, and thus I must edit my .rc files separately with a text-editor.
Am I right in thinking that I must pay to get a copy of Visual C++ that can edit .rc files? Please where to get such a copy? (I am in England.)
What changes have happened to Visual C++ between the 2008 version and now?
|
|
|
|
|
The free edition of Visual Studio does have a resource editor.
It however does not support MFC or ATL.
So if you're trying to edit an MFC based on ATL based project, the resource editor would fail to load.
The latest version of Visual Studio is 2012 and it contains a lot more features than 2008.
You can buy it here - Buy Microsoft Visual Studio 2012[^]
|
|
|
|
|
Thanks. For Visual C++, at the link that you stated I found links to:-
* Visual Studio Professional 2012 (not free)
* What seemed to be a free download trial version of Visual Studio Professional, but trying to download it got merely a 995-kilobyte file vs_premium.exe .
Please what is the difference between these two versions?
|
|
|
|
|
It is probably the web version.
It will download the rest of the components from the web during install.
|
|
|
|
|
Anthony Appleyard wrote: It refuses to access .rc (resource source-form) files, and thus I must edit my .rc files separately with a text-editor. You get what you pay for, and in this case since it's free you don't get a resource editor. I find that I can manage quite well without one, although creating dialogs can be a little slow. If you want all the features of Visual Studio, including MFC, ATL etc then you need to buy one of the professional editions.
|
|
|
|
|
The Visual Studio C++ Express Editions have no resource editor (as far as I know).
Visual Studio 2012 have a more updated C++ compiler, it contains many features of the new standard ( C++11[^]).
Veni, vidi, vici.
|
|
|
|
|
> The Visual Studio C++ Express Editions have no resource editor (as far as I know).
Before I install this current version, will I have to unintall my Visual C++ 2008?
|
|
|
|
|
|
I just now tried to install the current free-download Visual Studio C++ Express Edition, and it refused, saying that it needed a later version of Windows than the version that I have (Windows Vista).
|
|
|
|
|
|
Yes, you need Windows 8 for using Visual Studio 2012 .
However you may install Visual Studio 2010 on your OS .
Veni, vidi, vici.
|
|
|
|
|
Visual Studio 2012 runs on Windows 7.
|
|
|
|
|
True, it runs on both Windows 7 and Windows 8. However it doesn't run on OP OS.
Veni, vidi, vici.
|
|
|
|
|
You could keep your ide and simply Google for resedit which is a compatible program that let's you edit resource files for visual studio projects. It is a bit tedious, but is a viable workaround which saves on a reinstall of visual studio, and you don't have to go messing with the project conversion wizard which pops up when using newer versions of v.s with older project files.
|
|
|
|
|
So far I have been looking in the manual and editing the .rc file in a text editor.
|
|
|
|
|
Continuation of previous thread, now that its topic has changed. With thanks for your advice, and I apologise for any misunderstandings.
I am writing a new program (named rebrmasks), using matter from a similar older program (named chekobjp_vc) that I wrote and it reached its final form in September 2009.
rebrmasks is to work on user-created character information files in my copy of the CGI package called Poser, and thus it must work on files in the C: area.
Link here to the Wikipedia page about Poser
(chekobjp_vc checks .obj file pointers. Here an .obj file is a map of vertexes and polygon faces in a CGI model. I adapted it from an older version that I wrote for my old Borland C++ 5.1 compiler.)
(rebrmasks is to add 2 more alternate-geometry links to rebreather diver CGI models' fullface masks. I have made CGI models of scuba divers and frogmen -- for free download, not for money.)
I find that rebrmasks refuses to obey the function rename(,) to rename a file :: errno says "permission denied". But chekobjp_vc, which is very similar, renames files in my C: area correctly.
When I am using Visual C++ to work on my rebrmasks program, please, is there something which I can reset to tell it to compile a program which has the privilege to move files in my C++ area?
modified 21-Jan-13 1:22am.
|
|
|
|
|
maybe your program have some left open pointer to this file?
an opened file can't be renamed in windows!
My programming get away... The Blog...
Taking over the world since 1371!
|
|
|
|
|
I just found that I had fopen()'ed the same file twice without fclose()'ing it between. The offending rename(,)'s now work OK. I am sorry to take up so much of your time.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I just now inserted into my program this instruction:-
i=rename("C:\\Poser4\\Runtime\\Libraries\\character\\Divers\\Divers_rebreathers\\CDBA\\miaow.txt",
"C:\\Poser4\\Runtime\\Libraries\\character\\Divers\\Divers_rebreathers\\CDBA\\wuff.txt");
to rename a file which I had just created and the program never opens it. And the rename went OK.
The file that I was trying to rename it before :: I had fopen()'ed it in read mode, and read from it, and then fclose()'ed it; after that I tried to rename it, and that rename was refused.
modified 21-Jan-13 6:14am.
|
|
|
|