1. Using Capital letters is like shouting. So try avoiding it.
2. Don't use slang's. For example: If you can type "Abt" there is nothing wrong in typing About. doesn't take much of time.
3. Don't just type something, understand the problem.
Luc Pattyn [Forum Guidelines][My Articles] - before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
Well, aside from warnings you are getting from others (apply to them please) I'm getting few ideas:
- in anagram all letters must be used (from source string), and only one time (can't re-use the same letter).
Chack for length (without spaces) it must be equal.
Next you can use source string as matching point, start from first letter and check for existing in trial string. If it exist remove it from both strings, if it doesn't your trial string is not an anagram.Preform that operation until you check all letters. If an empty string is what is left than yours trial string is indeed an anagram.
Hope this helps.
I want to programmacally create an entry under
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run in Vista to make my application to Load at windows start up. But when trying to create an entry RegSetValueEx return Access denied error. How can i add an entry under Run programmatically using VC++. Whether there is any API to get an access right to Vista Registry. I am using Vista Home and VS 2005 to develop my application.
I'm having problems getting an HTML element from a CDHtmlDialog.
Here is my scenario:
I need to create a Dialog in which to display a HTML page with some textareas. These textareas need to be filled dynamically from my code. The purpose of this Dialog is somewhat resembling a preview dialog. I need to show the end user how a pdf will look like and allow the user to modify some data just before creating the pdf.
So, I used CDHtmlDialog, I loaded the page using Navigate(fileURL)(please be aware that I cannot store the htmls as resources because I will need to load a relatively large number of them, so I would prefer loading them straight from the disk), and now I want to populate the textareas .
To do that, I used this chunk of code that I found browsing the web:
The problem is that GetElement returns an E_NOINTERFACE error message.
This happens when I'm using this code on the OnInitDialog() method, right after using Navigate().
It's been a long time since I tried to hijack the browser to create a user interface but you may have to wait until the browser had built the DOM. There are events it fires like documentComplete or some such thing.
Thanks a million man! You saved me from a nervous breakdown (and, of course, from a stupid workaround, VERY bug prone) .
Indeed, calling the code in the OnDocumentComplete() did the trick.
I ow you a beer
in MFC application am using JPEG images which are using as background images for my dialogs. fro the am carrying image filtes with my application instead of that can i set imaged into dll and load the images from dll whenever required?
I created MFC dll with JPG images as you explained, but when try to load into exe,
FindResource() returning ERROR_RESOURCE_DATA_NOT_FOUND.
Can you suggest me what to do (I have an application inc which dialogs and contros skinned with jpg images, so am carrying jpg images with my application, for that want to create dll and load images whenever required), what type of Dll(Win32 or MFC) need to build? IF MFC why it is failing to find resource, if win32 how images can add into dll.