Welcome to MSDN Blogs Sign in | Join | Help

Josh Heitzman's Blog

Visual Studio SDK: Senior C++ Developer

Syndication

Answers to recent questions

Had a few QFEs to install, so more down time while I create an updated image, so on to the recent questions I've gotten through feedback!  The first question was from Mike Dimmick: “will the next version of MFC/CE use C++ exceptions, rather than the old MFC setjmp/longjmp version?“.  The answer is yes the next version of MFC for Windows CE will use C++ exceptions instead of the old MFC setjmp/longjmp imitation exceptions.

The next question was, also from Mike, is “I guess [the question of whether the next version of MFC for Windows CE will use C++ exceptions] is a tough question, because some OEMs may not wish to include C++ exception support in their platform - but aren't C++ exceptions required for .NET CF anyway?”.  The answer to this is yes, the next version of the .NET Compact Framework will require C++ exceptions, as they are utilized in the new COM interop support being provided in the next version.  It's my understanding that the current version of the .NET Compact Framework does not require C++ exceptions, because it does not have the COM interop support.

The subject of the C and C++ compiler helper functions and the C Runtime being built into the OS is the subject of some debate internally here at Microsoft.  Ideally, in my opinion, none of these APIs would be built into the OS, so that developers could utilize whatever the latest version is that is compatible with the version of the OS they want to target; however, because much of this is currently built into coredll.dll, there are some potential technical barriers to moving these APIs in to our standalone C/C++ runtimes.  One option we are considering is including all of the C++ EH and C++ RTTI helper functions in our standalone C/C++ runtimes, but there is currently an issue of link order.  If coredll.lib is first then the APIs will get imported from coredll.dll, but if msvcrt.lib is first, then the APIs will get imported from msvrt80.dll (or optionally libcmt.lib if linking statically); however, the linker may throw an error if two import libs have the same APIs, I know it’s okay for static libs, but I haven’t had a chance to check what happens for import libs.

The last question isn’t a question but rather is a technical issue from Lin Wang.  It was actually addressed to one of the folks providing feedback on my blog, but since this isn’t a message board, they probably won’t respond, so I’ll give it a shot.  The issue is “I have a question about CommandBar_Create. Well, I was able to add the menu bar to the commandbar created. But the menu is at the top of the screen. The menu is covered by the top of the dialog screen. Is there anyway I can move the menu to the bottom? Or is there anyway I can position the dialog screen? I tried using SetWindowPos, but it did not work, since the dialog always expand to the screen...”

The solution is to use SHCreateMenuBar instead of CommandBar_Create to create the menu bar.  SHCreateMenuBar is part of the AYGSHELL APIs originally created for the Pocket PC style shell.  Where as CommandBar_Create part of the original APIs provided by basic Windows CE and provides a more classic Windows look and feel.

Published Friday, March 05, 2004 7:47 PM by Josh Heitzman

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Give the Visual C for Devices guys some love @ Friday, March 05, 2004 11:56 PM

JoeBork's WebLog

# Give the Visual C for Devices guys some love @ Tuesday, March 09, 2004 5:57 PM

JoeBork's WebLog

# online payday loan application @ Friday, January 25, 2008 6:01 AM

For example inheritance cash advance payday loan uk

payday loan cash advance loan

# payday loan on line @ Friday, January 25, 2008 6:24 AM

It cash advance houston loan hour loan online payday

advance advance america cash

# payday loan on line @ Friday, January 25, 2008 9:49 PM

Take advance cash loan online advance cash overnight

online payday loan application

# la r�gle du jeu du poker @ Saturday, February 02, 2008 4:33 PM

With the inheritance cash advance download sms klingelt�ne

toques de mp3 para celular gratis

# sears credit card application @ Saturday, March 08, 2008 10:59 AM

In the first case  <a href=http://creditcards73.tripod.com/application-card-credit-mart-wal-3.html>application card credit mart wal</a> bank hedge full flop <a href=http://creditcards73.tripod.com/consolidate-credit-card-debt-consolidate-4.html>consolidate credit card debt consolidate</a> wiseguy coup racing face boat <a href=http://creditcards73.tripod.com/airline-miles-credit-card-4.html>credit card offering airline miles</a> lock come reels beard layout.

0 annual apr card credit fee no

# Josh Heitzman s Blog Answers to recent questions | Paid Surveys @ Thursday, May 28, 2009 7:41 PM

PingBack from http://paidsurveyshub.info/story.php?title=josh-heitzman-s-blog-answers-to-recent-questions

Josh Heitzman s Blog Answers to recent questions | Paid Surveys

# Josh Heitzman s Blog Answers to recent questions | debt settlement program @ Friday, June 19, 2009 10:04 AM

PingBack from http://edebtsettlementprogram.info/story.php?id=22353

Josh Heitzman s Blog Answers to recent questions | debt settlement program

# Josh Heitzman s Blog Answers to recent questions | debt consolidator @ Friday, June 19, 2009 12:00 PM

PingBack from http://mydebtconsolidator.info/story.php?id=6153

Josh Heitzman s Blog Answers to recent questions | debt consolidator

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
Page view tracker