Click here to Skip to main content
16,004,653 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: english word for base-4 number Pin
pagen_hd7-Jul-07 20:52
pagen_hd7-Jul-07 20:52 
QuestionCant get SACL Pin
Akin Ocal7-Jul-07 4:27
Akin Ocal7-Jul-07 4:27 
QuestionCompiler, Linker and Assembler in Visual C++ 2005 Pin
SolidusSnake7-Jul-07 3:28
SolidusSnake7-Jul-07 3:28 
AnswerRe: Compiler, Linker and Assembler in Visual C++ 2005 Pin
Mike Dimmick7-Jul-07 4:04
Mike Dimmick7-Jul-07 4:04 
GeneralRe: Compiler, Linker and Assembler in Visual C++ 2005 Pin
SolidusSnake9-Jul-07 3:14
SolidusSnake9-Jul-07 3:14 
AnswerRe: Compiler, Linker and Assembler in Visual C++ 2005 Pin
Matthew Faithfull7-Jul-07 4:14
Matthew Faithfull7-Jul-07 4:14 
GeneralRe: Compiler, Linker and Assembler in Visual C++ 2005 Pin
SolidusSnake9-Jul-07 3:05
SolidusSnake9-Jul-07 3:05 
AnswerRe: Compiler, Linker and Assembler in Visual C++ 2005 Pin
Randor 7-Jul-07 5:03
professional Randor 7-Jul-07 5:03 
heh,
Your post caused me to start experimenting, and heres the best I could come up with:

2 kilobytes with VC8 Big Grin | :-D

Make sure [Code Generation] -> [Buffer Security Check] is set to NO. (I could not find a pragma to accomplish this)

<br />
#include windows.h<br />
<br />
#define WIN32_LEAN_AND_MEAN<br />
<br />
#pragma comment(linker, "/NODEFAULTLIB")<br />
#pragma comment(linker, "/SUBSYSTEM:console")<br />
#pragma comment(linker, "/MERGE:.rdata=.data")<br />
#pragma comment(linker, "/MERGE:.text=.data")<br />
#pragma comment(linker, "/STACK:65536,65536")<br />
#pragma comment(linker, "/OPT:NOWIN98") <br />
<br />
#pragma comment (linker, "/ENTRY:main")<br />
int __cdecl main()<br />
{<br />
	char msg[] = "Hello World";<br />
	HANDLE stdout = GetStdHandle(STD_OUTPUT_HANDLE);<br />
	DWORD dwCount;<br />
	WriteFile(stdout, msg, lstrlen(msg), &dwCount, NULL);<br />
   return 0;<br />
}<br />


The file would be slightly smaller if we changed the default alignment.

Best Wishes,
-Randor (David Delaune)
GeneralRe: Compiler, Linker and Assembler in Visual C++ 2005 Pin
SolidusSnake9-Jul-07 3:08
SolidusSnake9-Jul-07 3:08 
QuestionHow system updates input languages for processes created before input language changes ? Pin
vilius_m7-Jul-07 2:53
vilius_m7-Jul-07 2:53 
AnswerRe: How system updates input languages for processes created before input language changes ? Pin
Mike Dimmick7-Jul-07 4:09
Mike Dimmick7-Jul-07 4:09 
GeneralRe: How system updates input languages for processes created before input language changes ? Pin
vilius_m7-Jul-07 7:16
vilius_m7-Jul-07 7:16 
QuestionFormView scrolling problem Pin
Md. Ali Naser Khan7-Jul-07 2:48
Md. Ali Naser Khan7-Jul-07 2:48 
AnswerRe: FormView scrolling problem Pin
Mark Salsbery7-Jul-07 6:43
Mark Salsbery7-Jul-07 6:43 
Questionenable ctr+c and ctr+v shortkeys in edit box Pin
samira forooghi7-Jul-07 1:33
samira forooghi7-Jul-07 1:33 
AnswerRe: enable ctr+c and ctr+v shortkeys in edit box Pin
Hans Dietrich7-Jul-07 2:50
mentorHans Dietrich7-Jul-07 2:50 
GeneralRe: enable ctr+c and ctr+v shortkeys in edit box Pin
samira forooghi7-Jul-07 23:24
samira forooghi7-Jul-07 23:24 
Questionsingle selection in list control Pin
samira forooghi7-Jul-07 1:14
samira forooghi7-Jul-07 1:14 
AnswerRe: single selection in list control Pin
Hans Dietrich7-Jul-07 1:27
mentorHans Dietrich7-Jul-07 1:27 
GeneralRe: single selection in list control Pin
samira forooghi7-Jul-07 1:30
samira forooghi7-Jul-07 1:30 
QuestionPIDL and IShellFolder Pin
Abhijeet Pathak6-Jul-07 22:54
Abhijeet Pathak6-Jul-07 22:54 
AnswerRe: PIDL and IShellFolder Pin
Hans Dietrich7-Jul-07 1:33
mentorHans Dietrich7-Jul-07 1:33 
QuestionDialog without resources Pin
prithaa6-Jul-07 20:43
prithaa6-Jul-07 20:43 
JokeRe: Dialog without resources Pin
Jhony george6-Jul-07 20:49
Jhony george6-Jul-07 20:49 
AnswerRe: Dialog without resources Pin
Perspx6-Jul-07 20:57
Perspx6-Jul-07 20:57 

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.