473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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&quot;/#**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 1555

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

Similar topics

3
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...
3
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...
0
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...
1
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...
2
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...
5
by: Joel Finkel | last post by:
Consider the following, where Foo implements IDisposable: try { using (Foo myFoo = new Foo()) { myFoo.Execute(); } } catch (someException)
11
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...
7
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...
2
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.