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

tinkusch

Germany
94 Posts

Posted - 07/09/2008 :  04:43:44 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
ORIGIN 7.5 German, XP

Hi folks,
I would like to add a specific path to the
GetOpenBox function with the following code:

void openfile(sting mypath)
{
strPath = GetOpenBox("*.txt", mypath );

and so on....
}

Is this possible at all?
The problem is, that the GetOpenBox function does not accept the string variable mypath and uses the default path instead.

Any ideas how to solve this are welcome, thanks + bye
Stefan

eparent

118 Posts

Posted - 07/24/2008 :  10:25:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The following sample code shows the Open file dialog with the correct path in 7.5 SR7 English XP. Make sure the path you specify exists.


void openFile(string mypath)
{
	string strPath = GetOpenBox("*.txt", mypath);
}

void testOpenFile()
{
	string strMyPath = "c:\\windows\\system";
	openFile(strMyPath);
}
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