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

dkudlay

USA
22 Posts

Posted - 12/07/2009 :  1:49:22 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
When I follow the instructions for the Graph Control Dialog Example:

http://ocwiki.originlab.com/index.php?title=OriginC:Graph_Control_Dialog

I get the following error after calling OpenGraphPreviewDlg 0

sample.c(101) :Origin C Function Runtime Error, The dll containing the dialog resource was not found.

This occurs on DoModal(hWndParent, dwDlgOptions);
of the DoModalEx function.

Iris_Bai

China
Posts

Posted - 12/08/2009 :  02:07:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Your c file must under \OriginC\Originlab folder in Origin program path for this example.

Please look at this line in example codes:

GraphPreviewDlg::GraphPreviewDlg(GraphPage& gp, bool bRealTimeUpdate, int ID)
:ResizeDialog(ID, "ODlg")


"ODlg" means the file name of dialog resource. If not specify path, the default path of the dll file is the same as the source c file. ODlg.dll file is an Origin buildin file under \OriginC\Originlab folder, so need put source file under the same path.

This function just an example, you can display graph preview on your dialog, then change "ODlg" as your own resource file path and name with absolute path, then will not this limitation.


Iris
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