Click here to Skip to main content
15,893,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Popup Menu - Check Menu Item Pin
JBAK_CP3-Jun-08 6:53
JBAK_CP3-Jun-08 6:53 
GeneralRe: Popup Menu - Check Menu Item Pin
Hamid_RT4-Jun-08 20:30
Hamid_RT4-Jun-08 20:30 
QuestionGet Position of Start Menu Button Pin
fetti3-Jun-08 4:29
fetti3-Jun-08 4:29 
AnswerRe: Get Position of Start Menu Button Pin
sudhir_Kumar3-Jun-08 4:49
sudhir_Kumar3-Jun-08 4:49 
GeneralRe: Get Position of Start Menu Button Pin
fetti3-Jun-08 5:03
fetti3-Jun-08 5:03 
GeneralRe: Get Position of Start Menu Button Pin
sudhir_Kumar3-Jun-08 5:08
sudhir_Kumar3-Jun-08 5:08 
AnswerRe: Get Position of Start Menu Button Pin
Hamid_RT3-Jun-08 6:34
Hamid_RT3-Jun-08 6:34 
QuestionMy first Win32 program... Pin
xelios3-Jun-08 3:50
xelios3-Jun-08 3:50 
Following is the code of my program...

#include "stdafx.h"
#include "windows.h"

int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
    MessageBox(NULL, "This is my first windows program\n Author: Mohsin", "Virtual University", MB_OK|MB_ICONINFORMATION);
}


While building it is throwing following error..
Error	1	error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [49]' to 'LPCWSTR'	e:\visual programming\practices\test\test\p_66.cpp	6	test<br />


Mohsin Ali

AnswerRe: My first Win32 program... Pin
Cedric Moonen3-Jun-08 3:54
Cedric Moonen3-Jun-08 3:54 
AnswerRe: My first Win32 program... Pin
sudhir_Kumar3-Jun-08 3:55
sudhir_Kumar3-Jun-08 3:55 
GeneralRe: My first Win32 program... Pin
xelios3-Jun-08 3:56
xelios3-Jun-08 3:56 
GeneralRe: My first Win32 program... Pin
Cedric Moonen3-Jun-08 4:03
Cedric Moonen3-Jun-08 4:03 
GeneralRe: My first Win32 program... Pin
zafersavas3-Jun-08 5:24
zafersavas3-Jun-08 5:24 
GeneralRe: My first Win32 program... Pin
David Crow3-Jun-08 6:51
David Crow3-Jun-08 6:51 
AnswerRe: My first Win32 program... Pin
sudhir_Kumar3-Jun-08 3:56
sudhir_Kumar3-Jun-08 3:56 
AnswerRe: My first Win32 program... Pin
Hamid_RT3-Jun-08 4:01
Hamid_RT3-Jun-08 4:01 
AnswerRe: My first Win32 program... Pin
sudhir_Kumar3-Jun-08 4:11
sudhir_Kumar3-Jun-08 4:11 
AnswerRe: My first Win32 program... Pin
toxcct3-Jun-08 5:02
toxcct3-Jun-08 5:02 
QuestionDifference b/w Unions and Structures... Pin
xelios3-Jun-08 3:12
xelios3-Jun-08 3:12 
AnswerRe: Difference b/w Unions and Structures... Pin
CPallini3-Jun-08 3:20
mveCPallini3-Jun-08 3:20 
AnswerRe: Difference b/w Unions and Structures... Pin
Alan Balkany3-Jun-08 3:20
Alan Balkany3-Jun-08 3:20 
GeneralRe: Difference b/w Unions and Structures... Pin
DQNOK3-Jun-08 9:28
professionalDQNOK3-Jun-08 9:28 
AnswerRe: Difference b/w Unions and Structures... Pin
toxcct3-Jun-08 3:22
toxcct3-Jun-08 3:22 
AnswerRe: Difference b/w Unions and Structures... Pin
Hamid_RT3-Jun-08 3:32
Hamid_RT3-Jun-08 3:32 
General[Message Deleted] Pin
toxcct3-Jun-08 3:33
toxcct3-Jun-08 3:33 

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.