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 for Programming
 Forum for Origin C
 errors in 7.0 upgrade to 7.5 for custom C code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hilbert7

Canada
Posts

Posted - 07/24/2006 :  5:52:55 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

zachary_origin

China
Posts

Posted - 07/24/2006 :  9:25:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

zachary_origin

China
Posts

Posted - 07/25/2006 :  12:41:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

hilbert7

Canada
Posts

Posted - 07/25/2006 :  10:38:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Zachary,

Thanks a bunch for the help! I've changed the variable name and it works great.
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