Please help me, I am having trouble calling a DLL function from VB.
This is the C function:
#define FT_RETCODE int
#define IN
#define OUT
typedef void *FT_HANDLE;
FT_DLL_INTERFACE
FT_RETCODE FT_createContext(
OUT FT_HANDLE *ftContext); /* dpFpFns context */
/* It returns a dpFpFns context
Return codes:
FT_OK all ok
Errors:
FT_ERR_NO_INIT fp software not initialized
FT_ERR_NO_MEMORY not enough memory available
*/
This is my declaration in VB:
Declare Function CreateContext Lib "dpFpFns.dll" Alias "FT_createContext" (ByVal Context As Long) As Long
This is how I am calling the function:
rc = CreateContext(VarPtr(test3))
[sig][/sig]
This is the C function:
#define FT_RETCODE int
#define IN
#define OUT
typedef void *FT_HANDLE;
FT_DLL_INTERFACE
FT_RETCODE FT_createContext(
OUT FT_HANDLE *ftContext); /* dpFpFns context */
/* It returns a dpFpFns context
Return codes:
FT_OK all ok
Errors:
FT_ERR_NO_INIT fp software not initialized
FT_ERR_NO_MEMORY not enough memory available
*/
This is my declaration in VB:
Declare Function CreateContext Lib "dpFpFns.dll" Alias "FT_createContext" (ByVal Context As Long) As Long
This is how I am calling the function:
rc = CreateContext(VarPtr(test3))
[sig][/sig]