Thanks for your help Paul, but I still haven't quite got it right...
My .odl file is as follows:
[uuid(86DB0EBB-848B-11D3-A474-00C04F34CF6A)]
library IDispatchTest
{
importlib("stdole32.tlb");
[dllname("IDispatchTest.dll")]
module test{
[entry( "test" )]
void test( [in] IDispatch* test_stand_context );
};
};
For completeness, here is my function definition too:
void __declspec( dllexport ) test( struct IDispatch *test_stand_context
)
{
AFX_MANAGE_STATE( AfxGetStaticModuleState() );
AfxMessageBox( "Testing 1..2..3.." );
}
When I build my DLL, and use it from Test Stand 1.0, using the function
test() returns an error message "The parameter information for this
function could not be read. It may contain an unsupported parameter
type." The IDispatch pointer seems to be causing this problem, since I
can change it to a long* in the .odl file, and the parameter
information is successfully read from Test Stand.
Any other hints are much appreciated...
Cheers,
Jeremy
In article <7sp9dl$arq$1@nnrp1.deja.com>,
paulemueller@my-deja.com wrote:
> Jerry,
>
> You can make your DLL with a type library. A type library contains
> information about the exported functions and parameters. TestStand can
> uses the type library to populate the parameter information. For
> example, specify the DLL in TestStand\Examples\Demo\Misc\DLLFuncs.dll.
>
> Follow the instructions at the knowledgebase entry:
>
http://digital.natinst.com/public.nsf/3efedde4322fef19862567740067f3cc/6
> 04fdf48c4d9a687862567e5004eb90c?OpenDocument
>
> You can get to the knowledgebase from the www.natinst.com/support/
page
> or www.natinst.com/public/
> Search for Type Libraries.
>
> Paul Mueller
> NI
>
> In article <7sdm6u$egv$1@nnrp1.deja.com>,
> jerry_gold@my-deja.com wrote:
> > Hi,
> >
> > I'm using MSVC++ 6.0 to create DLLs to be called from TestStand 1.0.
> >
> > When I insert an action into my sequence, select "Specify
module...",
> > choose a DLL, and select the function I want from the drop down
list,
> I
> > am presented with an error message: "This function does not have
> > parameter information in the DLL."
> >
> > I can get the parameter information if I switch to the Source Code
> tab,
> > and specify the appropriate file, but I would like to avoid this if
> > possible.
> >
> > I've tried in vain to find the appropriate option / switch in the
MSVC
> > project settings, with no luck....
> >
> > Does anyone have any suggestions???
> >
> > Thanks in advance,
> >
> > Jerry
> >
> > Sent via Deja.com http://www.deja.com/
> > Share what you know. Learn what you don't.
> >
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Sent via Deja.com http://www.deja.com/
Before you buy.