Difference between revisions of "How to use MC methods in .Net projects"

From JRiverWiki
Jump to: navigation, search
(Created page with "In order to be able to use MC functionallity you'll need to create a new assembly from the Type Library file delivered with MCxx. In Windows go to Start -> All Programms -> Mic…")
 
m
Line 15: Line 15:
  
 
'xx' = the version of MC (i.e. 14, 15, 16, etc)
 
'xx' = the version of MC (i.e. 14, 15, 16, etc)
 +
 +
If you now look in the directory of MC you navigated to above you'll find the newly generated 'MediaCenter.dll'. This is the assembly you will need to reference in your project.

Revision as of 09:05, 22 April 2011

In order to be able to use MC functionallity you'll need to create a new assembly from the Type Library file delivered with MCxx.

In Windows go to Start -> All Programms -> Microsoft Visual Studio xxxx -> Visual Studio Tools and select 'Visual Studio Command Prompt (xxxx)'

Create Assembly from Type Library Command Prompt.jpg

A command box should start

Create Assembly from Type Library Command Prompt Box.jpg

Navigate to the 'C:\Program Files (x86)\J River\Media Center xx' Directory. Type the following:

   tlbimp "Media Center xx.tlb"

'xx' = the version of MC (i.e. 14, 15, 16, etc)

If you now look in the directory of MC you navigated to above you'll find the newly generated 'MediaCenter.dll'. This is the assembly you will need to reference in your project.