|
Hi, I urgently need a method to sub class a ActiveX control so that its old properties are still available + add some other new features to be added.
I cannot change the old ActiveX control as it a 3rd party control.
Please help
Mayank Goyal
|
|
|
|
|
Hi,
I wrote down a post some weeks ago but I can't find it so I'm sorry of having opened another one. Also, I'm sorry to have duplicated the post in the section managed c++, but after having clicked on 'submit' I noticed that there was a section visual c++ (which fits better whit my question).The problem is that I'm trying to exctrat some information (like codec name, lenght, width, ecc. ecc.) from an avi files. Actually I can do everything but the codec information. After having read from www.fourcc.org and some from msdn.com (http://msdn.microsoft.com/library/default.asp?url=/library/EN-US/multimed/mmstr_1xf6.asp)
, I've understood that I have to use vfw32.h library. I can exctrat only the information that an avi's codec is:
Stream Info:
Type Codec
vids divx
How can I match the information divx to the exact versione?? Moreover, How can i distinguish from divx an xvid?? Do I have to create a structure with all the existent codec inside??
Well, it's all ... I wanna thank you everyone is going to answer me.
Francesco
ps: If u want some more informations, please just ask me
|
|
|
|
|
cbiacca wrote:
I wrote down a post some weeks ago but I can't find it so I'm sorry of having opened another one
You mean these posts ?[^]
~RaGE();
|
|
|
|
|
Hi,
I am looking up a Call ID Class ,but it is very pity . I find that there are many Call ID source program ,but they is for VB ,not for VC. Can you help me ?
Thank you very much !
|
|
|
|
|
What is a Call ID class?
Regards,
Melwyn
|
|
|
|
|
When somebody call you ,you can see his or her phone number .that's call ID, This need the support of telecom ,and modem or some other device .at the same time ,the program can catch the phone number by modem ,Now I am looking up the program for VC.
|
|
|
|
|
Thanks for explaining the concept.
If you have the program in VB, it shouldn't be too difficult to convert it to VC++.
|
|
|
|
|
Hello Guys!!
I want to attach a license expiry functionality to my Win 32 Application. I just want to allow the user to use the application for a fixed period of time.
For this to work I think I have to make an entry in the registry the first time my application is run and use the date from there to compare with the system date.I did not find any method in MSDN for this.
Can anybody guide me in this regard if at all I am going on the right track.
Regards,
Abhi
|
|
|
|
|
|
|
How do I "programatically" open a file (say c:\temp\a.jpg) with the associated program in windows 2000?
I'm using VS.NET C++. MFC Application.
|
|
|
|
|
Have a look at the ShellExecute Windows API function.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Here is a class below:
CPropertySheetEx:public CPropertySheet
{Public:
CPropertyPage m_page1;
CPropertyPage m_page2;
......
}
CPropertySheetEx m_sheet;
Could you tell me how I can access to the members of m_page1
in m_page2 or realize the communication between m_page1 and m_page2 (I Program with VC++6.0)
Thank you!
leon
|
|
|
|
|
If inside say m_page1 , then
(CPropertySheetEx *)(GetParent()) gives a pointer to the parent, where access to other pages is straightforward.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I have tried these codes:
(CCpropertySheetEX *)(GetParent()).m_page1.m_Heads
±àÒëÓÐϽá¹û
:\leonOrient\test\FDDTest\Property.cpp(364) : error C2228: left of '.m_page1' must have class/struct/union type
E:\leonOrient\test\FDDTest\Property.cpp(364) : error C2228: left of '.m_Heads' must have class/struct/union type
Error executing cl.exe.
FDDTest.exe - 2 error(s), 0 warning(s)
|
|
|
|
|
You get access to A POINTER to your page. So you must use (CCpropertySheetEX *)(GetParent())->m_page1.m_Heads to access it!
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
I also replace them with these:
(CCpropertySheetEX *)(GetParent())->m_page1.m_Heads
But the compiling result is('m_page1' is a public member of 'CCpropertySheetEX'):
E:\leonOrient\test\FDDTest\Property.cpp(365) : error C2039: 'm_page1' : is not a member of 'CWnd'
c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(1899) : see declaration of 'CWnd'
E:\leonOrient\test\FDDTest\Property.cpp(365) : error C2228: left of '.m_Heads' must have class/struct/union type
Error executing cl.exe.
FDDTest.exe - 2 error(s), 0 warning(s)
|
|
|
|
|
CWnd is what GetParent() returns. So for unknown reasons the cast is not working. Are you sure you have set the parentheses right?
With the C++-syle casts instead of the C-style ones it should look like this:
static_cast< CCpropertySheetEX* >(GetParent()) -> m_page1.m_Heads
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
All is ok!
Thank you very much!
Thanks!
Respectfully Yours,
LeonOrient
|
|
|
|
|
Hi,
I am already confused on how to get the coordinates of control in a view. I understand that I need to use:
ClientToScreen, ScreenToClient, GetClientRect, GetWindowRect but still I cannot get the correct information.
I have a MultiView using CsplitterWnd that is why I get incorrect information because it is it also reads the other view (left view) plus the right view (with button). I'm thinking If I can get to focus on only one view, I can get the correct coordiantes of the button or maybe get the width of the left and subtract it with right view.
I hope someone knows these problem.
|
|
|
|
|
GetClientRect() get the rect of the control/view/window in which you are writing this code. (So if you are in a CDialog, it will return your dialog rect, if you are in a CButton class, it will return the Button rect). Coordinates begin with (0,0). It is the size that your control has in the resource editor.
GetWindowRect() get the window rect on the screen. If your window client rect is (0,0,10,10) and the top left corner is placed at coordinates (20,15) on the screen, then the function will return (20,15,30,25)
To get the client rect of a CButton from within your CDialog class, do m_button.GetClientRect().
~RaGE();
|
|
|
|
|
Hi,
just wondering if anyone can give me some sample source code in VC++ for
device driver installer(installing .inf files).
thanks heaps
|
|
|
|
|
If I have a ComboBox, how can I modify a context menu of the editor of this ComboBox (I known that a combobox is combined by a Listbox and a edit). Please help me! Thanks
Never say Goodbye!
|
|
|
|
|
I'm also new in mfc but I'll try to answer your question. There are two ways to do that.
First:
Under Classview, right click any combo box, click properties. Under Data tab, Enter data in the edit box. After entering data, press CTRL+ enter.
Second:
Use this commandin inialization of the application:
GetDlgItem(IDC COMBOBOX ID)->AddString("Data you want to put in)
Hope it's correct.
|
|
|
|
|
Thank you, but it's not my question. I don't want to get the answer for how to insert a string to the editor of a combobox. Which I want is how to MODIFY THE MENU OF THE EDITOR OF A COMBOBOX.
Thanks
Never say Goodbye!
|
|
|
|