Go Back > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor


Which method you mostly follow during Infor Product implementation?
Lean Development
Total votes: 7

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Old 2nd November 2018, 16:16
FrenkR FrenkR is offline
Join Date: Jul 2009
Posts: 66
FrenkR is on a distinguished road
Baan: 5 - DB: AS400 - OS: Linux
external variable visibility cross process dll-s
Baan: Other/Unknown
C/S: None/Unknown

according documentation, it is specified that variable, defined as "external" inside one dll (general library) is visible to all dll-s inside same process. After testing, I can't get "global" variable in one dll to be accessed in another dll.

Example is as follows(2 general library dll-s)

external domain tcitem ext.item.1   | Global variable definition in first dll

function extern string fnc.1(){
#pragma used dll olibrary.1

function extern string fnc.2(){
  return(ext.item.1)                       | "usage" of global variable from first dll, compiler generates an error "Error: "ext.item.1" not declared"
looks like compiler doesn't "include" external symbols from library.1. Is there any special "convention" to define global(cross dll) variables?

Rgds, Frenk
Reply With Quote
Old 2nd November 2018, 19:09
Ajesh's Avatar
Ajesh Ajesh is offline
Join Date: Feb 2009
Posts: 649
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
You need to declare the variable as extern in both the dlls.Only then can you access it.
Reply With Quote
Sponsored Links
Old 21st November 2018, 01:43
FrenkR FrenkR is offline
Join Date: Jul 2009
Posts: 66
FrenkR is on a distinguished road
Baan: 5 - DB: AS400 - OS: Linux
thank you for an answer. Anyway, it is quite strange that extern functions are passed without declaration(s), but extern variables are not.
Reply With Quote
Old 26th November 2018, 18:53
NPRao's Avatar
NPRao NPRao is offline
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,120
NPRao will become famous soon enough
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x - DB: Oracle,MS-SQL - OS: HPUX, Linux, Windows
Refer to -

Scope of variables across DLLs

The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of "background" keyword in Baan kruyoupatel Tools Development 2 27th April 2016 07:03
Is there a Predefined variable for capturing the functin name that called another DLL abattoir Tools Development 3 19th June 2015 22:30
Help regarding tools session rahul.kolhe22 Tools Development 4 22nd January 2010 13:31
current.mwindow() spartacus Tools Development 2 10th September 2009 12:43
Webtop vs. Worktop kmcinc Tools Administration & Installation 16 19th July 2007 14:37

All times are GMT +2. The time now is 15:46.

©2001-2018 - -