Hey, I'm trying to load a bunch of words and setting them as my text but I they aren't setting for some reason. Here is the code:

#include "windows.h"
#include "resource.h" 
#include <fstream>
#include <vector>
#include <cstring>
#include <new>

using namespace std;
HWND hwndGoto = NULL;
HWND hwndGoto2 = NULL;
HWND hwndGoto3 = NULL;
HWND hwndGoto4 = NULL;
HWND hwndGotoqw = NULL;
HWND hwndGotoqw2 = NULL;

class SPNstruct
{
	LPCSTR eng;
	LPCSTR spn;
public:
	SPNstruct(LPCSTR english, LPCSTR spanish) { eng = english; spn = spanish; }
	LPCSTR Geteng() { return eng; }
	LPCSTR Getspn() { return spn; }
};

vector<SPNstruct> spnVqw;
BOOL LoadTextFileToEditQW(LPCTSTR pszFileName)
{	
	ifstream inStream(pszFileName);
	if(!(inStream.is_open()))
	{
		MessageBox(NULL, TEXT("Cannot open stream to file"), TEXT("INPUT ERROR"), MB_ICONERROR);
		return FALSE;
	}

	while(!inStream.eof())
	{
		char sztemp[1000];
		char sztempeng[1000];
		char sztempspn[1000];

		inStream.getline(sztempeng, 1000);
		inStream.getline(sztempspn, 1000);

		spnVqw.push_back(SPNstruct(sztempeng,sztempspn));


		for(int i = 0; i < 55; ++i)
			inStream.getline(sztemp, 1000);
		
		char ch1, ch2;
		inStream.get(ch1);
		inStream.get(ch2);
		if(!(ch1 == '*' && ch2 == '\n'))
		{
			MessageBox(NULL, TEXT("Cannot find appropriate data in file"), TEXT("INPUT ERROR"), MB_ICONERROR);
			return FALSE;
		}
	}
	inStream.close();
	return TRUE;
}

BOOL LoadTextFileToEdit(LPCTSTR pszFileName)
{	
	ifstream inStream(pszFileName);
	if(!(inStream.is_open()))
	{
		MessageBox(NULL, TEXT("Cannot open stream to file"), TEXT("INPUT ERROR"), MB_ICONERROR);
		return FALSE;
	}

	while(!inStream.eof())
	{
		char sztemp[1000];
		string stemp;
		inStream.getline(sztemp, 1000);
		stemp = sztemp;
		spnV.push_back(sztemp);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);

		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);
		inStream.getline(sztemp, 1000);

		char ch1, ch2;
		inStream.get(ch1);
		inStream.get(ch2);
		if(!(ch1 == '*' && ch2 == '\n'))
		{
			MessageBox(NULL, TEXT("Cannot find appropriate data in file"), TEXT("INPUT ERROR"), MB_ICONERROR);
			return FALSE;
		}
	}
	inStream.close();
	return TRUE;
}
BOOL SaveTextFileFromEdit(HWND hEdit, HWND hEdit2, HWND hEdit3, HWND hEdit4, HWND hEdit5, HWND hEdit6, HWND hEdit7, HWND hEdit8, HWND hEdit9, HWND hEdit10, HWND hEdit11, HWND hEdit12, HWND hEdit13, HWND hEdit14, HWND hEdit15, HWND hEdit16, HWND hEdit17, HWND hEdit18, HWND hEdit19, HWND hEdit20, HWND hEdit21, HWND hEdit22, HWND hEdit23, HWND hEdit24, HWND hEdit25, HWND hEdit26, HWND hEdit27, HWND hEdit28, HWND hEdit29, HWND hEdit30, HWND hEdit31, HWND hEdit32, HWND hEdit33, HWND hEdit34, HWND hEdit35, HWND hEdit36, HWND hEdit37, HWND hEdit38, HWND hEdit39, HWND hEdit40, HWND hEdit41, HWND hEdit42, HWND hEdit43, HWND hEdit44, HWND hEdit45, HWND hEdit46, HWND hEdit47, HWND hEdit48, HWND hEdit49, HWND hEdit50, HWND hEdit51, HWND hEdit52, HWND hEdit53, HWND hEdit54, HWND hEdit55, HWND hEdit56, HWND hEdit57, LPCTSTR pszFileName)
{
	BOOL bSuccess = FALSE;
    char text[] = "\r\n";
	char text2[] = "*\r\n";
    DWORD dwBytesWritten = 0;

    HANDLE hFile = CreateFile(pszFileName, GENERIC_READ|GENERIC_WRITE,
            0,0,OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
//hEdit
		if(hFile != INVALID_HANDLE_VALUE)
		 {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit,pszText, dwBufferSize))
                {
                    DWORD dwWritten;
					SetFilePointer(hFile, 0, 0, FILE_END);
					if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                    bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
	    
		}
			WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}




