Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: DENNIS JONES
  Where is DENNIS JONES?
 salina
 Kansas - United States
 DENNIS JONES
 To: Paul Newman
  Where is Paul Newman?
 Bristol
 United Kingdom
 Paul Newman
 Tags
Subject: RE: Call DLL IN VFP
Thread ID: 153655 Message ID: 154849 # Views: 4 # Ratings: 0
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Thursday, December 20, 2007 12:22:28 AM         
   


You might read my article in this forum, "Using an OLE Public class to implement a COM object." At any rate, try viewing the dll in VFP's object browser to learn more about its functions, paramaters etc. It might be you can use the declare statement, but that's not your only option.


>
Can someone help me by tomorrow.
>
> I need to VFP code to declare and call the dll below.
>
> I need to access the function fntdes in tdes.dll which
> is a dll i need to use to encryp a string.
> I can send this to you if you need to look at it.
>
> the only help I have on this is that the dll is written in
> c++ and the following readme file below.....
>
> *****************************************************************************************
>
> // The following ifdef block is the standard way of creating macros which make exporting
> // from a DLL simpler. All files within this DLL are compiled with the TDES_EXPORTS
> // symbol defined on the command line. this symbol should not be defined on any project
> // that uses this DLL. This way any other project whose source files include this file see
> // TDES_API functions as being imported from a DLL, wheras this DLL sees symbols
> // defined with this macro as being exported.
> #ifdef TDES_EXPORTS
> #define TDES_API __declspec(dllexport)
> #else
> #define TDES_API __declspec(dllimport)
> #endif
>
> // This class is exported from the TDES.dll
> class TDES_API CTDES {
> public:
> CTDES(void);
> // TODO: add your methods here.
> };
>
> extern TDES_API int nTDES;
>
> TDES_API int fnTDES(unsigned char *Key, unsigned char* EncVal, unsigned char *Token);
>
>
> ***************************************************************************************

ENTIRE THREAD

Call DLL IN VFP Posted by Paul Newman @ 12/6/2007 7:04:52 PM
RE: Call DLL IN VFP Posted by DENNIS JONES @ 12/20/2007 12:22:28 AM
RE: Call DLL IN VFP Posted by Andy Kramek @ 12/20/2007 12:06:21 PM
RE: Call DLL IN VFP Posted by DENNIS JONES @ 12/20/2007 8:04:41 PM
RE: Call DLL IN VFP Posted by Andy Kramek @ 12/20/2007 9:38:33 PM
RE: Call DLL IN VFP Posted by DENNIS JONES @ 12/21/2007 12:40:19 AM
RE: Call DLL IN VFP Posted by Andy Kramek @ 12/21/2007 12:48:10 PM
RE: Call DLL IN VFP Posted by DENNIS JONES @ 12/21/2007 11:53:54 PM
RE: Call DLL IN VFP Posted by Andy Kramek @ 12/22/2007 11:40:09 AM