What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Creating "public" char[]

Creating "public" char[]
Author: Message:
TWDman
Junior Member
**

Avatar

Posts: 83
35 / Male / –
Joined: Nov 2002
O.P. Creating "public" char[]
Sorry, I don't know how to call it for C++, but in VB it's called a "public" variable. What I would like to do is putting the Value of CommandArg into a Char[] @ "Providing new commands" and then get the value of the Char[] @ the Notify part. I'm making a kind of "Topic" plug-in like in IRC:


        /xSetTopic "Is MsgPlus! a great add-on???"

        TWDman changes topic to 'Is MsgPlus! great add-on???'

Ive done this already. The hardest part:

       /xGetTopic

      Topic is 'Is MsgPlus! a great add-on???!'


Patchou (or somebody else) tell me, is this possible??

EMODEROR∑PR∆CEPTORIS∑NON∑SVM
|||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||
Rate me!!!
07-05-2003 08:40 PM
Profile E-Mail PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
40 / Male / Flag
Joined: Jan 2003
RE: Creating "public" char[]
If I understood well, you need to declare a variable to store some text and would like that variable to be public, don't you?

Well, that in C/C++ is called a global variable and you have to define it outside any function. The syntax is the same as if it was a local variable:
code:
char topic[2048];


If you put that outside any function, you'll get a variable called topic accessible from all the functions that you have declared in the same file.

I hope I've answered your question :)
Messenger Plus! en espaŮol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
07-05-2003 10:30 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On