|
ceejeeb wrote: Do you know any method of resizing these frames at the moment they are just being displayed at the size they are captured.
I'm not sure I understand the question. You want to resize the displayed (preview) frames
a different size than the capture size? If so, which renderer filter are you using?
Mark
|
|
|
|
|
I want to work directly with modem(no with COM port). I want to send AT command and get replay from modem directly in mfc
|
|
|
|
|
not sure, but check TAPI.. maybe there's a way to send at commands.
Don't try it, just do it!
|
|
|
|
|
I am a beginner in MFC. I wanna know if we can know if a remote system has logged in.Could we get the time of login.
I humbly request the one who has some idea about it to kindly respond me!
Thanks in advance!
|
|
|
|
|
see if this[^] helps
If you think you can than you can, if you think you can't you are right.
|
|
|
|
|
Use NetWkstaGetInfo with level 102; this will returns a WKSTA_INFO_102 structure (if succesful).
If wki102_logged_on_users
Specifies the number of users who are logged on to the local computer.
is greater than 0, you have users logged on locally.
Nuclear launch detected
|
|
|
|
|
Could any one help me how can i do that how can i generate
random 12-bit unsigned integer
random 12-bit signed integer
..thx.
|
|
|
|
|
12 bits or bytes? how (in what) are you going to store the value?
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
Actually I want to generate 12 bit unsigned int and 4 bit signed int and stores in 2 bytes(unsigned int) which is as follow.
2 bytes unsigned int = 12 bit unsigned int*10^(4-bit signed int)
thx
|
|
|
|
|
long bit12 = (long)rand() + (long)(rand() << 8);
This is wrong.
-- modified at 9:07 Saturday 6th January, 2007
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
thx but it gives number -424735897 which is not 12 bit
|
|
|
|
|
crap my mistake! that makes an 32bit random number
the code you need is
int value12bit = rand() & 0x0FFF;
Sorry bout' that
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
no prb thanks..;) but i am bit confused that integer is of 4 bytes but how can i get 12 bit from this..it would be nice if u plz explain the same.
|
|
|
|
|
MSDN wrote: The int and unsigned int types have the size of the system word. This is two bytes (the same as short and unsigned short) in MS-DOS and 16-bit versions of Windows, and 4 bytes in 32-bit operating systems. However, portable code should not depend on the size of int.
If you need a 16bit integer use the __int16 data type
to get 12bits from an int you can
int bits12 = intVar & 0xFFF
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
I am asuming that your 4bit value is also comming from and integer so ...
int total16 = (bit14 & 0xFFF) + ((bit4 & 0xF) << 12);
that should add your 2 values into one.
The & operator will mask the left value with the right.
example
int value = 151;
int value2 = value & 0xAA;
value2 = value2 >> 1;
Hope this is what you needed
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
how can we track a webpage title and website address(Link)? If anyone of you know, i humbly request you to reply me!
thanks in advance!
|
|
|
|
|
ShaluMalu wrote: how can we track a webpage title and website address(Link)? If anyone of you know, i humbly request you to reply me!
what do you mean by track, please explain further.
If you think you can than you can, if you think you can't you are right.
|
|
|
|
|
ShaluMalu wrote: track a webpage title and website address(Link)?
Can you re more specific
|
|
|
|
|
Hi all
I have a group of buttons in a dialog resource . I want them to appear behind a bitmap . When the bitmap is loaded with LoadBitmap() and when WM_PAINT is not defined then the buttons are invible but they work when we click on the bitmap . Problem comes when I stretch the bitmap by calling StretchBlt() in WM_PAINT . This time the buttons appear above the bitmap !
I tried calling ShowWindow(hButton,SW_HIDE); But this call disables the button itself .
So I tried calling EnableWindow(hButton,TRUE); to enable it in invisible mode - but to my surprise this call also does not enable the button ...I do not know what I am missing ...
Can anyone tell me pls ?
redindian
|
|
|
|
|
This must be the weirdest thing i heard, why do all this, why don't you handle the dialog's OnLButtonDown and define some rectanges ...
...OnLButtonDown(...)
{
.....
if(m_rcArea2.PtInRect(&pt))
OnArea2();
}
something like that.
If you think you can than you can, if you think you can't you are right.
|
|
|
|
|
can anyone help in using the Slider control in win32. I have the handle of the dailog item. I mean The slider control on dialog. and now I want to do SetRange and SetPos.
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
To set range:
BOOL fRedraw = TRUE;
WORD Min = 0;
WORD Max = 100;
SendMessage(hwndTrackbar, TBM_SETRANGE, (WPARAM)fRedraw, (LPARAM)MAKELONG(Min,Max));
To set position:
BOOL fRedraw = TRUE;
LONG Position = 50;
SendMessage(hwndTrackbar, TBM_SETPOS, (WPARAM)fRedraw, (LPARAM)Position);
|
|
|
|
|
I wrote a timer function in which TextOut() fn draws currunt time on the dialog for every second. But the text background is becoming white.I want the background color to be remained as dialog color.
How to do this?
Thank you.
KIRAN PINJARLA
|
|
|
|
|
Rather try using the DrawText() function or if you want to use the TextOut() function use SetBKColor to change the background color of TextOut()
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
You must set backcolor mode to TRANSPARENT : pDC->SetBkMode(TRANSPARENT);
but it will draw the text on the previous one, so you must erase prevoius one area each time you want to draw your new text(in your timer function).
For solving this problem one way is to use FillSolidRect() method to erase it, but first get your dialog color.
hope this helps
|
|
|
|