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
P

psangeljg

@psangeljg
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Browser communication through JNI
    P psangeljg

    you should take a look at http://www.microsoft.com/com/resources/comdocs.asp you'll find there micrososft's com specifications. It will take a few hours to read, but if you are not very confident with com initialization, allocation techniques, common client / server implementations, etc, you will find that very useful. As for your specific question: be sure to use CoInitialize / uninitialize when loading/unloading com. Also, note that any memory passed thru com interfaces must be allocated and freed using com specific mechanism (like ComTaskMemAlloc), and certain rules for doing this apply. (depending on the type of the variable: in, out, in/out, etc). Another thing to keep in mind is that all strings passing thru Com interfaces are Unicode strigs (aka OLESTR, array of unsigned chars). Are you using the internetexplorer with / without graphical interface ? (background or as an activex control in your user interface ?). It seems to me that you are not using the user interface, case in witch you should stick with MSHTML only, and use url monikers to load web pages for parsing and other tasks. Please post more of your code and/or some more details to help us figure out what's wrong with the picture. Angel

    COM java question help

  • mshtml image download redirection
    P psangeljg

    yes, this is the way I handled the problem in the end. Thanks for your post !

    COM c++ tutorial html com adobe

  • mshtml image download redirection
    P psangeljg

    that's similar to parsing; you can't manage activex controls, links embedded in flash objects and the like; this works only for good old fashioned html, and that's not the case here; I need a tool that can handle any web page; the solution I implemented after one week of searching for alternates was using proxy server. That's also what igor1960 proposed, and it seems to me it's the only answer. Writing a proxy server is not a very complicated task, so it is an acceptable solution.

    COM c++ tutorial html com adobe

  • mshtml image download redirection
    P psangeljg

    Hello ! I have some experience with com/webbrowser/mshtml. Recently I run into a very interesting problem, and after spending some days on it(no success) I decided to try geting some answers from other programmers. So: I wrote a simple browser helper object. On a machine without internet access, when detecting BeforeNavigate2 event, I redirect navigation. For example, if the user enters http://www.google.com, i redirect to http://mygateway/page.aspx?url="http://www.google.com". This works fine, the problem is I can't redirect the location of the objects in the document (objects; images; flash; etc), and the page can not load them. I couldn't find an event that fires when a resource download begins, and a mechanism for redirecting these downloads. (please note that implementing a download manager dows not solve this problem; dm objects are invoked only when the user explicitly selects "download targer..." from the context menu for example). Please let me know if you have any ideas ( is it possible ? is it not ? a source for more info -> i've already read all I could find in msdn and microsoft on this topic and got no answer ). I don't need specific code / code samples, I only need a hint on how to do it. I'm not interested in parsing the html code and modifying the links. pages may contain flash/applets, and i can't parse them to change the links. I need browser redirection. As soon as I'll solve this problem, I'll post the project (no mfc; no atl; just pure C++/Com). All the best, psangeljg ps. I did find a solution, but it's not what I want. I figured that mshtml uses wininet (wininet.dll) to access the resources. I could write my own wininet.dll that calls the actual wininet.dll, changing the urls. However, I try to avoid this soultion, since wininet.dll varies with the os version. Performance is also important.

    COM c++ tutorial html com adobe

  • redirecting image download in mshtml
    P psangeljg

    Hello ! I have some experience with com/webbrowser/mshtml. Recently I run into a very interesting problem, and after spending some days on it(no success) I decided to try geting some answers from other programmers. So: I wrote a simple browser helper object. On a machine without internet access, when detecting BeforeNavigate2 event, I redirect navigation. For example, if the user enters http://www.google.com, i redirect to http://mygateway/page.aspx?url="http://www.google.com". This works fine, the problem is I can't redirect the location of the objects in the document (objects; images; flash; etc), and the page can not load them. I couldn't find an event that fires when a resource download begins, and a mechanism for redirecting these downloads. (please note that implementing a download manager dows not solve this problem; dm objects are invoked only when the user explicitly selects "download targer..." from the context menu for example). Please let me know if you have any ideas ( is it possible ? is it not ? a source for more info -> i've already read all I could find in msdn and microsoft on this topic and got no answer ). I don't need specific code / code samples, I only need a hint on how to do it. I'm not interested in parsing the html code and modifying the links. pages may contain flash/applets, and i can't parse them to change the links. I need browser redirection. As soon as I'll solve this problem, I'll post the project (no mfc; no atl; just pure C++/Com). All the best, psangeljg ps. I did find a solution, but it's not what I want. I figured that mshtml uses wininet (wininet.dll) to access the resources. I could write my own wininet.dll that calls the actual wininet.dll, changing the urls. However, I try to avoid this soultion, since wininet.dll varies with the os version. Performance is also important.

    Web Development c++ tutorial html com adobe
  • Login

  • Don't have an account? Register

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