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

JPCASEY

USA
Posts

Posted - 02/14/2005 :  3:02:09 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

greg

USA
1379 Posts

Posted - 02/14/2005 :  4:46:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

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