activex and VisualC++

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Kala

activex and VisualC++

Postby Kala » 21 Sep 2005 02:30

I have successfully compiled VLC and modified couple of stuffs and it works really great. I am able to include the activex control into a VB form and it works. My question is when I include the same control in Visual C++ or in BorlandC it just doesn't work. Is anybody know why this happen ? Is there anything I am supposed to change, so that it will be work properly in those environments ?

Any help is really appreciated.

Thanx

Kala

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 21 Sep 2005 11:48

VLC library does not work under debug for C/C++, which is related to the way VLC uses threads under WIN32. However, there is a mechanism to tell VLC to use a different thread strategy which makes is less compatible with POSIX but make it work under debug

locate the #define ACTIVEX_DEBUG in plugin.cpp, and make sure that init arguments that are controlled by this #define are used.

Kala

Postby Kala » 22 Sep 2005 02:11

I could locate the ACTIVEX_DEBUG in plugin.cpp. But i tried to define it in the cpp itself. But still it doesn't work. Where exactly I am supposed to define this. Could you kindly let me know.

Thanx

Kala

ZerBit
Blank Cone
Blank Cone
Posts: 75
Joined: 15 Sep 2004 16:35

Postby ZerBit » 23 Sep 2005 11:22

I´m really interested in this question.

I would like to use VLC ActiveX in Borland C++ Builder. Is it working anywhere? :cry:

Regards

Guest

Postby Guest » 23 Sep 2005 12:23

first, are you using the latest svn version ?
second, can you describe the problem in more details, what do you or don't see/expect, etc...

ZerBit
Blank Cone
Blank Cone
Posts: 75
Joined: 15 Sep 2004 16:35

Postby ZerBit » 27 Sep 2005 01:58

I´m going to test it with the new 0.8.4 test1 version. I will report my results with C++ Builder 5.0

Regards :D

Kala

Postby Kala » 28 Sep 2005 08:09

I tried with Visual C++. The Activex control works in release environment not in Debug mode. Also i am finding difficulty in adding a target file using
addtarget function ? Has anybody tried this ? If it is working kindly let me know how to do this.

thanking you in advance.

kala

dumarjo
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Dec 2003 21:03

Postby dumarjo » 14 Oct 2005 05:11

do you have any developement on the activex in c++ ???

Dumarjo

ZerBit
Blank Cone
Blank Cone
Posts: 75
Joined: 15 Sep 2004 16:35

BCB

Postby ZerBit » 19 Oct 2005 23:48

Hi all,

In BCB 5.0 Build 12.34 Update Pack 1 the VLC ActiveX can be installed without problems but when i try to put the VLC component (Borland VLC ActiveX wrapper) it gives me this message:

Access violation at address 400D4798 in module 'Vcl50.bpl'. Read of address 0000000

Windows version : Win2K pro Build 2195 SP4

Have anyone tested this ActiveX in a Borland environment without errors?

Regards

babka
New Cone
New Cone
Posts: 7
Joined: 08 Oct 2005 10:09

it can be work in debug and release mode

Postby babka » 21 Oct 2005 11:04

it can be work in debug and release mode

i used vlc0.8.4-test1 ,VC++6.0, win2k



........

struct tagVARIANT options;

//options.pbVal = NULL;
memset(&options,0,sizeof(options));

CString strFile = "D:\\mpeg4.mpg";
m_vlcplugin.addTarget(strFile, options, 12, -666);
..........

dumarjo
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Dec 2003 21:03

Postby dumarjo » 22 Oct 2005 00:07

same problem with builder 6 or delphi 7

Jonathan

Guest

Postby Guest » 27 Oct 2005 15:15

Did any one get the Active X control working in Borland Builder 5.0?

Cheers

ZerBit
Blank Cone
Blank Cone
Posts: 75
Joined: 15 Sep 2004 16:35

Postby ZerBit » 28 Oct 2005 00:52

See this topic:

viewtopic.php?t=13234

Regards.


Now i have tested with DeXter (BCB & Delphi 2006). I also have an error when i try to put the videolan ActiveX into one form. This is the error message:

Access violation at address 52082D9C in module vcl100.bpl. Read of address 00000000

And this is the error details:

