|
Hai all,
I am uncleared with the logic used in the OnprepareDC() and OnDraw() functions in the the view class of the DRAWCLI sample application from microsoft msdn samples.
Can any one explain me.
Thanks,
Arun Chakaravarthy
|
|
|
|
|
HI,
I have captured the Video using VC++ and DirectShow.
in ASF fromat.
Now i want to send it on on Network ... (LAN) to other Computer ..
if i will be able to send it ,,, then i will recieve it.
what r the ways (solutions) ...
any idea , help , sample etc.
waitng
thanx
|
|
|
|
|
Client/Server sockets?
and
I believe Microsoft® Windows Media is Content that can be distributed by network streaming, downloading, and progressive downloading. (from MSDN)
|
|
|
|
|
I know it is by Sockets and client\server or peer to peer approach is used
I already saved it in ASF (WMV) format.
i think to ways on to transfer a grabed picture quickly.
or to send a viceo buffer.
But who can Buffer a video ( live preview ) or if
i send a grabbed pictures so in wt format should these be. i think a fast processing is required to grabb and send a picture quickly that shows a continous motion .
any idea or details
plz
waiting
thanx
|
|
|
|
|
Visit avphone home:
http://www.banasoft.net/AVPhone.htm
|
|
|
|
|
Hai all,
I am created Dialog Bar with buttons in Win CE, I loaded Bitmap on the button,It is placed on the left side of the client area, whenever the movement of the mouse occurs on the particualar coordinates the dialog bar displays with its buttons. It displays so nicely, but the mouse move event donot recognize the buttons on the dialog bar. It recongizes only the client area not the dialog bar.
DARWIN PAUL RAJ
|
|
|
|
|
Hi,
Im new to windows programming.
While working out with scroll bars I'm facing a problem.
In my createWindow API I havegiven the WS_VSCROLL flag, and so the window that appears has the vertical scroll bar.
Now to this main window I have added some 100 child windows one below the other (window class = STATIC) starting a Y-axis positions 0, 100, 200, 300 and so on. Now since I cannot see all the 100 child windows.
But if I click on the vertical scroll bar also, it does not work.
The scroll bar does not work at all.
Shud I do something else in addition. i.e. should i handle the vscroll click messages. If so what shud be the code in my message handler for the same ? I guess I do not have to do some complex mathematics ?
Many Thanx
Kiran
|
|
|
|
|
From my experience with working HWNDs and scroll bars, I have always had do something like the following :
- when a new child is created, I had to calculate the rectangle of my TOTAL window (even the part I can't see)
- using the part I can see, I can calculate the range of the scroll bar and set it :
SetScrollRange(hWnd,SB_VERT,0,300,TRUE);\
- then I would handle the scrolling, and call MoveWindow.
I believe that is what I do at home when I'm handling
some of the drawing and scrolling myself.
|
|
|
|
|
Hello,
I want to call a particular topic (HTML page) of help (HTML Help) in a tabbed dialog box in MFC. I am not aware of MFC much. Where is the "Help" button in the dialog? Its not there in the dialogs created in Dialog resources. Has anyone implemented such thing? I want the ID of the help button so that i can call the corresponding help of the dialog box. If possible please provide me with example program.
thanks
Regards
Priya
|
|
|
|
|
Are you using a CTabCtrl or a CPropertySheet ? I've not ever used the former, and the latter gives you a working Help button.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
-Is there something that I can do in C and not in C++?
|
|
|
|
|
I believe there are several things you can do in C++ but not in C.
The most obvious being the use of Classes (inheritence,virtual functions etc).
|
|
|
|
|
What did you mean by that? Application programs? Or the syntax?
If you were talking about the syntax, YES! There are some part of ISO C 9899 syntax not supported by ISO C++ 14882.
Maxwell Chen
|
|
|
|
|
Theoretically: No
practical there is a huge difference.
In C you can work closer with memory and stuff (eg. String handling...) Is more difficult. C++ is a bit safer .
Quote:
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix
|
|
|
|
|
Read four sections of this C++ FAQ beginning here.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
No. Both are Turning Complete, and therefore anything you can write in one you can in the other.
However there are strong reasons to use one over the other anyway. There are many things that are easier to write in C than C++, and vise versa. (C++ is easier for large teams/projects, C is easier for direct to hardware performance counts programs. Even this is a gross over generalization and you can find exceptions)
Turing complete is named for Alan Turing who proved sometime ago (1930s? +-20 years) that any program that you can impliment in one language can be implimented in any other. The simplest turning complete language supports one command: subtract branch on zero. (don't ask me who to prove that)
|
|
|
|
|
Why is C easier for direct hardware programs?
|
|
|
|
|
simpler. When directly accessing hardware you need to force some things to be in a specific memory location. You often have limited memory you can use (ISA devices cannot access memory over 16 megabytes, not a factor now, but it was not long ago, and may be again when the limits of 32 bit PCI is reached). The base OS is normally written in C or assembly, so you have to jump in and out of C often. C++ intorduces overhead that isn't needed.
In general, even though these limits are not hard to overcome in C++, the programs that directly access hardware are so small that C++ gives no advantage.
You can do this in C++, and it has been done. However there is no real advantage.
I'm only talking about the lowest level device drivers. If you are not messing with registers you are above this point.
|
|
|
|
|
Henry miller wrote:
Turing complete is named for Alan Turing who proved sometime ago (1930s? +-20 years) that any program that you can impliment in one language can be implimented in any other. The simplest turning complete language supports one command: subtract branch on zero.
Are you referring to the Turing machine, that was introduced in 1936? In all my years of studying this, I've never heard your explanation. In short, a Turing-complete problem is one that can only be solved by a Turing machine, which is an abstract representation of a computing device, or a Turing-Equivalent system. A Turing-Equivalent system is equivalent to a Turing machine.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Yes. any machine that can solve a (non-trivial) problem that a turning machine can sovle, can sovle any other problem a turning machine can solve. In the real world we have finate turning machines, and assume sufficant length, otherwise the theory applies. I'm too far out of school to put it in more detail anymore.
|
|
|
|
|
Hello
How to copy the content of the client device context to Memory Device context?
I want the complete drawing on the view to be stored as Bitmap file. FOr this i want Memory Device context.
Further there are issues such as does it affects that when i initialise my memory Device Context, i.e. before complete drawing or after complete drawing.
Sandeep
Leave your mark wherever you go
|
|
|
|
|
What about the function BitBlt, with the SRCCOPY flag. That copys from one DC to another?
|
|
|
|
|
Hi all,
My List control displays Timestamp along with date (15/6/2004 12:02:02 AM)..
My code to sort this data is....
int CALLBACK CBoseDayalaNewListCtrl::CompareDates(LPARAM lParam1, LPARAM lParam2, LPARAM lSortParam)
{
CString str1 = *((CString*)(((ItemData*)lParam1)->dwItemData));
CString str2 = *((CString*)(((ItemData*)lParam2)->dwItemData));
COleDateTime odtTime1;
COleDateTime odtTime2;
BOOL fSortAscending = BOOL(lSortParam);
double dblResult = 0.0;
odtTime1.ParseDateTime( str1, LOCALE_NOUSEROVERRIDE );
odtTime2.ParseDateTime( str2, LOCALE_NOUSEROVERRIDE );
if(fSortAscending)
dblResult = odtTime1 - odtTime2;
else
dblResult = odtTime2 - odtTime1;
return ( ( 0.0 < dblResult ) ? 1 : ( ( 0.0 == dblResult ) ? 0 : -1 ) );
}
....and this doesn't work fine it seems...can anybody gimme more efficient code so that I will be so grateful...
thanks in advance.
MrBoseDayala
|
|
|
|
|
What do mean by "it doesn't work fine"? Does it not work at all or is it slow and inefficient?
If it's inefficent, maybe store pointers to the COleDateTime in the data address of the items, rather than CString pointers that you need to convert every time you do a sort.
Another option would be that at the time you are inserting items into the listctrl, the dwData(param) could be a
time_t object. This is just a typedef'd long. That way you don't need to allocate memory for CStrings or COleDateTime objects, and stil do the comparisons.
|
|
|
|
|
it is not working efficient...I have send the picture to u.please have a look..
BoseDayala
|
|
|
|