Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
15%
200 - 500 GB
30%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
15%
> 2000 GB
22%
Total votes: 27

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 2nd November 2018, 17:16
FrenkR FrenkR is offline
Member
 
Join Date: Jul 2009
Posts: 60
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

hello,
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)

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

function extern string fnc.1(){
  return(ext.item.1)
}
library.2:
Code:
#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
Sponsored Links
  #2  
Old 2nd November 2018, 20:09
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 531
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
Reply


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 08:03
Is there a Predefined variable for capturing the functin name that called another DLL abattoir Tools Development 3 19th June 2015 23:30
Help regarding tools session rahul.kolhe22 Tools Development 4 22nd January 2010 14:31
current.mwindow() spartacus Tools Development 2 10th September 2009 13:43
Webtop vs. Worktop kmcinc Tools Administration & Installation 16 19th July 2007 15:37


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


©2001-2018 - Baanboard.com - Baanforums.com