Page 1 of 1

activex and VisualC++

Posted: 21 Sep 2005 02:30
by Kala
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

Posted: 21 Sep 2005 11:48
by Quovodis
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.

Posted: 22 Sep 2005 02:11
by Kala
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

Posted: 23 Sep 2005 11:22
by ZerBit
I´m really interested in this question.

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

Regards

Posted: 23 Sep 2005 12:23
by Guest
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...

Posted: 27 Sep 2005 01:58
by ZerBit
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

Posted: 28 Sep 2005 08:09
by Kala
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

Posted: 14 Oct 2005 05:11
by dumarjo
do you have any developement on the activex in c++ ???

Dumarjo

BCB

Posted: 19 Oct 2005 23:48
by ZerBit
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

it can be work in debug and release mode

Posted: 21 Oct 2005 11:04
by babka
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);
..........

Posted: 22 Oct 2005 00:07
by dumarjo
same problem with builder 6 or delphi 7

Jonathan

Posted: 27 Oct 2005 15:15
by Guest
Did any one get the Active X control working in Borland Builder 5.0?

Cheers

Posted: 28 Oct 2005 00:52
by ZerBit
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

VB sample source code

Posted: 31 Oct 2005 10:29
by tyloman
hi ,can any one put some VB sourde code to work with VLC ActiveX on broadcasting a video conference on lan

thanks a lot

Posted: 17 Nov 2005 14:48
by kmx
hi, could any one tell me how to build VLC in vc7?

thanks

Re: activex and VisualC++

Posted: 15 May 2008 07:27
by yamini_s
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.

Re: activex and VisualC++

Posted: 15 May 2008 15:06
by VLC_help
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.