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

UliK26

Switzerland
Posts

Posted - 03/05/2004 :  05:21:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I am new to Origin C and do not know how to define a global variable. I do want to transmit a string constant across a number of different functions. I tried

extern string test;

but that seems not to work. Can anybody help me?

UliK26

Switzerland
Posts

Posted - 03/05/2004 :  05:48:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
O.K.,


I found a solution:

static string test;

works.

Sorry for bothering everybody.
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