microsoft.public.vc.mfc
  Home FAQ Contact Sign in
microsoft.public.vc.mfc only
 
Advanced search
June 2010
mo tu we th fr sa su w
 123456 22
78910111213 23
14151617181920 24
21222324252627 25
282930     26
2010
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2010 2008 2007 2006
total
microsoft.public.vc.mfc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Special charaters are displayed in inverted order by CTreeCtrl         


Author: milonass
Date: Jun 8, 2010 09:36

I build a file browser like tree with CTreeCtrl. Now, if the control has to
display a drive like "C:", it instead displays ":C". The same happens with
"Program Files (x86)" which is displayed as ")Program Files (x86". So, it
seems that if the the last character is a special character, it becomes the
first character in display name.
Is this a unicode problem? Anyway, very strange.

Here is my coding:

CFileSystem fs;
wchar_t d[3];
LPTVINSERTSTRUCTW itemstruc = NULL;
CString text;

//Load static images
m_FileViewImages.Create(IDB_FILE_VIEW, 16, 0, RGB(0,0,0));
//Set image list
this->SetImageList(&m_FileViewImages, TVSIL_NORMAL);
//Set 24 bit bitmaps for static images
this->ChangeVisualStyle( );

int num = fs.GetNumberDrives( );
for(int j = 1; j //Get drive name
fs.GetDriveByNumber(j,d);
text = CString(d);
if(fs.IsDriveActive(d)==TRUE){
itemstruc = new TVINSERTSTRUCTW...
Show full article (1.66Kb)
3 Comments
  Regression - Instruction         


Author: Andreas Bauer
Date: Jun 8, 2010 09:33

Hello,

a b c
fx 0,639242 0,032636 19,819060
fy 0,003413 -0,646874 273,495500

MustBe x MustBe y Measure X Measure Y
173,000 12,500 130,816 266,000
275,500 28,500 196,860 256,000
139,500 153,000 113,987 175,000

a) How can I calculate it with C++?
b) How is the correct algorithm? If I make it by hand.
Have somebody a good instruction?
c) Maybe I can use Excel, or?

Thanks. Regards Andreas
1 Comment
  Re: wcLEX - New NNTP Proxy for MS Forums - crashes         


Author:
Date: Jun 8, 2010 01:45

Hector Santos nospam.gmail.com> wrote in news:O0Y4RicBLHA.1888
@TK2MSFTNGP05.phx.gbl:
> Before you get cut off from the Microsoft News groups .........
>
> SSI is please announce wcLEX - Wildcat! Live Exchange!, a free NNTP
> Proxy Server for the Microsoft Web-based Mail Support Forums.
>

Wildcat! Live Exchange has encountered a problem and needs to close. We
are sorry for the inconvenience.

1) Installed .NET Fw 4
2) Restarted
3) Checked for updates
4) Installed Wildcat!
5) Crash as above
6) Uninstalled Wildcat!
7) Reported issue here.
no comments
  Re: wcLEX - New NNTP Proxy for MS Forums         


Author: Jerry Coffin
Date: Jun 8, 2010 00:30

In article , lab2k1@gmail.c0m
says...

[ ... ]
> I don't know NNTP and the logistics involved, so take this just as a
> heretical thought, but... Once you have the infrastructure to run an
> actual newsserver, wouldn't it possible to use the bridge on the server
> side, so as to "mirror" the web forums and allow access over regular
> NNTP to any newsreader, with no local proxies involved?

If MS actually cared about their customers and/or developers, yes.
Then again, if they care about us, they'd just leave the existing new
servers on line, and none of this would be necessary at all.

--
Later,
Jerry.
no comments
  Re: Conversion from UTF32 to UTF8 for review         


Author: Peter Olcott
Date: Jun 7, 2010 22:46

On 6/7/2010 11:36 AM, Joseph M. Newcomer wrote:
> Factor-of-two slower? That doesn't even make it vaguely competitive!
>
> Now, if you were 10%% FASTER, that would be interesting!
>
> Note that code that is designed for performance is not necessarily "more readable".
>
> But you cannot claim something is a factor of 10 "easier to fully understand" because
> there is no quantitative metric of what constitutes "easier to fully understand". So

