Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
#include "ProToolkit.h"
#include "user_tk_error.h"
#include "ProMdl.h"
#include "ProMenu.h"
#include "ProMessage.h"
#include "ProNotify.h"
#include "ProObjects.h"
#include "ProUtil.h"
#include "ProTKRunTime.h"
static wchar_t msgfil[30];
//ProName msgfil;
//wchar_t msgfil[]=L"usermsg.txt";
//wchar_t *msgfil=new wchar_t;
//static ProFileName msgfil;
//static wchar_t msgfil[]={'u','s','e','r','m','s','g','.','t','x','t','\0'};
int UserPartStatus()
{
ProMdl p_part;
ProMdldata info;
ProBoolean is_modified;
ProError err;
err=ProMdlCurrentGet(&p_part);
ERROR_CHECK("UserPartStatus","ProMdlCurrentGet",err);
err=ProMdlDataGet(p_part,&info);
ERROR_CHECK("UserPartStatus","ProMdlDataGet",err);
ProMdlModificationVerify(p_part,&is_modified);
ERROR_CHECK("UserPartStatus","ProMdlModificationVerify",err);
if (is_modified==PRO_B_TRUE)
ProMessageDisplay(msgfil,"USER Current object: %0w.%1w (MODIFIED)",info.name,info.type);
else
ProMessageDisplay(msgfil,"USER Current object: %0w.%1w",info.name,info.type);
return 0;
}
ProError UserCheckPart()
{
return(PRO_TK_NO_ERROR);
}
extern "C" int user_initialize()
{
int menu_id;
ProStringToWstring(msgfil,"usermsg.txt");
ProMenuFileRegister("part","part.mnu",&menu_id);
ProMenuAuxfileRegister("part","part.aux",&menu_id);
ProMenubuttonActionSet("part","Status",(ProMenubuttonAction)UserPartStatus,NULL,0);
ProNotificationSet(PRO_MDL_SAVE_PRE,UserCheckPart);
return (0);
}
extern "C" void user_terminate()
{
ProTKPrintf ("Pro/TOOLKIT application terminated successfully\n");
}
DLL file was created,but show this error and warning
Warning 1 warning MSB8005: The property 'NMakeCleanCommandLine' doesn't exist. Skipping... C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets 32 6 testing
2 IntelliSense: too many arguments in function call d:\toolkit\testing\testing\testing.cpp 35 26 testing
3 IntelliSense: too many arguments in function call d:\toolkit\testing\testing\testing.cpp 37 23 testing
Hi Keerthana,
It seems that you posted the question twice - please see my answer in the other forum post - what this error in program
Thanks,
James Sullivan