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
 Call a function in the same .c file

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
winflowers Posted - 09/18/2007 : 10:20:21 AM
Origin Version (Select Help-->About Origin): Origin 7.5 SR6
Operating System: XP

The function name is stored in a string variable. How can I call this function in the same .c folder.

It seems that FindFunction can find and run a function in a different .c file. But I think probably there is a simpler way to do so.

void aaa()
{
...
}

void bbb()
{
...
string strFunc="aaa";
//I would like to run aaa() here
...
}
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 09/18/2007 : 1:11:23 PM
Sorry, you still need to use FindFunction even if the function is in the same file. But you can use __FILE__ in place of the current file path\name.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 09/18/2007 1:11:58 PM

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