win api programming Bug

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 1791 Views - Last Post: 30 July 2011 - 02:03 PM Rate Topic: -----

#1 joejoemoe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 21-October 09

win api programming Bug

Posted 29 July 2011 - 08:57 PM

Hi,
Iam Learning Win api programing with C++.
Following a Tutorial to bring together several dialog boxes plus, in a single Application.
I am using VS2010 to do the tut.
The problem that i am getting is as follows.

#include "stdafx.h"
#include "Code D.h"

#define MAX_LOADSTRING 100
#define Open


// Global Variables:
HINSTANCE hInst;								// current instance
TCHAR szTitle[MAX_LOADSTRING];					// The title bar text
TCHAR szWindowClass[MAX_LOADSTRING];			// the main window class name

// Forward declarations of functions included in this code module:
ATOM				MyRegisterClass(HINSTANCE hInstance);
BOOL				InitInstance(HINSTANCE, int);
LRESULT CALLBACK	WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK	About(HWND, UINT, WPARAM, LPARAM);

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

 	// TODO: Place code here.
	MSG msg;
	HACCEL hAccelTable;

	// Initialize global strings
	LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
	LoadString(hInstance, IDC_CODED, szWindowClass, MAX_LOADSTRING);
	MyRegisterClass(hInstance);

	// Perform application initialization:
	if (!InitInstance (hInstance, nCmdShow))
	{
		return FALSE;
	}

	hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_CODED));

	// Main message loop:
	while (GetMessage(&msg, NULL, 0, 0))
	{
		if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
		{
			TranslateMessage(&msg);
			DispatchMessage(&msg);
		}
	}

	return (int) msg.wParam;
}



//
//  FUNCTION: MyRegisterClass()
//
//  PURPOSE: Registers the window class.
//
//  COMMENTS:
//
//    This function and its usage are only necessary if you want this code
//    to be compatible with Win32 systems prior to the 'RegisterClassEx'
//    function that was added to Windows 95. It is important to call this function
//    so that the application will get 'well formed' small icons associated
//    with it.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
	WNDCLASSEX wcex;

	wcex.cbSize = sizeof(WNDCLASSEX);

	wcex.style			= CS_HREDRAW | CS_VREDRAW;
	wcex.lpfnWndProc	= WndProc;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= hInstance;
	wcex.hIcon			= LoadIcon(hInstance, MAKEINTRESOURCE(IDI_CODED));
	wcex.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wcex.hbrBackground	= (HBRUSH)(COLOR_WINDOW+1);
	wcex.lpszMenuName	= MAKEINTRESOURCE(IDC_CODED);
	wcex.lpszClassName	= szWindowClass;
	wcex.hIconSm		= LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));

	return RegisterClassEx(&wcex);
}

//
//   FUNCTION: InitInstance(HINSTANCE, int)
//
//   PURPOSE: Saves instance handle and creates main window
//
//   COMMENTS:
//
//        In this function, we save the instance handle in a global variable and
//        create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
   HWND hWnd;

   hInst = hInstance; // Store instance handle in our global variable

   hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
      CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);

   if (!hWnd)
   {
      return FALSE;
   }

   ShowWindow(hWnd, nCmdShow);
   UpdateWindow(hWnd);

   return TRUE;
}

//
//  FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)
//
//  PURPOSE:  Processes messages for the main window.
//
//  WM_COMMAND	- process the application menu
//  WM_PAINT	- Paint the main window
//  WM_DESTROY	- post a quit message and return
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	int wmId, wmEvent;
	PAINTSTRUCT ps;
	HDC hdc;

	switch (message)
	{
	case WM_COMMAND:
		wmId    = LOWORD(wParam);
		wmEvent = HIWORD(wParam);
		// Parse the menu selections:
		switch (wmId)
		{
		case IDM_OPEN:
			DialogBox(hInst, MAKEINTRESOURCE(IDD_PROPPAGE_LARGE), hWnd, Open);
			break;
		case IDM_about:
			DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
			break;
		case IDM_EXIT:
			DestroyWindow(hWnd);
			break;
		default:
			return DefWindowProc(hWnd, message, wParam, lParam);
		}
		break;
	case WM_PAINT:
		hdc = BeginPaint(hWnd, &ps);
		// TODO: Add any drawing code here...
		EndPaint(hWnd, &ps);
		break;
	case WM_DESTROY:
		PostQuitMessage(0);
		break;
	default:
		return DefWindowProc(hWnd, message, wParam, lParam);
	}
	return 0;
}

// Message handler for about box.
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	UNREFERENCED_PARAMETER(lParam);
	switch (message)
	{
	case WM_INITDIALOG:
		return (INT_PTR)TRUE;

	case WM_COMMAND:
		if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
		{
			EndDialog(hDlg, LOWORD(wParam));
			return (INT_PTR)TRUE;
		}
		break;
	}
	return (INT_PTR)FALSE;
}


And the Errors are as follows:

Error 1 error C2059: syntax error : ',' code d.cpp 151 1 Code D
2 IntelliSense: expected an expression code d.cpp 151 4 Code D

Could anyone tell me if i am mad or is the tut not telling me everything i need to know, or is it VS2010 as i know that VS2010 had or has a few glitches.
I do not think i am at fault but i may be wrong.
I have tried Microsoft in their help library and 4 online sites including Google but to no avail.
maybe here i might have better luck.
Many Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: win api programming Bug

#2 PlasticineGuy  Icon User is offline

  • mov dword[esp+eax],0
  • member icon

Reputation: 281
  • View blog
  • Posts: 1,436
  • Joined: 03-January 10

Re: win api programming Bug

Posted 29 July 2011 - 09:07 PM

Clean your solution. This occasionally happens.
Was This Post Helpful? 0
  • +
  • -

#3 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: win api programming Bug

Posted 29 July 2011 - 09:14 PM

Change:

#include "Code D.h"



to:

#include "Code_D.h"



and obviously change the file name.

This post has been edited by n8wxs: 29 July 2011 - 09:17 PM

Was This Post Helpful? 1
  • +
  • -

#4 joejoemoe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 21-October 09

Re: win api programming Bug

Posted 29 July 2011 - 09:36 PM

View PostPlasticineGuy, on 29 July 2011 - 10:07 PM, said:

Clean your solution. This occasionally happens.

Many Thanks Tried that no go Either.

View Postn8wxs, on 29 July 2011 - 10:14 PM, said:

Change:

#include "Code D.h"



to:

#include "Code_D.h"



and obviously change the file name.


Thanks Again but that did not work as well.
Was This Post Helpful? 0
  • +
  • -

#5 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: win api programming Bug

Posted 29 July 2011 - 09:42 PM

WHAT DID NOT WORK??????

IT REMOVES THE COMPILER ERROR ON THE STATEMENT.

The code you posted is missing a bunch of definitions.
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5363
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: win api programming Bug

Posted 29 July 2011 - 09:46 PM

joejoemoe, is the file Code_D.h in the same directory as your source code? The path in the double quotes include statement must be correct for it to work. The include statement & the file name must match. Can you provide the updated code & the naming convention for the custom header files?
Was This Post Helpful? 0
  • +
  • -

#7 joejoemoe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 21-October 09

Re: win api programming Bug

Posted 29 July 2011 - 09:53 PM

View Postn8wxs, on 29 July 2011 - 10:42 PM, said:

WHAT DID NOT WORK??????

IT REMOVES THE COMPILER ERROR ON THE STATEMENT.

The code you posted is missing a bunch of definitions.


Not on my Computer, it gave the same errors.
Was This Post Helpful? 0
  • +
  • -

#8 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: win api programming Bug

Posted 29 July 2011 - 10:04 PM

did you change all the references to #include "Code D.h"??
Was This Post Helpful? 0
  • +
  • -

#9 joejoemoe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 21-October 09

Re: win api programming Bug

Posted 29 July 2011 - 10:06 PM

View Postno2pencil, on 29 July 2011 - 10:46 PM, said:

joejoemoe, is the file Code_D.h in the same directory as your source code? The path in the double quotes include statement must be correct for it to work. The include statement & the file name must match. Can you provide the updated code & the naming convention for the custom header files?


Updated code as req:
#include "stdafx.h"
#include "Code_D.h"

#define MAX_LOADSTRING 100
#define Open


