|
A mighty fine package too!
--
Frivolous Theorem of Arithmetic: Almost all natural numbers are very, very, very large.
|
|
|
|
|
Yeah, if you can compile it all right...
I was succesful in compiling bjam (their 'make' like tool) and then compiled the regex libraries (ironically, using 'make'). Now when I import it (#include <boost regex.hpp="">), however, one of the *.LIB files cannot be located (BOOST_REGEX_BCB5_SSS.LIB).
C++ newbie time: how does one resolve this easily?
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
|
In atlrx.h file you can find regular expression classes that ship with VC.NET.
|
|
|
|
|
Hi!
I tried to use http://www.codeproject.org/miscctrl/colour_picker.asp in my project. In my dialog it works well!!!
But if i use in in a ttolbar (without using the ColourPick class) the popup is displayed for about 1sec and then it dissapears.
<br />
void CWordChildFrame::OnToolbarDropDown(NMTOOLBAR *pnmtb, LRESULT *)<br />
{ <br />
CRect rc;<br />
m_wndStyleBar.SendMessage(TB_GETRECT, pnmtb->iItem, (LPARAM)&rc);<br />
m_wndStyleBar.ClientToScreen(&rc);<br />
<br />
new CColourPopup(CPoint(rc.left,rc.bottom), <br />
COLORREF(RGB(255,255,255)), &m_wndStyleBar, "Auto","More"); <br />
}<br />
The strange is, that if i remove the "//", the message box is displayed and then the colorpicker works well. It is shown until i click on a color.
What have a done wrong?
Thanks mike
|
|
|
|
|
It's hard to say without knowing how the CColourPopup class works. Have you tried contacting the developer of the class?
As a side note, I want to point out that creating the CColourPopup object like you're doing (with new) is bad practice since the memory does not appear to be released. If each CColourPopup object does not somehow delete itself, it will remain in memory forever and more will come as the user keeps popping it on the toolbar.
Regards,
Alvaro
Hey! It compiles! Ship it.
|
|
|
|
|
Hi!
Thanks for your answer!
I found the problem: i removed the TBSTYLE_DROPDOWN flag from the toolbar style and it worked! Dont ask my why - it seems that the message handling of TBSTYLE_DROPDOWN works differant than the standard toolbar buttons-message.
cya
|
|
|
|
|
I have on the screen a rich edit control (CRichEditCtrl) that needs to be printed/drawn on a different device. There is some graphics item also being drawn. I have tired different items to draw this text out and their results. These are:
- Using Format Range to output the text.
- The text comes out looking good. It does not line up with the graphics that are displayed on the screen in a WYSIWYG format. As an example; drawing a line at the end of a string on the screen. When printed this same string/line does not line up as it appears on the screen. The height of the font (lines are drawn at top and bottom) seem to indicate that the font height is correct.
- Using ExtTextOut with Kerning pairs to output the text.
- This palces the strings out nicely. The graphics looks pretty good when using variable pitch fonts.
- Using Courier New Regular, it too looks pretty good.
- Using Courier New Bold does not look good. The width of the text is smaller than it appears on the screen. The height again appears to be correct (with the line above the text and below).
- Using TextOut to output the text.
- This does not even appear to be close!
So, my question is there a better approach than the ones I have tried. I have the requirement to create a WYSIWYG editor that contains text/graphics. At first, I chose the Rich Text control so the users have the ability to change fonts within the control. With out using the FormatRange to print the text, I have to scan each character looking for a change in the font. The other problem, in the MSDN documentation, it states that to have a WYSIWYG text using the CRichEditCtrl, you need to associate the control with a printer. The problem is, when the user creates the document, this will not be known. I need to be able to have a device independent control and drawing.
If you are interested in seeing the test code that I'm using, please email me and I can zip it up and send it.
Any help would be appreciated.
Larry J. Siddens
Cornerstone Communications
TAME THE DOCUMENT MONSTER
www.unifier.biz
|
|
|
|
|
I'm now trying to get the position of the characters in the control, then outputting them seperately. Seems better, the graphics is much closer to what is on the screen. It is off some (about 1/2 of a character.) I'm wondering if it is a round off error?
Larry
Larry J. Siddens
Cornerstone Communications
TAME THE DOCUMENT MONSTER
www.unifier.biz
|
|
|
|
|
In progam I need to do own tray how I can do this?
|
|
|
|
|
What is Own Tray? I have never heard of this.
Magnus
|
|
|
|
|
Are you asking how to add your program's icon to the tray in the lower right corner of the taskbar? If not, I do not understand your question.
|
|
|
|
|
Sorry for bad english....
My program works instead of standard shell Explorer.
I it is necessary to do in program something like standard tray.
Take any advices. For earlier thank you.
|
|
|
|
|
i want to embedd Microsoft Speech Recognition Engine in my VC++ application what can i do.
i am using windows 2000 operating system on my pc.
i am very thankful to u if any one tell me all the API related to this SDK and send me any simple Applicaiton that uses "Microsoft Speech Recognition Engine" using VC++.
Thanks in Advance
Faizi
|
|
|
|
|
|
I'm trying to use the GetNumberFormat API for integer values. No fractional digits and no decimal seperator should appear in the output. I want to use the API to account for locale settings. The results should look similar to the file sizes in Explorer's File Properties dialog.
|
|
|
|
|
Ok, so what's the problem? Do you have a code snippet that is producing a compiler or run-time error?
NUMBERFMT fmt = {0,0,3,"",",",1};
char szNumber[16] = "123456",
szFmtNumber[16];
GetNumberFormat(GetThreadLocale(), 0, szNumber, &fmt, szFmtNumber, sizeof(szFmtNumber));
|
|
|
|
|
I don't get an error, I don't want to use the NUMBERFMT structure but use the user locale settings for the number format, only without the fractional part. Maybe there's an API to get the number format, but apparently it's not GetNumberFormat And I wanted to avoid having to call GetLocaleInfo for each member of the NUMBERFMT struct.
|
|
|
|
|
You can't eat your cake and have it too. The whole premise behind using locale settings is so that applications won't make assumptions as to what the user wants. If the user sets up their machine to have , (comma) as the thousands separator, you mustn't override that with something else, or remove it altogether. Same goes for fractional digits, decimal points, negativity, etc.
I have a slightly similar situation with the project I am working on. It's a scheduling application, which makes heavy use of dates and times. The application has to work no matter what locale it is in, or what regional settings are in place. Luckily, the NLS functions minimize the pain.
|
|
|
|
|
Hi All,
I Want to develop a plugin for Adobe photoshop...I dont have any idea how to proceed with the idea, does anyone has any clue..how to start with it...any idea or pointers or tutorials..will be very helpful..Looking forward to all you guys for help???please...Thanks a lot in advance..
Himanshu
|
|
|
|
|
|
Has any one ever tried to integrate visualization toolkit in Visual C++?
I am new to both Visual C and VTK.So I have serious problems.
I have added the path for VTK libraries and headers to tools->options->directories
and projects->setting->links
but I still get following errors:
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/sample.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Can anyone help?
Regards
|
|
|
|
|
i have a problem.i want to split a CString into a CStringArray which of each element holds a fixed length characters.
for example:
CString str;
CStringArray strArray=new CStringArray();
str="abcd";
afert spliting action,the result should be below:
the value of strArray[0] is "ab"
the value of strArray[1] is "cd"
how can i do?
thanks!!
Habbit--Beginner In MFC
|
|
|
|
|
<code>
{
#define STR_WIDTH 2
CStringArray arrStrings;
CString strSource(_T("abcdefghi"));
int nPosition(0);
while(nPosition < (strSource.GetLength()-1))
{
arrStrings.Add(strSource.Mid(nPosition,STR_WIDTH));
nPosition+=STR_WIDTH;
}
}</code>
or something of this effect. NB: this is untested.
I Dream of Absolute Zero
|
|
|
|
|
that's fine!
you are a good man!
|
|
|
|