
Simple Question - Please Answer -- Anyone??!!
Hi. Thanks for taking a look at my question.
Could you please explain to me how you interpret the following:
typedef struct tm_request * TM_REQUEST ;
This is in a header file that is part of some demo code on how to use a
Win32 DLL.
Many of the functions exported in this custom DLL ("exposed" via a Users
Guide - the DLL is not a COM component - just a straight - normal - DLL as
far as I can tell) pass variables of type TM_REQUEST back and forth between
functions.
I'm trying to write some VB5 code that is an ActiveX DLL in-process server
"wrapper" around this custom DLL I must use (the source code is unavailable
to me - the custom DLL is a licensed component). Hence why I am trying to
understand the typdef variable declaration.
I understand the statement to say:
"any variables declared as type TM_REQUEST will be pointers to a
tm_request structure"
Firstly, the space between the * and TM_REQUEST may be throwing me off as I
know that it is different to *TM_REQUEST, but I only understand the latter
(could someone please explain the difference to me?).
Secondly, I've asked the DLL vendor to tell me what a tm_request structure
looks like. They tell me that I've all the header files and sample C code I
need to communicate with the DLL. I say I need to know what a tm_request
structure looks like so that I may create (in VB5) a User Defined Type
cvariable that matches, so that I can pass this variable type back and
forth to their DLL functions. They say that after searching their entire C
source code (the code used to build the DLL) that their is no reference to
a struct tm_request { ..... };
Have I misunderstood something here????
Please email me if you can shed any light.