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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Graph Control Dialog

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dkudlay Posted - 12/07/2009 : 1:49:22 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
Iris_Bai Posted - 12/08/2009 : 02:07:51 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000