Newbie Q: Calling Dlls
From: Admiral Krieg (luke_krieg_spambad__at_hotmail.com)
Date: 01/26/04
- Next message: Leor Zolman: "Re: Derived Class from a base class..."
- Previous message: Niklas Borson: "Re: Returning references and memory allocation"
- Next in thread: Ulrich Eckhardt: "Re: Newbie Q: Calling Dlls"
- Reply: Ulrich Eckhardt: "Re: Newbie Q: Calling Dlls"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jan 2004 21:10:37 +0000 (UTC)
Dear Gurus,
I have recently received a DLL and the corresponding Matlab code to call
the functions therein, but alas, I am without Matlab, nor would I like to
enslave my code to its relatively slow execution speeds :-)
I'm including the "USB2_3CamDll.h", corresponding to the "USB2_
3CamDll.dll" I was given, below. Could anyone here give me a really bare-
bones MS Visual C++ coding example of how I would call the function
"WinDriver_Acquire" inside this Dll? I am ~80% sure that the Dll was
written and compiled with MS Visual C++ v.6.0, but the .h file may be
designed for use with matlab rather than MS Visual C++. I have some
rudimentary coding experience and would be writing this as a console app,
but I have never called a function from a Dll before, so if I need to
change any Project settings etc, I'd really appreciate knowing about it.
Thanks for listening people - I look forward to your replies!
Sincerely,
Luke
USB2_3CamDll.h:
===============
/*
* USB2_3CamDll.h
*
* gkl 030709
*
*/
#ifndef USB2_3CamDll_h
#define USB2_3CamDll_h
#ifndef EXPORT
#define EXPORT
#endif
/* Function declarations */
EXPORT short int WinDriver_init (void);
EXPORT void WinDriver_clear (void);
EXPORT short int WinDriver_Acquire (void *pBuffer, unsigned long count1);
EXPORT short int WinDriver_Send (unsigned char UserAdr, unsigned char
UserData);
#endif
- Next message: Leor Zolman: "Re: Derived Class from a base class..."
- Previous message: Niklas Borson: "Re: Returning references and memory allocation"
- Next in thread: Ulrich Eckhardt: "Re: Newbie Q: Calling Dlls"
- Reply: Ulrich Eckhardt: "Re: Newbie Q: Calling Dlls"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|