Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


COM controls


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2008, 04:58 PM
Newbie
 
Join Date: May 2007
Posts: 9
Default COM controls

Hello All,
I was wondering if anyone had done any work on accessing com controls from B4PPC? Anyone working on a library? I'm just curious, I may go down that route but didn't want to duplicate any effort.

Thanks,

Ron
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:28 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Yes, my SpeechLibDesktop library Text To Speech library (desktop only) wraps the COM object "Microsoft Speech Object Library".

However you may or may not have STAThread/MTAThread issues which I have had on previous attempts to use COM controls with B4PPC - but something has changed with the new builds of B4PPC that lets at least one of the previously failed attempts now work. I am trying to clarify the situation with Erel.

EDIT :- Erel has confirmed that as from version 6.5 the desktop threading model is STAThread which means that COM controls should now be usable. I have a WebBrowser control library for the desktop that now runs and is nearly ready to go so now that Erel has confirmed the change I will polish and post it.

Last edited by agraham : 02-27-2008 at 05:35 PM.
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 06:49 PM
Newbie
 
Join Date: May 2007
Posts: 9
Default Com controls on PPC

Thanks for the replay I will look at your source and see if it helps. I noticed this was a desktop app, I'm looking to implement com on the ppc. Any useful ideas?

Thanks,

Ron
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 08:53 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by lairdre View Post
Any useful ideas?
Afraid not. I am primarily desktop oriented, especially since I got an EEE PC that has just about displaced my PPC. I haven't used COM on the device but as I use Visual Studio 2005 it is dead easy on the desktop as VS2005 builds the Interop assembly for you.

For the device I believe you will need .NET 2.0 - from http://msdn2.microsoft.com/en-us/library/aa446497.aspx "Unfortunately, the .NET Compact Framework 1.0 does not support COM Interop. To be able to use existing COM objects inside a managed application, the approach is to write a native C++ wrapper DLL around the COM object." .NET 2.0 does support COM Interop and that article seems to be a good start.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOTSPOT controls WZSun Code Samples & Tips 23 05-30-2008 01:42 PM
Disposing Controls RandomCoder Questions & Help Needed 7 02-19-2008 09:26 AM
Getting names of controls BjornF Questions & Help Needed 2 01-09-2008 02:05 PM
Controls name PepSoft Questions & Help Needed 4 12-17-2007 02:49 PM
Tab Order for Controls BPak Questions & Help Needed 2 05-06-2007 05:58 AM


All times are GMT. The time now is 02:53 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0