|
Never mind, I already found what I was looking for: AfxOleGetUserCtrl().
|
|
|
|
|
I want to make a dialog box similar to the one windows has to do the login when you are configured to be in a domain.
I want to make a window with a Edit Box for the username, an onter Edit Box for the Password, and a Bombo Box with the available Domains: the Domain (to connect to a domain controller) and the ComputerName (to log on the local machine).
I have built the window (the UI) but I dont know how to get the available domains in windows NT.
Can anyone help me?
|
|
|
|
|
Does NetServerEnum() help?
|
|
|
|
|
I want to know how can I refer to a variable in SQL like
CString var_tel = '123456';
SqlString = "SELECT * FROM test WHERE Telephone = var_tel";
thx
|
|
|
|
|
SqlString = "SELECT * FROM test WHERE Telephone= '" + var_tel + "'";
|
|
|
|
|
Thx a lot
|
|
|
|
|
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
|
|
|
|