The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 "VTS_"s place and how to define the WorksheetPage

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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
**********************************************************

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000