// Global Variables:
HINSTANCE hInst;								// current instance
TCHAR szTitle[MAX_LOADSTRING];					// The title bar text
TCHAR szWindowClass[MAX_LOADSTRING];			// the main window class name

// Forward declarations of functions included in this code module:
ATOM				MyRegisterClass(HINSTANCE hInstance);
BOOL				InitInstance(HINSTANCE, int);
LRESULT CALLBACK	WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK	About(HWND, UINT, WPARAM, LPARAM);

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

 	// TODO: Place code here.
	MSG msg;
	HACCEL hAccelTable;

	// Initialize global strings
	LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
	LoadString(hInstance, IDC_CODED, szWindowClass, MAX_LOADSTRING);
	MyRegisterClass(hInstance);

	// Perform application initialization:
	if (!InitInstance (hInstance, nCmdShow))
	{
		return FALSE;
	}

	hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_CODED));

	// Main message loop:
	while (GetMessage(&msg, NULL, 0, 0))
	{
		if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
		{
			TranslateMessage(&msg);
			DispatchMessage(&msg);
		}
	}

	return (int) msg.wParam;
}



//
//  FUNCTION: MyRegisterClass()
//
//  PURPOSE: Registers the window class.
//
//  COMMENTS:
//
//    This function and its usage are only necessary if you want this code
//    to be compatible with Win32 systems prior to the 'RegisterClassEx'
//    function that was added to Windows 95. It is important to call this function
//    so that the application will get 'well formed' small icons associated
//    with it.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
	WNDCLASSEX wcex;

	wcex.cbSize = sizeof(WNDCLASSEX);

	wcex.style			= CS_HREDRAW | CS_VREDRAW;
	wcex.lpfnWndProc	= WndProc;
	wcex.cbClsExtra		= 0;
	wcex.cbWndExtra		= 0;
	wcex.hInstance		= hInstance;
	wcex.hIcon			= LoadIcon(hInstance, MAKEINTRESOURCE(IDI_CODED));
	wcex.hCursor		= LoadCursor(NULL, IDC_ARROW);
	wcex.hbrBackground	= (HBRUSH)(COLOR_WINDOW+1);
	wcex.lpszMenuName	= MAKEINTRESOURCE(IDC_CODED);
	wcex.lpszClassName	= szWindowClass;
	wcex.hIconSm		= LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));

	return RegisterClassEx(&wcex);
}

//
//   FUNCTION: InitInstance(HINSTANCE, int)
//
//   PURPOSE: Saves instance handle and creates main window
//
//   COMMENTS:
//
//        In this function, we save the instance handle in a global variable and
//        create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
   HWND hWnd;

   hInst = hInstance; // Store instance handle in our global variable

   hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
      CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);

   if (!hWnd)
   {
      return FALSE;
   }

   ShowWindow(hWnd, nCmdShow);
   UpdateWindow(hWnd);

   return TRUE;
}

//
//  FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)
//
//  PURPOSE:  Processes messages for the main window.
//
//  WM_COMMAND	- process the application menu
//  WM_PAINT	- Paint the main window
//  WM_DESTROY	- post a quit message and return
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	int wmId, wmEvent;
	PAINTSTRUCT ps;
	HDC hdc;

	switch (message)
	{
	case WM_COMMAND:
		wmId    = LOWORD(wParam);
		wmEvent = HIWORD(wParam);
		// Parse the menu selections:
		switch (wmId)
		{
		case IDM_OPEN:
			DialogBox(hInst, MAKEINTRESOURCE(IDD_PROPPAGE_LARGE), hWnd, Open);
			break;
		case IDM_about:
			DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
			break;
		case IDM_EXIT:
			DestroyWindow(hWnd);
			break;
		default:
			return DefWindowProc(hWnd, message, wParam, lParam);
		}
		break;
	case WM_PAINT:
		hdc = BeginPaint(hWnd, &ps);
		// TODO: Add any drawing code here...
		EndPaint(hWnd, &ps);
		break;
	case WM_DESTROY:
		PostQuitMessage(0);
		break;
	default:
		return DefWindowProc(hWnd, message, wParam, lParam);
	}
	return 0;
}

