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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 getn function can not response
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

msj

China
6 Posts

Posted - 02/01/2018 :  03:30:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
hi,everybody,i meet a problem.
when i set @OSCE=1,the getn function can not response. for example, when i change the parameter by PEVENT_FUNC, the getn dialog has no change. how can i do? thanks very much!

yuki_wu

896 Posts

Posted - 02/01/2018 :  05:24:40 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Origin doesn't have this system variable @OSCE actually. Not sure if it is a typo, you should check your question again.

Regards,
Yuki
OriginLab
Go to Top of Page

msj

China
6 Posts

Posted - 02/01/2018 :  10:02:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am sorry, it is @OCSE=1,is the encryption feature.thank for your reply.
quote:
Originally posted by yuki_wu

Hi,

Origin doesn't have this system variable @OSCE actually. Not sure if it is a typo, you should check your question again.

Regards,
Yuki
OriginLab

Go to Top of Page

msj

China
6 Posts

Posted - 02/04/2018 :  6:09:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hi, everyone, can you help me to solve this problem? thanks
Go to Top of Page

Castiel

343 Posts

Posted - 02/05/2018 :  12:33:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by msj

I am sorry, it is @OCSE=1,is the encryption feature.thank for your reply.



@OCSE is not a system variable.


     #####
    #### _\_  ________
    ##=-[.].]| \      
    #(    _\ |  |------|
     #   __| |  ||||||||
      \  _/  |  ||||||||
   .--'--'-. |  | ____ |
  / __      `|__|[o__o]|
_(____nm_______ /____\____ 
Go to Top of Page

yuki_wu

896 Posts

Posted - 02/05/2018 :  12:48:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Origin has neither @OCSE nor @OSCE. You better do a quick check at first, enter the system variable in Script Window, for example:

@OCSE=;

Then click enter key. If this system variable is not existing, you could see a message:


Regards,
Yuki
OriginLab
Go to Top of Page

msj

China
6 Posts

Posted - 02/06/2018 :  6:44:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

hi,i check the system variables,@OCSE has exist.
Go to Top of Page

Castiel

343 Posts

Posted - 02/07/2018 :  02:40:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by msj


hi,i check the system variables,@OCSE has exist.



IIRC @OCSE has been removed since Origin 2017.
What's the version of your Origin? Show you code about PEVENT_FUNC.


     #####
    #### _\_  ________
    ##=-[.].]| \      
    #(    _\ |  |------|
     #   __| |  ||||||||
      \  _/  |  ||||||||
   .--'--'-. |  | ____ |
  / __      `|__|[o__o]|
_(____nm_______ /____\____ 

Edited by - Castiel on 02/07/2018 02:43:08 AM
Go to Top of Page

yuki_wu

896 Posts

Posted - 02/07/2018 :  03:45:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I suppose you are using Origin 2016 or other older version. @OCSE has been deleted since Origin 2017, and I think it is not the reason of your problem. I will suggest to use:

int GetNBox(TreeNode& tr, PEVENT_GETN pfnEventEx, LPCSTR lpcszTitle = NULL, LPCSTR lpcszDescription = NULL, HWND hWndParent = NULL, bool bShowApplyButton = false, PAPPLY_FUNC pfnApply = NULL);


to construct the GetN dialog instead of the old one that should call PEVENT_FUNC

Regards,
Yuki
OriginLab

Edited by - yuki_wu on 02/07/2018 03:46:27 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000