Click here to Skip to main content
15,116,654 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 23:47
MemberDhiraj kumar Saini27-Aug-08 23:47 
QuestionRe: CListCtrl LVITEM lvItem problem Pin
David Crow28-Aug-08 4:52
MemberDavid Crow28-Aug-08 4:52 
Questionshortkeys inside propertypage Pin
hari_honey27-Aug-08 20:27
Memberhari_honey27-Aug-08 20:27 
QuestionWhat is the difference between GetMessage ,PeekMessage and PostMessage? Pin
nisha0000027-Aug-08 19:53
Membernisha0000027-Aug-08 19:53 
AnswerRe: What is the difference between GetMessage ,PeekMessage and PostMessage? Pin
Manish K. Agarwal27-Aug-08 20:16
MemberManish K. Agarwal27-Aug-08 20:16 
AnswerYou forgot one Pin
Cedric Moonen27-Aug-08 21:33
MemberCedric Moonen27-Aug-08 21:33 
QuestionRe: What is the difference between GetMessage ,PeekMessage and PostMessage? Pin
CPallini27-Aug-08 23:58
mveCPallini27-Aug-08 23:58 
QuestionHelp with launching modal-less dialog error Pin
limesp27-Aug-08 19:21
Memberlimesp27-Aug-08 19: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 19:34
MemberNibu babu thomas27-Aug-08 19:34 
GeneralRe: Help with launching modal-less dialog error Pin
Naveen27-Aug-08 19:45
MemberNaveen27-Aug-08 19:45 
GeneralRe: Help with launching modal-less dialog error Pin
Nibu babu thomas27-Aug-08 19:51
MemberNibu babu thomas27-Aug-08 19:51 
AnswerRe: Help with launching modal-less dialog error Pin
limesp27-Aug-08 20:57
Memberlimesp27-Aug-08 20:57 
QuestionInsert into map Pin
George_George27-Aug-08 18:58
MemberGeorge_George27-Aug-08 18:58 
AnswerRe: Insert into map Pin
Nibu babu thomas27-Aug-08 19:32
MemberNibu babu thomas27-Aug-08 19:32 
GeneralRe: Insert into map Pin
George_George27-Aug-08 20:35
MemberGeorge_George27-Aug-08 20:35 
GeneralRe: Insert into map Pin
Nibu babu thomas27-Aug-08 20:38
MemberNibu babu thomas27-Aug-08 20:38 
GeneralRe: Insert into map Pin
George_George27-Aug-08 20:42
MemberGeorge_George27-Aug-08 20:42 
GeneralRe: Insert into map Pin
Nibu babu thomas27-Aug-08 20:49
MemberNibu babu thomas27-Aug-08 20:49 
GeneralRe: Insert into map Pin
George_George27-Aug-08 20:57
MemberGeorge_George27-Aug-08 20:57 
GeneralRe: Insert into map Pin
Nibu babu thomas27-Aug-08 21:21
MemberNibu babu thomas27-Aug-08 21:21 
GeneralRe: Insert into map Pin
George_George27-Aug-08 21:48
MemberGeorge_George27-Aug-08 21:48 
AnswerRe: Insert into map Pin
Jijo.Raj27-Aug-08 19:58
MemberJijo.Raj27-Aug-08 19:58 
GeneralRe: Insert into map Pin
George_George27-Aug-08 20:39
MemberGeorge_George27-Aug-08 20:39 
GeneralRe: Insert into map Pin
Jijo.Raj27-Aug-08 21:05
MemberJijo.Raj27-Aug-08 21:05 
GeneralRe: Insert into map Pin
George_George27-Aug-08 21:49
MemberGeorge_George27-Aug-08 21: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.