convert the console based program to win32 based program
i have the that i need to convert into the win32gui based program ...i need the help guyz to fix it here is the code:      `#include <stdio.h>

      float calc(char *exp_str){
        FILE *fp;
          float ret;
          fp=fopen("calc_aux.c","w");
          fprintf(fp, "int main(){ return %s; }", exp_str);
           fclose(fp);
           system("gcc calc_aux.c -o calc_aux.exe");
           ret=system("calc_aux.exe");
               remove("calc_aux.c");
             remove("calc_aux.exe");
             return ret;
       }

      int main(){
             int decission;
            char exp[100];
             do{
            printf("enter the expression");
            scanf("%s[^\n]",exp);
              printf("%s=%f\n", exp, calc(exp));
              printf("press 1 to continue and 0 to exit");
                scanf("%d",&decission);
          if(decission==0)
          printf("\n\n\n\t....thank u visit again!!!!...");
           printf("\n\n\n\n");

           }while(decission);
            }
`
convert the console based program to win32 based program
===

i have the that i need to convert into the win32gui based program ...i need the help guyz to fix it here is the code:      `#include <stdio.h>

      float calc(char *exp_str){
        FILE *fp;
          float ret;
          fp=fopen("calc_aux.c","w");
          fprintf(fp, "int main(){ return %s; }", exp_str);
           fclose(fp);
           system("gcc calc_aux.c -o calc_aux.exe");
           ret=system("calc_aux.exe");
               remove("calc_aux.c");
             remove("calc_aux.exe");
             return ret;
       }

      int main(){
             int decission;
            char exp[100];
             do{
            printf("enter the expression");
            scanf("%s[^\n]",exp);
              printf("%s=%f\n", exp, calc(exp));
              printf("press 1 to continue and 0 to exit");
                scanf("%d",&decission);
          if(decission==0)
          printf("\n\n\n\t....thank u visit again!!!!...");
           printf("\n\n\n\n");

           }while(decission);
            }
`