473,651 Members | 2,461 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Surprised using CDHtmlDialog

This have surprised me in discovering that all relative path in a
html page don't work when included in an VC++ MFC project with DHTML
support (class CDHtmlDialog).
So I've tryed to include all my images as custom type resource. I
called this custom type resource "IMAGE"
I've loaded all images. For example when I loaded the image sea1.gif
I've got in resource.h
#define IMG_SEA1 104
But I've got still problem! I changed my html in differents way, as the
following. (But no one of them worked!!)
<img src="res://IMAGE/#104"/>
<img src="res://&quot;IMAGE&quo t;/#**104"/>
<img src="res:/IMAGE/#104"/>
<img src="res://#104"/>
<img src="res://IMAGE\\#104"/>
<img src="res://IMAGE/IMG_SEA1"/>
<img src="res://IDD_CSPD_DIALOG/#10**4"/> <!-- Where IDD_CSPD_DIALOG
is
the dialog form -->
<img src="res://#101/#104"/> <!-- Where #101 is the dialog form -->
<img src="res:/IMAGE\\#104"/>
I tryed even other way. But all failed!!
I would like to understand why this happen, and how can I do to fix it.

I've VS .NET Framework 7.0.
Thanks

Nov 17 '05 #1
0 1564

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1945
by: Carlos Ribeiro | last post by:
As a side track of my latest investigations, I began to rely heavily on generators for some stuff where I would previsouly use a more conventional approach. Whenever I need to process a list, I'm tending towards the use of generators. One good example is if I want to print a report, or to work over a list with complex processing for each item. In both cases, a simple list comprehension can't be used. The conventional approach involves...
3
5301
by: WillShakespeare | last post by:
Following an intro article from the msdn homepage about using C# to access the Outlook 2003 Object Model in Applications and Add-Ins, I came across a problem with the OPine example. I was reading through the article on the C# msdn home page about introducing the Outlook 2003 Object Model through C#. I carefully programmed the OPine example, but after ironing out reference errors and syntax, etc., I finally had this one annoying error....
0
1810
by: Philipp | last post by:
Hi, I have a dialog based on CDHtmlDialog and already loaded a htm-file into the dialog. The htm-file is longer than the screen. So I want to scroll up and down. I've managed to create vertical scrollbars, but content of the window doesn't move. What do I do wrong? Thanks for your help! Philipp
1
3521
by: Don | last post by:
I'm trying to capture the left-mouse button down event in a CDHtmlDialog window (the body of the HTML document). I'm trying this but nothing's happening: HRESULT OnHtmlMouseDown(IHTMLElement *pElement); DECLARE_DHTML_EVENT_MAP() BEGIN_DHTML_EVENT_MAP(CMyApp) DHTML_EVENT_ONMOUSEDOWN(_T("body"),OnHtmlMouseDown) END_DHTML_EVENT_MAP()
2
8490
by: Ken Tucker | last post by:
I've read about this issue in many articles across the net... But haven't found a solution. I see all kinds of custom code to perform sorting with datagrids, but my example is so simple, I must just be missing something. Basically, I have a .aspx page that is very simple and has a simple datagrid. All code is in the .cs page for the datagrid (hence, I'm doing all datagrid work programmatically). The datagrid is populated from a SQL table...
5
1909
by: Joel Finkel | last post by:
Consider the following, where Foo implements IDisposable: try { using (Foo myFoo = new Foo()) { myFoo.Execute(); } } catch (someException)
11
3759
by: efrat | last post by:
Hello, I'm planning to use Python in order to teach a DSA (data structures and algorithms) course in an academic institute. If you could help out with the following questions, I'd sure appreciate it: 1. What exactly is a Python list? If one writes a, then is the complexity Theta(n)? If this is O(1), then why was the name "list" chosen? If this is indeed Theta(n), then what alternative should be used? (array does not seem suited for...
7
7730
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee free edition for anti-virus. I use an ISP provider from my country and according to them I do not need to perform authentication while sending mails through their SMTP address. Thus I am using external SMTP server. I don't have IIS installed...
2
1248
by: werasm | last post by:
Hi all, I've per chance noticed that this code compiles without warnings: struct x { x(): y_( y_ ){} int y_; };
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8695
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.