Click here to Skip to main content
15,906,106 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 22:47
Dhiraj kumar Saini27-Aug-08 22:47 
QuestionRe: CListCtrl LVITEM lvItem problem Pin
David Crow28-Aug-08 3:52
David Crow28-Aug-08 3:52 
Questionshortkeys inside propertypage Pin
hari_honey27-Aug-08 19:27
hari_honey27-Aug-08 19:27 
QuestionWhat is the difference between GetMessage ,PeekMessage and PostMessage? Pin
nisha0000027-Aug-08 18:53
nisha0000027-Aug-08 18:53 
AnswerRe: What is the difference between GetMessage ,PeekMessage and PostMessage? Pin
Manish K. Agarwal27-Aug-08 19:16
Manish K. Agarwal27-Aug-08 19:16 
AnswerYou forgot one Pin
Cedric Moonen27-Aug-08 20:33
Cedric Moonen27-Aug-08 20:33 
QuestionRe: What is the difference between GetMessage ,PeekMessage and PostMessage? Pin
CPallini27-Aug-08 22:58
mveCPallini27-Aug-08 22:58 
QuestionHelp with launching modal-less dialog error Pin
limesp27-Aug-08 18:21
limesp27-Aug-08 18:21 
I am trying to launch a dialog in modal-less mode but am getting error:
Bool CDialog::Create cannot convert from int to LPCTSTR but the tutorials says to do it this way. Any help appreciated. Here my prog:

THIS IS A MFC DLL

MAIN APP:-

// Ai.cpp : Defines the initialization routines for the DLL.
#include "stdafx.h"
#include "Ai.h"
#include "ProgressDialog.h"

BOOL CAiApp::InitInstance() {
CProgressDialog* MLDlg= new CProgressDialog;
MLDlg->Create(IDD_TRACEINFO, this);
MLDlg->ShowWindow(SW_SHOW);
return true;
}

---------------------------------------------------------------------
ProgressDialog header:-

#pragma once

// CProgressDialog dialog

class CProgressDialog : public CDialog {
DECLARE_DYNAMIC(CProgressDialog)

public:
CProgressDialog(CWnd* pParent = NULL); // standard constructor
virtual ~CProgressDialog();

// Dialog Data
enum { IDD = IDD_TRACEINFO };

protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support

DECLARE_MESSAGE_MAP()

public:
afx_msg void OnBnClickedOk();
}; // END CLASS

---------------------------------------------------------------------

// ProgressDialog.cpp : implementation file
//

#include "stdafx.h"
#include "Ai.h"
#include "ProgressDialog.h"

// CProgress dialog
IMPLEMENT_DYNAMIC(CProgressDialog, CDialog)

CProgressDialog::CProgressDialog(CWnd* pParent /*=NULL*/)
: CDialog(CProgressDialog::IDD, pParent) {
}

CProgressDialog::~CProgressDialog(){
}

void CProgressDialog::DoDataExchange(CDataExchange* pDX){
CDialog::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CProgressDialog, CDialog)
ON_BN_CLICKED(IDOK, &CProgressDialog::OnBnClickedOk)
END_MESSAGE_MAP()

// CProgressDialog message handlers

void CProgressDialog::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
OnOK();
}

---------------------------------------------------------------------
RESOURCE FILE :-

//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Ai.rc
//
#define IDP_SOCKETS_INIT_FAILED 101
#define IDD_CONFIGURE_DIALOG 1000
#define IDC_TXMESSAGE 1000
#define IDD_TRACEINFO 1001

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 1002
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 1000
#endif
#endif


thanks
AnswerRe: Help with launching modal-less dialog error Pin
Nibu babu thomas27-Aug-08 18:34
Nibu babu thomas27-Aug-08 18:34 
GeneralRe: Help with launching modal-less dialog error Pin
Naveen27-Aug-08 18:45
Naveen27-Aug-08 18:45 
GeneralRe: Help with launching modal-less dialog error Pin
Nibu babu thomas27-Aug-08 18:51
Nibu babu thomas27-Aug-08 18:51 
AnswerRe: Help with launching modal-less dialog error Pin
limesp27-Aug-08 19:57
limesp27-Aug-08 19:57 
QuestionInsert into map Pin
George_George27-Aug-08 17:58
George_George27-Aug-08 17:58 
AnswerRe: Insert into map Pin
Nibu babu thomas27-Aug-08 18:32
Nibu babu thomas27-Aug-08 18:32 
GeneralRe: Insert into map Pin
George_George27-Aug-08 19:35
George_George27-Aug-08 19:35 
GeneralRe: Insert into map Pin
Nibu babu thomas27-Aug-08 19:38
Nibu babu thomas27-Aug-08 19:38 
GeneralRe: Insert into map Pin
George_George27-Aug-08 19:42
George_George27-Aug-08 19:42 
GeneralRe: Insert into map Pin
Nibu babu thomas27-Aug-08 19:49
Nibu babu thomas27-Aug-08 19:49 
GeneralRe: Insert into map Pin
George_George27-Aug-08 19:57
George_George27-Aug-08 19:57 
GeneralRe: Insert into map Pin
Nibu babu thomas27-Aug-08 20:21
Nibu babu thomas27-Aug-08 20:21 
GeneralRe: Insert into map Pin
George_George27-Aug-08 20:48
George_George27-Aug-08 20:48 
AnswerRe: Insert into map Pin
Jijo.Raj27-Aug-08 18:58
Jijo.Raj27-Aug-08 18:58 
GeneralRe: Insert into map Pin
George_George27-Aug-08 19:39
George_George27-Aug-08 19:39 
GeneralRe: Insert into map Pin
Jijo.Raj27-Aug-08 20:05
Jijo.Raj27-Aug-08 20:05 
GeneralRe: Insert into map Pin
George_George27-Aug-08 20:49
George_George27-Aug-08 20:49 

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.