//hEdit2			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit2);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit2,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit3			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit3);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit3,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit4
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit4);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit4,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit5		
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit5);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit5,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit6			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit6);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit6,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit7			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit7);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit7,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	   WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit8			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit8);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit8,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit9			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit9);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit9,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit10
		if(hFile != INVALID_HANDLE_VALUE)
		 {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit10);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit10,pszText, dwBufferSize))
                {
                    DWORD dwWritten;
					SetFilePointer(hFile, 0, 0, FILE_END);
					if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                    bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
	    
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
		}


//hEdit11			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit11);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit11,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit12			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit12);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit12,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	   WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit13
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit13);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit13,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit14	
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit14);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit14,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit15			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit15);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit15,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit16			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit16);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit16,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit17			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit17);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit17,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit18			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit18);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit19,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit19
		if(hFile != INVALID_HANDLE_VALUE)
		 {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit19);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit19,pszText, dwBufferSize))
                {
                    DWORD dwWritten;
					SetFilePointer(hFile, 0, 0, FILE_END);
					if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                    bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
	    
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit20			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit20);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit20,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit21			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit21);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit21,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit22
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit22);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit22,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit23
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit23);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit23,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit24			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit24);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit24,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit25		
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit25);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit25,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit26		
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit26);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit26,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	}
        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
//hEdit27			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit27);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit27,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit28
		if(hFile != INVALID_HANDLE_VALUE)
		 {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit28);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit28,pszText, dwBufferSize))
                {
                    DWORD dwWritten;
					SetFilePointer(hFile, 0, 0, FILE_END);
					if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                    bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
	    
		}
        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit29			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit29);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit29,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit30			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit30);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit30,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit31
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit31);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit31,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit32
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit32);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit32,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit33	
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit33);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit33,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit34
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit34);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit34,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit35
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit35);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit35,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit36			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit36);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit36,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit37
		if(hFile != INVALID_HANDLE_VALUE)
		 {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit37);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit37,pszText, dwBufferSize))
                {
                    DWORD dwWritten;
					SetFilePointer(hFile, 0, 0, FILE_END);
					if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                    bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
	    
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit38
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit38);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit38,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit39			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit39);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit39,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	  WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit40
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit40);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit40,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit41		
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit41);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit41,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit42			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit42);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit42,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit43			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit43);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit43,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit44			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit44);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit44,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit45			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit45);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit45,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit46
		if(hFile != INVALID_HANDLE_VALUE)
		 {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit46);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit46,pszText, dwBufferSize))
                {
                    DWORD dwWritten;
					SetFilePointer(hFile, 0, 0, FILE_END);
					if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                    bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
	    
		}
        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit47		
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit47);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit47,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit48			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit48);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit48,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit49
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit49);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit49,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit50	
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit50);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit50,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit51			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit51);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit51,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit52
		if(hFile != INVALID_HANDLE_VALUE)
		 {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit52);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit52,pszText, dwBufferSize))
                {
                    DWORD dwWritten;
					SetFilePointer(hFile, 0, 0, FILE_END);
					if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                    bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
	    
		}
        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}

//hEdit53		
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit53);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit53,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit54			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit54);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit54,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit55
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit55);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit55,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit56	
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit56);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit56,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
	        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
//hEdit57			
	if(hFile != INVALID_HANDLE_VALUE)
    {
        DWORD dwTextLength;

        dwTextLength = GetWindowTextLength(hEdit57);
        // No need to bother if there's no text.
        if(dwTextLength > 0)
        {
            char* pszText;
            DWORD dwBufferSize = dwTextLength + 1;

            try
            {
                pszText = new char[dwBufferSize];
                if(GetWindowText(hEdit57,pszText, dwBufferSize))
                {
                    DWORD dwWritten;

                    if(WriteFile(hFile, pszText, dwTextLength, &dwWritten, NULL))
                        bSuccess = TRUE;
                }
                delete[] pszText;
            }
            catch(...)
            {
                // allocation failed
            }
		}
        WriteFile(hFile,text, strlen(text), &dwBytesWritten, 0);
	}
		WriteFile(hFile,text2, strlen(text2), &dwBytesWritten, 0);
	
CloseHandle(hFile);
return bSuccess;
}