+ $26[52082D9C]{vcl100.bpl } OleCtrls.OleCtrls.TOleControl.OnPosRectChange (Line 2638, "OleCtrls.pas" + 1) + $26
+ $0[51EC698B]{rtl100.bpl } System.System.@HandleAnyException (Line 9980, "system.pas" + 13) + $0
+ $36[77F69B73]{ntdll.dll } RtlConvertUlongToLargeInteger + $36
+ $9[77FA4DB8]{ntdll.dll } KiUserExceptionDispatcher + $9
+ $1131[64FC3281]{axvlc.dll } DllMain@12 + $1131
+ $EDB[64FC302B]{axvlc.dll } DllMain@12 + $EDB
+ $2D[520801B7]{vcl100.bpl } OleCtrls.OleCtrls.TOleControl.CreateWnd (Line 861, "OleCtrls.pas" + 5) + $2D
+ $10[51FFBD29]{vcl100.bpl } Controls.Controls.TWinControl.UpdateShowing (Line 6926, "Controls.pas" + 10) + $10
+ $2[51FFBDE4]{vcl100.bpl } Controls.Controls.TWinControl.UpdateControlState (Line 6952, "Controls.pas" + Cool + $2
+ $5[52081B62]{vcl100.bpl } OleCtrls.OleCtrls.TOleControl.SetParent (Line 1972, "OleCtrls.pas" + 1) + $5
+ $19[53355CA3]{vcldesigner100.bpl} VCLSurface.VCLSurface.TControlItem.SetParent (Line 871, "vclsurface.pas" + 1) + $19
+ $1A[20EFD79A]{designide100.bpl} ComponentDesigner.ComponentDesigner.TComponentRoot.CreateCurrentComponent (Line 4331, "ComponentDesigner.pas" + 2) + $1A
+ $6[20F0DD2E]{designide100.bpl} Surface.Surface.TDesignSurface.AppTextDFM (Line 171, "Surface.pas" + 0) + $6
+ $3[20EE3D9A]{designide100.bpl} Designer.Designer.TDesigner.DoDragCreate (Line 764, "Designer.pas" + 1) + $3
+ $D[20EE451C]{designide100.bpl} Designer.Designer.TDesigner.DragEnd (Line 928, "Designer.pas" + 1Cool + $D
+ $2[20EE68BC]{designide100.bpl} Designer.Designer.TDesigner.MouseMove (Line 1674, "Designer.pas" + 1) + $2
+ $6[5335A618]{vcldesigner100.bpl} VCLSurface.VCLSurface.TVclDesignSurface.IsDesignMsg (Line 3028, "vclsurface.pas" + 34) + $6
+ $21[51FF8557]{vcl100.bpl } Controls.Controls.TControl.WndProc (Line 5035, "Controls.pas" + 4) + $21
+ $6[51FFC57B]{vcl100.bpl } Controls.Controls.TWinControl.WndProc (Line 7161, "Controls.pas" + 60) + $6
+ $5[52010D3B]{vcl100.bpl } Forms.Forms.TCustomForm.WndProc (Line 3277, "Forms.pas" + 125) + $5
+ $C[221F3DCB]{delphivclide100.bpl} VCLFormContainer.VCLFormContainer.TControlSizer.ControlWndProc (Line 303, "VCLFormContainer.pas" + 33) + $C
+ $6[51FFBEFC]{vcl100.bpl } Controls.Controls.TWinControl.MainWndProc (Line 6984, "Controls.pas" + 3) + $6
+ $8[51F00F00]{rtl100.bpl } Classes.Classes.TDataModule.WriteVerticalOffset (Line 11524, "classes.pas" + 0) + $8
[77D13A65]{USER32.dll }
[77D13B32]{USER32.dll }
+ $120[77D13D8C]{USER32.dll } GetMessageW + $120

I think that the most interesting information is these lines:
+ $36[77F69B73]{ntdll.dll } RtlConvertUlongToLargeInteger + $36
+ $9[77FA4DB8]{ntdll.dll } KiUserExceptionDispatcher + $9
+ $1131[64FC3281]{axvlc.dll } DllMain@12 + $1131
+ $EDB[64FC302B]{axvlc.dll } DllMain@12 + $EDB
+ $2D[520801B7]{vcl100.bpl } OleCtrls.OleCtrls.TOleControl.CreateWnd (Line 861, "OleCtrls.pas" + 5) + $2D

tyloman

VB sample source code

Postby tyloman » 31 Oct 2005 10:29

hi ,can any one put some VB sourde code to work with VLC ActiveX on broadcasting a video conference on lan

thanks a lot

kmx
Blank Cone
Blank Cone
Posts: 12
Joined: 17 Nov 2005 14:44

Postby kmx » 17 Nov 2005 14:48

hi, could any one tell me how to build VLC in vc7?

thanks

yamini_s
New Cone
New Cone
Posts: 9
Joined: 15 May 2008 07:22

Re: activex and VisualC++

Postby yamini_s » 15 May 2008 07:27

Hi,
I downloaded the open source code from videolan website. I am trying to compile it using vc++6.0. But not able to compile it . Can any one guide me through. Can anyone tell me where i am going wrong.Should i have to use only cygwin for this.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: activex and VisualC++

Postby VLC_help » 15 May 2008 15:06

If you want to compile whole VLC (and create Libvlc and ActiveX component) then yes you have to use Cygwin.
http://wiki.videolan.org/Cygwin

if you just want to use ActiveX part in your code, then no need for Cygwin.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests