pihmRasterLIBS/avcalls_null.cpp

Go to the documentation of this file.
00001 /* AVCalls.c
00002                 C functions that mimic ArcView procedure calls */
00003 
00004 #include "avexec32.h"
00005 #include <stdio.h>
00006 #include <string.h>
00007 
00008 /* These will go to lsm.h file */
00009 void MsgBoxInfo(char *message, char *title);
00010 void MsgBoxError(char *message, char *title);
00011 void SetWorkingStatus(void);
00012 
00013 /* Exported to test from within ArcView. Not needed otherwise 
00014 #define DllExport __declspec( dllexport ) 
00015 DllExport void doitnow(void);
00016 DllExport void SetworkingStatus(void);  */
00017 
00018 /**************************************************/
00019 void doitnow (void)  /* for testing purposes only */
00020 {
00021 char message[] = "This message should be showing up in the window";
00022 char title[] = "Test Box";
00023 
00024 SetWorkingStatus();
00025 
00026 }
00027 /**************************************************/
00028 void MsgBoxInfo(char *message, char *title)
00029 {
00030 char *retstr;
00031 char strpassed[200]; /* Better not pass something longer than 200! */
00032 char str1[] = "MsgBox.Info(\"";
00033 char str2[] = "\",\"";
00034 char str3[] = "\")";
00035 
00036 strcpy(strpassed, str1);
00037 strcat(strpassed, message);
00038 strcat(strpassed, str2);
00039 strcat(strpassed, title);
00040 strcat(strpassed, str3);
00041 
00042 /*retstr = AVExec(strpassed);  */
00043 }
00044 /**************************************************/
00045 void MsgBoxError(char *message, char *title)
00046 {
00047 char *retstr;
00048 char strpassed[200]; /* Better not pass something longer than 200! */
00049 char str1[] = "MsgBox.Error(\"";
00050 char str2[] = "\",\"";
00051 char str3[] = "\")";
00052 
00053 strcpy(strpassed, str1);
00054 strcat(strpassed, message);
00055 strcat(strpassed, str2);
00056 strcat(strpassed, title);
00057 strcat(strpassed, str3);
00058 
00059 /*  retstr = AVExec(strpassed);  */
00060 }
00061 /**************************************************/
00062 void SetWorkingStatus(void)
00063 {
00064 char *retstr;
00065 
00066 /*  retstr = AVExec("av.SetWorkingStatus");  */
00067 }

Generated on Sun Aug 5 17:34:00 2007 for PIHMgis by  doxygen 1.5.2