|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Anybody know how to play a flash movie (swf files) using shockwave flash object
The dialog is NOT MFC, it is ATL composite control dialog
Please share code or give some example of which COM interface i should use and which are header files to be included
Thanks
Anil
|
|
|
|
|
|
Thanks. But what I need is bit different. I have ShockWave Flash object in my ATL dialog. I have to use IShockwaveFlash interface and do the same. So that i can use the control for playing flash movie ( As we use IWebBrowser2 interface to web browser control)
Can u help
Anil
|
|
|
|
|
The default tipinfo of Printers are that: status: ready
Document: 0
How could i change the tipinfo to my own?
I tried the ShellExtGuide3(txtinfo)[^], and change the script file
txtfile to Printers, but it can't work.
what should i do?
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
-- modified at 2:29 Friday 7th July, 2006
|
|
|
|
|
Could someoney help me or give me some tips?
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
|
|
|
|
|
|
|
Sorry, but i do not know how to use it. Is it possible that anyone can show me an example?
Thanks a thousand
Best Regards
|
|
|
|
|
Hey all,
This is again inrelation with serial communication.
I have establised a serial communication with Rabbit 3000 -an 8 bit microcontroller.
I need to send a packet from the PC to the microcontroller at regualr intervals, say every 'x' secs.
How do I do it?
|
|
|
|
|
thathvamsi wrote: I need to send a packet from the PC to the microcontroller at regualr intervals, say every 'x' secs.
is WM_TIMER message and related thing is of any help!
"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
|
|
|
|
|
thanks for ur response.
I cannot understand how WM_TIMER works.
Can you give me some code snippet that would help me.
For every x secs, there has to be a packet sent to the microcontroller.
|
|
|
|
|
|
From the MSDN:
<br />
CWnd::OnTimer<br />
The framework calls this member function after each interval specified in the SetTimer member function used to install a timer.<br />
whitesky
|
|
|
|
|
|
Hi all,
I am drawing a Circle in mouse clicked event in CDialog. and when i move the mouse if the mouse entered inside the Circle the Mouse Icon must change to CROSS ie IDC_CROSS or else it should retain its original behavior (ie) IDC_ARROW.
I want to detect that wheather the mouse is inside the Circle or Not to change my Mouse Pointer.
Please help me out. Give a small program using IntersectRect(...) API.
uday.
|
|
|
|
|
I would use a region (CRgn class) that corresponds with the circle and use CRgn::PtInRegion() to check if the mouse is in the circle.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Hi,
Please give a bit of code so that i can use it. its very urgent.
thanks and regards
uday.
|
|
|
|
|
Use highscool math (Pythagoras' Theorem).
i.e.
bool IsPointInCircle(int cx, int cy, int cr, int x, int y)
{
int xp = x-cx;
int yp = y-cy;
return (xp*xp+yp*yp)<=(cr*cr);
}
cx = circle center x.
cx = circle center y.
cr = circle radius.
x = x coordinate of point to test.
y = y coordinate of point to test.
Steve
-- modified at 2:02 Friday 7th July, 2006
|
|
|
|
|
Hi steve,
Any method like CRect.IntersectRect(...) usage is used please let me know any usage.
uday.
|
|
|
|
|
As mentioned above you can use the CRgn class:
CRgn rgn;<br />
rgn.CreateEllipticRgn(left, top, right, bottom);<br />
<br />
if (rgn.PtInRegion(point))<br />
{<br />
...<br />
}
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
I have declared an array of size 200 for a structure with character as well as integer members.I want to know how to reinitialize the array values to NULL in such a way that the old values should get deleted.
Eg:Group grp[200]; where Group is a structure.
|
|
|
|
|
Can't you just use memset() or ZeroMemory() ?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I need to copy all content of one projevct to another so to modifier what i need.
|
|
|
|