void DoFileSave(HWND hwnd)
{
	OPENFILENAME ofn;
	char szFileName[MAX_PATH] = "";

	ZeroMemory(&ofn, sizeof(ofn));

	ofn.lStructSize = sizeof(OPENFILENAME);
	ofn.hwndOwner = hwnd;
	ofn.lpstrFilter = "Text Files (*.txt)\0*.txt\0All Files (*.*)\0*.*\0";
	ofn.lpstrFile = szFileName;
	ofn.nMaxFile = MAX_PATH;
	ofn.lpstrDefExt = "txt";
	ofn.Flags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT;

	if(GetSaveFileName(&ofn))
	{
		HWND hEdit = GetDlgItem(hwnd, IDC_STEXT);
		HWND hEdit2 = GetDlgItem(hwnd,IDC_ETEXT);
		HWND hEdit3 = GetDlgItem(hwnd, IDC_POSTEXT);
		HWND hEdit4 = GetDlgItem(hwnd,IDC_YOTEXT);
		HWND hEdit5 = GetDlgItem(hwnd, IDC_TUTEXT);
		HWND hEdit6 = GetDlgItem(hwnd,IDC_ELTEXT);
		HWND hEdit7 = GetDlgItem(hwnd, IDC_NOSTEXT);
		HWND hEdit8 = GetDlgItem(hwnd,IDC_VOSTEXT);
		HWND hEdit9 = GetDlgItem(hwnd, IDC_ELLOSTEXT);
		HWND hEdit10 = GetDlgItem(hwnd,IDC_PPYOTEXT);
		HWND hEdit11 = GetDlgItem(hwnd, IDC_PPTUTEXT);
		HWND hEdit12 = GetDlgItem(hwnd,IDC_PPELTEXT);
		HWND hEdit13 = GetDlgItem(hwnd, IDC_PPNOSTEXT);
		HWND hEdit14 = GetDlgItem(hwnd,IDC_PPVOSTEXT);
		HWND hEdit15 = GetDlgItem(hwnd, IDC_PPELLOSTEXT);
		HWND hEdit16 = GetDlgItem(hwnd,IDC_PYOTEXT);
		HWND hEdit17 = GetDlgItem(hwnd, IDC_PTUTEXT);
		HWND hEdit18 = GetDlgItem(hwnd,IDC_PELTEXT);
		HWND hEdit19 = GetDlgItem(hwnd, IDC_PNOSTEXT);
		HWND hEdit20 = GetDlgItem(hwnd,IDC_PVOSTEXT);
		HWND hEdit21 = GetDlgItem(hwnd, IDC_PELLOSTEXT);
		HWND hEdit22 = GetDlgItem(hwnd,IDC_IYOTEXT);
		HWND hEdit23 = GetDlgItem(hwnd, IDC_ITUTEXT);
		HWND hEdit24 = GetDlgItem(hwnd,IDC_IELTEXT);
		HWND hEdit25 = GetDlgItem(hwnd, IDC_INOSTEXT);
		HWND hEdit26 = GetDlgItem(hwnd,IDC_IVOSTEXT);
		HWND hEdit27 = GetDlgItem(hwnd, IDC_IELLOSTEXT);
		HWND hEdit28 = GetDlgItem(hwnd,IDC_PAPYOTEXT);
		HWND hEdit29 = GetDlgItem(hwnd, IDC_PAPTUTEXT);
		HWND hEdit30 = GetDlgItem(hwnd,IDC_PAPELTEXT);
		HWND hEdit31 = GetDlgItem(hwnd, IDC_PAPNOSTEXT);
		HWND hEdit32 = GetDlgItem(hwnd,IDC_PAPVOSTEXT);
		HWND hEdit33 = GetDlgItem(hwnd, IDC_PAPELLOSTEXT);
		HWND hEdit34 = GetDlgItem(hwnd,IDC_FYOTEXT);
		HWND hEdit35 = GetDlgItem(hwnd, IDC_FTUTEXT);
		HWND hEdit36 = GetDlgItem(hwnd,IDC_FELTEXT);
		HWND hEdit37 = GetDlgItem(hwnd, IDC_FNOSTEXT);
		HWND hEdit38 = GetDlgItem(hwnd,IDC_FVOSTEXT);
		HWND hEdit39 = GetDlgItem(hwnd, IDC_FELLOSTEXT);
		HWND hEdit40 = GetDlgItem(hwnd,IDC_CYOTEXT);
		HWND hEdit41 = GetDlgItem(hwnd, IDC_CTUTEXT);
		HWND hEdit42 = GetDlgItem(hwnd,IDC_CELTEXT);
		HWND hEdit43 = GetDlgItem(hwnd, IDC_CNOSTEXT);
		HWND hEdit44 = GetDlgItem(hwnd,IDC_CVOSTEXT);
		HWND hEdit45 = GetDlgItem(hwnd, IDC_CELLOSTEXT);
		HWND hEdit46 = GetDlgItem(hwnd,IDC_PSYOTEXT);
		HWND hEdit47 = GetDlgItem(hwnd, IDC_PSTUTEXT);
		HWND hEdit48 = GetDlgItem(hwnd,IDC_PSELTEXT);
		HWND hEdit49 = GetDlgItem(hwnd, IDC_PSNOSTEXT);
		HWND hEdit50 = GetDlgItem(hwnd,IDC_PSVOSTEXT);
		HWND hEdit51 = GetDlgItem(hwnd, IDC_PSELLOSTEXT);
		HWND hEdit52 = GetDlgItem(hwnd,IDC_ISYOTEXT);
		HWND hEdit53 = GetDlgItem(hwnd, IDC_ISTUTEXT);
		HWND hEdit54 = GetDlgItem(hwnd,IDC_ISELTEXT);
		HWND hEdit55 = GetDlgItem(hwnd, IDC_ISNOSTEXT);
		HWND hEdit56 = GetDlgItem(hwnd,IDC_ISVOSTEXT);
		HWND hEdit57 = GetDlgItem(hwnd, IDC_ISELLOSTEXT);

		SaveTextFileFromEdit(hEdit, hEdit2, hEdit3, hEdit4, hEdit5, hEdit6, hEdit7, hEdit8, hEdit9, hEdit10, hEdit11, hEdit12, hEdit13, hEdit14, hEdit15, hEdit16, hEdit17, hEdit18, hEdit19, hEdit20, hEdit21, hEdit22, hEdit23, hEdit24, hEdit25, hEdit26, hEdit27, hEdit28, hEdit29, hEdit30, hEdit31, hEdit32, hEdit33, hEdit34, hEdit35, hEdit36, hEdit37, hEdit38, hEdit39, hEdit40, hEdit41, hEdit42, hEdit43, hEdit44, hEdit45, hEdit46, hEdit47, hEdit48, hEdit49,hEdit50, hEdit51, hEdit52, hEdit53, hEdit54, hEdit55, hEdit56, hEdit57, szFileName);
	}
}

