Ticket #21882

Currentディレクトリの設定

Open Date: 2010-05-21 17:27 Last Update: 2010-05-21 17:33

Reporter:
Owner:
Status:
Open [Owner assigned]
Component:
MileStone:
(None)
Priority:
4
Severity:
5 - Medium
Resolution:
None
File:
None

Details

デフォルトは%APP%と同じ。 Win32API / COCOAで適当なディレクトリのパスを取得->%Current%で以降指定可能

Ticket History (3/4 Histories)

2010-05-21 17:27 Updated by: marl6000
  • New Ticket "Currentディレクトリの設定" created
2010-05-21 17:28 Updated by: marl6000
Comment

参考コード

#include <psychlops.h> using namespace Psychlops; // Initially developed with Psychlops Win32 1.4.6 / 20100325

void RectLuminance() { double results100; std::string path;

path=Widgets::Dialog::getOpenFileName();

for(int i=0; i<100; i++){ resultsi=random(100); }

Data::savearray((char*)path.c_str(), "Result", 100, results);

}

void psychlops_main() {

Canvas display(Canvas::fullscreen);

Procedure p; p.setDesign(Procedure::DEMO); p.setProcedure(RectLuminance); p.run();

}

2010-05-21 17:33 Updated by: marl6000
Comment

理想コード

path=Widgets::Dialog::getDirectryName(); XXX::setCurrentPath(path);

Data::savearray("%Current%data.txt", "result", 100, results);

2010-05-21 17:33 Updated by: hskwk
Comment

ダイアログも入れる

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login