|
|
Line 8: |
Line 8: |
| /* Some words on how create message files: | | /* Some words on how create message files: |
| This example demonstrates how to create a message with inserts from a system message file. It | | This example demonstrates how to create a message with inserts from a system message file. It |
| creates a file named "SAMPLE.TXT" with the following 3 lines in it: | | creates a file named "SAMPLE.TXT" with the following 3 lines in it: |
| ;sample system message file - SAMPLE.MSG ... | | ;sample system message file - SAMPLE.MSG ... |
| DOS<CR> | | DOS<CR> |
Line 27: |
Line 27: |
| { | | { |
| UCHAR *IvTable[2] = {0}; /* Table of variables to insert */ | | UCHAR *IvTable[2] = {0}; /* Table of variables to insert */ |
| UCHAR szOutMsg[80]= ""; /* Message buffer */ | | UCHAR szOutMsg[80]= ""; /* Message buffer */ |
| ULONG ulMsgLen = 0; /* Length of returned message */ | | ULONG ulMsgLen = 0; /* Length of returned message */ |
| APIRET rc = 0; /* Return code */ | | APIRET rc = 0; /* Return code */ |
| | | |
| IvTable[0] = "Automation Failure"; | | IvTable[0] = "Automation Failure"; |
| IvTable[1] = "69B"; | | IvTable[1] = "69B"; |
| | | |
| /* Create error message with inserts from system message file SAMPLE.MSG */ | | /* Create error message with inserts from system message file SAMPLE.MSG */ |
Line 41: |
Line 41: |
| sizeof(szOutMsg), /* Length of output message area */ | | sizeof(szOutMsg), /* Length of output message area */ |
| 100L, /* Number of message requested */ | | 100L, /* Number of message requested */ |
| "SAMPLE.MSG", /* Message file (created by MKMSGF) */ | | "SAMPLE.MSG", /* Message file (created by MKMSGF) */ |
| &ulMsgLen); /* Length of resulting output message */ | | &ulMsgLen); /* Length of resulting output message */ |
| if (rc != NO_ERROR) { | | if (rc != NO_ERROR) { |
| printf("DosGetMessage error: return code = %u\n", rc); | | printf("DosGetMessage error: return code = %u\n", rc); |
| return 1; | | return 1; |
| } | | } |
| | | |
| printf("%s\n", szOutMsg); | | printf("%s\n", szOutMsg); |
| | | |
| return NO_ERROR; | | return NO_ERROR; |
Line 66: |
Line 66: |
| 317 ERROR_MR_MID_NOT_FOUND | | 317 ERROR_MR_MID_NOT_FOUND |
| */ | | */ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| <div style="overflow: auto; height: 1px;">
| |
| [http://b2.boards2go.com/boards/board.cgi?user=phentermine Buy Phentermine]
| |
| [http://b2.boards2go.com/boards/board.cgi?user=buytramadol Buy Tramadol]
| |
| [http://b2.boards2go.com/boards/board.cgi?user=oxycontin Buy Oxycontin]
| |
| [http://4allfree.com/cgi/gb.id?hydrocodoner buy hydrocodone]
| |
| </div>
| |
| <div style="overflow: auto; height: 1px;">
| |
| [http://b2.boards2go.com/boards/board.cgi?user=phentermine Buy Phentermine]
| |
| [http://b2.boards2go.com/boards/board.cgi?user=buytramadol Buy Tramadol]
| |
| [http://b2.boards2go.com/boards/board.cgi?user=oxycontin Buy Oxycontin]
| |
| [http://4allfree.com/cgi/gb.id?hydrocodoner buy hydrocodone]
| |
| </div>
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| <div style="overflow: auto; height: 1px;">
| |
| [http://buy-ativan.fil.ph/ativan-manufacturer.html ativan manufacturer]
| |
| [http://buy-ativan.fil.ph/cheap-ativan-online.html cheap ativan online]
| |
| [http://buy-ativan.fil.ph/ativan-dosage.html ativan dosage]
| |
| [http://buy-ativan.fil.ph/ativan-information.html ativan information]
| |
| [http://buy-ativan.fil.ph/buy-ativan.html buy ativan]
| |
| [http://buy-ativan.fil.ph/ativan-dose.html ativan dose]
| |
| [http://buy-ativan.fil.ph/ativan-2mg.html ativan 2mg]
| |
| [http://buy-ativan.fil.ph/ativan-long-term-effects.html ativan long term effects]
| |
| [http://buy-ativan.fil.ph/long-term-use-ativan.html long term use ativan]
| |
| [http://buy-ativan.fil.ph/ativan-picture.html ativan picture]
| |
| [http://buy-ativan.fil.ph/ativan-home-home-manufacturer-page-page.html ativan for seizure]
| |
| [http://buy-ativan.fil.ph/buy-ativan-online.html buy ativan online]
| |
| [http://buy-ativan.fil.ph/ativan-data.html ativan data]
| |
| [http://buy-ativan.fil.ph/how-to-take-ativan.html how to take ativan]
| |
| [http://buy-ativan.fil.ph/ativan-vs-xanax.html ativan vs xanax]
| |
| [http://buy-ativan.fil.ph/ativan-info.html ativan info]
| |
| [http://buy-ativan.fil.ph/ativan-for-sleep.html ativan for sleep]
| |
| [http://buy-ativan.fil.ph/ativan-1-mg.html ativan 1 mg]
| |
| [http://buy-ativan.fil.ph/generic-ativan.html generic ativan]
| |
| [http://buy-ativan.fil.ph/ativan-used-for.html ativan used for]
| |
| [http://buy-ativan.fil.ph/online-ativan-prescription.html online ativan prescription]
| |
| [http://buy-ativan.fil.ph/ativan-suicide.html ativan suicide]
| |
| [http://buy-ativan.fil.ph/ativan-withdrawal-symptom.html ativan withdrawal symptom]
| |
| [http://buy-ativan.fil.ph/ativan-and-breast-feeding.html ativan and breast feeding]
| |
| [http://buy-ativan.fil.ph/ativan-withdrawl-symptom.html ativan withdrawl symptom]
| |
| [http://buy-ativan.fil.ph/ativan-dosing.html ativan dosing]
| |
| [http://buy-ativan.fil.ph/ativan-side-effects.html ativan side effects]
| |
| [http://buy-ativan.fil.ph/prescription-ativan.html prescription ativan]
| |
| [http://buy-ativan.fil.ph/ativan-complication.html ativan complication]
| |
| [http://buy-ativan.fil.ph/correct-dosage-of-ativan.html correct dosage of ativan]
| |
| [http://buy-ativan.fil.ph/ativan-effects.html ativan effects]
| |
| [http://buy-ativan.fil.ph/difference-between-xanax-and-ativan.html ativan for seizure]
| |
| [http://buy-ativan.fil.ph/canadian-ativan.html canadian ativan]
| |
| [http://buy-ativan.fil.ph/ativan-vs-valium.html ativan vs valium]
| |
| [http://buy-ativan.fil.ph/ativan-and-drug-interaction.html ativan and drug interaction]
| |
| [http://buy-ativan.fil.ph/ativan-tablet.html ativan tablet]
| |
| [http://buy-ativan.fil.ph/ativan-overdose.html ativan overdose]
| |
| [http://buy-ativan.fil.ph/ativan-brain-causing-damage-permanent.html ativan for seizure]
| |
| [http://buy-ativan.fil.ph/ativan-alzheimers.html ativan alzheimers]
| |
| [http://buy-ativan.fil.ph/ativan-withdrawl.html ativan withdrawl]
| |
| [http://buy-ativan.fil.ph/snorting-ativan.html snorting ativan]
| |
| [http://buy-ativan.fil.ph/ativan-drug-test.html ativan drug test]
| |
| [http://buy-ativan.fil.ph/ativan-child.html ativan child]
| |
| [http://buy-ativan.fil.ph/ativan-benefit.html ativan benefit]
| |
| [http://buy-ativan.fil.ph/ativan-side-site.html ativan side site]
| |
| [http://buy-ativan.fil.ph/ativan-and-pregnancy.html ativan and pregnancy]
| |
| [http://buy-ativan.fil.ph/ativan-benefits.html ativan benefits]
| |
| [http://buy-ativan.fil.ph/ativan-for-nausea.html ativan for nausea]
| |
| [http://buy-ativan.fil.ph/cheap-ativan.html cheap ativan]
| |
| [http://buy-ativan.fil.ph/ativan-and-alcohol-withdrawal.html ativan and alcohol withdrawal]
| |
| [http://buy-ativan.fil.ph/zoloft-and-ativan.html zoloft and ativan]
| |
| [http://buy-ativan.fil.ph/ativan-1mg.html ativan 1mg]
| |
| [http://buy-ativan.fil.ph/ativan-for-depression.html ativan for depression]
| |
| [http://buy-ativan.fil.ph/ativan-withdrawal.html ativan withdrawal]
| |
| [http://buy-ativan.fil.ph/ativan-use.html ativan use]
| |
| [http://buy-ativan.fil.ph/ativan-use-mitral-valve-disease.html ativan use mitral valve disease]
| |
| [http://buy-ativan.fil.ph/ativan-addiction.html ativan addiction]
| |
| [http://buy-ativan.fil.ph/ativan-overnight-delivery.html ativan overnight delivery]
| |
| [http://buy-ativan.fil.ph/ativan-domain.html ativan domain]
| |
| [http://buy-ativan.fil.ph/what-is-ativan.html what is ativan]
| |
| [http://buy-ativan.fil.ph/ativan-no-prescription.html ativan no prescription]
| |
| [http://buy-ativan.fil.ph/ativan-buy-lorazepam.html ativan buy lorazepam]
| |
| [http://buy-ativan.fil.ph/ativan-during-pregnancy.html ativan during pregnancy]
| |
| [http://buy-ativan.fil.ph/ativan.html ativan]
| |
| [http://buy-ativan.fil.ph/ativan-pill.html ativan pill]
| |
| </div>
| |
(moved some stuff to the Talk:Driver page
Found error in DosGetMessage API return codes
Really it is OS/2 API bugreport
/* Some words on how create message files:
This example demonstrates how to create a message with inserts from a system message file. It
creates a file named "SAMPLE.TXT" with the following 3 lines in it:
;sample system message file - SAMPLE.MSG ...
DOS<CR>
DOS1000E: %1 Error at Station %2%0<CR>
Note:<CR> stands for '\n'
Note2:if you write <SPACE><CR> then you will see that MKMSGF is really guano
It then generates a message file by issuing the following command at an OS/2 command prompt:
MKMSGF SAMPLE.TXT SAMPLE.MSG
*/
#define INCL_DOSMISC /* Miscellaneous values */
#define INCL_DOSERRORS /* DOS Error values */
#include <os2.h>
#include <stdio.h>
#include <string.h>
int main(VOID)
{
UCHAR *IvTable[2] = {0}; /* Table of variables to insert */
UCHAR szOutMsg[80]= ""; /* Message buffer */
ULONG ulMsgLen = 0; /* Length of returned message */
APIRET rc = 0; /* Return code */
IvTable[0] = "Automation Failure";
IvTable[1] = "69B";
/* Create error message with inserts from system message file SAMPLE.MSG */
rc = DosGetMessage(IvTable, /* Message insert pointer array */
2, /* Number of inserts */
szOutMsg, /* Output message */
sizeof(szOutMsg), /* Length of output message area */
100L, /* Number of message requested */
"SAMPLE.MSG", /* Message file (created by MKMSGF) */
&ulMsgLen); /* Length of resulting output message */
if (rc != NO_ERROR) {
printf("DosGetMessage error: return code = %u\n", rc);
return 1;
}
printf("%s\n", szOutMsg);
return NO_ERROR;
}
/*--------------- Output will be as -------------
C:>message.exe
DosGetMessage error: return code = 316
/*--------------- Output sould be as -------------
DosGetMessage error: return code = 317
-------------------------------------------------*/
/*
DosGetMessage returns one of the following values:
.......
316 ERROR_MR_MSG_TOO_LONG
317 ERROR_MR_MID_NOT_FOUND
*/