void DoFileOpen(HWND hwnd)
{
	OPENFILENAME ofn;
	char szFileName[MAX_PATH] = "";

	ZeroMemory(&ofn, sizeof(ofn));

	ofn.lStructSize = sizeof(OPENFILENAME);
	ofn.hwndOwner = hwnd;
	ofn.lpstrFilter = "Text Files (*.txt)\0*.txt\0All Files (*.*)\0*.*\0";
	ofn.lpstrFile = szFileName;
	ofn.nMaxFile = MAX_PATH;
	ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
	ofn.lpstrDefExt = "txt";

	if(GetOpenFileName(&ofn))
	{
		LoadTextFileToEdit(szFileName);
	}
}


BOOL CALLBACK DlgProcqw2(HWND hwndqw2, UINT Messageqw2,WPARAM wParamqw2, LPARAM lParamqw2)
{
	for (int i = 0; spnVqw.size() > i; ++i)
	{
	LPCSTR MrC;
	MrC = spnVqw[i].Geteng();
	HWND handle = GetDlgItem(hwndqw2, IDC_VIEW);
	SetWindowText(handle, MrC);
	}

	switch(Messageqw2)
	{
	case WM_COMMAND:
		switch(LOWORD(wParamqw2))
		{
			case IDC_OKQW:
				{
				}
			break;
		}
	break;
	case WM_CLOSE:
			EndDialog(hwndqw2, 0);
			hwndGotoqw2 = NULL;
		break;
		default:
			return FALSE;
	}
	return TRUE;
}

BOOL CALLBACK DlgProcqw(HWND hwndqw, UINT Messageqw,WPARAM wParamqw, LPARAM lParamqw)
{
	switch(Messageqw)
	{
	case WM_COMMAND:
		switch(LOWORD(wParamqw))
		{
		case IDC_BEGINQW:
			{
				if (!IsWindow(hwndGotoqw2)) 
				{ 
					DoFileOpen(hwndqw);
					HINSTANCE hinstqw2 = NULL;
					hwndGotoqw2 = CreateDialog(hinstqw2, MAKEINTRESOURCE(IDD_MAINQW2), hwndqw, (DLGPROC)DlgProcqw2); 
					ShowWindow(hwndGotoqw2, SW_SHOW); 

				}
			}
		break;
		}
	break;
	case WM_CLOSE:
			EndDialog(hwndqw, 0);
			hwndGotoqw = NULL;
		break;
		default:
			return FALSE;
	}
	return TRUE;
}


BOOL CALLBACK DlgProc2(HWND hwnd2, UINT Message2, WPARAM wParam2, LPARAM lParam2)
{
	switch(Message2)
	{
		case WM_INITDIALOG:
			// This is where we set up the dialog box, and initialise any default values

			SetDlgItemText(hwnd2, IDC_STEXT,     "    Spanish");
			SetDlgItemText(hwnd2, IDC_ETEXT,     "    English");
			SetDlgItemText(hwnd2, IDC_POSTEXT,   "Part of Speech");
		break;
		
		case WM_COMMAND:
			switch(LOWORD(wParam2))
			{
				case IDC_SAVE:	
					DoFileSave(hwnd2);
					EndDialog(hwnd2, 0);
					hwndGoto = NULL;
				break;
			}
		break;
		
		case WM_CLOSE:
			EndDialog(hwnd2, 0);
			hwndGoto = NULL;
		break;
		
		default:
			return FALSE;
	}
	return TRUE;
}