The specific quantified measure that I had in mind was the difference in
the amount of time that it would take a representative sample of C++
developers to attain 100%% comprehension of exactly how the code worked.
The 10-fold difference was my estimate of this difference.
> comparing performance (an objective property, which can be measured) to some ill-defined
> concept like "easier to read" is a meaningless comparison. While we can teach the "art"
> of programming and...
Show full article (2.12Kb)
no comments
  Re: Conversion from UTF32 to UTF8 for review         


Author: Peter Olcott
Date: Jun 7, 2010 22:26

"Joseph M. Newcomer" flounder.com> wrote in
message news:6o7q06djgqoeh6j1ii9gbd969j21ufh8dn@4ax.com...
> Factor-of-two slower? That doesn't even make it vaguely
> competitive!
>
> Now, if you were 10%% FASTER, that would be interesting!
>
> Note that code that is designed for performance is not
> necessarily "more readable".
>
> But you cannot claim something is a factor of 10 "easier
> to fully understand" because
> there is no quantitative metric of what constitutes
> "easier to fully understand". So
> comparing performance (an objective property, which can be
> measured) to some ill-defined
> concept like "easier to read" is a meaningless comparison.
> While we can teach the "art"
> of programming and include certain qualities of
> "readability" or "maintainability", they ...
Show full article (2.42Kb)
no comments
  Re: wcLEX - New NNTP Proxy for MS Forums         


Author: Cholo Lennon
Date: Jun 7, 2010 22:20

On 06/06/2010 19:35, Hector Santos wrote:
> Before you get cut off from the Microsoft News groups .........
>
> SSI is please announce wcLEX - Wildcat! Live Exchange!, a free NNTP
> Proxy Server for the Microsoft Web-based Mail Support Forums.
>
> With wcLEX, Microsoft Users and Developers can continue to enjoy using
> their News Reader for accessing the new mail groups.
>
> You can download wcLEX 1.0a pre-release version from here:
>
> http://opensite.winserver.com/wclex/wclex-1-0a-setup.msi
> http://opensite.winserver.com/wclex/wclex-1-0a-setup.zip
>
> Please use this support newsgroup
>
> news://opensite.winserver.com
>
> to report any issues or to make suggestions.
> ...
Show full article (1.08Kb)
1 Comment
  Re: Conversion from UTF32 to UTF8 for review         


Author: Oliver Regenfelder
Date: Jun 1, 2010 12:52

Hello,

Leigh Johnston wrote:
> Also printf sucks, this is a
> C++ newsgroup not a C newsgroup.

This is not even a general C++ newsgroup but an MFC one. So
strictly there is zero relevance of his posting to this
newsgroup.

Best regards,

Oliver
no comments
  Re: Confusing Minimize button behavior         


Author: jc
Date: Jun 1, 2010 10:39

Hello David,

Thank you for taking the time to reply to my posting.

Yes, setting the window style to WS_EX_TOOLWINDOW
removed the taskbar icon; however, we can dynamically
restore the taskbar icon (when the window opens).

hide:
ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW);

show:
ModifyStyleEx(WS_EX_APPWINDOW, ~WS_EX_TOOLWINDOW);

How can we dynamically hide/show the taskbar icon?

TIA,
-jc
no comments
  open .chm file from VC++ - with Table Of Contents hidden - HTMLHel         


Author: SenseShankar
Date: Jun 1, 2010 10:31

Hi All,

how could i launch/open a .chm file from my app(VC++ - VS2005), where in the
.chm has to open by default without any TOC(table of contents) in the .chm.

In detail,I am using

::HtmlHelp(GetSafeHwnd(), sFileName, HH_DISPLAY_TOPIC,0);

where sFileName is the path including the .chm file name.
Now, when i execute the above piece of code I am getting .chm launched but
with EXPANDED TOC, which i dont require for my functionality.

Can any one suggest, How by default the TOC can be hidden and the .chm can
be launched ??

I mean currently HIDE, BACKWARD,FORWARD, PRINT are the Menu items that come
for the .chm, how could one change that to SHOW, BACKWARD, FORWARD, PRINT
menus in the .chm by default ?

--
Thanks in advance,
Shankar G.
no comments
1 2 3 4 5 6 7 8 9