From Linux to Win

Any other programming language that is not covered in the Web Scripting category.

From Linux to Win

Postby asfura on Wed Aug 31, 2005 10:31 pm

hi... i start learning C in linux.. with gcc and some manuals... its works fine.. but when i tried to change te code to win.. i dont found any manual... you know any ??

or a manual for programming in C for windows... obiusly only commands, no objects oriented nor graphic programs

thx
Its only me
asfura
Newbie
Newbie
 
Posts: 15
Joined: Wed Aug 31, 2005 1:58 am

compiler..?

Postby whitehat101 on Thu Sep 01, 2005 4:45 am

http://www.borland.com/downloads/download_cbuilder.html click 'Compiler'

I think that is what you're looking for...

Because C is C on *nix, win, and mac... with a few different headder files, but that shouldn't cause you problems for a while.

If that's not what you're asking... could you rephrase...?
If it hurts, rub it.
whitehat101
Contributer
Contributer
 
Posts: 41
Joined: Fri Jun 24, 2005 5:18 am
Location: Orangevale, CA

GCC on windows

Postby merliin on Mon Sep 12, 2005 3:29 am

You should look into http://www.delorie.com/djgpp/
and http://www.mingw.org/ for GNU development on the win32 platform

Regards,
MERLiiN
merliin
Newbie
Newbie
 
Posts: 13
Joined: Mon Sep 12, 2005 2:26 am
Location: Melbourne, Australia

Postby mm_freak on Mon Sep 12, 2005 5:22 am

I hate supporting Win32 development, but you might be interested in Dev-C++. It's a free, full featured development environment for Win32. The underlying compiler is the MinGW version of gcc (which effectively means: same source code, different target platform). Most command-line-only code should work straightforwardly.
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

Postby Silmy on Mon Sep 12, 2005 3:41 pm

You can try [url=http://www.cygwin.com]Cygwin[/url]. You can transform an X-Windows application in a Native Windows Application with only few clicks.
Linux: A small step for Torvalds, a giant step for mankind!
Silmy
Newbie
Newbie
 
Posts: 4
Joined: Thu Sep 08, 2005 3:43 pm

Postby mm_freak on Mon Sep 12, 2005 7:03 pm

Silmy wrote:You can transform an X-Windows application in a Native Windows Application with only few clicks.


It's not fully native. A Cygwin-program always needs the Cygwin DLL, which acts as a wrapper for Unix/Linux functions. Using MinGW-gcc eliminates this need.
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

I don't know why

Postby merliin on Mon Sep 26, 2005 6:20 am

I didn't think of this one before:
Apache portable runtime. They have allready done all the hard stuff for you.
http://apr.apache.org/

MERLiiN
merliin
Newbie
Newbie
 
Posts: 13
Joined: Mon Sep 12, 2005 2:26 am
Location: Melbourne, Australia

Re: I don't know why

Postby mm_freak on Tue Sep 27, 2005 9:46 am

merliin wrote:I didn't think of this one before:
Apache portable runtime. They have allready done all the hard stuff for you.


They've rather reinvented the wheel. Also Cygwin is a lot more distributed, so you wouldn't want your program to be dependend on the APR-libraries.

Use MinGW-gcc and don't be dependend at all.
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

Postby bart416 on Sat Oct 01, 2005 6:50 am

and if you need certain posix specefic things you can allways use the cygwin libraries.
bart416
Valued Member
Valued Member
 
Posts: 164
Joined: Fri Sep 30, 2005 6:50 pm

Windows programing

Postby psyx0th on Sun Oct 02, 2005 7:12 pm

There are some differences between Windows® and UNIX programing
some big (eg. sockets, GUIs) and some small (Sleep() and sleep()).

If you're starting to program on Windows® i recomend the dev-cpp interface (mingw compiler) and maybe you should read something at www.msdn.com
psyx0th
Newbie
Newbie
 
Posts: 8
Joined: Sun Oct 02, 2005 6:39 pm

Postby ConfusioN on Tue Nov 15, 2005 6:43 pm

Linux have good sides ... But and windows have a good sides :pPp Smile
ConfusioN
Newbie
Newbie
 
Posts: 13
Joined: Tue Nov 15, 2005 5:36 pm

Postby kento on Wed Dec 07, 2005 8:31 am

for my university exam of c++ we made console applications, so i use a simple c++ editor and compiler like devc++ (http://www.bloodshed.net/devcpp.html)

about manual i dont know i have a book Laughing and for some strange applications of c++ i ask help on chat or search references on google
kento
Newbie
Newbie
 
Posts: 12
Joined: Tue Dec 06, 2005 1:50 pm

Re: Windows programing

Postby mm_freak on Fri Dec 16, 2005 7:51 am

psyx0th wrote:There are some differences between Windows® and UNIX programing
some big (eg. sockets, GUIs) and some small (Sleep() and sleep()).


A well written program using sockets runs equally well on both Windows and Linux (we're not talking about Unix, but the statement holds for both). GUIs are another story, but you wouldn't want to use native Windows GUI functions anyway, because they are a pain to work with. Use some toolkit like GTK instead.

The non-capitalized sleep() function should be available in any standard C library, so you can still use sleep() (and in most cases like in MinGW also usleep()) in Windows. However, sleep() is bad anyway. Use something else for short delays, unless you're writing small, pure console applications.
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

Postby tokyo on Sat Dec 17, 2005 12:06 pm

i might have to give devc++ a go again - i tried it about 4 years ago aye and i went back to my emacs/g++ combo. i wasnt that impressed...
tokyo
Contributer
Contributer
 
Posts: 40
Joined: Sat Dec 17, 2005 6:41 am

Postby mm_freak on Sat Dec 24, 2005 8:30 am

tokyo wrote:i might have to give devc++ a go again - i tried it about 4 years ago aye and i went back to my emacs/g++ combo. i wasnt that impressed...


If you're comfortable with Emacs, then stick with it. An Emacs user has no reason to switch to Dev-C++.
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron