The time now is 10/13/08 - 05:16
Log in: Username: Password:
Search forums for:
  

Coder nerds

Post new topic   Reply to topic
Author Message
gotissues68
RealPoor Sensei
RealPoor Sensei


Joined: 21 Aug 2003
Posts: 1866



PostPosted: 04/02/05 - 05:35    Post subject: Coder nerds Reply with quote

Anyone write with gtk/php ? I've picked it up recently and its crazy cool. I haven't delved into OOP very much until now and it just way neat to be rapid development of cross platform GUI apps using a language I already know really well Smile http://gtk.php.net I suggest you check it out Wink
Back to top
Callaren
RealPoor Sensei
RealPoor Sensei


Joined: 03 Dec 2003
Posts: 1598
Location: South Jersey



PostPosted: 04/02/05 - 12:52    Post subject: Reply with quote

I don't do web pages, sorry.
Back to top
Xieroth
RealPoor Sensei
RealPoor Sensei


Joined: 17 Oct 2002
Posts: 1902



PostPosted: 04/02/05 - 13:39    Post subject: Reply with quote

Yeah lets write an application in a scripting language! Woohhooo! Rolling Eyes
Back to top
Occulis
RealPoor Jedi
RealPoor Jedi


Joined: 11 Oct 2002
Posts: 13293
Location: Moral Relativity Central



PostPosted: 04/02/05 - 14:37    Post subject: Reply with quote

It's good for quick mockups, I bet. I'm kind of tired of GUI apps and have only written a couple.
Back to top
Callaren
RealPoor Sensei
RealPoor Sensei


Joined: 03 Dec 2003
Posts: 1598
Location: South Jersey



PostPosted: 04/02/05 - 14:48    Post subject: Reply with quote

Occulis wrote:
It's good for quick mockups, I bet. I'm kind of tired of GUI apps and have only written a couple.

There's only so much you can do with console apps. For me it's easier to use with a GUI too, partially because I can't type really fast.
Back to top
gotissues68
RealPoor Sensei
RealPoor Sensei


Joined: 21 Aug 2003
Posts: 1866



PostPosted: 04/02/05 - 14:57    Post subject: Reply with quote

Xieroth wrote:
Yeah lets write an application in a scripting language! Woohhooo! Rolling Eyes


quick mockups Sad
Back to top
Xieroth
RealPoor Sensei
RealPoor Sensei


Joined: 17 Oct 2002
Posts: 1902



PostPosted: 04/02/05 - 21:14    Post subject: Reply with quote

gotissues68 wrote:
Xieroth wrote:
Yeah lets write an application in a scripting language! Woohhooo! Rolling Eyes


quick mockups Sad


just create the gui using a builder if that is all you want to do. Hell if you are a windows person just use visio.
Back to top
gotissues68
RealPoor Sensei
RealPoor Sensei


Joined: 21 Aug 2003
Posts: 1866



PostPosted: 04/02/05 - 21:30    Post subject: Reply with quote

Xieroth wrote:
gotissues68 wrote:
Xieroth wrote:
Yeah lets write an application in a scripting language! Woohhooo! Rolling Eyes


quick mockups Sad


just create the gui using a builder if that is all you want to do. Hell if you are a windows person just use visio.


Noooooooo I don't use windows except at work Wink And I'm just learning non-scripting languages so this seems to be a quick and easy intro instead of trying to give right into C++ and Glade or whatever. Pardon my newb'ness Sad
Back to top
Callaren
RealPoor Sensei
RealPoor Sensei


Joined: 03 Dec 2003
Posts: 1598
Location: South Jersey



PostPosted: 04/02/05 - 22:38    Post subject: Reply with quote

gotissues68 wrote:
Xieroth wrote:
gotissues68 wrote:
Xieroth wrote:
Yeah lets write an application in a scripting language! Woohhooo! Rolling Eyes


quick mockups Sad


just create the gui using a builder if that is all you want to do. Hell if you are a windows person just use visio.


Noooooooo I don't use windows except at work Wink And I'm just learning non-scripting languages so this seems to be a quick and easy intro instead of trying to give right into C++ and Glade or whatever. Pardon my newb'ness Sad

Jump into VB
Back to top
gotissues68
RealPoor Sensei
RealPoor Sensei


Joined: 21 Aug 2003
Posts: 1866



PostPosted: 04/02/05 - 22:39    Post subject: Reply with quote

Callaren wrote:
gotissues68 wrote:
Xieroth wrote:
gotissues68 wrote:
Xieroth wrote:
Yeah lets write an application in a scripting language! Woohhooo! Rolling Eyes


quick mockups Sad


just create the gui using a builder if that is all you want to do. Hell if you are a windows person just use visio.


Noooooooo I don't use windows except at work Wink And I'm just learning non-scripting languages so this seems to be a quick and easy intro instead of trying to give right into C++ and Glade or whatever. Pardon my newb'ness Sad

Jump into VB

Ewwww no thanks Wink My goal is to learn something that I can use thats cross platform =)
Back to top
kireol
RealPoor Master of Posts
RealPoor Master of Posts


Joined: 02 Aug 2003
Posts: 9517
Location: Royal Oak, MI



PostPosted: 04/02/05 - 23:00    Post subject: Reply with quote

PHP is similar to PERL which resembles C which is like C++. so you already know C++ which is like java and so on.


event driven vs interpreted, now there's a difference.

Wink
Back to top
Callaren
RealPoor Sensei
RealPoor Sensei


Joined: 03 Dec 2003
Posts: 1598
Location: South Jersey



PostPosted: 04/02/05 - 23:32    Post subject: Reply with quote

gotissues68 wrote:
Callaren wrote:
gotissues68 wrote:
Xieroth wrote:
gotissues68 wrote:
Xieroth wrote:
Yeah lets write an application in a scripting language! Woohhooo! Rolling Eyes


quick mockups Sad


just create the gui using a builder if that is all you want to do. Hell if you are a windows person just use visio.


Noooooooo I don't use windows except at work Wink And I'm just learning non-scripting languages so this seems to be a quick and easy intro instead of trying to give right into C++ and Glade or whatever. Pardon my newb'ness Sad

Jump into VB

Ewwww no thanks Wink My goal is to learn something that I can use thats cross platform =)

But it is! There's 9x and NT and 2k/XP Razz It is good for mockups though.

C++ isn't that bad though.

Code:
#include <windows.h>

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = "WindowsApp";

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           "Windows App",       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           544,                 /* The programs width */
           375,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nFunsterStil);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}


/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)                  /* handle the messages */
    {
        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}


Code taken from a new project in Dev-C++, which I use.
It's actually really easy once you get used to it.
Back to top
gotissues68
RealPoor Sensei
RealPoor Sensei


Joined: 21 Aug 2003
Posts: 1866



PostPosted: 04/03/05 - 01:48    Post subject: Reply with quote

/me pulls out his c++ book :-p
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

Related topics: