|
hi
i need to insert some string value in registry key. any on help to me.
thanks in advance.
|
|
|
|
|
Have a look at the RegOpenKeyEx and RegSetValueEx Windows API functions.
Hope that helps
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
I make a project then I took *.exe.When I wanted to run this project on a computer which has no visual studio.it asked me *.DLL .How could I run my exe on other computers ?
emroz
|
|
|
|
|
you need to take install pack for ur package using install shield or any application like this. or if u develop this project in vc++ means need vc++ in the other machine also.
|
|
|
|
|
I installed IntallShield but I couldn't create setup file.
I created a media which is 2.19 MB.then I setup this file on another computer but there was same problem which was about *.dll.I think I don't know how to use InstallShield.What should I do?
emroz
|
|
|
|
|
Well, you have to know what libraries you need to execute your app. Look, if you developed your app with VC++7 (.NET) and you programmed it with MFC, you'll need at least mfc70.dll as well to run it in other computer, just copying that file (and others that you may need, it depends on what did you use) in the app folder.
I hope this help you !!
MaestroProgramador.Com
Where every source code is loved like a girl.
|
|
|
|
|
Which values does the * in *.dll take? I.E. what libraries are you missing?
Emre Zorlu wrote:
I think I don't know how to use InstallShield. What should I do?
Maybe its time for some reading?
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
I assume that the computer asked for a name like mfc42d.dll?
This is the debug version of the mfc.
You need to make a release build on your computer (see top toolbar or menu 'projects/configurations'. This one will then work with the non-debug version of the mfc, whose dll is available almost everywhere.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Or you can have your project built in static MFC library linking mode.
If the MFC library is the only library you are using.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
|
Some people just don't take to time to search around a bit before asking already-answered questions, eh?
The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices.
[Roger Wright on stupid people]
We're like private member functions
[John Theal on R&D]
|
|
|
|
|
Nah, I don't mind if they didn't know about the FAQ (Chris took the link to it off the message boards). If they keep asking questions that are in the FAQ, then...
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Kosh reminded me of some of the prima-donna programmers I've worked with. Knew everything but when you asked them a question; never gave you a straight answer.
-- Michael P. Butler in the Lounge
|
|
|
|
|
My OS is Windows 2000 with the Microsoft multilingual add on. I have a simple non-unicode windows MFC app that contains one standard property sheet with three pages on it. The property pages are displayed fine when I am using the "English" language.
I now change my language to use "Chinese (standard)". When the sheet is displayed, the pages inside the sheet appear with the wrong font and are oversized, with most of my controls not visible off the edge of the property sheet (the sheet does not resize to accommodate the oversized pages). Other standard dialogs appear OK.
I think this may be some kind of windows bug. Has anyone encountered anything like this before? Any ideas on a solution? No matter how hacky...
|
|
|
|
|
how can i add unicode support and arabic support in visual c?
|
|
|
|
|
I just converted a simple APP to unicode and I had to change the following on my settings dialog:
1) Add ",_UNICODE,UNICODE" to the "Preprocessor definitions" edit box on C/C++ tab.
2) Add ",_UNICODE,UNICODE" to the "Preprocessor definitions" edit box on Resources tab.
3) Change my "Entry-point symbol" to "wWinMainCRTStartup" on the Link tab.
Then, whenever you use strings in your code, you have to use the unicode functions and the "_T" macro and all that.
Not sure about Arabic support specifically...
|
|
|
|
|
And use TCHAR*, CString , wchar*, wstring, wstringstream throughout.
no char*, string as it is meant for MBCS or system without UNICODE.
Hope this helps
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
how to get the type of the system registry of a particular value using c++..
i use RegOpenKeyEx to open reg and RegQueryValueEx to get the value of the subkeys..
how to get the data and type of that value?
ranjani
|
|
|
|
|
how to get the type of the system registry of a particular value using c++..
i use RegOpenKeyEx to open reg and RegQueryValueEx to get the value of the subkeys..
how to get the data and type of that value?
ranjani
|
|
|
|
|
|
ranjjj wrote:
how to get the data and type of that value?
You seem to have answered your own question. RegQueryValueEx() is used to retrieve both the type and data for a specified value.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
for example to get the type of HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup
..what hould be the parameters to be passed on to thef unctiona dn chow should i use it in my code?
ranjani
|
|
|
|
|
DWORD dwType;
RegQueryValueEx(HKEY_CURRENT_USER, "SYSTEM\\CurrentControlSet\\Control\\BackupRestore\\FilesNotToBackup", NULL, &dwType, ...);
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
for example to get the type of HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup
..what hould be the parameters to be passed on to thef unctiona dn chow should i use it in my code?
ranjani
|
|
|
|
|
Hello people,
i am working on a dialog-based mfc app. I added a member-variable of type CMenu to the CDialog-derived class, so that a menu is available. I use the ON_UPDATE_COMMAND_UI makro in the message-map of the Dialog to enable/disable menu-items. But the corresponding menu-item isn't drawn in grey color as expected when it is disabled. Why? Does someone has a clue how i can fix this?
Best regards
tabor25
|
|
|
|
|