|
How about the following 640 bytes compiled and linked Hello World? Sure, you can get it up to 10KB if you want, but...
<br />
<br />
<br />
<br />
<br />
#pragma optimize("gsa-y", on)<br />
#pragma comment(lib, "kernel32")<br />
#pragma comment(linker, "/merge:.rdata=.text")<br />
#pragma comment(linker, "/entry:mymain")<br />
#pragma comment(linker, "/subsystem:console")<br />
#pragma comment(linker, "/align:16")<br />
#pragma comment(linker, "/filealign:16")<br />
<br />
#define WIN32_LEAN_AND_MEAN<br />
#include <windows.h><br />
<br />
#pragma data_seg(".text")<br />
<br />
void mymain()<br />
{<br />
DWORD dwDum;<br />
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), "Hello world!\n", 13, &dwDum, 0);<br />
}<br />
|
|
|
|
|
Hi..
One important doubt..
(ie) If we download 2 or more DLL's from the website,if it is new,it should be installed at next reboot time.
If any old version is there it should upgrade.
After that it wont continue for each and every reboot.
how to do that in VC++?.Which concept or tool to be used?.
Help me..Very urgent...
Arivu
Thanks for viewing this.Please help me.
|
|
|
|
|
Try MoveFileEx with dwFlags MOVEFILE_DELAY_UNTIL_REBOOT after you have checked if the DLL is newer, by it's date or perferably by it's version number
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
Sir, how can I record voice in VC++ ?
C.R.Naik
|
|
|
|
|
hey there is a sample in charles petzold's book
about recording wavefrom audio..
its great book get it...
but its in SDK...
|
|
|
|
|
Would you please give me full detail about charles petzold's book.
C.R.Naik
|
|
|
|
|
well it is very famous book u can get an Indian edition
too about 700Rs
the book deals with windows programming in C
the funda book for Windows Application Devlopers
|
|
|
|
|
of which publicatioin ???
C.R.Naik
|
|
|
|
|
I'm having trouble activating panes in a splitter window, i have 2 panes split vertically. I want to have the second pane always in focus, so clicking in the top just activates the bottom. I've tried using SetActivePane(1,0) all over the place to no avail (in OnActivateView of the container view and in OnActivateView of the top view) I can't for the life of me figure how to do this, thanks.
|
|
|
|
|
How to activate both parent and child windows at a time?which class can I use for developing child windows?(In PageMaker Both Parent and child windows are activated)
|
|
|
|
|
hi,
how do you change the tabbing order of the different controls in a dialog? i had my dialog created, but i had to make some changes and now the tabbing order is all wrong.. is there a way to reset the tabbing order beside delete every single control and recreate the dialog?
thx in advance..
|
|
|
|
|
Make sure you have the dialog window pulled up as the formost window > Select 'Layout' (from the top toolbar) > Tab Order > Double click the controls in the tab order you want them.
|
|
|
|
|
I've only ever used single-click.
Joel Lucsy
|
|
|
|
|
Want half of the hair you just split?
|
|
|
|
|
Help!
I am using VC++ 6 and when I try to build any project that uses the windows header two errors comes up during linking. I made a simple project exampel to show you my delemma.
Project Code:
#include <windows.h><br />
<br />
int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) {<br />
return 0;<br />
}
Build Status:
--------------------Configuration: project - Win32 Debug--------------------<br />
Compiling...<br />
project.cpp<br />
Linking...<br />
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main<br />
Debug/project.exe : fatal error LNK1120: 1 unresolved externals<br />
Error executing link.exe.<br />
<br />
project.exe - 2 error(s), 0 warning(s)
What am I missing? Is it somthing I need to do in the project settings or what? Because EVERY time I try to build a project that includes the windows header these errors comes up.
Aidman » over and out
|
|
|
|
|
Your project is set to build a console-mode app (that is, command line) and therefore requires a main() function as the starting point for the app. To build a GUI-mode app, change the linker switch /subsystem:console to /subsystem:windows
--Mike--
The Internet is a place where absolutely nothing happens.
-- Strong Bad
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hey thanks that worked! Thanks a lot
Aidman » over and out
|
|
|
|
|
I was wondering if someone could message me on AIM and help me determain exactly what a few of these assembler codes do and stuff like that. I have a few codes written in inline assembler and I want to make sure they dont do anything bad could someone message me on aim : LiquidIceKnight
- LiquidKnight
|
|
|
|
|
I have some classes that I have exported but unfortunately I can't access the public members of the parent class. Example
(Assume that dllexport/imports are set up correctly and all include files are included)
class __declspec( dllexport/import ) A
{
public:
A();
MethodA();
};
class __declspec( dllexport/import ) B : public A
{
public:
B();
MethodB();
};
The above is compiled into a mfc dll.
Then from another class in my application:
class C
{
B b;
public:
C();
MethodC()
{
b.MethodB();
b.MethodA();
}
};
What can I do about this? Surely one can get access to the base class methods.
Cheers,
Clint
|
|
|
|
|
clintsinger wrote:
Surely one can get access to the base class methods.
Most certainly. There is something you are not telling us about your code.
|
|
|
|
|
Hi!
I am working on an interesting project using OpenGL and MFC.
This project as different part (independant applications) So I would like to make a launcher (using MFC) that can direct me on the good App.
The way I see it, I could have an App with many button. If I click on the first button, the first app is launched. If I click on the second button, the second app is launched. etc...
Anybody knows how to do that?
Thanks!!
Everything's beautiful if you look at it long enough...
|
|
|
|
|
Go to http://www.jrsoftware.org[^] and download "Inno Setup 3.0.6"
I use it. It is a free and a great tool.
-Mahesh Shimpi
Ideas multiply by sharing!!
|
|
|
|
|
CreateProcess, ShellExecute, system - just to name a few.
|
|
|
|
|
Hello,
I've problem to understanding two parameters of
CryptGenKey
I've read MSDN but it's still complex for me !
Lookat second and third parameters.
second parameter, i've to choose an algorithm for
encryption !
am i right ?
But what's best choose for me ?
the speed is important for me !
and thrid, i didn't understand anything about it !
If possible explain more about both parameters
Regards,
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi,
I create a user manual in a Word Document.
I would like to convert it in a .chm or .hlp files for use it with the F1 key.
Please, it is possible to do that if yes anyone can help me ?
Best regards
youssef
|
|
|
|