|
I need some help.using vc++ how i can able to hide the drives in my computer so that only D: should active one and others should be hide or inactive.how can i do that.please help me
|
|
|
|
|
sundar_mca wrote: how i can able to hide the drives in my computer so that only D: should active one and others should be hide or inactive.how can i do that.
CNMPDrivesClass[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have tryied the demo which u have given but it does not working properly.if i do it in registery it does not create any problem in the os.
|
|
|
|
|
in my case it worked.but if u have problem then u can do it do programitically.Use CRegKey for manupilating registry key
never say die
|
|
|
|
|
We are using VC6 and we use some common libraries on a shared path (both static libraries and Dlls with static linkage).
Normally i'd just leave the *.lib and *.dll file in the debug directory. I was able to build everything with that, but when I wanted to debug into the library, I had to rebuild the library. Obviously some files were missing.
Can anybody tell all the files which belong in the debug directory ?
Are there any files in the release directory, which should be in there ? (except *.lib and / or *.dll)
(End of short question)
Some of my thoughts:
I think I should leave all the *.pdb files in there.
But do I need the *.exp files ?
What about the *.obj, *.sbr, *.res, *.pch files ? Do I need them to debug ?
Any help is appreciated !
Bernhard
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
You should be able to debug a DLL or EXE posessing the soure code files, the PDB and the DLL or EXE files. Others you mentioned are intermediate files used during compile or link.
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
Hello,
I want to display automatically my application in OS language. I do not want to use satellite DLL. I would like to have all resource strings in several string table in one resource file.
Is it possible ?
Thank you,
Freg
|
|
|
|
|
Yes it is possible.
BUT..
I am just able to talk about VC6 / no Unicode builds, because this is what we use here.
We didn't had a problem with this so far.. It can be a little bit tricky with different codepages.
But we never had to include Asian languages. No clue if you are going to have problems with those.
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
-- modified at 3:54 Thursday 9th February, 2006
|
|
|
|
|
|
as he said.. insert the string table in the resource file. Translate the strings.
There are some programs out there which aid you in translating those files. But in general this is it.
I think the asked "Is it possible to do this?"
And I said: "Yes you can, as long as you don't use languages which need more than 1 byte per character"
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
yeah ok... i just understood more than he asked...
i thought he was asking for "how to do this...".
but tell me, ,as you already do it like this, could you explain a brief piece of code (considering we already have several resource string tables, and we already know how to load/display the needed strings) on how we can switch from one language to one other ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
Normally it takes the system preference's language. So you shouldn't need to worry about this. But you can change the behavior by hand when calling:
SetThreadLocale(MAKELCID(LANG_ENGLISH,SORT_DEFAULT));
This would force the program to use the English strings after the call.
One small problem you are going to encounter (at least in our setup):
If the strings are in a different codepage, you are not going to see the "real" strings out of this. But as soon as the computer is set up to correct codepage, you see the strings correctly.
If you'd use a unicode app, this problem should be solved (at least as much as I know.. never had the chance to try it).
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
Ok,
I'm going to try this solution.
|
|
|
|
|
one last question :
where to call SetThreadLocale() ? anywhere after OnInitDialog() ?
what are this macros (how are they defined) ? : MAKELCID() , LANG_ENGLISH , SORT_DEFAULT .
thanks for the prompt and concise answer...
ps: i don't have any visual studio installed, and am quite bored about msdn today, so here is why i ask all this to someone who seems to wqell know the subject...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
-- modified at 4:19 Thursday 9th February, 2006
|
|
|
|
|
We are calling it the InitInstance of the application. Then all the dialogs / views are set up with the correct strings.
If you want to change the language at runtime, you have to call this language first and then "refresh" all your views / menus whatever. (Set the item texts with the new strings from the resource table)
(But this whole process depends on the structure of the program)
More information on SetThreadLocal
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_52lh.asp
Regarding your exact question:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_7qck.asp
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects." Roger Wright http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx
|
|
|
|
|
Hello,
I am new to Visual C++ (not to C++ though) and I am trying to draw a curve with GDI+. Since I kept getting the same linker errors, I made a new project in which I only included <windows.h> and <gdiplus.h>.
The result: first this warning: (all linker errors)
<br />
warning LNK4248: unresolved typeref token (0100001A)for 'Gdiplus.GpCachedBitmap'; image may not run<br />
And then several errors of this type
error LNK2028: unresolved token (0A000049) "extern "C" enum Gdiplus::Status __stdcall GdipCloneImage(class Gdiplus::GpImage *,class Gdiplus::GpImage * *)" (??1PrivateFontCollection@Gdiplus@@$$FUAM@XZ)<br />
I have installed Visual C++ 2005 Express and the Windows Server 2003 SDK and added the path to the VC++ Directories.
Running on XP with SP2
Thanks in advance.
Best regards,
Jan Timmerman
-- modified at 3:09 Thursday 9th February, 2006
|
|
|
|
|
You probably forgot to link to the GDI+ library. I don't which one it is, I suppose it is something like Gdiplus.lib (you have to check that). Then, in the property of your project, in the linker tab, you need to add this library into the input libraries.
|
|
|
|
|
Ok, it builds. Only thing that remains is the warning.
Thanks for the help!
|
|
|
|
|
Hi All,
I have the problem about focus when execute a new program from my application (I used SHELLEXECUTEINFO to do that). I expect that focus must remain on the new program until it is closed. Current if I run a new program and it does not go full screen I can touch the parent screen and then I have no way to get back the program.
Please help me. Thank you very much
|
|
|
|
|
Nguyen Thi Thanh wrote: Current if I run a new program and it does not go full screen I can touch the parent screen and then I have no way to get back the program.
Pass SW_MAXIMIZE in nShow parameter
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: Pass SW_MAXIMIZE in nShow parameter
In this case, I can click on restore button of window and I can still touch the parent screen. I mean the end user does not have no way to transfer to another screen until the new program is closed. I want the new program running as top-level window.
Thank you very much.
|
|
|
|
|
Hello,
I copied my VC6 project to another PC, but when opened there it prompted some .h file were not found. I checked and found at least the include files content under Tools/options/directories is different. Anyone knows how to make these settings on different computers to be the same, instead manually add in each entry?
I tried the following method:
http://support.microsoft.com/kb/q247005/#appliesto
and backup the content under HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0
then recover to another PC. But the include files did not change after restart.
Thanks!
Thomas
|
|
|
|
|
In VC6 they are stored in the registry under HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0
Check this link if it helps you. link[^]
In VC.NET 2003, they are stored somewhere in
C:\Documents and Settings\ as a file named VCComponents.dat
I dont remember the exact location but search it and you will find it.
There are two types of roads in our country. One
is under construction and the other is under repair.
|
|
|
|
|
Hello everybody, sorry to disturb you. I saw your post in the forum. I need a C/C++ programmer with Digital Signal Processing (DSP) knowledge. My software will be done in MFC dialog-based. The software will generally operates as follow. Here is the basic idea:
Waveform is displayed real-time in time domain when speech is spoken into microphone.
Analysis will be done on the waveform and the time-domain details will be displayed on a dialog box. We may need to ADC,remove DC offset, windowing, FFT, power/amplitude spectrum, filtering and IFFT. I will send you more details if you are interested.
I urgently need a programmer who has experiences in the above software. This is not a spam or junk mail. Please email me at isabella_1202@yahoo.com. You can either email, pm or reply here. Do inform me the fee you require. I have been struggled for many months, living in depresses of searching on how to solve my problems. Please help, urgently need. Hope to hear from you soon, please. Thank you.
regards
isabella
|
|
|
|
|