×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Detecting UG application environment type

Detecting UG application environment type

Detecting UG application environment type

(OP)
We are developing a NX Open C++ library for our internal use. The windows based library is to be used by both internal (.exe) and external (.dll) NX client applications.
Is there any way to determine the type of caller client application(e.g. external or internal) from the library such that the error logs or likewise could be directed to NX Dialogs for external clients and log files for internals?

Thank you

RE: Detecting UG application environment type

serhand,

UF_ask_application_module

Defined in: uf.h

Overview

Returns the current application module. The value that is returned
maps to a string defined constant. You can find the string in the
header file uf.h. The strings are of the form UF_APP_<module>.
For example, UF_APP_DRAFTING represents the drafting module.

Note - if this function is called from an external program it will
always return a FALSE and an app id of APP_NONE.

Environment
Internal and External

Required License(s)
gateway

int UF_ask_application_module
(
int * module_id
)

Output: The module identification value of the current application.

HTH,

Joe

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources