Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bizarre behavior of VB 6.0 with an OCX control 1

Status
Not open for further replies.

gmarrufo

IS-IT--Management
Apr 16, 2003
26
US
Greetings all,

I have a bizarre behavior from VB 6.0 and an OCX control, let me explain:

I have an OCX control that is basically a modified version of the Microsoft Media Player, allows me to play voice and video files, etc. This particular OCX works fine in VB.NET and all properties and methods do as well. There is one particular sub that read like this:

LoadVoiceFile(path as string, file as string, time as double)

doesn't return anything, it justs load the voice file into the control, so you can play it later.

Well, VB 6.0 for some reason believes that this particular sub has to pass something back, even though, when I go into the object browser (VB6.0 and VB.NET), the sub is clearly not defined as such.

I even tried to assign a variable (using diferent data types) being the recipient of the sub, but I receive a "data type mismatch" (of course).

Again, this same sub, works perfect in VB.NET, .NET doesn't complain about any parameter back or anything.

Any ideas???

Thanks in advance.

G
 
Try either:
Code:
Call LoadVoiceFile(path as string, file as string, time as double)
or
Code:
LoadVoiceFile path as string, file as string, time as double
 
Thank you very much. I think I forgot the way to call a sub routine eh? (duh) :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top