Forum Replies Created
-
AuthorPosts
-
December 12, 2005 at 10:20 pm in reply to: 10.03, vb.net and csdklog – Problems using the log object with .Net #4201alanwMember
@Moderator wrote:
@alanw wrote:
Has anyone been able to use the SDK with .NET to access the WinFax Log? I keep getting an Interface Error and I know that there a lot smarter guys than me fightig this one.
I can send faxes with no problem, but I can’t verify status or take another action based on that.
It’s hard to believe that Symantec is so stupid that they stopped support the SDK that they have allowed us to use all this time. I guess they want to get out of the Faxing business with us developers.
Symantec never officially supported the SDK, it was just made available to developers that wanted to use it at no extra charge. Symantec was out of the faxing business long ago, they are a security/backup company now.
What is the interface error message you are getting? Are you using the SDKLog object?
Below is the declarations that I am using and the code snipet followed by the exception error. Sorry for the delay in response, but I just saw it as I have been out of town for a couple of weeks.
**** Global Delecrations ******
Private Enum TEventType
EVENTTYPE_UNKNOWN
EVENTTYPE_LGFOLDER
EVENTTYPE_FAX
EVENTTYPE_VOICE
EVENTTYPE_PBFOLDER
EVENTTYPE_USER
EVENTTYPE_GROUP
End EnumPrivate Const STANDARDFOLDER_NONE As Short = 0
Private Const STANDARDFOLDER_WINFAX_ROOT As Short = 1
Private Const STANDARDFOLDER_WINFAX_LOG As Short = 2
Private Const STANDARDFOLDER_WINFAX_RECEIVELOG As Short = 3
Private Const STANDARDFOLDER_WINFAX_SENDLOG As Short = 4
Private Const STANDARDFOLDER_WINFAX_WASTEBASKET As Short = 5
Private Const STANDARDFOLDER_WINFAX_OUTBOX As Short = 6
Private Const STANDARDFOLDER_MAPI As Short = 7Private Enum TEventStatus
EVENTSTATUS_UNKNOWN = 2
EVENTSTATUS_COMPLETE = 3
EVENTSTATUS_FAILED = 4
EVENTSTATUS_HOLDING = 5
EVENTSTATUS_WAITING_AT_SERVER = 6
EVENTSTATUS_RECURRING = 7
EVENTSTATUS_SENDING = 8
EVENTSTATUS_GROUP_SEND = 9
EVENTSTATUS_PENDING = 10
End EnumPrivate Enum TLOGSDKError
SDKERROR_NOERROR = 0
SDKERROR_NOENTRYID = 2
SDKERROR_BADENTRYID = 3
SDKERROR_BADDATASTRUCT = 4
SDKERROR_BADFILESPEC = 5
SDKERROR_CANTSETFOLDER = 6
SDKERROR_CANGETCOUNTER = 7
SDKERROR_CNATENUMERATE = 8
SDKERROR_CANTREMOVE = 9
SDKERROR_CANTADD = 10
SDKERROR_WRONGEVENTTYPE = 11
End EnumPrivate logObj As wfxctl32.CSDKLog
***** Function snipet *******
logObj = New wfxctl32.CSDKLog
Dim folderId As String
folderId = logObj.GetFolderListFirst(0, “”)At this point I get the following exception error.
System.InvalidCastException
ERROR: Message “QueryInterface for interface wfxctl32.ISDKLog failed.” StringHope this helps, because I sure would like to make some progress here.
Thanks,
Alan -
AuthorPosts