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
 Origin Forum
 compiling dll

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
JPCASEY Posted - 02/14/2005 : 3:02:09 PM
Origin Version (Select Help-->About Origin): 7.5 pro
Operating System: winxp


this post pertains to a previous one, left on pkf files. I'm trying to use a custom peak for fitting with the pfm. I've written the c function in origin c, but it fits at a rediculously slow speed, so it was suggested i code it in a dll. The origin pfm includes an example dll along with the source code. The dll works fine, however i cannot compile the source that came with it. I assume if i can compile it correctly, i can modify it slightly for the peak function i want.

I cannot seem to compile the dll_func.c file included as an example. The origin compiler cannot find the windows.h header file. i tried using the windows.h file from 2 other compilers but that did not work, and ive tried compiling the dll in those compilers as well which compiled and created the dll, but the dll did not seem to integrate correctly with origin (this pertains to my previous question about pkf files). So my questions are:
1. Is it required that a DLL used by origin be compiled in origin?
2. If origin includes an example, i assume at one time it was supposed to compile, maybe the proper windows.h API file has been removed during an update?

I appreciate any advice on this.
John

1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 02/14/2005 : 4:46:02 PM
The sample file you mention ( dll_func.c ) is not an OriginC example. It is meant to be compiled in a Windows programming environment ( such as Visual Studio ) to a Windows DLL.

Some details are in the PFM Manual on page 96.


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