|
WalderMort wrote: I heard that is supposed to be one of the best
yes, it's pretty cool ; and as we use Java at office i could test it for all the common usage features...
WalderMort wrote: Not so long ago I built my own Excel parser. That was a semi-port from java. I don't mean to bloat but I found nothing in C/C++ that comes even close to my implementation of reading a whole document in just 5 lines of code. That was using references also.
why not writing an article about it ?
|
|
|
|
|
toxcct wrote: why not writing an article about it ?
You know, I did. The first time my HD crashed, the second ( I used that HTML helper found on CP ) I chose the wrong "save" and saved the helper rather than what I had written. After that I kinda gave up.
|
|
|
|
|
when was it ?
can you give it a new try by now ?
come on, i'm behind you
|
|
|
|
|
I'll do it again, but I'm no hurry. Besides it'll have to wait till I get some time off work
|
|
|
|
|
sknobli wrote: Hello, im serching for a simple free DOM-Parser which is written in c and has no dependencies to some ms or other libraries. Everything which I found here, did not function in my project not well. Any Ideas.
http://www.codeproject.com/soap/markupclass.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Apache has one. Also if you use Google (ever heard of it?) you will find comparisons of the various DOM implementations (in case you are interested).
led mike
|
|
|
|
|
Xerces (from W3c)
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Thanks to all. I think i'll try tinyXML at first.
|
|
|
|
|
Can anyone help me implementing a text editor in c#.
Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.
|
|
|
|
|
Unlikely, in the C++ forum. Try again in the right place (and you'll get a better response if you try yourself, and post what problems you're getting)
|
|
|
|
|
implementing a text editor in c# Or VC++
|
|
|
|
|
wrong forum dude
ask the C# forum[^]
AND don't forget to search by yourself before asking dumb questions ! there are tons of it around here, and google might help much more in this regard.
|
|
|
|
|
Back toxcct
|
|
|
|
|
WhiteSky wrote: Back toxcct
nope, i finished my work today
but going home now... it's being late !
|
|
|
|
|
Hi folks,
Two questions from a medium skilled programmer.
First, I would like to write a program that displays the current time/date and continually updates it. Do I need to use the struct tm from the header file time.h? Second, I would like to be able to determine my program's compile time and also how much memory it takes up. I remember the Borland compiler use to print out this information every time that you compiled but I have not yet figured out how to get this information from visual studio.
Thanks!
Carolyn
|
|
|
|
|
cmaccc wrote: First, I would like to write a program that displays the current time/date and continually updates it.
At a command prompt, or in a GUI application? In either case, you can use the time() function to get such information.
cmaccc wrote: Do I need to use the struct tm from the header file time.h?
Only if you are using functions like asctime() , gmtime() , or localtime() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
cmaccc wrote: First, I would like to write a program that displays the current time/date and continually updates it
you can use a timer for this
cmaccc wrote: Second, I would like to be able to determine my program's compile time
the Visual C++ compiler provides this information, but only if you change its correct settings into what you want. i don't remember exactly which settings are to change, but you can search fot it.
|
|
|
|
|
Hi everyone,
which event must i manipulate to desactivate the moving of a Child Frame?
And the event for Minimize/Maximize too
I tried already OnShowWindow, OnMove, OnMoving
but if i don't call the base-c***ion, the frame moves/maxi-minimizes anyway
Big thanks
|
|
|
|
|
I think you should handle the WM_NCHITTEST message. Call the base handler, and if it returns HTCAPTION , HTMAXBUTTON or HTMINBUTTON , then you should return HTNOWHERE . (Actually, it should be a method, dealing with window styles, for removing min- and max-buttons from caption bar).
I hope this works (but not for the case of using system menu -- this need additional work).
Are you sure the user will not be disturbed by these missfunctions?
|
|
|
|
|
Thanks, i'll try it
These missfunctions must be, it's a kind of Suspend-Mode, so this MDIChild blocks all access to other Frames ( Menu is desactivated )
|
|
|
|
|
If i'am over the button it returns HTMAXBUTTON or HTMINBUTTON, then i return HTNOWHERE
But i still can click on those buttons
But on the TitleBar it works excellent
|
|
|
|
|
Maybe you should simply change the windows styles and exclude those buttons? In MFC this can be done with ModifyWindowStyle(WS_MINIMIZEBOX | WS_MAXIMIZEBOX, 0) function, or adjust the styles in OnCreate handler.
|
|
|
|
|
Big thanks !
ModifyStyle(WS_MINIMIZEBOX | WS_MAXIMIZEBOX, 0); works great
|
|
|
|
|
Hi,
I'm using VS2005 / MFC in a MBCS build. For some of the buttons on my
dialog I am using characters from the Webdings font and setting the button
font like this (in OnInitDialog()):
if(m_pfntMonotype == NULL)<br />
{<br />
m_pfntMonotype = new CFont;<br />
LOGFONT lf;<br />
CFont* pFont=((CButton*)GetDlgItem(IDC_UP_BUTTON))->GetFont();<br />
pFont->GetLogFont(&lf);<br />
strcpy(lf.lfFaceName, "Webdings");<br />
lf.lfCharSet=SYMBOL_CHARSET;<br />
lf.lfHeight=22;<br />
m_pfntMonotype->CreateFontIndirect(&lf);<br />
}<br />
((CButton*)GetDlgItem(IDC_UP_BUTTON))->SetFont(m_pfntMonotype);
etc..
This works fine, except for some (but not all) XP Themes that I have
downloaded, where the characters on my buttons show the character "8"
instead of the equivalent Webdings character for character code 56. (Ditto
for other characters (of course), not just 56!)
If I obtain the LOGFONT from m_pfntMonotype it is identical when the
Webdings character is correctly rendered (in Luna, etc.) and incorrectly
rendered.
Therefore, I am guessing the font mapper is incorrectly mapping the font.
Is there any way to guarantee that the Webdings characters are used on all
themes, or am I using the font inappropriately? Advice appreciated!
Thanks.
Pete
|
|
|
|
|
Only a bad guess, but could it be UNICODE related ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|