The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk Daily 12/09/09: COM Connect in VW

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Smalltalk Daily 12/09/09: COM Connect in VW Posted: Dec 9, 2009 8:30 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk Daily 12/09/09: COM Connect in VW
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Today's Smalltalk Daily looks at using the COM Connect package in VisualWoks.

The workspace code used in the screencast is at the bottom of this post

To watch, click on the viewer below:

If you have trouble viewing that directly, you can click here to download the video directly

You can also watch it on YouTube:


ref := COMRegistryInterface extTypeLibraryIDMap associations 
		detect: [:each | each value name notNil and: ['*iTunes *Type Library' match: each value name]]
		ifNone: [nil].
ref ifNotNil: [ref := ref value].
descs := ref containedTypeDescriptions.
	ifc := descs
		detect: [:each | 'iTunesApp' match: each name]
		ifNone: [nil].
guid := ifc guid.
driver := AdvancedDispatchDriver
		on:
			(IClassFactory createInstance: guid iid: External.COMConstants.IID_IDispatch context: External.COMConstants.CLSCTX_SERVER).

"now use the driver"
driver Play.
driver NextTrack.
driver Stop

Technorati Tags: , , ,

Read: Smalltalk Daily 12/09/09: COM Connect in VW

Topic: Definitely Ready for FailBlog Previous Topic   Next Topic Topic: Being cost effective

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use