Hello Stuart Dootson: Thank you for your reply. Could you tell me how to get the HTTP request from the web browser ,which built by CHtmlView? That is , when I click the button (or super HTTP link ),and the CHtmlView will generate the HTTP request and send it to WEB server . I want to get the HTTP request, how to do it? Where can I find the answer? Thank you again !
Could you tell me how to get the HTTP request from the web browser
Ah, sorry - thought you'd already done that bit...Anyway, you probably want to use the CHttpFile class in MFC. If you look at this page, Microsoft list the exact steps you need to take to read data over HTTP. Doesn't get better than that!
Thank you for your reply! I am a newer for MFC. I have built a web browser using CHtmlView ,and I want to how to get the HTTP request from the web browser using ChtmlView. I don't familiar with MFC , so could you tell me more about how to get it. I think the CHttpFile is use to handle the response from the WEB server. And I need to do is that how to intercept the HTTP request generated by my web browser.
I am to provide RTL Layout for the CPropertySheet. As it is derived from the CWnd, I am setting WS_EX_LAYOUTRTL as the extended style. But it is doing nothing. Just added a Debug Assertion Failure to my code. Please suggest me how can i provide the RTL layout for the CPropertySheet.
#define new DEBUG_NEW
staticchar THIS_FILE = __FILE__;
// CCmnCtrl1App construction
// The one and only CCmnCtrl1App object
// CCmnCtrl1App initialization
// Standard initialization
CAllControlsSheet allcontrolssheet(_T("Common Controls Sample"));
allcontrolssheet.m_psh.dwFlags |= PSH_RTLREADING ;
m_pMainWnd = &allcontrolssheet;
Thanks for your reply. I tried setting the Layout RTL flag to true for each property page in the resource file. I also set the language of these property pages to Arabic. The result was that the individual pages (tabs) are getting displayed in the Right to Left layout. But the container window (main dialog box that is the Property Sheet) is still in LTR layout. Please suggest for the same..
I tried the same after removing both the lines pointed by you. Still the main container window is in LTR layout. What i got from the PSH_RTLREADING documentation and its implementation in my project, is "PSH_RTLREADING" only changes the the caption. What is require by the RTLLayout is change in the whole TITLE bar, Status bar, tabs all these should be in the Right of the screen. Canption should be displayed in the Right of the Title bar. However PSH_RTLREADING only changes the caption in RTL. However the position of the caption in the Title bar still reamings in teh left.
I am still fairly new to MFC, I have been mainly working on embedded/chip level C.
Now I have a MFC application talking to my controller through ActiveX. Certain data retrieived by ActiveX needs to be displayed to MFC user interface. data retrieiving and filltering are successful. I am trying to pass the data to MFC into an Edit control. Edit control received the notice OK. Then I get stuck. The value of the Edit control is NOT updating until the call to ActiveX is returned. As a result, only the last data is displayed. all data sent while ActiveX is running is not shown to User (although Edit control got all data).
MFC Application -> User Interface -> User Click "Retrieve" -> Display certain data to Edit box on User Interface at run-time.
I have one project in VC2005. In has mose run time error. But I dont know how to use call Stack in VC2005. In VC2000, a Call Stack item exists But in VC2005 in "view->Other Windows " there is no Call Stack
Could you please help me for this problem. Regards Mahdi
I have an MFC app that is having some weird issues. When you start the program and don't move window around it works fine. But as soon as you start moving it around, an exception will occur. Debugging this in VS, I will get a buffer overrun message or some MFC debug assertion. I'm pretty new to MFC, anyone have any ideas where I should look to fix this?
I am using AfxBeginthread in my application for reading the datas from my hardware via serial ports. after clsoing my GUI, when i try to open once again, am getting error that "exe is running". I have closed my handles related to port in destructor of the class. i suspect the Thread is not closed completely, it occupies the memory, i want to know whats the better way to close or kill the thread.
Once the flag is set to false by your main thread, the loop will finish and the thread function will return, terminating nicely the thread. Of course, how to implement this depends a lot of your current design, this is just the basic principle.
Actually I'm doing a portable program which can be executed in any windows platform without any installation. Do you have any suggestions for portable database which can be connected to c++?? Currently I'm working on sqlite. But its kind of complicated.