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
 Load multiple files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

j@y

Germany
29 Posts

Posted - 08/27/2015 :  2:04:05 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!!
---

jasonzhao

China
262 Posts

Posted - 08/27/2015 :  9:49:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Edited by - jasonzhao on 08/27/2015 9:50:49 PM
Go to Top of Page

j@y

Germany
29 Posts

Posted - 08/28/2015 :  08:47:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Castiel

343 Posts

Posted - 08/28/2015 :  10:40:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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 )


妾+   午旦  妹罕妾  妾伊    用仇  妾/     岫ㄞ
 妾京用 仍巨  件 侈   件戶' 甘岫平   /欠  白岫妹
   併             艮          岫  奈 白   岫
                              岫
Go to Top of Page

j@y

Germany
29 Posts

Posted - 08/29/2015 :  12:41:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Amazing! Many thanks, Castiel.
All the best, Jiri
Go to Top of Page

j@y

Germany
29 Posts

Posted - 08/29/2015 :  05:01:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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...

Edited by - j@y on 08/29/2015 05:25:28 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