|
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
|
|
|
|
|
As an alternative approach, in order to be sure your special buttons do not depend on installed fonts, I would suggest you to use bitmap buttons instead. See CBitmapButton MFC class.
I hope this helps.
|
|
|
|
|
Hello all,
I want to disable "Paste" option using 3rd party DLL file in the application.
Can any1 plz help me out ?
vaibhav
|
|
|
|
|
Kvaibhav wrote: to disable "Paste"
disable _in_ the 3rd party library using an application of yours,
or
disable in your application using another .dll ?
A hook seems what you need...
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
I m having my own application n i m developing 3rd party DLL file dat aaplication but i want to disable some of menu items from my application
vaibhav
|
|
|
|
|
Hi,
I have developed an ATL component in VS2005. When I try to register that dll in another system where VS2005 is not installed its not getting registered
but if try to register it in a system where VS2005 is installed its getting registered.I build the application choosing "Use MFC in Static Library".
What could be the problem?Any suggestion would be helpful.
thanks
Today is a gift, that's why it is called the present.
|
|
|
|
|
hi,
i think your dll requires some library, i mean some dependancy, you check for that( you can use dependancy walker).once you place that library in include path, you can register in any machine.Otherwise link that library statically.
thanks
|
|
|
|