Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using PictureBox Pin
Semion_N4-Sep-06 9:55
Semion_N4-Sep-06 9:55 
GeneralRe: using PictureBox Pin
Nader Elshehabi4-Sep-06 11:11
Nader Elshehabi4-Sep-06 11:11 
GeneralRe: using PictureBox Pin
Semion_N4-Sep-06 18:20
Semion_N4-Sep-06 18:20 
GeneralRe: using PictureBox Pin
Semion_N5-Sep-06 2:54
Semion_N5-Sep-06 2:54 
QuestionVirtual List View advanced question….?# can u help pls? Pin
Cy#4-Sep-06 8:15
Cy#4-Sep-06 8:15 
AnswerRe: Virtual List View advanced question….?# can u help pls? Pin
Michael Dunn4-Sep-06 9:13
sitebuilderMichael Dunn4-Sep-06 9:13 
GeneralRe: Virtual List View advanced question….?# can u help pls? Pin
Cy#4-Sep-06 9:33
Cy#4-Sep-06 9:33 
Questionincludes MFC Pin
amzeus4-Sep-06 8:12
amzeus4-Sep-06 8:12 
having problem
background
system XP SP2
borland BCC55
editor scite

when i make simple programs such as hello world etc every thing works fine but then when i try to use
#include

it tends to throw out errors about not being able to include MFC .h files
i tried getting hold of them but its just getting worse now

list off error message

Error E2209 c:\Borland\Bcc55\include\afxv_w32.h 125: Unable to open include file 'zmouse.h'
Warning W8094 c:\Borland\Bcc55\include\afx.h 4760: Incorrect use of #pragma comment( <type> [,"string"] )
Error E2187 c:\Borland\Bcc55\include\afx.h 6585: Unexpected end of file in conditional started on line 4671
Warning W8059 c:\Borland\Bcc55\include\afx.h 6585: Structure packing size has changed
Error E2139 c:\Borland\Bcc55\include\shellapi.h 49: Declaration missing ;
Error E2209 c:\Borland\Bcc55\include\afxwin.h 29: Unable to open include file 'afxres.h'
Error E2209 c:\Borland\Bcc55\include\afxwin.h 33: Unable to open include file 'afxcoll.h'
Error E2080 c:\Borland\Bcc55\include\afxwin.h 350: '__stdcall CDumpContext::operator <<(CArchive &,tagSIZE)' must be declared with one parameter
Error E2080 c:\Borland\Bcc55\include\afxwin.h 351: '__stdcall CDumpContext::operator <<(CArchive &,tagPOINT)' must be declared with one parameter
Error E2080 c:\Borland\Bcc55\include\afxwin.h 352: '__stdcall CDumpContext::operator <<(CArchive &,const tagRECT &)' must be declared with one parameter
Error E2080 c:\Borland\Bcc55\include\afxwin.h 353: '__stdcall CDumpContext::operator >>(CArchive &,tagSIZE &)' must be declared with one parameter
Error E2080 c:\Borland\Bcc55\include\afxwin.h 354: '__stdcall CDumpContext::operator >>(CArchive &,tagPOINT &)' must be declared with one parameter
Error E2080 c:\Borland\Bcc55\include\afxwin.h 355: '__stdcall CDumpContext::operator >>(CArchive &,tagRECT &)' must be declared with one parameter
Error E2209 c:\Borland\Bcc55\include\afxwin.h 1221: Unable to open include file 'afxmsg_.h'
Error E2209 c:\Borland\Bcc55\include\afxwin.h 1250: Unable to open include file 'afxdd_.h'
Error E2293 c:\Borland\Bcc55\include\afxwin.h 2327: ) expected
Error E2293 c:\Borland\Bcc55\include\afxwin.h 2516: ) expected
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 2668: 'CDumpContext::CDialog::Create(const char *,CDumpContext::CWnd *)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 2702: 'CDumpContext::CStatic::Create(const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 2739: 'CDumpContext::CButton::Create(const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 2824: 'CDumpContext::CListBox::Create(unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 2972: 'CDumpContext::CComboBox::Create(unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 3039: 'CDumpContext::CEdit::Create(unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 3066: 'CDumpContext::CScrollBar::Create(unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Error E2303 c:\Borland\Bcc55\include\afxwin.h 3198: Type name expected
Error E2139 c:\Borland\Bcc55\include\afxwin.h 3198: Declaration missing ;
Error E2293 c:\Borland\Bcc55\include\afxwin.h 3299: ) expected
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 3321: 'CDumpContext::CFrameWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,const char *,unsigned long,CDumpContext::CCreateContext *)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Error E2451 c:\Borland\Bcc55\include\afxwin.h 3112: Undefined symbol 'AFX_IDW_PANE_FIRST'
Error E2451 c:\Borland\Bcc55\include\afxwin.h 3149: Undefined symbol 'CBRS_ALIGN_TOP'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 3460: 'CDumpContext::CMDIChildWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CMDIFrameWnd *,CDumpContext::CCreateContext *)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 3460: 'CDumpContext::CMDIChildWnd::OnUpdateFrameMenu(int,CDumpContext::CWnd *,HMENU__ *)' hides virtual function 'CDumpContext::CFrameWnd::OnUpdateFrameMenu(HMENU__ *)'
Warning W8022 c:\Borland\Bcc55\include\afxwin.h 3528: 'CDumpContext::CMiniFrameWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int)' hides virtual function 'CDumpContext::CWnd::Create(const char *,const char *,unsigned long,const tagRECT &,CDumpContext::CWnd *,unsigned int,CDumpContext::CCreateContext *)'
Error E2303 c:\Borland\Bcc55\include\afxwin.h 4009: Type name expected
Error E2139 c:\Borland\Bcc55\include\afxwin.h 4009: Declaration missing ;
Error E2238 c:\Borland\Bcc55\include\afxwin.h 4013: Multiple declaration for 'CDumpContext::CDocManager::CPtrList'
Error E2344 c:\Borland\Bcc55\include\afxwin.h 4009: Earlier declaration of 'CDumpContext::CDocManager::CPtrList'
Error E2139 c:\Borland\Bcc55\include\afxwin.h 4013: Declaration missing ;
Error E2228 c:\Borland\Bcc55\include\afxwin.h 4013: Too many error or warning messages

the code im tring to compile
// PortScan.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "PortScan.h"

#include "MainFrm.h"
#include "PortScanDoc.h"
#include "PortScanView.h"
#include "Splash.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPortScanApp

BEGIN_MESSAGE_MAP(CPortScanApp, CWinApp)
//{{AFX_MSG_MAP(CPortScanApp)
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPortScanApp construction

CPortScanApp::CPortScanApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CPortScanApp object

CPortScanApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CPortScanApp initialization

BOOL CPortScanApp::InitInstance()
{
// CG: The following block was added by the Splash Screen component.
\
{
\
CCommandLineInfo cmdInfo;
\
ParseCommandLine(cmdInfo);
\

\
CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);
\
}
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}

AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T("IP Hole Finder, (C)By Arash Afifi Sabet"));