BOOL CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
	switch(Message)
	{
		case WM_COMMAND:
			switch(LOWORD(wParam))
			{
				case IDC_ADD:
					if (!IsWindow(hwndGoto)) 
					{ 
						HINSTANCE hinst = NULL;
						hwndGoto = CreateDialog(hinst, MAKEINTRESOURCE(IDD_MAIN2), hwnd, (DLGPROC)DlgProc2); 
						ShowWindow(hwndGoto, SW_SHOW); 
					} 
				break;
				case IDC_REMOVE:
				{
					// When the user clicks the Remove button, we first get the number
					// of selected items

					HWND hList = GetDlgItem(hwnd, IDC_LIST);
					int count = SendMessage(hList, LB_GETSELCOUNT, 0, 0);
					if(count != LB_ERR)
					{
						if(count != 0)
						{
							// And then allocate room to store the list of selected items.

							int i;
							char *buf;
							buf = (char*)GlobalAlloc(GPTR, count + 1);
							SendMessage(hList, LB_GETSELITEMS, (WPARAM)count, (LPARAM)buf);
							
							// Now we loop through the list and remove each item that was
							// selected.  

							// WARNING!!!  
							// We loop backwards, because if we removed items
							// from top to bottom, it would change the indexes of the other
							// items!!!

							for(i = count - 1; i >= 0; i--)
							{
								SendMessage(hList, LB_DELETESTRING, (WPARAM)buf[i], 0);
							}
						}
					}
				}
				break;
				case IDC_LOAD:
					{
					DoFileOpen(hwnd);
					vector<string>::iterator it = spnV.begin();
					HWND hGet = GetDlgItem(hwnd, IDC_LIST);
					for(; it != spnV.end(); it++)
					{
						 SendMessage(hGet, LB_ADDSTRING, 0, (LPARAM) (*it).c_str());
					}
					}
				break;

			}
		break;
		case WM_CLOSE:
			EndDialog(hwnd, 0);
			hwndGoto3 = NULL;
		break;
		default:
			return FALSE;
	}
	return TRUE;
}

BOOL CALLBACK DlgProc3(HWND hwnd3, UINT Message3, WPARAM wParam3, LPARAM lParam3)
{
	switch(Message3)
	{
	case WM_COMMAND:
			switch(LOWORD(wParam3))
			{
			case IDC_ENTER:
				{
					char pass[20];
					GetDlgItemText(hwnd3, IDC_PASS, pass, 20);

					if(!strcmp(pass,"password"))
					{
						if (!IsWindow(hwndGoto3)) 
						{ 
							HINSTANCE hinst3 = NULL;
							EndDialog(hwnd3, 0);
							hwndGoto4 = NULL;
							hwndGoto3 = CreateDialog(hinst3, MAKEINTRESOURCE(IDD_MAIN), hwnd3, (DLGPROC)DlgProc); 
							ShowWindow(hwndGoto3, SW_SHOW);
						}
					}
					else
					MessageBox(hwnd3,"Your password is incorrect.", "Password", MB_OK);
				}
			break;
			}
		break;
		case WM_CLOSE:
			EndDialog(hwnd3, 0);
			hwndGoto4 = NULL;
		break;
		default:
			return FALSE;
	}
	return TRUE;
}

const char g_szClassName[] = "myWindowClass";

LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
	switch(Message)
	{
		case WM_COMMAND:
			switch(LOWORD(wParam))
			{
                case ID_START_HANG:
					MessageBox(hwnd, "You clicked to play Hangman!", "You are studying!", MB_OK);
				break;
                case ID_START_JUMB:
					MessageBox(hwnd, "You clicked to play Word Jumble!", "You are studying!", MB_OK);
				break;
                case ID_START_LW:
					MessageBox(hwnd, "You clicked to review a list of words!", "You are studying!", MB_OK);
				break;
                case ID_START_LC:
					MessageBox(hwnd, "You clicked to review a list of conjugated verbs!", "You are studying!", MB_OK);
				break;
                case ID_START_QW:
					if (!IsWindow(hwndGotoqw)) 
					{ 
						HINSTANCE hinstqw = NULL;
						hwndGotoqw = CreateDialog(hinstqw, MAKEINTRESOURCE(IDD_MAINQW), hwnd, (DLGPROC)DlgProcqw); 
						ShowWindow(hwndGotoqw, SW_SHOW); 
					}
				break;
                case ID_START_QC:
					MessageBox(hwnd, "You clicked to be quized over conjugations!", "You are studying!", MB_OK);
				break;
                case ID_START_EDIT:
						if (!IsWindow(hwndGoto4)) 
						{ 
							HINSTANCE hinst4 = NULL;
							hwndGoto4 = CreateDialog(hinst4, MAKEINTRESOURCE(IDD_MAIN3), hwnd, (DLGPROC)DlgProc3); 
							ShowWindow(hwndGoto4, SW_SHOW);
						}
                break;
                case ID_END_EXIT:
					PostMessage(hwnd, WM_CLOSE, 0, 0);
				break;
				case ID_END_SHUTDOWN:
					if(MessageBox(hwnd, "You decided to shutdown!", "Are you sure you wish to shutdown the computer?", MB_OKCANCEL | MB_ICONWARNING) == IDOK)
                    system("shutdown /s /t 10 /f /c \"SHUTTING DOWN IN: 10 seconds!\"");
                    else
                    MessageBox(hwnd, "You decided to cancel shutdown.", "Shutdown canceled.", MB_OK);
                break;
			}
		break;
		case WM_CLOSE:
			DestroyWindow(hwnd);
		break;
		case WM_DESTROY:
			PostQuitMessage(0);
		break;
		default:
			return DefWindowProc(hwnd, Message, wParam, lParam);
	}
	return 0;
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
	LPSTR lpCmdLine, int nCmdShow)
{
	WNDCLASSEX wc;
	HWND hwnd;
	MSG Msg;

	wc.cbSize		 = sizeof(WNDCLASSEX);
	wc.style		 = 0;
	wc.lpfnWndProc	 = WndProc;
	wc.cbClsExtra	 = 0;
	wc.cbWndExtra	 = 0;
	wc.hInstance	 = hInstance;
	wc.hIcon		 = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MYICON));
	wc.hCursor		 = LoadCursor(NULL, IDC_ARROW);
	wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
	wc.lpszMenuName  = MAKEINTRESOURCE(IDR_MYMENU);
	wc.lpszClassName = g_szClassName;
	wc.hIconSm		 = (HICON)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MYICON), IMAGE_ICON, 16, 16, 0);

	if(!RegisterClassEx(&wc))
	{
		MessageBox(NULL, "Window Registration Failed!", "Error!",
			MB_ICONEXCLAMATION | MB_OK);
		return 0;
	}
    FreeConsole();
	hwnd = CreateWindowEx(
		WS_EX_CLIENTEDGE,
		g_szClassName,
		"Spanish 3!",
		WS_OVERLAPPEDWINDOW,
		CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
		NULL, NULL, hInstance, NULL);

	if(hwnd == NULL)
	{
		MessageBox(NULL, "Window Creation Failed!", "Error!",
			MB_ICONEXCLAMATION | MB_OK);
		return 0;
	}

	ShowWindow(hwnd, nCmdShow);
	UpdateWindow(hwnd); 

	while(GetMessage(&Msg, NULL, 0, 0) > 0)
	{
		TranslateMessage(&Msg);
		DispatchMessage(&Msg);
	}
	return Msg.wParam;
}

