Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Exporting internal variables from a DLL

Status
Not open for further replies.

CESAR_FF

Newbie level 1
Newbie level 1
Joined
Sep 21, 2018
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
9
Dear all,

I am looking for help about how to export internal variables from a DLL in order to make them accessible and readable for PSCAD.

How can i achieve this?

Regards!
 

BradtheRad

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 1, 2011
Messages
14,692
Helped
2,867
Reputation
5,744
Reaction score
2,876
Trophy points
1,393
Location
Minneapolis, Minnesota, USA
Activity points
109,778
Do you mean DLL file type? It is designated by .dll at the end of filenames in DOS directory listings. Many programs use them for data storage, user settings, etc.
If you wish to write a routine that reads it properly, you need to know exactly how the file is organized, the order in which variables are stored, how data is formatted, etc.

If you wish to share a dll between two programs, then one of them needs to have a built-in option for importing or exporting data in the other program's native format.
 

srizbf

Advanced Member level 5
Advanced Member level 5
Joined
Apr 3, 2010
Messages
1,992
Helped
417
Reputation
840
Reaction score
328
Trophy points
1,363
Activity points
10,985
dll contains exported functions and ordinals.
Which compiler are you using ?
Any header file or .lib file you have for the dll file ?

(This is a repeat post as my earlier reply was interrupted dure to unknown reason)
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
50,813
Helped
14,603
Reputation
29,481
Reaction score
13,688
Trophy points
1,393
Location
Bochum, Germany
Activity points
290,949
The question isn't completely clear. You can't access internal DLL data objects if they are not explicitly exported, through access functions or e.g. pointers.

How is the problem related to PSCAD? If you want external code to be imported by PSCAD, it probably need to provide the expected interface. As far as I understand, it's a procedure call interface.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top