| T O P I C    R E V I E W | 
               
              
                | flycs99 | 
                Posted - 03/15/2019 : 09:29:18 AM  Where can I find the definition of VTS_RORIGINOBJ,VTS_OUIP,VTS_VOID,VTS_CTRL,etc?  If I want to pass the worksheet parameters and the function is the protected function of an object, what should I use in the DISP_FUNCTION part?
  BEGIN_DISPATCH_MAP(theDlg, HTMLDlg) 	DISP_FUNCTION(theDlg, importTest, VTS_I4, VTS_VOID)    	DISP_FUNCTION(theDlg, createWorksheet, VTS_I4, ?????)
  END_DISPATCH_MAP
  int theDlg::createWorksheet(WorksheetPage wksPg){} | 
               
              
                | 4   L A T E S T    R E P L I E S    (Newest First) | 
               
              
                | flycs99 | 
                Posted - 07/05/2019 : 11:10:57 AM  Thank you for your help. This is very useful and I really can find the definition.
 
 quote: Originally posted by Chris D
  Here is one method for locating the definition of the VT_ 's.
  In Code Builder, hit Ctrl+Shift+F to open the Find in Files dialog.
  Dialog settings: > Find What: VTS_I4 > In Folder: C:\Program Files\OriginLab\Origin2019\OriginC  (or whatever version of Origin you are using). > In File Types: *.h > Check Match Case > Check Subfolders
  This will search the Origin C source code header files for the value and put the list in the "Find Results" tab. If you want to do much with Origin C, I suggest you get good at searching like this. You can learn an awful lot by perusing the Origin C source code.
  Hint: You can also hit Shift+Alt+S and use the Find Symbols dialog to see where functions and class methods are defined.
  Thanks, Chris Drozdowski Originlab Technical Support
 
 
   | 
               
              
                | Chris D | 
                Posted - 04/01/2019 : 2:48:13 PM  Here is one method for locating the definition of the VT_ 's.
  In Code Builder, hit Ctrl+Shift+F to open the Find in Files dialog.
  Dialog settings: > Find What: VTS_I4 > In Folder: C:\Program Files\OriginLab\Origin2019\OriginC  (or whatever version of Origin you are using). > In File Types: *.h > Check Match Case > Check Subfolders
  This will search the Origin C source code header files for the value and put the list in the "Find Results" tab. If you want to do much with Origin C, I suggest you get good at searching like this. You can learn an awful lot by perusing the Origin C source code.
  Hint: You can also hit Shift+Alt+S and use the Find Symbols dialog to see where functions and class methods are defined.
  Thanks, Chris Drozdowski Originlab Technical Support
  | 
               
              
                | flycs99 | 
                Posted - 03/24/2019 : 01:25:28 AM  quote: Originally posted by Castiel
 
 quote: Originally posted by flycs99
  Where can I find the definition of VTS_RORIGINOBJ,VTS_OUIP,VTS_VOID,VTS_CTRL,etc? 
 
  
 #define		VTS_RORIGINOBJ		"\x31"
#ifdef _O64
#define		VTS_OUIP		"\x15"
#else		
#define		VTS_OUIP		"\x03"	
#endif
#define		VTS_VOID		""
#define		VTS_CTRL		"\x10"
 
 
 quote:
  If I want to pass the worksheet parameters and the function is the protected function of an object, what should I use in the DISP_FUNCTION part?
  BEGIN_DISPATCH_MAP(theDlg, HTMLDlg) 	DISP_FUNCTION(theDlg, importTest, VTS_I4, VTS_VOID)    	DISP_FUNCTION(theDlg, createWorksheet, VTS_I4, ?????)
  END_DISPATCH_MAP
  int theDlg::createWorksheet(WorksheetPage wksPg){}
  
  What kind of scenario? For HTMLDlg, it's recommended to pass parameters in basic types only (not OriginObject). Be it public function or not, they should work.
 
 
                                          &&&&&&&&&
                                        &&&
                                       &&
                                      &  _____ ___________
                                     II__|[] | |   I I   |
                                    |        |_|_  I I  _|
                                   < OO----OOO   OO---OO
**********************************************************
 
  
  Thank you for your reply.  Where did you find the definition? How could I find the definition? The public function would work. | 
               
              
                | Castiel | 
                Posted - 03/17/2019 : 10:04:03 PM  quote: Originally posted by flycs99
  Where can I find the definition of VTS_RORIGINOBJ,VTS_OUIP,VTS_VOID,VTS_CTRL,etc? 
 
  
 #define		VTS_RORIGINOBJ		"\x31"
#ifdef _O64
#define		VTS_OUIP		"\x15"
#else		
#define		VTS_OUIP		"\x03"	
#endif
#define		VTS_VOID		""
#define		VTS_CTRL		"\x10"
 
 
 quote:
  If I want to pass the worksheet parameters and the function is the protected function of an object, what should I use in the DISP_FUNCTION part?
  BEGIN_DISPATCH_MAP(theDlg, HTMLDlg) 	DISP_FUNCTION(theDlg, importTest, VTS_I4, VTS_VOID)    	DISP_FUNCTION(theDlg, createWorksheet, VTS_I4, ?????)
  END_DISPATCH_MAP
  int theDlg::createWorksheet(WorksheetPage wksPg){}
  
  What kind of scenario? For HTMLDlg, it's recommended to pass parameters in basic types only (not OriginObject). Be it public function or not, they should work.
 
 
                                          &&&&&&&&&
                                        &&&
                                       &&
                                      &  _____ ___________
                                     II__|[] | |   I I   |
                                    |        |_|_  I I  _|
                                   < OO----OOO   OO---OO
**********************************************************
 | 
               
             
           | 
         
       
       
     |