|November 26, 2001, 04:43||
User coding on NT w2k
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.
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 http://www.is.lg.ua/ftp/gnuwin32/alt...ports-0.43.zip 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.
|Thread||Thread Starter||Forum||Replies||Last Post|
|VOF user coding||Ramki||CD-adapco||2||October 29, 2015 02:07|
|converting user-coding in V4||Karl Mehler||CD-adapco||0||September 28, 2008 15:48|
|posdat user coding||Sara||CD-adapco||3||September 18, 2008 13:59|
|Print value to screen in user coding?||Cb||CD-adapco||1||September 30, 2005 07:29|
|Help with coding||James||Main CFD Forum||2||May 18, 2005 05:12|