|
|
| jcsston |
| Posted: Jan 16 2003, 01:05 AM |
 |
|
Matroska Dev
  
Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02

|
Is it possible to bring up the config dialog for a filter from an external program? If so what sub/function do you call?
I've tried the ConfigDlgProc but Visual Basic says 'Can't find DLL entry point' my vb code
| CODE | Private Type FilterData show As Boolean smoothMotionMap As Boolean useMotionMap As Boolean deinterlaceThreshold As Integer lineDetect As Integer motionThreshold As Integer
prevFrameLuma As Integer ixelbackUp As String pixelChanges As String End Type Private Declare Function ConfigDlgProc Lib "D:\Visual Basic Files\DeinterlaceMAP.vdf" (hdlg As Long, msg As Integer, wParam As FilterData, lParam As FilterData) As Boolean
'The C code def 'BOOL CALLBACK ConfigDlgProc(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam)
|
-------------------- Use the Matroska file format |
 |
| fccHandler |
| Posted: Jan 16 2003, 01:53 AM |
 |
|
Administrator n00b
  
Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02

|
Interesting idea, but it can't be done.
Filter modules export two functions, "VirtualdubFilterModuleInit2" and "VirtualdubFilterModuleDeinit." Both of these functions receive pointers to other functions within VirtualDub itself. If you are not VirtualDub, you can't supply the filter with these pointers.
But even if you could supply some pointers for the filter to call, Visual Basic can't call the filter's exported functions anyway because they use the C calling convention (VB doesn't support this).
-------------------- May the FOURCC be with you... |
 |
| jcsston |
| Posted: Jan 16 2003, 02:05 AM |
 |
|
Matroska Dev
  
Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02

|
Thanks for the information Maybe I could write an C dll that called the filter and then use the dll I wrote in VB
-------------------- Use the Matroska file format |
 |