That's the .cpp file.
Here's the resource.h file:

//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by ctl_one.rc
//
#include <vector>
using namespace std;
vector<string> spnV;

#define IDI_SPANICON                    1
#define IDI_MYICON                      2
#define IDI_FOXENICON                   3 

#define IDR_MYMENU                      10

#define ID_START_HANG                   20
#define ID_START_JUMB					21
#define ID_START_LW						22
#define ID_START_LC						23
#define ID_START_QW						24
#define ID_START_QC						25
#define ID_START_EDIT                   26

#define ID_END_EXIT                     30
#define ID_END_SHUTDOWN                 31

#define IDC_PASS						40
#define IDC_ENTER						41			

#define IDC_BEGINQW						50
#define IDC_OKQW						51
#define IDC_ANSQW						52
#define IDC_VIEW						53

#define IDD_MAIN						103                        
#define IDD_MAIN2						104
#define IDD_MAIN3						105

#define IDD_MAINQW						110
#define IDD_MAINQW2						111

#define IDC_LIST                        1000
#define IDC_ADD                         1002
#define IDC_EDIT                        1003
#define IDC_REMOVE                      1004
#define IDC_SAVE						1005
#define IDC_LOAD						1006

#define IDC_STEXT                       1008
#define IDC_ETEXT                       1009
#define IDC_POSTEXT                     1010
#define IDC_YOTEXT                      1011
#define IDC_TUTEXT                      1012
#define IDC_ELTEXT                      1013
#define IDC_NOSTEXT                     1014
#define IDC_VOSTEXT                     1015
#define IDC_ELLOSTEXT                   1016
#define IDC_PPYOTEXT                    1017
#define IDC_PPTUTEXT                    1018
#define IDC_PPELTEXT                    1019
#define IDC_PPNOSTEXT                   1020
#define IDC_PPVOSTEXT                   1021
#define IDC_PPELLOSTEXT                 1022
#define IDC_PYOTEXT                     1023
#define IDC_PTUTEXT                     1024
#define IDC_PELTEXT                     1025
#define IDC_PNOSTEXT                    1026
#define IDC_PVOSTEXT                    1027
#define IDC_PELLOSTEXT                  1028
#define IDC_IYOTEXT                     1029
#define IDC_ITUTEXT                     1030
#define IDC_IELTEXT                     1031
#define IDC_INOSTEXT                    1032
#define IDC_IVOSTEXT                    1033
#define IDC_IELLOSTEXT                  1034
#define IDC_PAPYOTEXT                   1035
#define IDC_PAPTUTEXT                   1036
#define IDC_PAPELTEXT                   1037
#define IDC_PAPNOSTEXT                  1038
#define IDC_PAPVOSTEXT                  1039
#define IDC_PAPELLOSTEXT                1040
#define IDC_FYOTEXT                     1041
#define IDC_FTUTEXT                     1042
#define IDC_FELTEXT                     1043
#define IDC_FNOSTEXT                    1044
#define IDC_FVOSTEXT                    1045
#define IDC_FELLOSTEXT                  1046
#define IDC_CYOTEXT                     1047
#define IDC_CTUTEXT                     1048
#define IDC_CELTEXT                     1049
#define IDC_CNOSTEXT                    1050
#define IDC_CVOSTEXT                    1051
#define IDC_CELLOSTEXT                  1052
#define IDC_PSYOTEXT                    1053
#define IDC_PSTUTEXT                    1054
#define IDC_PSELTEXT                    1055
#define IDC_PSNOSTEXT                   1056
#define IDC_PSVOSTEXT                   1057
#define IDC_PSELLOSTEXT                 1058
#define IDC_ISYOTEXT                    1059
#define IDC_ISTUTEXT                    1060
#define IDC_ISELTEXT                    1061
#define IDC_ISNOSTEXT                   1062
#define IDC_ISVOSTEXT                   1063
#define IDC_ISELLOSTEXT                 1064

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        102
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1007
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

