Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mathefreak

@Mathefreak
About
Posts
10
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Debugging in defined macros
    M Mathefreak

    Hi, I'm developing in MS Visual Studio 6. There are several #defines for pointer access, which are nested. Example: #define TVDVT(ii) tvd_ptr->tvdvt[ii] #define BSSTAMM(ii) (*(TVDVT(ii).stamm_ptr->bs_ptr)) When debugging code like ibs = bsindex (&BSSTAMM (ivt),bvd_ptr,tvd_ptr->tech_ptr); it would be nice to get a quickwatch of BSSTAMM(ivt) w/o manually solve out all the #defines. Is there any possibility to solve the problem (settings, tools, addins, ...)? Thanks for help.

    C / C++ / MFC help csharp visual-studio tools tutorial

  • Webbrowser - simulate user actions on website-controls via QueryInterface
    M Mathefreak

    Hi, I've got one question using the WebBrowserControl. In my app a self refreshing website http://www.forexpf.ru/quote_show.php[^] is loaded in a webbrowser-control. The text content of the site is captured by QueryInterface() into a String to parse some data. This works fine, but ... On the website there is a list box and an button at the bottom, from which you can choose the interval for automatic refreshing the site. On initial loading 1min is chosen, but I want to change this to the shortest value (30sec). All the stuff is hidden, so the input should come from code (maybe via QueryInterface?). Are there any ideas to grab the list-control and the button and change the value? Here are the sample code for grabbing the content: - simple MFC-Dialog - one Webbrowser control (m_WebBrowserCtrl) - website is loaded and refreshed by button click - by clicking on a button the content of the site (plain text, not the html source) is copied into a CString variable to parse the data. void CWebbrowser_TestDlg::OnCopy() { IHTMLDocument2* m_pHTMLDocument2; LPDISPATCH lpDispatch; lpDispatch = m_WebBrowserCtrl.GetDocument(); HRESULT hr; if (lpDispatch) { hr = lpDispatch->QueryInterface(IID_IHTMLDocument2, (LPVOID*)&m_pHTMLDocument2); lpDispatch->Release(); ASSERT(SUCCEEDED(hr)); } CString sText; IHTMLElement *iSource; BSTR bstrSource; m_pHTMLDocument2->get_body(&iSource); iSource->get_outerText(&bstrSource); sText = bstrSource; MessageBox(sText); } TIA and greets M.

    C / C++ / MFC question c++ php html announcement

  • Get dynamic web content
    M Mathefreak

    Hi Ravi, it's not only plain html, unfortunately. There are some java functions embedded to grab the actual quotes. Nevertheless, after searching around the net a bit, I'm proudly present the solution, which works for me :-D Sample application: - simple MFC-Dialog - one Webbrowser control (m_WebBrowserCtrl) - website is loaded and refreshed by button click - by clicking on a button the content of the site (plain text, not the html source) is copied into a CString variable to parse the data. void CWebbrowser_TestDlg::OnCopy() { IHTMLDocument2* m_pHTMLDocument2; LPDISPATCH lpDispatch; lpDispatch = m_WebBrowserCtrl.GetDocument(); HRESULT hr; if (lpDispatch) { hr = lpDispatch->QueryInterface(IID_IHTMLDocument2, (LPVOID*)&m_pHTMLDocument2); lpDispatch->Release(); ASSERT(SUCCEEDED(hr)); } CString sText; IHTMLElement *iSource; BSTR bstrSource; m_pHTMLDocument2->get_body(&iSource); iSource->get_outerText(&bstrSource); sText = bstrSource; MessageBox(sText); } Comments are welcome. Next step is to use the code in my application, but that seems to be easy. Greets M.

    C / C++ / MFC c++ php html help question

  • Get dynamic web content
    M Mathefreak

    The only things which changes in the resulting webpage are the quote. My aim is to get the quote for DAX (7th row in upper left table). Are there any example to use the IWebBrowser2 interface to get the information. TIA M.

    C / C++ / MFC c++ php html help question

  • Get dynamic web content
    M Mathefreak

    I've written a little web crawler in VC++, which grabs financial indices and quotes from different websites and shows them. If the sources are plain html, everything is fine. Now I've got a website which shows the quotes dynamically (http://www.forexpf.ru/quote_show.php[^]). IMHO there are 2 ways to get the information extracted: 1. grab the page as image, make OCR and extract the info 2. load the page into a browser control to build the content, copy the content text (into clipboard) and extract information #1 works in general, but ocr actually isn't accurate enough. #2: Are there any examples to show the handling of clipboard? On the other hand: Use of clipboard wouldn't be my first choice because the grab process is repeated automatically in background and with use of clipboard other applications running would be influenced. Are there any other ideas to solve the problem? TIA M.

    C / C++ / MFC c++ php html help question

  • event when loading a dll
    M Mathefreak

    Hi, I've created a dll (C++) containing several functions, which are used inside an Excel-VBA-Project via dll-calls. What I want: when the dll is loaded into memory (i.e. when one of the functions is executed first time), a general function should be executed (purpose: check licence information etc.). Is there an event, which is triggered when the dll is loaded ? TIA M.

    C / C++ / MFC c++ performance question lounge

  • Problem with dialogs and windows themes
    M Mathefreak

    In my dialog based app I changed the properties of the main dialog from tool window to non tool window (purpose was to show system menu). Now some users using windows themes have problems with this new version: main menu is partially missing, static and edit controls are looking quite strange Example with theme: http://img275.echo.cx/img275/3749/p732122541078284is.jpg[^] and w/o theme: http://img104.echo.cx/img104/8655/p732122544251872pq.jpg[^] Are there any suggestions for solving this? :confused: TIA Mathefreak

    C / C++ / MFC help tutorial question announcement

  • Free version control systems with good VC.NET IDE integration
    M Mathefreak

    Hi, are there any recommendations für version control systems (freeware, open source) to use with VC.NET 2003, which are highly integrated into the IDE? I've learned something about WinCVS, but it seems to be more a standalone tool. TIA M.

    Visual Studio csharp visual-studio collaboration question announcement

  • Grab Webpage to clipboard (as bitmap)
    M Mathefreak

    Hi folks, here's the problem: I have an internet-explorer-control in a dialog to retrieve a webpage. What I want is getting the webpage as a bitmap snapshot into the clipboard an then paste this into another document (in that case a MS Office Imaging file - tiff or mdi). Maybe, there are some other ideas to get the content of the webpage into the document (w/o usage of clipboard)? With this document I do some OCR (with MS Modi-Component included in MS Office 2003). Are there any ideas, code snippets etc. to do this job? TIA Mathefreak

    C / C++ / MFC graphics help question career

  • Using DDE in MFC-Applications
    M Mathefreak

    I'm just looking for an easy approach to build a dde server to provide changing data retrieved from internet ressources to other apps (e.g. Excel). Are there any good examples using the MS ddeml library :eek: Alternatively an easy to use ActiveX-control wrapping this stuff would be great appreciated :wtf: Thanks for your help. Mathefreak

    C / C++ / MFC c++ com sysadmin help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups