Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 23-Apr-2004, 01:51 AM
Junior Member
 
Join Date: Feb 2009
Posts: 11
jhillenstedt 0 reputation points
Default CONNECT_ERROR Problem

Hi,
I tried to use VB for this and I have this Problem: The first time, I run the Apllication, it works fine.
After that, for testing, I deleted the trusted app via ConsoleOne.
Then, I always get a "CONNECT_ERROR" (2)
Any idea? What exactly means "CONNECT_ERROR"?

Jochen


TAPP.bas:
Declare Function CreateTrustedAppObject Lib "gwtapp.dll" (DomainPath As String, AppName As String, AppDescr As String, ByVal TCPAdress As String, ByVal TCPPort As Long, ByVal SSLRequired As Long, ByVal RequiresQueueing As Long, ByVal MessageRetention As Long, ByVal Overwrite As Long, TrustedAppKey As String) As Long
Declare Function DeleteTrustedAppObject Lib "gwtapp.dll" (DomainPath As String, AppName As String, TrustedAppKey As String) As Long


Test-Proc:

Dim res&
Dim DomainPath$
Dim AppName$
Dim AppDesc$
Dim TCPAddress$
Dim TCPPort&
Dim SSLRequired As Long
Dim RequiresQueueing As Long
Dim MessageRetention As Long
Dim Overwrite As Long
Dim TrustedAppKey$

DomainPath = "F:\gw\domain"
AppName = "MyApp"
AppDesc = "MyTestAPP in VB"
TCPAddress = vbNullString
TCPPort = 0
SSLRequired = 0
RequiresQueueing = 0
MessageRetention = 0
Overwrite = true

TrustedAppKey = Space(65)

res = CreateTrustedAppObject(DomainPath, AppName, AppDesc, TCPAddress, TCPPort, SSLRequired, RequiresQueueing, MessageRetention, Overwrite, TrustedAppKey)

If res <> 0 Then
MsgBox "res=" & res
Else
MsgBox "Key=" & TrustedAppKey
End If
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 12:31 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.2