Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Pro/Toolkit - How to link web page to UID

rnd_doss

New member
Hi Folks,


I Would like to know, how to enable web page link directly from Pro/Engineer UI Dialog.


".ButtonStyle 4"enables the lable as like hyperlink.


I need some sample code to do this.
 
I don't have a code example that handles the click event of the button but I can point you to a res file that has a button with a style of 4. Look in this location <Pro Loadpoint>\text\resource\db_client.res. This is the Distributed Pro/BATCH UI resource file.


(OutDirHyper.ButtonStyle 4)
 
Thanks for the response.


Already i have created a dialong with link. All i need is just know how to code for click events.
 
i found the way to do that.


The header is "windows.h" for shellExecute


and i am using VSS C++ 6.0


ShellExecute(NULL, "open", "http://mylink", NULL, NULL, SW_SHOWNORMAL);


But when i compile this i got the following error. Does any one aware ?


C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(357) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(376) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(1519) : error C2054: expected '(' to follow '_inline'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(1519) : error C2085: 'GetFiberData' : not in formal parameter list
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(1519) : error C2143: syntax error : missing ';' before '{'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(1524) : error C2054: expected '(' to follow '_inline'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(1524) : error C2085: 'GetCurrentFiber' : not in formal parameter list
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(1524) : error C2143: syntax error : missing ';' before '{'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(4357) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(4573) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(4577) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(4779) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(5634) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(6036) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(6130) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(6133) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(6139) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(6140) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(6457) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(6778) : error C2133: 'pEventLogRecords' : unknown size
C:\Program Files\Microsoft Visual Studio\VC98\include\winnt.h(6784) : error C2133: 'ulOffsets' : unknown size
C:\Program Files\Microsoft Visual Studio\VC98\include\winbase.h(503) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\winbase.h(504) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winbase.h(1487) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\wingdi.h(1794) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\wingdi.h(1796) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\wingdi.h(1839) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\wingdi.h(1841) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(94) : error C2061: syntax error : identifier 'QUERYHANDLER'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(94) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(94) : error C2059: syntax error : 'type'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(97) : error C2143: syntax error : missing '{' before '*'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(100) : error C2061: syntax error : identifier 'PQUERYHANDLER'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(101) : error C2061: syntax error : identifier 'pi_R0_allvals'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(101) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(102) : error C2061: syntax error : identifier 'pi_R3_1val'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(102) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(103) : error C2061: syntax error : identifier 'pi_R3_allvals'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(103) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(106) : error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio\VC98\include\mmsystem.h(1623) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\mmsystem.h(1627) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\mmsystem.h(1648) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\mmsystem.h(1652) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\mmsystem.h(1788) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\mmsystem.h(1799) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\mmsystem.h(1858) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\nb30.h(14) : error C2059: syntax error : '/'
C:\Program Files\Microsoft Visual Studio\VC98\include\nb30.h(292) : error C2146: syntax error : missing ')' before identifier 'pncb'
C:\Program Files\Microsoft Visual Studio\VC98\include\nb30.h(292) : error C2061: syntax error : identifier 'pncb'
C:\Program Files\Microsoft Visual Studio\VC98\include\nb30.h(292) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio\VC98\include\nb30.h(293) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio\VC98\include\rpcasync.h(45) : warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses
C:\Program Files\Microsoft Visual Studio\VC98\include\shellapi.h(383) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\shellapi.h(422) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(135) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(139) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(164) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(168) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(238) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(245) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(249) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(256) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(261) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(275) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(283) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(287) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(294) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\prsht.h(299) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\rpcndr.h(1149) : error C2133: 'Format' : unknown size
C:\Program Files\Microsoft Visual Studio\VC98\include\wtypes.h(1043) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\wtypes.h(1070) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\wtypes.h(1072) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\wtypes.h(1083) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\wtypes.h(1085) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\objidl.h(6235) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\objidl.h(6267) : error C2467: illegal declaration of anonymous 'struct'
C:\Program Files\Microsoft Visual Studio\VC98\include\objidl.h(8929) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\objidl.h(8984) : error C2467: illegal declaration of anonymous 'union'
C:\Program Files\Microsoft Visual Studio\VC98\include\cguid.h(124) : fatal error C1071: unexpected end of file found in comment
 
I think a better solution would be to show the URL in the embedded browser.
Function ProWindowURLShow







Description


Set the URL displayed in the window's embedded browser.

Synopsis

#include <ProWindows.h>

ProError
ProWindowURLShow
(


int window_id



/* (In)


The window identifier (containing the embedded browser)


*/


wchar_t* url



/* (In)


The URL to display in the embedded browser.


*/

)
 
Thnks for the response.


I was sucessful with this function also able to open the link in embedded browser. But i want to open the browser in serperate window.
 
I got another idead to open in seperate window.


char openlink[100];


strcpy (link, "start iexplore http://mylink");


system (openlink);


the above code opens the browser in separate window.


Thanks,


Murugadoss
 

Sponsor

Back
Top