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
 how to release control?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mynameisok

China
Posts

Posted - 03/29/2007 :  11:37:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):
Operating System:xp

i found the code in this forum.
the code uses FDLOG to open files.
but after running this , i can not rename or delete the folder which the opened files belong to,until origin exits.
(all the files in the folder could be renamed or deleted)

so,how to release the control of FDLOG without close origin?

thank you!


bool Read_Files(void)
{
if (FDLOG_LT_init())
{
LabTalk.FDLOG.numTypes=1;
LabTalk.FDLOG.type1$="[Perkin Elmer DSC-2C Binary]*.DA";
LabTalk.FDLOG.Dlgname$="Select one or more PETOS DSC-2C binary Files";
if (LabTalk.FDLOG.multiopen()==0)
{
for (int i=1;i<=LabTalk.FDLOG.multiopen.count;i++)
{
LabTalk.FDLOG.get("V",i);
char PathToFile[MAXFULLPATH];
LT_get_str("%V",PathToFile,MAXFULLPATH);
/*
PathToFile now contains the full path to the file
Do something with PathToFile ....
*/
}
return (true);
}
}
return (false);
}

bool FDLOG_LT_init(void)
{
// Adapted from the init section of FILE.OGS
LabTalk.FDLOG.Reset();
LabTalk.FDLOG.DlgName$="";
LabTalk.FDLOG.OptionDLG$="";
LabTalk.FDLOG.checkname$="";
LabTalk.FDLOG.ShowComment=0;
LabTalk.FDLOG.CheckStatus=0;
LabTalk.FDLOG.default$="";
LabTalk.FDLOG.MultiOpen.ComboName$="";
if(LabTalk.FDLOG.MultiOpen.ComboSel<1 || LabTalk.FDLOG.MultiOpen.ComboSel>3)
LabTalk.FDLOG.MultiOpen.ComboSel = 2;
return (true);
}



Edited by - mynameisok on 03/29/2007 11:44:22 AM

Mike Buess

USA
3037 Posts

Posted - 03/29/2007 :  1:25:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I assume you have Origin 7.0 or you would be using OC's built-in GetMultiOpenBox instead of fdlog.multiOpen. However, the same thing happens with GetMultiOpenBox so that would not solve your problem. The only solution I know of is to select a file in another folder with fdlog.open or fdlog.multiopen. Rather awkward but should be OK for occasional use.

Mike Buess
Origin WebRing Member
Go to Top of Page

mynameisok

China
Posts

Posted - 03/30/2007 :  7:47:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you!

i see.
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