Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetWindowsHookEx gives desired result only once? Pin
FarPointer18-Jun-06 17:58
FarPointer18-Jun-06 17:58 
QuestionAbout ADO Conection Pin
onlysaint17-Jun-06 1:48
onlysaint17-Jun-06 1:48 
Questioncalling api function in __asm block Pin
zon_cpp17-Jun-06 1:34
zon_cpp17-Jun-06 1:34 
AnswerRe: calling api function in __asm block Pin
Laxman Auti17-Jun-06 3:40
Laxman Auti17-Jun-06 3:40 
Questionregarding ADO.net Pin
GoodBoy17-Jun-06 0:46
GoodBoy17-Jun-06 0:46 
AnswerRe: regarding ADO.net Pin
Hamid_RT17-Jun-06 1:04
Hamid_RT17-Jun-06 1:04 
AnswerRe: regarding ADO.net Pin
Christian Graus17-Jun-06 1:30
protectorChristian Graus17-Jun-06 1:30 
Questionsimple smallest windows program not running. [modified] Pin
sunnyboy_anshu17-Jun-06 0:38
sunnyboy_anshu17-Jun-06 0:38 
hi all. im new here and to windows programming. actually i started out to learn Visual C++. the book i follow first goes thru windows programming basics in C++. i tried out the first prog in the book and got stuck. im using VC 6.0. the prog is here:

#include<windows.h>

int_stdcall WinMain(HINSTANCE hinstance,
					HINSTANCE hPrevinstance,
					LPSTR lpszCmdline,
					int nCmdShow)
{
	MessageBox(0, "Hello!", "Title", 0);
	return (0);
}


though it is simple, i get error messages that i cannot eliminate. please help.
the errors are:

E:\Program Files\Microsoft Visual Studio\sample1\sample1.cpp(3) : error C2146: syntax error : missing ';' before identifier 'WinMain'
E:\Program Files\Microsoft Visual Studio\sample1\sample1.cpp(3) : error C2501: 'int_stdcall' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio\sample1\sample1.cpp(3) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

well i dunnot know if this is the right place to post my problem, but i did not find another better place for it. if this is not the right place then tell me.
thx 2 all 4 any hlp.

-- modified at 6:41 Saturday 17th June, 2006
AnswerRe: simple smallest windows program not running. [modified] Pin
_AnsHUMAN_ 17-Jun-06 0:45
_AnsHUMAN_ 17-Jun-06 0:45 
GeneralRe: simple smallest windows program not running. Pin
sunnyboy_anshu17-Jun-06 0:57
sunnyboy_anshu17-Jun-06 0:57 
AnswerRe: simple smallest windows program not running. Pin
Hamid_RT17-Jun-06 0:57
Hamid_RT17-Jun-06 0:57 
Questionhow to read the file Pin
happy_ram17-Jun-06 0:32
happy_ram17-Jun-06 0:32 
AnswerRe: how to read the file Pin
_AnsHUMAN_ 17-Jun-06 0:43
_AnsHUMAN_ 17-Jun-06 0:43 
GeneralRe: how to read the file Pin
happy_ram17-Jun-06 1:01
happy_ram17-Jun-06 1:01 
AnswerRe: how to read the file Pin
Hamid_RT17-Jun-06 0:58
Hamid_RT17-Jun-06 0:58 
Questionselect and delete query Pin
shuchigo_jane16-Jun-06 23:21
shuchigo_jane16-Jun-06 23:21 
GeneralRe: select and delete query Pin
Laxman Auti16-Jun-06 23:33
Laxman Auti16-Jun-06 23:33 
GeneralRe: select and delete query Pin
shuchigo_jane16-Jun-06 23:43
shuchigo_jane16-Jun-06 23:43 
AnswerRe: select and delete query Pin
Laxman Auti16-Jun-06 23:52
Laxman Auti16-Jun-06 23:52 
GeneralRe: select and delete query Pin
shuchigo_jane17-Jun-06 2:19
shuchigo_jane17-Jun-06 2:19 
GeneralRe: select and delete query Pin
Laxman Auti17-Jun-06 2:46
Laxman Auti17-Jun-06 2:46 
QuestionEdit Box, Display of Status [modified] Pin
Rahul32116-Jun-06 23:04
Rahul32116-Jun-06 23:04 
AnswerRe: Edit Box, Display of Status Pin
_AnsHUMAN_ 16-Jun-06 23:09
_AnsHUMAN_ 16-Jun-06 23:09 
AnswerRe: Edit Box, Display of Status Pin
Ganesh_T16-Jun-06 23:15
Ganesh_T16-Jun-06 23:15 
AnswerRe: Edit Box, Display of Status Pin
Laxman Auti16-Jun-06 23:28
Laxman Auti16-Jun-06 23:28 

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.