CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Siemens

User coding on NT w2k

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2001, 03:43
Default User coding on NT w2k
Philip Jones
Posts: n/a

There has been a bit of activity on this forum regarding user coding and some people have mentioned NT so I thought it best to reiterate the situation.

When using user coding under NT, you cannot add your own common blocks or subroutines to the coding.

Why ...

User coding under NT is achieved by recompiling and linking a dll. This dll is then used by the supplied star.exe when it runs.

The dll shares data and functions with star itself, these are called exports. The exports of a dll can be adressed by number (ordinal) or name (decorated with funny characters). The method used by star is ordinal which means that what star does is call (say) the 23rd function when it wants to call posdat. If your coding changes the exports of the dll then it is likely that you will upset the numbering in the dll so when star calls the 23rd function it gets the new 23rd which could be radpro and not posdat.

You change the exports by adding either common blocks or subroutines/functions to the user coding.

There is a tool called pexports that can help you look at exports to understand what is happening.

If you are hell bent on doing this sort of thing I have few ideas that may help, so get in touch, but in general I would not advise it if what I have said in this post does not make complete sense to you.

  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
VOF user coding Ramki Siemens 2 October 29, 2015 01:07
converting user-coding in V4 Karl Mehler Siemens 0 September 28, 2008 15:48
posdat user coding Sara Siemens 3 September 18, 2008 13:59
Print value to screen in user coding? Cb Siemens 1 September 30, 2005 07:29
Help with coding James Main CFD Forum 2 May 18, 2005 05:12

All times are GMT -4. The time now is 16:08.