View previous topic :: View next topic |
Author |
Message |
pyr0magex Grandmaster Cheater Supreme Reputation: 0
Joined: 26 Jun 2006 Posts: 1192 Location: my room
|
Posted: Sat Apr 07, 2007 9:16 am Post subject: |
|
|
I meant like... directly to the desktop. But what I really needed to hear was that the command prompt was the standard output, cause I didn't know.
but even so, you say it's the "standard" output. Are there any other output options aside from a cmd? (the website shows how to do form output, but is it possible to make a formless program that doesn't open the cmd?)
also, what exactly makes the programs at that site open in a form instead of a cmd?
Thx for answering my questions, I just need to clear a few things up before I get started learning =p
_________________
|
|
Back to top |
|
|
appalsap Moderator Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Apr 07, 2007 9:24 am Post subject: |
|
|
to the desktop? that'd be very messy ( easy way is TextOut) or very tricky. You have to create the form to write to it, and creating windows is very unpleasent and takes a lot of code for small programs that just display some output.
you have to build with the WINDOWS (as opposed to console) subsystem for a windows program and instead of int main()
Code: |
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
|
_________________
|
|
Back to top |
|
|
DeltaFlyer Grandmaster Cheater Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Sat Apr 07, 2007 10:51 am Post subject: |
|
|
pyr0magex wrote: | I meant like... directly to the desktop. But what I really needed to hear was that the command prompt was the standard output, cause I didn't know.
but even so, you say it's the "standard" output. Are there any other output options aside from a cmd? (the website shows how to do form output, but is it possible to make a formless program that doesn't open the cmd?)
also, what exactly makes the programs at that site open in a form instead of a cmd?
Thx for answering my questions, I just need to clear a few things up before I get started learning =p |
There are other output options like error output and file output.
The example opens in a window because of these in its WinMain:
The registration of the window and its properties.
The creation of the window with CreateWindow.
The next few lines handles messages for the window like telling it to paint itself.
Read the full explanation on the site because it explains quite a lot.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
Back to top |
|
|
Flyte Peanuts!!!! Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
|
Back to top |
|
|
UnLmtD Grandmaster Cheater Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Sun Apr 08, 2007 3:14 pm Post subject: |
|
|
got to <3 noz blog Long time with out updates tho
|
|
Back to top |
|
|
argarg Cheater Reputation: 0
Joined: 19 Jul 2005 Posts: 45
|
|
Back to top |
|
|
--Pillboi-- Grandmaster Cheater Supreme Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Sat Apr 14, 2007 12:48 pm Post subject: |
|
|
Flyte wrote: | Start -> Control Panel -> System -> Advanced Tab -> Environment Variables |
Sorry I havn't posted for so long. Thanks I'm gonna try it now and also thanks appalasp.
Edit: Is this the path? Code: | C:\WINDOWS\system32\wbem
|
--Pillboi--
_________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
Back to top |
|
|
muffinman177 Master Cheater Reputation: 0
Joined: 09 Dec 2006 Posts: 377 Location: Drury Lane
|
|
Back to top |
|
|
compactwater I post too much Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Tue Apr 17, 2007 10:04 pm Post subject: |
|
|
I like Bloodshed.net's better, just a personal favorite.
|
|
Back to top |
|
|
supea Master Cheater Reputation: 0
Joined: 29 Aug 2006 Posts: 323 Location: Finland
|
|
Back to top |
|
|
|