-
July 12th, 2006, 09:38 AM
#1
Basic c++ calling values problem
Hallo,
I have a basic c++ problem .
I have two c++ files, and i want to pass the values between each other.
for example:
Mac.cc and scheduler.cc
In mac.cc , i have a (char buffer) value and I want to use it in scheduler.cc.
I tried with, by declaring a function in mac.h and pass the buffer variable there but I dont know how to receive it .,
or is there any other easiest way?.
Please help me in this regard.
mfg,
kings
kings4u
-
July 12th, 2006, 01:23 PM
#2
Re: Basic c++ calling values problem
You need to have a global variable in Mac.cc, for example:
And in scheduler.cc you then need to use extern keyword:
Please don't forget to rate users who helped you!
-
July 12th, 2006, 05:00 PM
#3
Re: Basic c++ calling values problem
kings4u
-
July 12th, 2006, 05:15 PM
#4
Re: Basic c++ calling values problem
Originally Posted by kingslee
thank you my friend.
Bitteschön!
Please don't forget to rate users who helped you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|