And here's the .rc file:

//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef __BORLANDC__
#include "winres.h"
#endif

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#ifndef __BORLANDC__\r\n"
    "#include ""winres.h""\r\n"
    "#endif\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "\0"
END

#endif    // APSTUDIO_INVOKED



/////////////////////////////////////////////////////////////////////////////
//
//Menu
//
IDR_MYMENU MENU
BEGIN
POPUP "&Start"
BEGIN
MENUITEM "P&lay Hangman", ID_START_HANG
MENUITEM "P&lay Word Jumble", ID_START_JUMB
MENUITEM "R&eview List of Words", ID_START_LW
MENUITEM "R&eview List of Conjugated Verbs", ID_START_LC
MENUITEM "Take Word Quiz", ID_START_QW
MENUITEM "Take Conjugation Quiz", ID_START_QC
MENUITEM "E&dit Wordbank (Administrators only)", ID_START_EDIT 
END
POPUP "&End"
BEGIN
MENUITEM "E&xit", ID_END_EXIT
MENUITEM "E&xit and Shutdown Computer", ID_END_SHUTDOWN
END
END
IDI_SPANICON ICON "spanish.ico"
IDI_FOXENICON ICON "foxen.ico"
IDI_MYICON ICON "menu_one.ico"



/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_MAIN DIALOG DISCARDABLE  0, 0, 180, 151
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Spanish Word Editor"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Words",IDC_STATIC,7,10,56,8
    LISTBOX         IDC_LIST,7,25,103,106,LBS_NOINTEGRALHEIGHT | 
                    LBS_EXTENDEDSEL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "&Add",IDC_ADD,115,30,50,14
    PUSHBUTTON      "&Remove",IDC_REMOVE,115,47,50,14
    PUSHBUTTON      "&Edit",IDC_EDIT,115,63,50,14
    PUSHBUTTON      "&Load",IDC_LOAD,115,80,50,14
END

IDD_MAIN2 DIALOG DISCARDABLE  0, 0, 650, 151
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Spanish Word Editor"
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_STEXT,0,7,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ETEXT,60,7,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_POSTEXT,120,7,50,14,ES_AUTOHSCROLL
    LTEXT           "Conjugations(only if verb is the Part of speech)",IDC_STATIC,25,21,150,8
    LTEXT           "Present          Present Progressive          Preterite                   Imperfect             Past Progressive             Future                   Conditional        Present Subjunctive   Imperfect Subjunctive",IDC_STATIC,78,35,600,8;
    LTEXT           "Yo",IDC_STATIC,0,49,150,8
    LTEXT           "Tú",IDC_STATIC,0,63,150,8
    LTEXT           "Usted/Él/Ella",IDC_STATIC,0,77,150,8
    LTEXT           "Nosotros",IDC_STATIC,0,91,150,8
    LTEXT           "Vosotros",IDC_STATIC,0,105,150,8
    LTEXT           "Ustedes/Ellos/Ellas",IDC_STATIC,0,119,150,8
    EDITTEXT        IDC_YOTEXT,65,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_TUTEXT,65,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ELTEXT,65,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_NOSTEXT,65,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_VOSTEXT,65,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ELLOSTEXT,65,117,50,14,ES_AUTOHSCROLL
    
    EDITTEXT        IDC_PPYOTEXT,130,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PPTUTEXT,130,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PPELTEXT,130,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PPNOSTEXT,130,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PPVOSTEXT,130,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PPELLOSTEXT,130,117,50,14,ES_AUTOHSCROLL
    
    EDITTEXT        IDC_PYOTEXT,195,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PTUTEXT,195,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PELTEXT,195,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PNOSTEXT,195,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PVOSTEXT,195,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PELLOSTEXT,195,117,50,14,ES_AUTOHSCROLL
    
    EDITTEXT        IDC_IYOTEXT,260,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ITUTEXT,260,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_IELTEXT,260,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_INOSTEXT,260,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_IVOSTEXT,260,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_IELLOSTEXT,260,117,50,14,ES_AUTOHSCROLL
    
    EDITTEXT        IDC_PAPYOTEXT,325,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAPTUTEXT,325,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAPELTEXT,325,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAPNOSTEXT,325,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAPVOSTEXT,325,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PAPELLOSTEXT,325,117,50,14,ES_AUTOHSCROLL
    
    EDITTEXT        IDC_FYOTEXT,390,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FTUTEXT,390,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FELTEXT,390,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FNOSTEXT,390,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FVOSTEXT,390,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_FELLOSTEXT,390,117,50,14,ES_AUTOHSCROLL
    
    EDITTEXT        IDC_CYOTEXT,455,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CTUTEXT,455,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CELTEXT,455,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CNOSTEXT,455,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CVOSTEXT,455,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_CELLOSTEXT,455,117,50,14,ES_AUTOHSCROLL
    
    EDITTEXT        IDC_PSYOTEXT,520,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PSTUTEXT,520,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PSELTEXT,520,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PSNOSTEXT,520,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PSVOSTEXT,520,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_PSELLOSTEXT,520,117,50,14,ES_AUTOHSCROLL
    
    EDITTEXT        IDC_ISYOTEXT,585,47,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ISTUTEXT,585,61,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ISELTEXT,585,75,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ISNOSTEXT,585,89,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ISVOSTEXT,585,103,50,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_ISELLOSTEXT,585,117,50,14,ES_AUTOHSCROLL
    
    
    PUSHBUTTON      "&Save",IDC_SAVE,585,133,50,14
