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
 errors in 7.0 upgrade to 7.5 for custom C code

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
hilbert7 Posted - 07/24/2006 : 5:52:55 PM
Origin Version (Select Help-->About Origin): 7.5 SR6 - v7.5885 (B885)
Operating System: Windows XP x64

Hi,

A previous grad student developed a very useful import tool using Origin C, which worked flawlessly in Origin 7.0, but gives me errors in ver.7.5.

I was wondering if anyone could easily tell me what to fix, before I spend a week learning Origin C and figuring out what the problem is:

When I try and compile the code it gives me the following errors:

C:\Program Files (x86)\OriginLab\OriginPro75\tor\OriginC\Import.C(28) :Error, error(s) found in compiling function ImportXASData

Here's line 28 and 29 in the code:
int ImportXASData(string filePath)
{

Next error:

C:\Program Files (x86)\OriginLab\OriginPro75\tor\OriginC\Import.C(55) :Error, general compile error

line 55:
if(importedLine.Compare("LOOM 1.4")==0)

Next two errors from same line:

C:\Program Files (x86)\OriginLab\OriginPro75\tor\OriginC\Import.C(110) :Error, general compile error

C:\Program Files (x86)\OriginLab\OriginPro75\tor\OriginC\Import.C(110) :Error, invalid identifier, check using as name:point

line 110:
point=0;

Thanks for your help.
3   L A T E S T    R E P L I E S    (Newest First)
hilbert7 Posted - 07/25/2006 : 10:38:27 AM
Hi Zachary,

Thanks a bunch for the help! I've changed the variable name and it works great.
zachary_origin Posted - 07/25/2006 : 12:41:01 AM
Hi,

I have looked at the codes you sent us.
The matter is that the varible point you defined is a keyword for Origin C in V7.5 . The builder compiles it as an identifier for point class, so it doesn't work.

You can fix these simply by replacing point with another name, e.g. iPoint. It will work.



Zachary
OriginLab GZ Office


Edited by - zachary_origin on 07/25/2006 12:56:37 AM
zachary_origin Posted - 07/24/2006 : 9:25:57 PM
Hi,

Can you send us your codes to us for it is not enough to get the problem simply from the error message. You can mail to tech@originlab.com

Zachary
OriginLab GZ Office

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