|
The reason I am asking this question in the first place is because I have three different languages in all the projects, libraries and dlls. That is why I have string resources in libraries.
Chris
|
|
|
|
|
The better way to handle that case is to make each language its own resource dll and to allow the user to select which language they want to use (or detect what Windows is using when the application starts up). Then you would just load that DLL. There is an example of how to do that in an article on this site (I believe it is in the DLL section).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
It almost sounds like you need AFX_MANAGE_STATE(AfxGetStaticModuleState()) at the top of the routine that calls LoadString() . This is just a guess, however.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
This looks very interesting. I have never used AFX_MANAGE_STATE(AfxGetStaticModuleState()) before. I am not useing LoadLibrary() anywhere in the projects. I just put the library location in the linker of Microsoft Visual Studios 6.0. Also I wonder if AFX_MANAGE_STATE would even work because the description of this macro is "Call this macro to protect an exported function in a DLL." I am not sure if this would work with a library or not.
Chris
|
|
|
|
|
chris175 wrote: I am not useing LoadLibrary()...
I meant LoadString() .
chris175 wrote: Also I wonder if AFX_MANAGE_STATE would even work...
It very well may not. Your problem just sounded like one that the macro was designed to resolve (e.g., a DLL and an EXE both having a like-numbered resource, but the wrong one gets loaded).
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Does anyone know of a sample MS Visual C++ program that takes raw black and white video data (saved as a binary file) that is transmitted at 3 frames/sec and shows them on the screen at the same rate?
if not, is there an article that explains how to do this in Visual C++?
thanks in advance.
-- modified at 10:10 Wednesday 2nd August, 2006
Kitty5
|
|
|
|
|
|
If (1) your "black & white video data" is actually "8-bit grey-scale" (which is what one might expect from a video camera), and (2) the image size is fixed (number of pixels horizontal & vertical is known), it could be quite easy.
Create a window to use to display the images
Create a bitmap header.
Set the bitmap parameters (number pixels X & Y, pixel depth, not using pallette, etc)
Read the binary file into some area in memory
Set the bitmap header "data" parameter to point to your data
Use SetDIBitsToDevice to display it in your window.
Repeat the last 3 steps until stopped
If the video has unusual attributes (for example, it is 12-bit greyscale from a medical imager, or if it is in columns not rows) you will probably need an intermediate step, to create a bitmap which Windows understands.
|
|
|
|
|
Hi all,
Ok, this may sound like i'm repeating myself, but does someone know how to validate just the username on the domain, to check if it is a valid username found on the domain.
I know about the funcion logonUser(), but the function doesn't work without a password parameter.
Plz help
Thanx
Regards
Programm3r
|
|
|
|
|
Try NetUserGetInfo() .
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I newly added one button in my dialog as CConfigure class.
When i double click the button the member function came,then when i click OK it shows the error as
"Error while updating files(Confiugre.cpp,configure.h) for CConfigure class"
Whats the meaning of that?The ID and function is get placed in classwizard...but i cannot code for that function..What can i do?
Anu
|
|
|
|
|
try deleting the clw file in the project folder and recreating it( by pressing ctrl + W it will be created again).
And even if there is no classwizard, u can Manually add the message map entry and the function
nave
|
|
|
|
|
hi,
i hv a small problem...i m using ClistCtrl, and to launch a file open user has to double click..now even if the user clicks on the white portion where name of file is not written, still the file is opened. reason being that the ItemRect is the complete Rextangle and if the size of name of file is say 2 chars then the rest portion is white in the Bounding rectangle, but when clicked the item is identified and the file opened. for the user it becms difficult if there r multiple columns n hence he thinks that the area between the columns is white so does not belong to the item...
Can anyone suggest me a way out....
Thanx in advance..
|
|
|
|
|
Use CListCtrl::HitTest(..) with LVHT_ONITEMLABEL flag
-- modified at 8:02 Wednesday 2nd August, 2006
the flag is a out parameter and you have check the flag as (LVHT_ONITEMLABEL & flag)
Do your Duty and Don't expect the Result
|
|
|
|
|
Hi, I saw in one application,i debuged that.
When the control goes to SendMEssage(WM_KEYDOWN,49,0) in one class after executing that class the controls goes to OnKEyDown() in another class,there they pass that
Case 49:
CString Str + ="1";
I dont know how the controls goes to that class automatically..for that particular WM_KEYDOWN.
It may be a silly question but i need that.
I am going to do this in my appl.
Anu
|
|
|
|
|
|
Hi,
Is there any win32 api to check whether a process is running or not by giving the process name ?
Thanks,
kk_mfc
|
|
|
|
|
We have a function GetModuleBaseName(...) which gets the process names which are running currently in our system by putting it in a loop. From that we get the name of the process and we can check that name with our process name and know the status.
KIRAN PINJARLA
|
|
|
|
|
kk_mfc wrote: process state
Sender: kk_mfc
IMHO CreateToolHelp32SnapShot() can help.
To enumerate the heap or module states for all processes, specify TH32CS_SNAPALL and set th32ProcessID to zero.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
There's also EnumProcesses() .
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
My actual problem is I can show an active x of NetMeeting Dail-pad on a web page using.
<object id="NetMeeting
CLASSID="CLSID:3E9BAF2D-7A79-11d2-9334-0000F875AE17"">
<param name="MODE" value="Telephone" />
Can I do anything such as above in a dialog using this 'CLSID' to get Netmeeting Dial pad.
Please help. Please reply whether 'yes' or 'no'.
KIRAN PINJARLA
|
|
|
|
|
Hi,
I am working with radio buttons.My doubt is ,when the "Group" property is selected for the first radio button , how to check which radio button is selected.
Thanks in advance
Sandhya
|
|
|
|
|
|
Create a member variable(of type int) for the first Radio button. so when u call
UpdateData( TRUE ); u will have the checked radio buttons index in that variable.
nave
|
|
|
|