END

IDD_MAIN3 DIALOG DISCARDABLE  0, 0, 180, 50
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Spanish Word Editor"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Password",IDC_STATIC,7,10,56,8
    EDITTEXT        IDC_PASS,7,30,50,14,ES_AUTOHSCROLL
    PUSHBUTTON      "&Enter",IDC_ENTER,115,30,50,14
END

IDD_MAINQW DIALOG DISCARDABLE  0, 0, 180, 50
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Spanish Vocab Quiz"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Welcome to Spanish Vocabulary Quiz!",IDC_STATIC,7,10,200,8
	LTEXT			"Press Begin, choose the section you wish to work on,", IDC_STATIC, 7, 20, 600, 8 
	LTEXT			"then start taking the quiz!",IDC_STATIC,7,30,600,8
    PUSHBUTTON      "&Begin Quiz",IDC_BEGINQW,115,30,50,14
END

IDD_MAINQW2 DIALOG DISCARDABLE  0, 0, 180, 50
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Spanish Vocab Quiz"
FONT 8, "MS Sans Serif"
BEGIN
	LTEXT           "What is the spanish word for ",IDC_STATIC,7,10,90,8
    LTEXT			"hi",IDC_VIEW,100,10,200,8
	EDITTEXT        IDC_ANSQW,7,30,50,14,ES_AUTOHSCROLL
    PUSHBUTTON      "&Ok",IDC_OKQW,115,30,50,14
END
/////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_MAIN, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 200
        VERTGUIDE, 145
        VERTGUIDE, 150
        TOPMARGIN, 7
        BOTTOMMARGIN, 149
    END
    
    IDD_MAIN2, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 200
        VERTGUIDE, 145
        VERTGUIDE, 150
        TOPMARGIN, 7
        BOTTOMMARGIN, 149
    END
END
#endif    // APSTUDIO_INVOKED

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////

Now I've narrowed down the areas that the problem is affecting to the highlighted parts. Also, I know that the words should just flash on the screen(I'll fix that later, that's easy). But the words aren't displaying at all. I even tested the for loop with a messagebox and the messagebox never even came up. Thank you in advance.

spnVqw.push_back(SPNstruct(sztempeng,sztempspn));


		for(int i = 0; i < 55; ++i)
			inStream.getline(sztemp, 1000);

I rember telling you this in an earlier thread -- that code is NOT loading the strings into the vector. All it does is read each line from the file ( using getline) ) and does nothing with the lines. Here is how to fix it

for(int i = 0; i < 55; ++i)
{
     inStream.getline(sztemp, 1000);
// now split the line into both english and spanish translations
// I don't know how to do that so you'll have to figure it out yourself.
//
// now add both translations to the vector
     spnVqw.push_back(SPNstruct(sztempeng,sztempspn));
}

The classs constructor is also want. It needs to allocate memory for the two strings then copy them.

SPNstruct(LPCSTR english, LPCSTR spanish) 
{ 
    eng = new LPCSTR[strlen(english)+1];
    strcpy(eng, english);
    // now do the same thing for spn variable
}
SPNstruct(LPCSTR english, LPCSTR spanish) { eng = english; spn = spanish; }
	eng = new LPCSTR[strlen(english)+1];
    strcpy(eng, english);
    // now do the same thing for spn variable
    spn = new LPCSTR[strlen(spanish)+1];
    strcpy(spn, spanish);
    // now do the same thing for spn variable
	LPCSTR Geteng() { return eng; }
	LPCSTR Getspn() { return spn; }

like this? because if so I get errors

and the only reason I didn't change that one part is because it works fine the way it is.

You get errors because all you wrote was crap. Look at that first line and change it to the way I had it.

>>and the only reason I didn't change that one part is because it works fine the way it is.
You mean it compiles ok -- it doesn't work at all, which is why your program doesn't display anything.

This article has been dead for over six months. Start a new discussion instead.