INTERACT FORUM

Please login or register.

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

Author Topic: MJ Version Number Is This Wrong?  (Read 1558 times)

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
MJ Version Number Is This Wrong?
« on: September 02, 2002, 04:37:17 am »

Dim MyMJVersion As MediaJukebox.MJVersionAutomation
  Set MyMJVersion = g_MJ.GetVersion
 
  Text1 = MyMJVersion.Version

It does not seem to work this way
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
RE:MJ Version Number Is This Wrong?
« Reply #1 on: September 02, 2002, 08:38:54 am »

It's how I do it in AV:

   Set MJVersion = g_MJA.GetVersion
   If Not MJVersion Is Nothing Then
       #If INC_DEBUG = True Then
       g_Debug.Output "MJ Version: " & MJVersion.Version
       #End If
   Else
       #If INC_DEBUG = True Then
       g_Debug.Output "Could not get the MJ version!"
       #End If
   End If



Try just sending it to a MsgBox to see what is says, e.g.:

   MsgBox MJVersion.Version
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
RE:MJ Version Number Is This Wrong?
« Reply #2 on: September 02, 2002, 09:35:32 am »

I think i figured it out, i had it in UserControl_Initialize it does not work there.

if i move it to a button it works
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
RE:MJ Version Number Is This Wrong?
« Reply #3 on: September 02, 2002, 09:37:44 am »

That's because _Initialize is called before the Init function.

The OS calls _Initialize automatically when MJ requests your .OCX to be loaded.   Then when it's loaded MJ calls Init directly.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
RE:MJ Version Number Is This Wrong?
« Reply #4 on: September 02, 2002, 10:26:03 am »

well i guess that explains it, thanks
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA
Pages: [1]   Go Up