|
hi
Why we r using COLEDocument class in MFC what is the advantage for it?
Regards
NISHA.S
|
|
|
|
|
If your application is related to OLE then you can use COleDocument class to get Doc/View architecture support of MFC.
Take a look at here: COleDocument Class[^]
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Proud To Be an Indian
|
|
|
|
|
Hi,
I Hope this answer give you some idea:
Change IP address[^]
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
|
When I try to include "iphlpapi.h" it shows some error inside visual C++, not in my program.It says some stucture inside iphlpapi.h is undefined.
Proud To Be an Indian
|
|
|
|
|
vivekphlp wrote: When I try to include "iphlpapi.h" it shows some error inside visual C++, not in my program.It says some stucture inside iphlpapi.h is undefined.
Do you have latest platform SDK installed!
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
modified on Tuesday, April 15, 2008 5:09 PM
|
|
|
|
|
Did you search on the codeproject?
|
|
|
|
|
Sorry Guys, This post was done by my bro & he is now out of station. He did searched in CP but was not successful in getting the desired result. He will be back within 2 days.
Thanks for the replies
Proud To Be an Indian
|
|
|
|
|
HI
Please guide me in streaming video over network using WMP activeX control.
Thanx in advance.
|
|
|
|
|
what do you want to do video streaming or playing streaming video
Trioum
|
|
|
|
|
to play streaming video....
|
|
|
|
|
I am trying to upload one directory to the perticular server
I have written the code as
CInternetFile *pInternetFile = 0;
pInternetFile = pFtpConnection->OpenFile(strDestFilePath, GENERIC_WRITE, FTP_TRANSFER_TYPE_BINARY,
FtpConnection->GetContext());
CFile LocalFile;
LocalFile.Open(strSrcFilePth, CFile::modeRead);
TCHAR szBuffer[256] = "";
int iRC = 0;
while((iRC = LocalFile.Read(static_cast<void *="">(szBuffer), sizeof(szBuffer))) != 0)
{
// Write to file
pInternetFile->Write(static_cast<const void="" *="">(szBuffer), iRC) ;
m_lDestFileSize = m_lDestFileSize + sizeof(szBuffer);
// Clear buffer
memset(szBuffer, 0, sizeof(szBuffer));
}
This code works for only one file and fails for second.
Please help me go this.
Thank you
|
|
|
|
|
Hi,
What error is happening and which line it is happening.
Give more specific information.
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
Which line has the error?
|
|
|
|
|
Hi,
I want to catch the Minimize event before the window is Minimize ( and in some cases to avoid of the Minimize action ).
How can i do it ?
Thanks for the help.
|
|
|
|
|
use WM_SIZE notification to catch all resizing events like minimize, maximize, resize etc....
Mukesh Kumar
Software Engineer
|
|
|
|
|
That exactly what i did -
I add breakpoint to the function OnSize that call when WM_SIZE is notify.
And in minimize the window i don't stop on my breakpoint.
IS there is some other way ?
|
|
|
|
|
I think this OnSize is sufficient to handle resizing events.
Did you check UINT nType==SIZE_MINIMIZED to catch minimize events? Also check for Debug configuration mode to go through breakpoints.
Mukesh Kumar
Software Engineer
|
|
|
|
|
I check all those - but still im not stop on the breakpoint.
Can it happand because of using Windows2000 ?
|
|
|
|
|
Write a handler for WM_SYSCOMMAND and look at the nID parameter. From top of my head, the code for minimize was SC_MINIMIZE.
Bombing for Peace is like f****ing For Virginity"
My Articles
|
|
|
|
|
Maybe you can use of WM_NOTIFY.
|
|
|
|
|
Hi all, I need to create a child dialog for my mfc dialog-based application but I don't want to use a resource template, so I decided to create a CWnd derived class and create there my window and controls.
I can't find on the entire web one good example, can you be so kind to link me some guide or explain me how to create a dialog using CWnd derived class and how to manage its events (paint, lmouseclick, etc..) please?
Thanks for any help, a newbie
---
|
|
|
|
|
4288 wrote: how to create a dialog using CWnd derived class
The derived class you want to use is CDialog.
What features of a dialog are you looking for if you're not using a dialog template?
With MFC and Visual Studio, you can create a CWnd-derived class and add message handlers all with a few clicks of the mouse
(and a little typing to give your class a name).
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I need to create a simple child window (a frame in the right of my parent's area) and I need to add some combo boxes and label (these controls change by user's preferences so they are not a fixed number)
I thought creating the child window dynamically without res template, adding dynamically controls based on user's preferences was a good idea
Otherwise i should implement almost 12 child template windows ._.!!
If you need clarifies, I could try to give more info
Thanks
---
|
|
|
|