Page 1 of 3

What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 8:31 am
by Kwai chang caine
Hello at all :D

I try, to begin, ...to just see, .....a little bit,.... of a piece,.... of a line ....,of C :mrgreen:
I have open my first windows....and it's really too much nice :shock: :shock:

But the difficulty of the C, begin already by choose the better for me, in the jungle of C environnements :shock:

I love the C since twenty years, and i never dare try it :oops:
I'm already so null in PB and VB...so with the C :oops: :oops:

But a love is a love...and the love don't waiting too much :lol:
Like i love PB, i want to search the more same IDE than PB IDE.

And what is my surprise, when yesterday i open the PELLES C IDE :shock:
It's nearly the same than PB IDE, in a moment i have forgotten i'm not in my lover native PB IDE :lol:
I have just replacing the blue background, by the yellow...and KCC make C :lol: :lol: :lol: (Very big humor...but very very big :oops: )

I want just ask to you, what do you think of PELLES C, is it a good choice for a beginner like me ???
I ask to you instead in a forum C because, i want use it and PB together in the same project, it's for this reason it's good to know your precious advice, you who know PB very well 8)

Thanks

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 9:14 am
by Blood
Pelles C is a fantastic compiler and yes, it should be just great for beginners. It is a full C99 compiler, which means it is the very latest standard of C.

To get the most from C and to learn about its features read this book: http://en.wikipedia.org/wiki/The_C_Prog ... %28book%29

This is one of the most famous programming books there are because of its ease of reading and its informational content.

Have Fun! :D

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 9:36 am
by Kwai chang caine
Thanks BLOOD...that's a good news 8)

Because i don't know why ???
But when i have open the PELLES C IDE yesterday....
I had a little bit the same feeling that when i have open the PB IDE there is five years ago :shock:

The programing, and his tools, it's also much a story of feeling for me..... :D
A little bit like good shoes...if i have sore at my feets, i can't walk anymore :oops:

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 1:11 pm
by Mistrel
A 'C' compiler? Bah! Come over to the dark side where we use C++ compilers. :twisted:

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 2:59 pm
by Kwai chang caine
OuuuuuuuOuuuuuhhh !!! You affraid me :oops:
I have not again the light of the knowledge for can go to the dark with you :lol:
But I can perhaps, still keep my feet in the light of PB, and move my head in the black C :mrgreen:

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 5:02 pm
by LuCiFeR[SD]
C++ is like nailing extra legs on a dog and calling it an 'Octopus' :)

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 5:32 pm
by srod
LuCiFeR[SD] wrote:C++ is like nailing extra legs on a dog and calling it an 'Octopus' :)
:lol:

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 5:44 pm
by Kwai chang caine
LuCiFeR[SD] wrote:C++ is like nailing extra legs on a dog and calling it an 'Octopus' :)
Apparently you don't like C++ ???

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 6:12 pm
by srod
Not even the bloke who invented C++ likes it! :)

Actually, C++ code is quite easy to read now, perhaps because I've looked through so many chunks of code.

I still can't code in it myself mind! :)

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 6:21 pm
by Vitor_Boss®
srod wrote:I still can't code in it myself mind! :)
I think this is common to all Basic programmers.

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 6:25 pm
by srod
Vitor_Boss® wrote:
srod wrote:I still can't code in it myself mind! :)
I think this is common to all Basic programmers.
But not necessarily to advanced basic programmers! :wink:

I've never had any need to code in C++ and it's not a syntax I think I'd enjoy working with. Give me a pitcher of ale any day! :)

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 6:40 pm
by Kwai chang caine
Me..for the time i know any words in C, and the same zero number for C++.
So i can say, that coding in C or C++ is for me the same thing :lol: :lol:

In fact...when i regard a code....i don't know if it is in C or in C++
I don't can do the difference :oops:

I have Copy/Paste this great code finding in developpez.com (French forum)
That works, i believe it's C code ???
The C++ Code is it different of this, for the same function opening a windows ???

Code: Select all

#include <windows.h>

LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch(message)
    {
    case WM_DESTROY:
        PostQuitMessage(0);
        break;

    default:
        return DefWindowProc(hwnd, message, wParam, lParam);
    }

    return 0L;
}
 

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
    WNDCLASS wc;
    HWND hWnd;
    MSG msg;
    
    wc.cbClsExtra     = 0;
    wc.cbWndExtra     = 0;
    wc.hbrBackground  = (HBRUSH)(COLOR_WINDOW + 1);
    wc.hCursor        = LoadCursor(NULL, IDC_ARROW);
    wc.hIcon          = LoadIcon(NULL, IDI_APPLICATION);
    wc.hInstance      = hInstance;
    wc.lpfnWndProc    = WndProc;
    wc.lpszClassName  = "Classe 1";
    wc.lpszMenuName   = NULL;
    wc.style          = CS_HREDRAW | CS_VREDRAW;

    RegisterClass(&wc);

    hWnd = CreateWindow("Classe 1","Notre première fenêtre", WS_OVERLAPPEDWINDOW,100, 100, 600, 300,NULL,NULL,hInstance, NULL);

    ShowWindow(hWnd, nCmdShow);

    while (GetMessage(&msg, NULL, 0, 0))
    {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }

    return (int)msg.wParam;
}

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 8:55 pm
by idle
no probably not

Pelles c is quite user friendly and C++ is fine if you like your spaghetti minced.

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 9:01 pm
by LuCiFeR[SD]
Kwaï chang caïne wrote:
LuCiFeR[SD] wrote:C++ is like nailing extra legs on a dog and calling it an 'Octopus' :)
Apparently you don't like C++ ???
no, not true :P... To be honest I am just so bad at programming these days I don't think I could read/write basic anymore :P

[Edit]Removed some dull and boring stuff(tm)[/Edit]

Re: What do you think of PELLES C ???

Posted: Mon Oct 11, 2010 11:21 pm
by Blood
Kwaï chang caïne wrote:
LuCiFeR[SD] wrote:C++ is like nailing extra legs on a dog and calling it an 'Octopus' :)
Apparently you don't like C++ ???
It's not his quote. Please quote sources when you use a quote or people might think you said it! Especially famous ones.
C++: an octopus made by nailing extra legs onto a dog.
--Steve Taylor