The Artima Developer Community
Sponsored Link •

C# Answers Forum
Using Resource DLL

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mark Thompson

Posts: 1
Nickname: thompson38
Registered: Jun, 2006

Using Resource DLL Posted: Jun 28, 2006 5:24 AM
Reply to this message Reply
Advertisement
I am currently working on a C# application that uses an axWebBrowser control to displays HTML pages. This is being done to reuse an existing web application which resides on a client’s computer. To hide the html on the client’s computer, I have created a resource .dll linking in all of the HTML, images and JavaScript pages from the old project. Using the res://mydll/homepage.htm, the home page loads into the web browser control (axWebBrowser.Navigate), no problems. This page has frameset, so when I try to access the document frames, I get an exception Access Denied.

I am using code similar to this to access the frames:

HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;
FramesCollection c = myDoc.frames;

Object o = i;
i++;
Object c1 =null;

try
{
c1 = c.item(ref o);
}
catch(Exception ex)
{
Console.WriteLine(ex.Message)
}

Is there a way that I can dynamically change the frames depending on a user’s action. I have no problem displaying the frames or using the JavaScript when they are not contained in resource dll. Are there different techniques of accessing the html document and javascript when using a resource dll.

The HTML and JavaScript are in a C++ library (dll) and in the .rc file as follows:

TIPS.HTM HTML "tips.htm"
HELP.HTML HTML "help.htm"
TIPS.JS HTML "tips.js"
STYLE.CSS HTML "style.css"

Topic: Good News:XD++ MFC Library Standard Edition V8.20 is released (100% Source Previous Topic   Next Topic Topic: how to open many file?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use