// Message handler for about box.
INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
	UNREFERENCED_PARAMETER(lParam);
	switch (message)
	{
	case WM_INITDIALOG:
		return (INT_PTR)TRUE;

	case WM_COMMAND:
		if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
		{
			EndDialog(hDlg, LOWORD(wParam));
			return (INT_PTR)TRUE;
		}
		break;
	}
	return (INT_PTR)FALSE;
}


Also

#pragma once

#include "resource.h"


#define IDC_MYICON                      2
#define IDD_CODED_DIALOG                102
#define IDS_APP_TITLE                   103
#define IDD_ABOUTBOX                    103
#define IDM_ABOUT                       104
#define IDM_EXIT                        105
#define IDM_OPEN                        106
#define IDI_CODED                       107
#define IDD_PROPPAGE_LARGE              107
#define IDI_SMALL                       108
#define IDC_CODED                       109
#define IDR_MAINFRAME                   128
#define IDR_TOOLBAR1                    129
#define IDC_MFCSHELLLIST1               1000
#define IDC_MFCSHELLTREE2               1003
#define ID_FILE_NEW                     32771
#define ID_FILE_OPEN                    32772
#define ID_FILE_RELOADFROMDISK          32773
#define ID_FILE_SAVE                    32774
#define ID_FILE_SAVEAS                  32775
#define ID_FILE_SAVEALL                 32776
#define ID_FILE_RENAME                  32777
#define ID_FILE_CLOSE                   32778
#define ID_FILE_CLOSEALL                32779
#define ID_FILE_PRINT                   32780
#define ID_FILE_ALLEXCEPTC              32781
#define ID_FILE_DELETEFROMDISK          32782
#define ID_FILE_LOADSESSION             32783
#define ID_FILE_SAVESESSION             32784
#define ID_FILE_OPENRECENT              32785
#define ID_FILE_EMPTYRECENTLIST         32786
#define ID_EDIT_UNDO                    32787
#define ID_EDIT_REDO                    32788
#define ID_EDIT_CUT                     32789
#define ID_EDIT_COPY                    32790
#define ID_EDIT_PASTE                   32791
#define ID_EDIT_DELETE                  32792
#define ID_EDIT_SELECTALL               32793
#define ID_EDIT_COPYTOCLIPBOARD         32794
#define ID_EDIT_INDENT                  32795
#define ID_EDIT_CONVERTCASE             32796
#define ID_EDIT_LINEOPPS                32797
#define ID_EDIT_COMMENT                 32798
#define ID_EDIT_AUTOCOMPLETE            32799
#define ID_EDIT_EOLCONVERT              32800
#define ID_EDIT_BLANKOPPS               32801
#define ID_EDIT_PASTESPECIAL            32802
#define ID_EDIT_COLUMNMODE              32803
#define ID_EDIT_COLUMNEDIT              32804
#define ID_EDIT_READ                    32805
#define ID_EDIT_CLEARRO                 32806
#define ID_SEARCH_FIND                  32807
#define ID_SEARCH_FINDINFILE            32808
#define ID_SEARCH_FINDNEXT              32809
#define ID_SEARCH_FINDPREVIOUS          32810
#define ID_SEARCH_REPLACE               32811
#define ID_SEARCH_NEXTRESULT            32812
#define ID_SEARCH_PREVIOUSRESULT        32813
#define ID_SEARCH_GOTO                  32814
#define ID_SEARCH_MARKALL               32815
#define ID_SEARCH_UNMARKALL             32816
#define ID_SEARCH_JUMPUP                32817
#define ID_SEARCH_JUMPDOWN              32818
#define ID_SEARCH_BOOKMARK              32819
#define ID_VIEW_ALWAYSONTOP             32820
#define ID_VIEW_TOGGLEFULLSCREEN        32821
#define ID_VIEW_POST                    32822
#define ID_VIEW_SHOWSYMBOLS             32823
#define ID_VIEW_ZOOM                    32824
#define ID_VIEW_CLONE                   32825
#define ID_VIEW_WORDWRAP                32826
#define ID_VIEW_HIDELINES               32827
#define ID_VIEW_USERDEFINEDDIALOGUE     32828
#define ID_VIEW_FOLD                    32829
#define ID_VIEW_UNFOLD                  32830
#define ID_VIEW_COLLAPSE                32831
#define ID_VIEW_REBUILD                 32832
#define ID_VIEW_SUMMARY                 32833
#define ID_VIEW_V                       32834
#define ID_VIEW_H                       32835
#define ID_VIEW_TEXTRTL                 32836
#define ID_VIEW_TEXTLTR                 32837
#define ID_ENCODING_ANSI                32838
#define ID_ENCODING_UTF8WITHOUTBOM      32839
#define ID_ENCODING_UTF8                32840
#define ID_ENCODING_UCS                 32841
#define ID_ENCODING_UCS32842            32842
#define ID_ENCODING_CHARSETS            32843
#define ID_ENCODING_CONVERT             32844
#define ID_LANGUAGE_A                   32845
#define ID_LANGUAGE_BATCH               32846
#define ID_LANGUAGE_C                   32847
#define ID_LANGUAGE_D                   32848
#define ID_LANGUAGE_F                   32849
#define ID_LANGUAGE_GUI4CLI             32850
#define ID_LANGUAGE_H                   32851
#define ID_LANGUAGE_INNO                32852
#define ID_LANGUAGE_J                   32853
#define ID_LANGUAGE_KIXTART             32854
#define ID_LANGUAGE_L                   32855
#define ID_LANGUAGE_M                   32856
#define ID_LANGUAGE_N                   32857
#define ID_LANGUAGE_OBJC                32858
#define ID_LANGUAGE_P                   32859
#define ID_LANGUAGE_R                   32860
#define ID_LANGUAGE_S                   32861
#define ID_LANGUAGE_T                   32862
#define ID_LANGUAGE_V                   32863
#define ID_LANGUAGE_XML                 32864
#define ID_LANGUAGE_YAML                32865
#define ID_LANGUAGE_USERDEFINED         32866
#define ID_SETTINGS_OPTIONS             32867
#define ID_SETTINGS_STYLEOPTIONS        32868
#define ID_SETTINGS_SHORTCUTMAPPER      32869
#define ID_SETTINGS_IMPORT              32870
#define ID_SETTINGS_EDITPOPUPMENU       32871
#define ID_MACRO_STARTREC               32872
#define ID_MACRO_STOPREC                32873
#define ID_MACRO_PLAYBACK               32874
#define ID_MACRO_SAVE                   32875
#define ID_MACRO_TRIMANDSAVE            32876
#define ID_MACRO_DELETE                 32877
#define ID_RUN_RUN                      32878
#define ID_RUN_LAUNCHIN                 32879
#define ID_RUN_GOOGLESEARCH             32880
#define ID_RUN_WIKISEARCH               32881
#define ID_RUN_OPENFILE                 32882
#define ID_RUN_OPENC                    32883
#define ID_RUN_SENDVIAOUTLOOK           32884
#define ID_PLUG_COMPAIR                 32885
#define ID_PLUG_CONVERT                 32886
#define ID_PLUG_EXPORT                  32887
#define ID_PLUG_IMPORT                  32888
#define ID_PLUG_PLUG                    32889
#define ID_PLUG_SPELLCHECK              32890
#define ID_PLUG_FTP                     32891
#define ID_COPYTOCLIPBOARD_CURRENTFULLFILE 32892
#define ID_COPYTOCLIPBOARD_CURRENTFILENAME 32893
#define ID_COPYTOCLIPBOARD_CURRENTDIRPATH 32894
#define ID_INDENT_INCREASE              32895
#define ID_INDENT_DECREASE              32896
#define ID_CONVERTCASE_UPPERCASE        32897
#define ID_CONVERTCASE_LOWERCASE        32898
#define ID_LINEOPPS_CLONETHISLINE       32899
#define ID_LINEOPPS_SPLITLINE           32900
#define ID_LINEOPPS_JOINLINE            32901
#define ID_LINEOPPS_MOVEUP              32902
#define ID_LINEOPPS_MOVEDOWN            32903
#define ID_COMMENT_TOGGLEBLOCKCOMMENT   32904
#define ID_COMMENT_BLOCKCOMMENT         32905
#define ID_COMMENT_BLOCKUNCOMMENT       32906
#define ID_COMMENT_STREAMCOMMENT        32907
#define ID_AUTOCOMPLETE_FUNCTIONCOMPLETE 32908
#define ID_AUTOCOMPLETE_WORDCOMPLETE    32909
#define ID_AUTOCOMPLETE_FUNCTIONPARAMETE 32910
#define ID_EOLCONVERT_WINDOWSFORMAT     32911
#define ID_EOLCONVERT_UNIXFORMAT        32912
#define ID_EOLCONVERT_MACFORMAT         32913
#define ID_BLANKOPPS_TRIMTRAILINGSPACE  32914
#define ID_BLANKOPPS_TRIMLEADINGSPACE   32915
#define ID_BLANKOPPS_TRIMBOTH           32916
#define ID_BLANKOPPS_EOLTOSPACE         32917
#define ID_BLANKOPPS_REMOVEUNNECESSARYSPACE 32918
#define ID_BLANKOPPS_TABTOSPACE         32919
#define ID_BLANKOPPS_SPACETOTAB         32920
#define ID_PASTESPECIAL_PASTEHTMLCONTENT 32921
#define ID_PASTESPECIAL_PASTERTFCONTENT 32922
#define ID_PASTESPECIAL_COPYBINARYCONTENT 32923
#define ID_PASTESPECIAL_CUTBINARYCONTENT 32924
#define ID_PASTESPECIAL_PASTEBINARYCONTENT 32925
#define ID_MARKALL_USING1STSTYLE        32926
#define ID_MARKALL_USING2NDSTYLE        32927
#define ID_MARKALL_USING3RDSTYLE        32928
#define ID_MARKALL_USING4THSTYLE        32929
#define ID_MARKALL_USING5THSTYLE        32930
#define ID_UNMARKALL_CLEAR1STSTYLE      32931
#define ID_UNMARKALL_CLEAR2NDSTYLE      32932
#define ID_UNMARKALL_CLEAR3RDSTYLE      32933
#define ID_UNMARKALL_CLEAR4THSTYLE      32934
#define ID_UNMARKALL_CLEAR5THSTYLE      32935
#define ID_JUMPUP_1STSTYLE              32936
#define ID_JUMPUP_2NDSTYLE              32937
#define ID_JUMPUP_3RDSTYLE              32938
#define ID_JUMPUP_4THSTYLE              32939
#define ID_JUMPUP_5THSTYLE              32940
#define ID_JUMPUP_FINDSTYLE             32941
#define ID_JUMPDOWN_1STSTYLE            32942
#define ID_JUMPDOWN_2NDSTYLE            32943
#define ID_JUMPDOWN_3RDSTYLE            32944
#define ID_JUMPDOWN_4THSTYLE            32945
#define ID_JUMPDOWN_5THSTYLE            32946
#define ID_JUMPDOWN_FINDSTYLE           32947
#define ID_SEARCH_BOOKMARK32948         32948
#define ID_BOOKMARK_TOGGLE              32949
#define ID_BOOKMARK_NEXT                32950
#define ID_BOOKMARK_PREVIOUS            32951
#define ID_BOOKMARK_CLEARALL            32952
#define ID_BOOKMARK_CUTLINES            32953
#define ID_BOOKMARK_COPYLINES           32954
#define ID_BOOKMARK_REPLACELINES        32955
#define ID_BOOKMARK_REMOVEMARKEDLINES   32956
#define ID_BOOKMARK_REMOVEUNMARKEDLINES 32957
#define ID_BOOKMARK_INVERCEBOOKMARK     32958
#define ID_SHOWSYMBOLS_SHOWWHITESPACEANDTAB 32959
#define ID_SHOWSYMBOLS_SHOWEOL          32960
#define ID_SHOWSYMBOLS_SHOWALLMCHARS    32961
#define ID_SHOWSYMBOLS_SHOWINDENTGUIDE  32962
#define ID_SHOWSYMBOLS_SHOWWRAPSYMBOL   32963
#define ID_ZOOM_ZOOMIN                  32964
#define ID_ZOOM_ZOOMOUT                 32965
#define ID_ZOOM_DEFAULT                 32966
#define ID_CLONE_CLONETOOTHERVIEW       32967
#define ID_CHARSETS_ARABIC              32968
#define ID_ARABIC_ISO8859               32969
#define ID_ARABIC_OEM720                32970
#define ID_ARABIC_WINDOWS1256           32971
#define ID_CHARSETS_BALTIC              32972
#define ID_BALTIC_ISO8859               32973
#define ID_BALTIC_ISO8860               32974
#define ID_BALTIC_OEM775                32975
#define ID_BALTIC_WINDOWS1257           32976
#define ID_CHARSETS_CELTIC              32977
#define ID_CELTIC_ISO8859               32978
#define ID_CHARSETS_CYRILLIC            32979
#define ID_CYRILLIC_ISO8859             32980
#define ID_CYRILLIC_KOI8                32981
#define ID_CYRILLIC_KOI9                32982
#define ID_CYRILLIC_MACINTOSH           32983
#define ID_CYRILLIC_OEM855              32984
#define ID_CYRILLIC_OEM866              32985
#define ID_CYRILLIC_WINDOWS1251         32986
#define ID_CHARSETS_CENTRALEUROPEAN     32987
#define ID_CENTRALEUROPEAN_OEM852       32988
#define ID_CENTRALEUROPEAN_WINDOWS12    32989
#define ID_CHARSETS_CHINESE             32990
#define ID_CHINESE_BIG5                 32991
#define ID_CHINESE_GB2312               32992
#define ID_CHARSETS_EASTERN             32993
#define ID_EASTERNEUROPEAN_ISO8859      32994
#define ID_CHARSETS_GREEK               32995
#define ID_GREEK_ISO8859                32996
#define ID_GREEK_OEM737                 32997
#define ID_GREEK_OEM869                 32998
#define ID_GREEK_WINDOWS1253            32999
#define ID_CHARSETS_HEBREW              33000
#define ID_HEBREW_ISO8859               33001
#define ID_HEBREW_OEM862                33002
#define ID_HEBREW_WINDOWS1255           33003
#define ID_CHARSETS_JAPANESE            33004
#define ID_JAPANESE_SHIFT               33005
#define ID_CHARSETS_KOREAN              33006
#define ID_KOREAN_WINDOWS949            33007
#define ID_KOREAN_EUC                   33008
#define ID_CHARSETS_NORTHEUROPEAN       33009
#define ID_NORTHERNEUROPEAN_OEM861      33010
#define ID_NORTHERNEUROPEAN_OEM865      33011
#define ID_CHARSETS_THAI                33012
#define ID_THAI_TIS                     33013
#define ID_CHARSETS_TURKISH             33014
#define ID_TURKISH_ISO8859              33015
#define ID_TURKISH_ISO8860              33016
#define ID_TURKISH_OEM857               33017
#define ID_TURKISH_WINDOWS1258          33018
#define ID_CHARSETS_WESTERNEUROPEAN     33019
#define ID_WESTERNEUROPEAN_ISO8859      33020
#define ID_WESTERNEUROPEAN_ISO8860      33021
#define ID_WESTERNEUROPEAN_OEM850       33022
#define ID_WESTERNEUROPEAN_OEM858       33023
#define ID_WESTERNEUROPEAN_OEM860       33024
#define ID_WESTERNEUROPEAN_OEM          33025
#define ID_WESTERNEUROPEAN_OEMUS        33026
#define ID_WESTERNEUROPEAN_WINDOWS1252  33027
#define ID_CHARSETS_VIETNAMESE          33028
#define ID_VIETNAMESE_WINDOWS1258       33029
#define ID_A_ADA                        33030
#define ID_A_ASP                        33031
#define ID_A_ASSEMBLY                   33032
#define ID_A_AUTOIT                     33033
#define ID_C_C                          33034
#define ID_C_C33035                     33035
#define ID_C_C33036                     33036
#define ID_C_CAML                       33037
#define ID_C_CMAKE                      33038
#define ID_C_COBOL                      33039
#define ID_C_CSS                        33040
#define ID_D_D                          33041
#define ID_D_DIFF                       33042
#define ID_F_FLASHACTIONSCRIPT          33043
#define ID_F_FORTRAN                    33044
#define ID_H_HASKELL                    33045
#define ID_H_HTML                       33046
#define ID_J_JAVA                       33047
#define ID_J_Javascript                 33048
#define ID_J_JSP                        33049
#define ID_L_LISP                       33050
#define ID_L_LUA                        33051
#define ID_M_MAKE                       33052
#define ID_M_MATLAB                     33053
#define ID_M_MSINIFILE                  33054
#define ID_M_MSDOSSTYLE                 33055
#define ID_N_NORMALTEXT                 33056
#define ID_N_NSIS                       33057
#define ID_P_PASCAL                     33058
#define ID_P_PERL                       33059
#define ID_P_PHP                        33060
#define ID_P_POSTSCRIPT                 33061
#define ID_P_POWERSHELL                 33062
#define ID_P_PROPERTIES                 33063
#define ID_P_PYTHON                     33064
#define ID_R_R                          33065
#define ID_R_RESOURCEFILE               33066
#define ID_R_RUBY                       33067
#define ID_S_SHELL                      33068
#define ID_S_SCHEME                     33069
#define ID_S_SMALLTALK                  33070
#define ID_S_SQL                        33071
#define ID_T_TCL                        33072
#define ID_T_TEX                        33073
#define ID_V_VB                         33074
#define ID_V_VHDL                       33075
#define ID_V_VERILOG                    33076
#define ID_IMPORT_IMPORTPLUG            33077
#define ID_IMPORT_IMPORTSTYLETHEME      33078
#define ID_LAUNCHIN_FIREFOX             33079
#define ID_LAUNCHIN_IE                  33080
#define ID_LAUNCHIN_OPREA               33081
#define ID_LAUNCHIN_SAFARI              33082
#define ID_LAUNCHIN_CHROME              33083
#define ID_LAUNCHIN_FLOCK               33084
#define ID_CONVERT_ASCII                33085
#define ID_CONVERT_HEX                  33086
#define ID_ABOUT                        33087
#define ID_HELP                         33088
#define IDC_STATIC                      -1

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        133
#define _APS_NEXT_COMMAND_VALUE         33089
#define _APS_NEXT_CONTROL_VALUE         1004
#define _APS_NEXT_SYMED_VALUE           110
#endif
#endif


