|
Hah, you messed up "<" and ">"! :->
Maybe just copy it into e.g. notepad and replace < with & gt; and so on?
Don't mention it, I'm sure you'd do the same for me.
|
|
|
|
|
It happens to me every time. It happens with #include so I changed < to ". Now I need to take care of templates.
|
|
|
|
|
Rama Krishna wrote:
It happens with #include so I changed < to ". Now I need to take care of templates.
You might also check the [Display this message as-is (no HTML)] check-box
Then you can type < and > and whatever
<html>
<head>
<meta name="Generator" content="CP Post edit textbox">
<title>Nish</title>
</head>
<body>
<p> Hello Rama </p>
<a href='www.google.com'>google</a>
</body>
</html>
|
|
|
|
|
That's what I did when I modified the message.
|
|
|
|
|
take a look at "dynamic_cast". you can use it to do some basic runtime type info.
-c
Cheap oil. It's worth it!
|
|
|
|
|
Hello
I have a lot of text displayed in both static text and in edit boxes in a dialog.
I would like to make this information printable. I can't add OnPrint().... and those functions in my CDialog class. How do I get around this problem.
Regards
Henrik
|
|
|
|
|
I think this article will answer your question: http://www.codeproject.com/printing/printing_wo_docview.asp
With time we live, with money we spend!
Joel Holdsworth
|
|
|
|
|
Hello;
I have trouble with XML update process. I want to save XML document (in to a physical file) after update an element. But system generate, file in use error, when try to save the XML document. I know, i'm trying to save same file. Therefore, physical file has staying locked. Code is below;
XmlDocument* doc = new XmlDocument();
XmlNode* root;
XmlNode* node1;
doc->Load("C:\\Ege\\Lab7\\lab7.xml");
root = doc->DocumentElement;
node1= root->SelectSingleNode("a/b/c");
node1->LastChild->InnerText="15.95";
doc->Save("C:\\Ege\\Lab7\\lab7.xml");
The problem is, how can i save XML document into same file.
Thank you...
Orkun GEDiK
|
|
|
|
|
Put this before the Load() call:
doc->async = VARIANT_FALSE;
Otherwise Load() works asychronously and still might be accessing the file at the time you do the Save() call.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thank you Mike.
Orkun GEDiK
|
|
|
|
|
Let's say I have the following text in one cell of a
MS Flex Grid control:
important text
The only way I can add the word 'really' to the
beginning is by deleting the rest of the text so that
my cursor is not at the front and then re-typing all
of the text. Is there away when the user clicks on
a cell that they can then place the cursor somewhere
in that cell for quick editing? Any code? I looked
all over MSDN.
Please, any response any one can give me will be
greatly appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
after i run a error free code in vc++ ,,application runs fine,,but when i try to exit the application it is saying MFC40.dll error..
what does it mean
can anyone of u can help me please
thanks in Advance
bye
|
|
|
|
|
It could be any number of problems, but a good place to start looking is how you are freeing your memory. You could be double deleting objects or something similar to that.
One other thing that you may try is to go into Debug | Exceptions on the menu, and change the settings so that anytime an exception occurs the program will be stopped.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
maximus wrote:
but when i try to exit the application it is saying MFC40.dll error..
What is the full error message? If you build it in debug mode you will even know the source lines. If JIT debuigging in enabled for VC++ then it will break in the debugger where you can see the problem
|
|
|
|
|
Hi!
I have a project in MFC.In this project i use connection to the Access database (ODBC) and in Windows95 i have a problemm.When i try to connect to database,I recieve the message that driver does not support this function.
i try to install DCOM95 for Windows95
and then Jet40Sp3_Comp for working with Microsoft Access
database (ODBC) from MFC.But during instalation i recieve the
message that Error creating process D:\Win95
\System\odbcconf.exe /e/f
D:\Win95\System\jetodbc.rsp Reason:The system can not find the
file specified.
Tell me,please,is it possible to connect to database with ODBC in Windows95,and if it is possible,what i must do,what drivers or files i must add?!
Thanks,Irina.
|
|
|
|
|
Yes it is possible. I would suggest you download and install the latest version of MDAC_TYP.EXE from www.microsoft.com/data/download
This has always worked for me.
|
|
|
|
|
Ok, here is what is going on.
I have a routine that is drawing to a temporary bitmap prior to the bitmap being Blt'ed to the printer. Under some user condition, I would like to print the image in monochrome to not waste color ink.
I tried making the destination bitmap monochrome, but that didn't work. (Or atleast I did something wrong. The printed image came out solid 50% gray.)
So, since I have access to my temporary bitmap and it is 32bits (woohoo), I decided to just manually monochrome it.
However, my question is...
Will a color printing raelize the image is monochrome and not both using the color print heads? Or is there a setting I can dynamically set on the DC to tell it MONO!!!
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Tim Smith wrote:
Will a color printing raelize the image is monochrome and not both using the color print heads?
If the bitmap contains nothing but black and white, why would the printer start using e.g. cyan or magenta?
Or is there a setting I can dynamically set on the DC to tell it MONO!!!
If it's a one-bit-per-pixel bitmap it's quite obvious it's monochrome.
IIRC there are usually printer settings for color printers that let you set it to plain old B/W mode also, but that would probably involve twiddling with the DEVMODE struct, and in this case I see no real need for it, I just mentioned it in case you wanted to try it.
|
|
|
|
|
If the bitmap contains nothing but black and white, why would the printer start using e.g. cyan or magenta?
Many printers will blend to make black if it currently has the color cart in the printhead.
If it's a one-bit-per-pixel bitmap it's quite obvious it's monochrome.
It isn't a true monochrome bitmap. I said in the message that making the temp bitmap monochrome didn't work properly so I ended up
adjust the colors of the 32bit bitmap to either RGB(0,0,0) or RGB(255,255,255).
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Many printers will blend to make black if it currently has the color cart in the printhead.
OK, I didn't know that (and thanking my lucky star that my old inkjet dried so badly I had to dump it ).
Could this perhaps be the place to use the printer DEVCAPS, somehow using it to tell the printer to "switch to" B/W mode only? I guess it's pretty much up to the printer driver, but a (non-wasting-ink) test could be to print just one pixel e.g. yellow, and then try the API's available and print another pixel that is intended to be black, and see if it switches to the b/w-only head?
It isn't a true monochrome bitmap. I said in the message that making the temp bitmap monochrome didn't work properly...
That's really odd. My first reaction would be "yet another buggy printer driver" (unfortunately not so uncommon), but what do I know about ink printers and their lives.
But back to your original question: It would have to be a pretty dumb (or buggy) printer driver that didn't recognize your 1-bit image as monochrome. If your generated 1-bit bitmap was correct (have you tried to just blitting it to the screen to verify?) I'd say you have to file a bug re. the driver.
|
|
|
|
|
I totally agree. It would be stupid. The specific printer I am talking about was an HP from FIVE years ago. Maybe this isn't a problem anymore.
Will check into the DEVCAPS.
You got to love my damn obscure programming questions.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Tim Smith wrote:
You got to love my damn obscure programming questions.
Indeed! It's these kind of questions that keep me awake.
|
|
|
|
|
Is there a tutorial or anything on how to implement drag & drop for a tree list view? I think there were some about a tree list ctrl, do they work the same?
-Raffi
Why do today what can be put of until tommorrow?
|
|
|
|
|
I'm trying to create an installer for a VC++ program in Visual Studio .Net.
I think that MS has done a nice job with this part of Visual Studio .Net because they've made many things very straight forward.
Its a snap to create a string value under a registry key with their system but from what i can tell you have to know what the value is when you create the installer. However, i want to set the value to whatever path the user has chosen DURING the install process. Is there a way to capture the path the user has chosen and then use it as the string value for my registry entry.
Thanks!
|
|
|
|
|
I often struggle to disable this STL warning and am again struggling with it. I have tried placing this in every logical place to prevent the numerous warnings for "identifier was truncated to '255' characters in the debug information".
#pragma warning( disable : 4786)
|
|
|
|