HI Novacain & Niara,

Consider the following code. I know that I have not done a much good job, but i just want to make it so that I can get my job done & move ahead. I am new to API's & specially not good with UI's. But am learning.

Code:
#include <stdio.h>
#include <windows.h>

int _stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
    {
        HWND a = NULL;
        FILE *Fileptr;
        char *FirstName  = calloc(150,sizeof(char));
        char *LastName   = calloc(150,sizeof(char));
        char *DomainName = calloc(300,sizeof(char));

        Fileptr = fopen("EmailCombinations.txt","w");

        a = CreateWindow("EDIT","", WS_OVERLAPPEDWINDOW,300,100,1000,100,0,0,a,0);
        ShowWindow(a, nCmdShow);
        MessageBoxEx(0,"Enter the First Name above in the above window & then press OK ","NOTE",MB_ICONEXCLAMATION,MB_OK);
        GetWindowText(a,FirstName,150);
        DestroyWindow(a);        
        
        a = CreateWindow("EDIT","", WS_OVERLAPPEDWINDOW,300,100,1000,100,0,0,a,0);
        ShowWindow(a, nCmdShow);
        MessageBoxEx(0,"Enter the Last Name in the above window & then press OK ","NOTE",MB_ICONEXCLAMATION,MB_OK);
        GetWindowText(a,LastName,150);
        DestroyWindow(a);        
        
        a = CreateWindow("EDIT","", WS_OVERLAPPEDWINDOW,300,100,1000,100,0,0,a,0);
        ShowWindow(a, nCmdShow);
        MessageBoxEx(0,"Enter the Domain Name in the above window & then press OK ","NOTE",MB_ICONEXCLAMATION,MB_OK);
        GetWindowText(a,DomainName,300);
        DestroyWindow(a);        
        
        fprintf(Fileptr,"%s%s%s\n",FirstName,LastName,DomainName);
        fprintf(Fileptr,"%s.%s%s\n",FirstName,LastName,DomainName);
        fprintf(Fileptr,"%s_%s%s\n",FirstName,LastName,DomainName);
        fprintf(Fileptr,"%s%s%s\n",LastName,FirstName,DomainName);
        fprintf(Fileptr,"%s.%s%s\n",LastName,FirstName,DomainName);
        fprintf(Fileptr,"%s_%s%s\n",LastName,FirstName,DomainName);
        fprintf(Fileptr,"%c%s%s\n",*FirstName,LastName,DomainName);
        fprintf(Fileptr,"%c.%s%s\n",*FirstName,LastName,DomainName);
        fprintf(Fileptr,"%c_%s%s\n",*FirstName,LastName,DomainName);
        fprintf(Fileptr,"%s%c%s\n",FirstName,*LastName,DomainName);
        fprintf(Fileptr,"%s.%c%s\n",FirstName,*LastName,DomainName);
        fprintf(Fileptr,"%s_%c%s\n",FirstName,*LastName,DomainName);
        fprintf(Fileptr,"%s%c%s\n",LastName,*FirstName,DomainName);
        fprintf(Fileptr,"%s.%c%s\n",LastName,*FirstName,DomainName);
        fprintf(Fileptr,"%s_%c%s\n",LastName,*FirstName,DomainName);
        fprintf(Fileptr,"%c%c%s\n",*FirstName,*LastName,DomainName);
        fprintf(Fileptr,"%c.%c%s\n",*FirstName,*LastName,DomainName);
        fprintf(Fileptr,"%c_%c%s\n",*FirstName,*LastName,DomainName);
        
        fclose(Fileptr);
        return 0;
    }
I just want to display in window whatever is written in the file "EmailCombinations.txt". I hope I have provided sufficient information this time... : )