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
 MFC

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
Rimmer Posted - 05/29/2002 : 10:35:39 PM
I would like to create a dll with full MFC support (visual studio 5) which can parse data forward and back between Origin 7.0. Is this possible and if so how. The examples I've seen so far are not MFC, so before fumbling in the dark I'd thought I'd ask
7   L A T E S T    R E P L I E S    (Newest First)
Rimmer Posted - 06/01/2002 : 5:36:47 PM
Hello

Thanks for all the help. I'll upgrade to vc++6 or maybe reinstall visual studio.net. We basically want our code to use origins excellent graphing capabilities, but stick with our MFC based code, so this seems the best solution. The MFC coding is not a problem, it's getting the two prog to communicate that will be interesting.

Again, thanks for the help
easwar Posted - 05/31/2002 : 09:04:32 AM
Hi Rimmer,

Have you tried coding your customized import and analysis functions in Origin C itself? Origin C is much faster than our scripting language, LabTalk, by up to a factor of 20 for numerical computations. So you may not need to write an external DLL for your data processing. If you still want to go the external DLL route, you can do one of the following:
1> Use Origin C to access functions from an external DLL as Eric mentioned in his reply
2> Upgrade to VC6 to resolve your compilation problem for MOCA DLL

Easwar
OriginLab.
Rimmer Posted - 05/31/2002 : 03:50:35 AM
I've tried the MOCA stuff again, which wouldn't compile previously (see topic oversion.h) Have installed the updated MOCA OPK file. Problem is that the examples still won't compile. I now get

/lib/mocavc6d.lib: fatal error LNK11106: invalid file or disk full: cannot seek to 0x3cebec92.

I'm using visual c++ 5.0 which might be a problem. if it is is there a compatible .lib file for it
Rimmer Posted - 05/30/2002 : 2:56:37 PM
Basically, it is intended to be a custom file importer for photoemission and Auger spectra with its on spectral fitting analysis code, smoothing and other spectra analysis components.
eparent Posted - 05/30/2002 : 12:42:34 PM
MOCA is actually newer than calling DLLs with LabTalk's "DLL " command. OriginC is newer than MOCA but MOCA is still supported. OriginC can call DLL functions. These DLLs can be written with or without MFC. What is it you want your DLL to do?


Rimmer Posted - 05/30/2002 : 10:34:15 AM
I was informed in a previous message that Moca was old technology and is only being used internally in Origin 7 for old modules. I've tried compiling an MFC based dll using WINAPI calls instead of FAR PASCAL, and attempting to start them in origin using the command DLL dllname dllroutine, but origin cannot find the routine inside the dll. The examples in the ATI folder are rather old, written in c, with as far as I can tell no MFC support. An example project using MFC would be really nice to see.
eparent Posted - 05/30/2002 : 09:28:23 AM
What examples were you looking at?
Origin Pro comes with an ATI folder. In this folder is a MOCA folder. MOCA is a library of classes for talking to an Origin worksheet, dataset, and matrix. These examples require MFC, but they also require Visual Studio 6. There is also a Fortran example. MOCA DLLs are mapped to LabTalk objects. If you wish to make a DLL for use with OriginC then the choice to use MFC is up to you. In fact you can probably use any language or compiler that supports making DLLs.



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