Reading the .MSG file
Moderator: Mod Squad
Reading the .MSG file
Ok, I've done the following:
dsknowmb=opnmsg("dsknow.msg"); in my init__ statement but I'm not able to do the following in another function:
prfmsg(DSKNOW);
It tells me that DSKNOW is an undefined symbol when it is in the .MSG file. Am I missing something more to this? The docs are crap when it comes to this at times.
dsknowmb=opnmsg("dsknow.msg"); in my init__ statement but I'm not able to do the following in another function:
prfmsg(DSKNOW);
It tells me that DSKNOW is an undefined symbol when it is in the .MSG file. Am I missing something more to this? The docs are crap when it comes to this at times.
Have you declared DSKNOW anywhere?
Sysop of QuickSilver MBBS
http://www.quicksilvermbbs.com
http://www.hashhouse.net
http://www.dataware.info
http://informationware.com
http://www.quicksilvermbbs.com
http://www.hashhouse.net
http://www.dataware.info
http://informationware.com
It's in the .MSG file. Now, I just need to know how to read that...so maybe I'm missing something in this process of loading the .MSG file, and trying to display one of the variables set there...how would I read a variable from it so that I can display it?Toyduck wrote:Have you declared DSKNOW anywhere?
Re: Reading the .MSG file
you doing an #include "dsknow.h" in the header of the program?The Storm wrote:Ok, I've done the following:
dsknowmb=opnmsg("dsknow.msg"); in my init__ statement but I'm not able to do the following in another function:
prfmsg(DSKNOW);
It tells me that DSKNOW is an undefined symbol when it is in the .MSG file. Am I missing something more to this? The docs are crap when it comes to this at times.
Re: Reading the .MSG file
oh yeah and its: opnmsg("dsknow.mcv");The Storm wrote:Ok, I've done the following:
dsknowmb=opnmsg("dsknow.msg"); in my init__ statement but I'm not able to do the following in another function:
prfmsg(DSKNOW);
It tells me that DSKNOW is an undefined symbol when it is in the .MSG file. Am I missing something more to this? The docs are crap when it comes to this at times.
should have just been opnmcv
Re: Reading the .MSG file
Hey Dan,dspain wrote:oh yeah and its: opnmsg("dsknow.mcv");The Storm wrote:Ok, I've done the following:
dsknowmb=opnmsg("dsknow.msg"); in my init__ statement but I'm not able to do the following in another function:
prfmsg(DSKNOW);
It tells me that DSKNOW is an undefined symbol when it is in the .MSG file. Am I missing something more to this? The docs are crap when it comes to this at times.
should have just been opnmcv
Ok, I want to open the MSG file, read the contents and echo it out to the user. Got a snippit for that? I'm still a bit lost as my app kills the server on the advertisement as it doesn't know what user. hehe
Re: Reading the .MSG file
sure:The Storm wrote:Hey Dan,dspain wrote:oh yeah and its: opnmsg("dsknow.mcv");The Storm wrote:Ok, I've done the following:
dsknowmb=opnmsg("dsknow.msg"); in my init__ statement but I'm not able to do the following in another function:
prfmsg(DSKNOW);
It tells me that DSKNOW is an undefined symbol when it is in the .MSG file. Am I missing something more to this? The docs are crap when it comes to this at times.
should have just been opnmcv
Ok, I want to open the MSG file, read the contents and echo it out to the user. Got a snippit for that? I'm still a bit lost as my app kills the server on the advertisement as it doesn't know what user. hehe
In Your C File
----------------
#include "myfile.h" /* include the message file header */
HMCVFILE filemb; /* declare the MCV file block pointer */
within the INIT__ proto-type have:
filemb=opnmsg("myfile.mcv"); /* open the file */
in the logon routine have it go:
setmbk(filemb); /* set the MSG pointer */
prfmlt(MSGBLOCK); /* write the prfbuf */
outmlt(usrnum); /* inject to current user */
rstmbk(); /* restore last MCV block */
in the shutdown routine type:
clsmsg(filemb); /* close the file for system shutdown */
if ya need me to send ya a simple skeleton that displays HELLO WORLD to a user logging on let me know.
Re: Reading the .MSG file
That's sorta what I'm trying for right now. I will never turn down skeletons as the ARCMUD one confused me a bit as the functions are a bit new to me. It's not your usua printf(); routines..hehedspain wrote:if ya need me to send ya a simple skeleton that displays HELLO WORLD to a user logging on let me know.
Re: Reading the .MSG file
oh wow i forgot i made that one years ago....should see the WGME and TA6 code.The Storm wrote:That's sorta what I'm trying for right now. I will never turn down skeletons as the ARCMUD one confused me a bit as the functions are a bit new to me. It's not your usua printf(); routines..hehedspain wrote:if ya need me to send ya a simple skeleton that displays HELLO WORLD to a user logging on let me know.
im putting a skeleton on my system now that will allow you to see how messages are injected to users logging on.
mod it to your delight.
Re: Reading the .MSG file
Dan, again, thank you for all your help.dspain wrote:oh wow i forgot i made that one years ago....should see the WGME and TA6 code.The Storm wrote:That's sorta what I'm trying for right now. I will never turn down skeletons as the ARCMUD one confused me a bit as the functions are a bit new to me. It's not your usua printf(); routines..hehedspain wrote:if ya need me to send ya a simple skeleton that displays HELLO WORLD to a user logging on let me know.
im putting a skeleton on my system now that will allow you to see how messages are injected to users logging on.
mod it to your delight.
Re: Reading the .MSG file
no problem. im your local ISV customer service reprasentitiveThe Storm wrote:Dan, again, thank you for all your help.dspain wrote:oh wow i forgot i made that one years ago....should see the WGME and TA6 code.The Storm wrote: That's sorta what I'm trying for right now. I will never turn down skeletons as the ARCMUD one confused me a bit as the functions are a bit new to me. It's not your usua printf(); routines..hehe
im putting a skeleton on my system now that will allow you to see how messages are injected to users logging on.
mod it to your delight.