|
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
|
|
|
|
|
hi,
do this,
CButton *ptr = (CButton *)GetDlgItem(IDC_RADIO1);
if(ptr->GetCheck()== true)
{
AfxMessageBox("I am Checked");
}
Uday kiran
|
|
|
|
|
Instead of comparing CButton::GetCheck() with 'true' use BST_CHECKED or BST_UNCHECKED.
Amar
|
|
|
|
|
SandhyaSri wrote: how to check which radio button is selected.
In continuation with Tox and Naveen.. don't forget to check Auto Check box, other wise these radiobox will behave like CheckBox
"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
Support CRY- Child Relief and You
|
|
|
|
|
|
Is there a way to toggle the sunken attribute for a static text box using code? I tried to find a way myself but could not figure it out.
"To an optimist the glass is half full.
To the pessimist the glass is half empty.
To the programmer the glass is twice as big as it needs to be."
GC13: "Mature-Ages 16 and up. 'your mature, right?'"
FARGORE: "no, but I am over 16."
|
|
|
|
|
|
In my dialog class i wrote OnKeyDown function,but the control does not go to that code.I used WM_KEYDOWN in classwizard,and than i write code.
Why its not going?
Anu
|
|
|
|