LoadStdProfileSettings(0); // Load standard INI file options (including MRU)

// Register the application's document templates. Document templates
// serve as the connection between documents, frame windows and views.

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CPortScanDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CPortScanView));
AddDocTemplate(pDocTemplate);

// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;

// The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
m_pMainWnd->SetWindowText("IP Hole Finder, Port Scanning");
m_pMainWnd->CenterWindow();
return TRUE;
}


/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
CAboutDlg();

// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA

// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
// No message handlers
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

// App command to run the dialog
void CPortScanApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}

/////////////////////////////////////////////////////////////////////////////
// CPortScanApp message handlers


BOOL CPortScanApp::PreTranslateMessage(MSG* pMsg)
{
// CG: The following lines were added by the Splash Screen component.
if (CSplashWnd::PreTranslateAppMessage(pMsg))
return TRUE;

return CWinApp::PreTranslateMessage(pMsg);
}


if any one can recomend what i should do or a better way to go about learning C++ i do know java perl basic and some others so writing it hasnt been to hard but it seems i cant get to grips with compiling it
AnswerRe: includes MFC Pin
Cedric Moonen4-Sep-06 8:29
Cedric Moonen4-Sep-06 8:29 
Questionmemory managment Pin
Waldermort4-Sep-06 7:42
Waldermort4-Sep-06 7:42 
AnswerRe: memory managment Pin
Michael Dunn4-Sep-06 9:20
sitebuilderMichael Dunn4-Sep-06 9:20 
GeneralRe: memory managment Pin
Waldermort4-Sep-06 19:36
Waldermort4-Sep-06 19:36 
QuestionA question about locking thread Pin
Toubou4-Sep-06 7:23
Toubou4-Sep-06 7:23 
AnswerRe: A question about locking thread Pin
Waldermort4-Sep-06 7:49
Waldermort4-Sep-06 7:49 
QuestionRe: A question about locking thread Pin
Toubou4-Sep-06 18:51
Toubou4-Sep-06 18:51 
AnswerRe: A question about locking thread Pin
Waldermort4-Sep-06 23:35
Waldermort4-Sep-06 23:35 
Questionuser.dmp issue Pin
Rob Caldecott4-Sep-06 6:40
Rob Caldecott4-Sep-06 6:40 
Answerwindbg to the rescue! Pin
Rob Caldecott4-Sep-06 6:58
Rob Caldecott4-Sep-06 6:58 
GeneralRe: windbg to the rescue! Pin
Waldermort4-Sep-06 7:03
Waldermort4-Sep-06 7:03 
Questionreplacing a string with a sub-string Pin
jon-804-Sep-06 6:29
professionaljon-804-Sep-06 6:29 
AnswerRe: replacing a string with a sub-string Pin
Graham Shanks4-Sep-06 12:28
Graham Shanks4-Sep-06 12:28 
Questionreduce the size of an array of chars.... Pin
jon-804-Sep-06 6:22
professionaljon-804-Sep-06 6:22 
AnswerRe: reduce the size of an array of chars.... Pin
Waldermort4-Sep-06 6:25
Waldermort4-Sep-06 6:25 
GeneralRe: reduce the size of an array of chars.... Pin
jon-804-Sep-06 6:32
professionaljon-804-Sep-06 6:32 
GeneralRe: reduce the size of an array of chars.... Pin
Waldermort4-Sep-06 6:43
Waldermort4-Sep-06 6:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.