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
 User Define Limitation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kid

USA
20 Posts

Posted - 07/01/2002 :  6:49:09 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Im tying to define a new type using this lines:
typedef struct {
int testNumber;
StringArray wavefromFiles;
} ImportTestNumber;

typedef vector TestNumberArray;

Im able to use the ImportTestNumber type in my code, but is the in the last line where I get the error message. Is this a OriginC limitation, can I make arrays of my user define types? Or am I doing something wrong in this code.

Alex

cpyang

USA
1406 Posts

Posted - 07/01/2002 :  7:37:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
typedef struct only supports basic types, like int, double etc, so you cannot have StringArray as a struct member.

CP


Go to Top of Page

kid

USA
20 Posts

Posted - 07/02/2002 :  2:11:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I need it to be an array, is there any way around it?

Alex
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/02/2002 :  2:26:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can have array of base types, like
typdef struct {
char szTemp[100];
double junk[30];
} SomeJunk;

or you should try to store things into the worksheet.

CP


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