|
Hi,
I am running an .avi file in MCI window. I want to show multiple frames together.
For example if a person is playing golf I want to show whole trajectory as he move his stick to hit ball.
Is there any way that I can show multiple frames together
in one window.
I will appreciate any suggestion.
Thanks for your time....
|
|
|
|
|
Are there good security code for Win32 system objects ?
I need to set password for some local folder,
for some user.
Usually it is supposed to use ACE, DACL, SACL, so on -
too many complex conversation in relation to task.
Can it be that some people wrote code/library
that simplify/encapsulates this task in more
object based/easy to use way ?
Please supply link.
also, Please point me how to do desired method more easily,
in a some more organized way.
thanks you.
|
|
|
|
|
Good day to all!I have a problem that gives crack to my skull. Im compiling my program in release mode when i encountered this problem "fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'E:\8168\vc98\p2\src\P2\main.c', line 494)". i check the microsoft website about this problem and then giving this solution:
Please use one of the following workarounds:
1.)Compile with /Zi instead of /ZI.
2.)Supply a file name with /Yc; i.e. /Yc"filename".
which i dont know where to locate this solution... can anyone explain to me where to fix these bugs. i already have the service pack 6 of visual studio...
|
|
|
|
|
You can add those compiler switches to either the project's .dsp file directly, or the IDE.
That said, I question how either workaround is supposed to address the C1001 error. Was there another error that preceeded the C1001 error? What does line 494 (and maybe several before it) of main.c look like?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi,
How do change a dialog box font, size in runtime. can u please help for the same in win32 api. If an example is good for us.
Thanks in Advance
|
|
|
|
|
With MFC:
m_someEditbox.SetFont( &m_font );
where m_font is a CFont member of your dialog class.
API-version:
SendMessage( handletocontrol, WM_SETFONT, (WPARAM)fonthandle, MAKELPARAM(redraw, 0);
where handletocontrol is a handle to the control to set the font for, fonthandle is the handle to a font (!) and redraw is a BOOL flag, either TRUE or FALSE if the control should be redrawn immediately.
|
|
|
|
|
HI!
When I'm debugging and stepping through my code, in certain places I get the message "There is no source code available for the current location.", even though it is my own code, and the files are in my project... Anyone know how to fix this?
Øivind
|
|
|
|
|
Check it:
Tools->Options->Projects->VC++Derictories->Source File
|
|
|
|
|
still doesn't work... any other ideas?
ØIvIND
|
|
|
|
|
Is it possible to make my popup CDilalog into another Cdialog (making it as a child) I’ve figured of the CWnd::ModifyStyle func but it return false when I for e.g. run:
m_dialog.ModifyStyle(ModifyStyle( 0 ,WS_CHILD );
Any suggestions how I could tackle the problem.
I’ve searched for articles round the net but no success…
Thanks
_____________________________
...and justice for all
APe
|
|
|
|
|
d00_ape wrote:
m_dialog.ModifyStyle(ModifyStyle( 0 ,WS_CHILD );
Of course:
m_dialog.ModifyStyle( 0 ,WS_CHILD );
_____________________________
...and justice for all
APe
|
|
|
|
|
helloo all fellow programmer
i want to know loginc behind or any api behind copying one directory from one drives to other.
thanks in advance
I Think It will Work
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Have you looked at SHFileOperation() ?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
HI!
When I'm debugging and stepping through my code, in certain places I get the message "There is no source code available for the current location.", even though it is my own code, and the files are in my project... Anyone know how to fix this?
|
|
|
|
|
Hi how i can detect modem (name of one)which installed in my system,programatically?????
Thank.
|
|
|
|
|
http://www.codeguru.com/Cpp/I-N/network/dial-upnetworking/article.php/c2465/
|
|
|
|
|
Hi!
I've have overridden CWnd::OnNcLButtonUp() to detect when I click on the title bar of my window. What I need now is to detect if I have released the window. This is so I click on my title bar and drag window to another position. How do I know when the drag has finished?
I have tried CWnd::OnNcLButtonUp() but it doesn't help.
|
|
|
|
|
|
Doesn't this just state the obvious. If you are writing native code then C++ will be faster!?! Given the speed of modern machines the majority of applications speed is not noticably different, from a user point of view, no matter what language they are written in.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Antony M Kancidrowski wrote:
Doesn't this just state the obvious. If you are writing native code then C++ will be faster!?!
The impression I get from his statement is that for .NET tasks C++ is preferred too. A lot (most?) of the native code in Longhorn is .NET.
Kevin
|
|
|
|
|
I use SetItemText to store title,that's ok.but SetItemData store URL have some question.why result is often wrong?
how to use SetItemData?
very very thx poor english
insert an item to a tree
code:--------------------------------------------------------------------------------
for (int i = 0;...; i++)
{
....
htiChild = m_etc.InsertItem(m_strNewDir, hti, TVI_LAST);
CString strItemData= "www.aaa.com";
lpszItemData = new TCHAR[strItemData.GetLength()+1];
lpszItemData = (LPCTSTR)strItemData;
m_etc.SetItemData(htiChild, (DWORD)lpszItemData);
}
--------------------------------------------------------------------------------
save tree to a file
code:--------------------------------------------------------------------------------
for(..)
{LPCTSTR pItemData;
strTitle = GetItemText(hti);
pItemData = (LPCTSTR)GetItemData(hti);
CString strItemData(pItemData);
str = strTitle + strItemData;
save str
}
--------------------------------------------------------------------------------
lLoad the file to a tree
code:--------------------------------------------------------------------------------
for (iCount = 0; ...iCount++)
{
strItemText = strItem.Left(n);
lpszItemText = strItemText.GetBuffer();
strItemText.ReleaseBuffer();
strItemData = strItem.Right(strItem.GetLength() - n - 5);
lpszItemData = new TCHAR[strItemData.GetLength()+1];
lpszItemData = strItemData;
InsertItem(lpszItem, hParent, hInsertAfter);
SetItemData(htiSon, (DWORD)lpszItemData);
......
}
|
|
|
|
|
You need to study pointers a little more
lpszItemData = new TCHAR[strItemData.GetLength()+1];
lpszItemData = (LPCTSTR)strItemData;
That's not going to work. You must copy the memory from the source string to the target string not just assign the pointer. Also you have a memory leak since you lost the memory address that was allocated with "new".
Try this to start with http://www.codeproject.com/cpp/pointers.asp[^]
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
I like to use greek letters and subcript indexes for mathematical expressions and formulas in dialog forms and output strings of my Visual C++ MFC programs. Can some one explain how to do that.
Thanks
|
|
|
|
|
You do this by selecting appropriate fonts when outputting. For editable text, you will want to use the Rich edit control. For captions, you'll need CStatics with font-setting capabilities.
For both types of controls, you'll find a multitude of articles on this site.
|
|
|
|
|
Hi
I have a simple question on where to put #include statements. Should I put them in .h file, or in .cpp file? For example, I have a class A in A.h and A.cpp. Class A uses STL vector, so is it better for me to #include <vector> in A.h or A.cpp? ANd how about using keyword? Should I write using std::vector in A.h or A.cpp?
Thanks!
|
|
|
|