Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Calling Filters, Bring up the Config from External Prog
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
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 ph34r.gif 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
 
       Top
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...
 
     Top
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 wacko.gif

--------------------
Use the Matroska file format
 
       Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
2 replies since Jan 16 2003, 01:05 AM Track this topic | Email this topic | Print this topic

<< Back to VirtualDub Filters and Filter Development