|
-
May 10th, 2001, 10:47 AM
#1
Thread Starter
New Member
DB2 API's
Can anyone help ?
I am trying to create a VB program to control some DB2 functions and am trying to use the API's
I have got the c example from the DB2 help
'/* File: sqlenv.h */
'/* API: Force Application */
'/* ... */
'SQL_API_RC SQL_API_FN
' sqlefrce (
' long NumAgentIds,
' unsigned long * pAgentIds,
' unsigned short ForceMode,
' struct sqlca * pSqlca);
'/* ... */
coded it as follows:
Public Declare Function sqlefrce Lib "c:\tmp\vbbackup\db2api.lib" _
_
(ByVal NumAgentIds As Long, _
ByRef pAgentIds As Long, _
ByVal ForceMode As Integer, _
ByRef pSqlca As sqlca) As Long
but it can't find the file
so I changed it to the dll's not knowing the correct one - no reference I have tried all the dll's I cound find and all I get is can't find the entry point
any ideas ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|