Graphic interface with bloodshed



  • I wrote a small programme but I'm not good in graphic interface with a menu browser. Can somebody help me, if need be I'll pay for the work. The application should be compliled with bloodshed dev c++ and run on win32 windows xp.
    here is the program me.

    @
    #include <istream>
    #include <stdlib.h>
    #include <string.h>
    #include <stdio.h>
    #include <math.h>
    #include <ctype.h>
    #include <sys\stat.h>
    #include <fcntl.h>
    #include <io.h>
    #include <conio.h>
    #include <errno.h>
    #include <cstring>
    #include <fstream>
    #include <windows.h>
    #include <unistd.h>
    //==============================================================
    int restart;
    char xfile[81];
    char xfile1[81];
    char code1[10000] = "0123456789";
    char next[10];
    char input[50] = "word1.doc";
    char output[50] = "word2.doc";
    unsigned char code,coded,recoded,unsigneddata,data,erase1 = 44;
    unsigned doublecode = 150;
    char lettre,size,bell1=07;
    char char1,choice1[1];
    FILE *text_file1 = NULL;
    FILE *text_file2 = NULL;
    int choice,len_input,len_output,flag;
    int n,n2,length_code, end_file;
    double length_file,max_size=3000000;
    //=====================
    inline void get();
    //==============================================================
    // this function gets the in put and output
    inline void get()
    {
    SYSTEMTIME t;
    GetSystemTime(&t);
    printf("%d-%d-%d %d:%d:%d \n",t.wDay,t.wMonth,t.wYear,t.wHour,t.wMinute,t.wSecond);

    start4:;
    printf ("====>minimum size 10 characters, maximum size 10000 characters \n");
    printf ("====>Type the vector then enter\n");
    fgets(code1, sizeof(code1),stdin);
    length_code = strlen(code1)-1;
    if ((length_code> 9)&& (length_code<10001)) {goto start2;};

    system("cls"); printf("\n");
    printf("====>The length of vector is equal to %d\n",length_code );
    printf("\n");
    goto start4;
    start2:
    choice = 0;
    printf("\n");printf("\n");
    printf ("====>Type 1 for process 1 or type 2 for process 2 and then enter\n");
    printf ("====>Type 3 to exit\n");
    scanf("%d", &choice);
    while (getchar()!= '\n');// empty buffer
    if ( choice == 1 ){goto ahead1;}
    if ( choice == 2 ){goto ahead1;}
    printf("\n");printf("\n");
    system("cls");
    printf("====>Wrong choice \n");
    goto start4;
    ahead1:
    //=========================================================
    start3:
    printf("\n");
    if (choice == 1)
    {
    printf ("====>Type the name of the input file, EXAMPLE name1.doc then enter\n");
    scanf("%s", &input);
    printf ("====>The name of the input is %s\n",input);
    };
    if (choice == 2)
    {
    printf ("====>Type the name of the output file, EXAMPLE name2.doc then enter\n");
    scanf("%s", &output);
    printf ("====>The name of the input is %s\n",output);
    };

    }
    //==============================================================
    // the main program
    //==============================================================
    int main()
    {
    printf("\n");
    printf("============================\n");
    printf("\n");
    printf("DESIGNED BY JOSEPH NDURIRI TOULOUSE FRANCE\n");
    printf("Email nduriri@voila.fr\n");
    printf("Phone +33(0)679922232 FRANCE\n");
    printf("\n");
    printf("============================\n");
    SYSTEMTIME t;
    GetSystemTime(&t);
    printf("%d-%d-%d %d:%d:%d \n",t.wDay,t.wMonth,t.wYear,t.wHour,t.wMinute,t.wSecond);
    start1:;
    get();
    printf("====>end ++++++++++++++++++++++++++++++++++\n");
    printf("====>To go on type a character to start once more\n");
    scanf("%s", xfile1);
    while (getchar()!= '\n');// empty buffer
    system("cls"); //clear screen
    goto start1;
    return 0;
    }
    @

    [edit: added missing coding tags and moved SGaist]



  • Firstly, please use code tags (an @ symbol at the beginning and end) to format your code properly so its easy to read.

    Secondly, what does your program do, what do you want the GUI to do? Please provide more information about your problem.

    Thirdly, you will find it infinitely easier to integrate your current code into Qt Creator (using mingw for example) than you will trying to compile Qt code with Bloodshed due to the need for the MOC etc. This will build for your specified target of 32bit Win XP.

    Final point to note, as your code is written in C++, this post should probably have gone into the "General and Desktop" section rather than "Language Bindings".

    Hope this helps ;o)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.