A
Alan Wilcox
Hello,
I need to write a fax-routing extension DLL, so my game plan was to build up
the "SampleRoute" code from the Platform SDK using Visual Studio 7. From there I
should have a handle on how to deal with fax DLL's. That was the idea at least.
Following the directions, it properly sets its info into the registry. However,
when I run a fax application that calls on it, I get a "failed init" msg while
debugging.
I thought regsvr32 did all the registration needed, but I discovered the
FaxServer.RegisterInboundRoutingExtension method. It says that IT registers the
fax inbound routing extension with the fax service. Happily, all the parameters
it needs are in the dll source, so I thought I had a solution!
When I run the application, I get an "Invalid argument" error while trying to
connect to the local fax server (Win2003 Server).
1. Does anyone know where to find example code for fax routing extensions? The
examples in Platform SDK don't cover this (and are for vs6 and even vs5).
2. Do you see the problem in the code below that's giving me the error?
Many thanks!
Alan
Public vMethods() As String = {"Siren; Routing Siren; RouteIt;
{5797dee0-e738-11d0-83c0-00c04fb6e984}"}
Public Sub New()
_FaxServer = New FaxServer
_FaxServer.Connect("")
_FaxServer.RegisterInboundRoutingExtension(
"SampleRoute Routing Extension", _
"SampleRoute: Fax Siren", _
"%systemroot%\system32\SampleRoute.dll", vMethods)
'Register the FaxServer object to receive event notifications
'from the fax server
_FaxServer.ListenToServerEvents(FAX_SERVER_EVENTS_TYPE_ENUM.fsetACTIVITY+_
<etc. works ok. snip>
End Sub
I need to write a fax-routing extension DLL, so my game plan was to build up
the "SampleRoute" code from the Platform SDK using Visual Studio 7. From there I
should have a handle on how to deal with fax DLL's. That was the idea at least.
Following the directions, it properly sets its info into the registry. However,
when I run a fax application that calls on it, I get a "failed init" msg while
debugging.
I thought regsvr32 did all the registration needed, but I discovered the
FaxServer.RegisterInboundRoutingExtension method. It says that IT registers the
fax inbound routing extension with the fax service. Happily, all the parameters
it needs are in the dll source, so I thought I had a solution!
When I run the application, I get an "Invalid argument" error while trying to
connect to the local fax server (Win2003 Server).
1. Does anyone know where to find example code for fax routing extensions? The
examples in Platform SDK don't cover this (and are for vs6 and even vs5).
2. Do you see the problem in the code below that's giving me the error?
Many thanks!
Alan
Public vMethods() As String = {"Siren; Routing Siren; RouteIt;
{5797dee0-e738-11d0-83c0-00c04fb6e984}"}
Public Sub New()
_FaxServer = New FaxServer
_FaxServer.Connect("")
_FaxServer.RegisterInboundRoutingExtension(
"SampleRoute Routing Extension", _
"SampleRoute: Fax Siren", _
"%systemroot%\system32\SampleRoute.dll", vMethods)
'Register the FaxServer object to receive event notifications
'from the fax server
_FaxServer.ListenToServerEvents(FAX_SERVER_EVENTS_TYPE_ENUM.fsetACTIVITY+_
<etc. works ok. snip>
End Sub