Import C++ dll into ateasy 4

Solution Available
Raz A.
Haifa,

May 5, 2020
82 Posts

1  |  0  

Re: Import C++ dll into ateasy 4

I am importing a DLL from c++ in ATEASY 4 in windows 2000

I have a function with a paramter of c++ type:
unsigned __int64

what is the ATEASY 4 equivalent  parameter type that i need ?

DrATEasy (Ron Y.)
Mission Viejo, CA

May 5, 2020
369 Posts

0  |  0  

Re: Import C++ dll into ateasy 4

DDWord and DLong were added in ATEasy v5. You need newer version than 4 to import the C (not C++) header file.

Ronnie

Raz A.
Haifa,

May 5, 2020
82 Posts

0  |  0  

Re: Import C++ dll into ateasy 4

Isnt there a workaround?
Maybe define it as variant or any type?
Array of bytes?

DrATEasy (Ron Y.)
Mission Viejo, CA

May 5, 2020
369 Posts

0  |  0  

Re: Import C++ dll into ateasy 4

If it is Val parameter, then you can use two parameters of DWord instead.
If it is Var parameter,  you can use Array of DWord (pass in array of 2 elements).
If it is a field In a structure, you can use DWord[2].

Ronnie

Raz A.
Haifa,

May 6, 2020
82 Posts

0  |  0  

Re: Import C++ dll into ateasy 4

The first option worked!!!!

i am trying to understand what is the reason for a single parameter of dword[2] or byte[8] wont work.
can you explain?

DrATEasy (Ron Y.)
Mission Viejo, CA

May 6, 2020
369 Posts

0  |  0  

Re: Import C++ dll into ateasy 4

You  have a Val and not Var parameter. Val parameter expect the the value to be pushed to the stack while Var parameter expect a pointer to the data. When you pass array argument it always push a pointer to the stack - so that is why it is suitable only for the Var case.

Ronnie



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]