INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Out Of Proc.  (Read 2640 times)

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Out Of Proc.
« on: April 20, 2004, 01:21:19 am »

Can anyone come with a code example to how i get out of proc. to work in VB


i use MediaCenter91319.exe
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:Out Of Proc.
« Reply #1 on: April 20, 2004, 06:02:17 am »

Logged

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Re:Out Of Proc.
« Reply #2 on: April 20, 2004, 06:14:45 am »

i think i have remembered to reference to the tfl file in vb but not sure if its the right one

but is this code working?

Code: [Select]
Private Sub Form_Load()

Dim myMJ As MediaJukebox.MJAutomation
Set myMJ = GetObject(, "MediaJukebox Application")
If Err.Number = 429 Then
    Set myMJ = CreateObject("MediaJukebox Application")
End If

Dim myFields As MediaJukebox.MJFieldsAutomation
Set myFields = myMJ.GetFields

Dim myField As MediaJukebox.MJFieldAutomation
For loop1 = 0 To myFields.GetNumberFields
    Set myField = myFields.GetField(loop1)
    MsgBox myField.GetName(True)
Next

End Sub


do i need more than that code to get it working?
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:Out Of Proc.
« Reply #3 on: April 20, 2004, 06:28:43 am »

That code works fine as is ... as long as MC is referenced in your VB project.
Logged

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Re:Out Of Proc.
« Reply #4 on: April 22, 2004, 01:50:01 am »

I have alot of troble dealing with out of proc is there a vb project example anyone can send me? that will be very big help
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:Out Of Proc.
« Reply #5 on: April 22, 2004, 02:15:45 am »

Didn't the above code work for you?
Logged

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Re:Out Of Proc.
« Reply #6 on: April 22, 2004, 05:10:54 am »

nope :s i have downloaded mc 10.0.111 and tryed the tfl (think it was the name) file from there

so do you have an example vb project example you can sent??

steffen@sbrandsborg.dk
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:Out Of Proc.
« Reply #7 on: April 22, 2004, 05:23:56 am »

I can't send you anything till I get home this evening as we only have VC++ here.

What error did you get?

The above code works and was used to hilight a MJFieldAutomation bug.

What MC module did you include in Project/References?
Logged

SBrandsborg aka Mouseman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 414
Re:Out Of Proc.
« Reply #8 on: April 22, 2004, 05:36:38 am »

Im at work now to ;) can't remember the error right now but i will post it later :)
Logged
~SBrandsborg (Mouseman)
E-Mail: steffen@sbrandsborg.dk

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:Out Of Proc.
« Reply #9 on: April 22, 2004, 11:01:06 am »

Dude,

I just emailed you the sample.

The only difference is that I added an "On Error Resume Next" before the first dim.

And the reference you should be adding is just "MediaJukebox".
Logged

Rob L

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 469
Re:Out Of Proc.
« Reply #10 on: April 22, 2004, 01:42:09 pm »

There were problems with the typelibrary (tlb file) not registering properly in some versions though, weren't there? wasn't it around that version?
Logged
Pages: [1]   Go Up