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 for Programming
 Forum for Origin C
 Load multiple files

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
j@y Posted - 08/27/2015 : 2:04:05 PM
Hi all,
I would like to work with multiple files. How to evoke in Origin C an appropriate Open dialogue, such as that in "Import > Multiple ASCII...", with Add/Remove File(s) buttons and how to access individual files then? Does it produce a list of file paths or so?
Many thanks for your help!!
---
5   L A T E S T    R E P L I E S    (Newest First)
j@y Posted - 08/29/2015 : 05:01:48 AM
UPDATE: An appropriate get_open_box_by_file_group() file type definition (2nd parameter) may be found in the Origin's *.xfc, *.oxf and mainly file.ogs (description in origin.omg) files...
j@y Posted - 08/29/2015 : 12:41:23 AM
Amazing! Many thanks, Castiel.
All the best, Jiri
Castiel Posted - 08/28/2015 : 10:40:06 AM
quote:
Originally posted by j@y

Hi all,
I would like to work with multiple files. How to evoke in Origin C an appropriate Open dialogue, such as that in "Import > Multiple ASCII...", with Add/Remove File(s) buttons and how to access individual files then? Does it produce a list of file paths or so?
Many thanks for your help!!
---





int get_open_box_by_file_group( string & strFile, LPCSTR lpcszGroup, LPCSTR lpcszTitle = NULL, DWORD dwFlags = 0, LPCSTR lpcszDefaultPath = NULL, LPCSTR lpcszDefaultFilename = NULL, LPCSTR lpcszCheckBoxName = NULL, int * lpnCheckBoxState = NULL, LPCSTR lpcszFuncName = NULL )


©c¡Ï   ¤È¥¹  ©f¨u©c  ©c¥ì    ¥Î¤³  ©c/     ©¦£¯
 ©c¨Ê¥Î ¤´¥¨  ¥ó ¨×   ¥ó¤á' ¥Ì©¦¥­   /¤í  ¥Õ©¦©f
   ¨Ö             ¦á          ©¦£þ  ©` ¥Õ   ©¦
                              ©¦
j@y Posted - 08/28/2015 : 08:47:59 AM
Thanks, Jason. I was thinking about this option as well. However, since the Menu IDs are version dependent and the file paths and names may be generally different, it is presently more convenient to use a text file containing paths to desired source files...
All the best,
Jiri
jasonzhao Posted - 08/27/2015 : 9:49:03 PM
Hello,

Please try the Origin C code below to open the import multiple ascii dialog

int ascdlg()
{
LT_execute("domenu 34037");
return 0;
}


Best regards!
Jason
OriginLab Technical Service


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