#pragma once

#include "targetver.h"

#define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>

// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>



if you require anything else anyone of you please ask.
This is a big improvement at least I'm getting replies.
Thanks
Was This Post Helpful? 0
  • +
  • -

#10 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5363
  • View blog
  • Posts: 27,325
  • Joined: 10-May 07

Re: win api programming Bug

Posted 29 July 2011 - 10:07 PM

View Postno2pencil, on 29 July 2011 - 10:46 PM, said:

joejoemoe, is the file Code_D.h in the same directory as your source code?

Was This Post Helpful? 0
  • +
  • -

#11 joejoemoe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 21-October 09

Re: win api programming Bug

Posted 29 July 2011 - 10:22 PM

View Postn8wxs, on 29 July 2011 - 11:04 PM, said:

did you change all the references to #include "Code D.h"??


Yes i got them all and still came up with same 2 errors.

View Postno2pencil, on 29 July 2011 - 11:07 PM, said:

View Postno2pencil, on 29 July 2011 - 10:46 PM, said:

joejoemoe, is the file Code_D.h in the same directory as your source code?


Yes all the files are all in the solution folder.
Was This Post Helpful? 0
  • +
  • -

#12 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: win api programming Bug

Posted 29 July 2011 - 10:24 PM

Did you change the implementation file name: code d.cpp ???
Was This Post Helpful? 0
  • +
  • -

#13 joejoemoe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 21-October 09

Re: win api programming Bug

Posted 29 July 2011 - 10:29 PM

View Postn8wxs, on 29 July 2011 - 11:24 PM, said:

Did you change the implementation file name: code d.cpp ???


I amended all of the files.
Was This Post Helpful? 0
  • +
  • -

#14 n8wxs  Icon User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: win api programming Bug

Posted 29 July 2011 - 10:48 PM

please post all the error messages.
Was This Post Helpful? 0
  • +
  • -

#15 joejoemoe  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 21-October 09

Re: win api programming Bug

Posted 29 July 2011 - 11:18 PM

View Postn8wxs, on 29 July 2011 - 11:48 PM, said:

please post all the error messages.


The Errors are as follows:

Error

1 error C2059: syntax error : ',' code d.cpp 151 1 Code_D
2 IntelliSense: expected an expression code d.cpp 151 4 Code_D
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2