Template for custom Exit DLL Program
For ITK Customization,please see below Custom Exit DLL Program Template.
#include<stdio.h>
#include<tc\tc.h>
#include<tccore\custom.h>
int iFail=0;
#define DLLAPI_declspec(dllexport)
extern DLLAPI int custom_dll_register_callbacks();
extern DLLAPI int GLOBALPLM_execute_callbacks1(int *decision,va_list argc);
extern DLLAPI int GLOBALPLM_execute_callbacks2(int *decision,va_list argc);
extern DLLAPI int ustom_dll_register_callbacks()
{
iFail=custom_register_exit(“custom_dll”,”USER_init_module”,(CUSTOM_EXIT_ftn_t)GLOBALPLM_execute_callbacks1);
iFail=custom_register_exit(“custom_dll”,”USER_exit_module”,(CUSTOM_EXIT_ftn_t)GLOBALPLM_execute_callbacks2);
}
extern DLLAPI int GLOBALPLM_execute_callbacks1(int *decision,va_list argc)
{
*decision=ALL_CUSTOMIZATIONS;
printf(“WELCOME TO TEAMCENTER PLM”);
return iFail;
}
extern DLLAPI int GLOBALPLM_execute_callbacks2(int *decision,va_list argc)
{
*decision=ALL_CUSTOMIZATIONS;
printf(“GOOD BYE”);
return iFail;
}
Popular Teamcenter Article published
Microsoft Visual Studio Project configuration for Teamcenter Unified ITK
Four Easy Steps to Get Subscribed
Step1:-Enter your Email address and Hit SUBSCRIBE Button.
Step2:-Please check inbox and open the email with the subject line“Confirm your subscription for Global PLM“.
Step3:-Please click “Confirm Follow” and you got the email with the subject” Confirmed subscription to posts on Global PLM”.
Step4:-Voila, You are subscribed.Happy Learning
We will more post on PLM Tutorial–>Teamcenter Customization in upcoming days.
Kindly provide your valuable comment on the below Comment section and We will try to provide the best workaround.
Kindly subscribe to your Email-Id at (https://globalplm.com/) and drop any suggestions/queries to ([email protected]).