Use windows API functions in a GTK+ program?

This is a discussion on Use windows API functions in a GTK+ program? within the Windows Programming forums, part of the Platform Specific Boards category; You do not need to make an installer; merely use one. One such free is: NSIS...

  1. #16
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,620
    You do not need to make an installer; merely use one.
    One such free is: NSIS
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #17
    Registered User
    Join Date
    Sep 2008
    Posts
    47
    I downloaded NSIS and had a look at it and its documentation. I'm really greatful for all the help you have given me with my problems, but I think I will stick with the windows API for now. It seems alot simpler for writing a program with two buttons than having to learn another language for the installer needed if I want to write GTK+ (NSIS Script).

    Ok, I've just tried doing some simple stuff with WinAPI and it's just beyond me. I cannot understand it at all, so it looks like GTK+ is the only way. As much as I dislike it, I think i'm just going to have to include the runtime files with my application.
    Last edited by Jake.c; 01-21-2009 at 02:40 PM.

  3. #18
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    If you have MS Visual Studio, have a look at MFC.

    IS MS's wrapper (framework) around the WIN API, has many examples and code available on the web.

    Is designed for RAD (rapid app dev).

    Create a new dialog based app with a few clicks. Add a button and its handler with a few more. No need to write a msg pump or callback.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  4. #19
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    308
    Quote Originally Posted by Jake.c View Post
    Is it possible to write the interface of a program using GTK+ (I find Windows API really hard and have yet to find a good tutorial on it). So can I use windows functions such as kb_event(); alongside my GTK+ interface?

    Cheers,

    Jake
    If you are going to use, I suggest that you use GTK+'s framework...if you need a specific function build-in with API, I recommend that you browse deeper in GTK's docs.
    * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
    * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.

  5. #20
    Registered User
    Join Date
    Oct 2006
    Posts
    2,421
    another couple of other ideas to consider:

    1. Windows Forms - Mono and the Microsoft .Net framework are binary compatible, so you can write your code on windows, and it will run on any platform that has Mono installed.

    2. wxWidgets - similar to MFC in that it's a C++ class based wrapper for the windows API on windows, but the same source should compile on any other platform that wx supports.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Limitations on Win32 API functions
    By csonx_p in forum Windows Programming
    Replies: 5
    Last Post: 04-09-2008, 04:09 AM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  3. windows api functions, not working. requirements?
    By Mr.Bit in forum Windows Programming
    Replies: 5
    Last Post: 10-10-2007, 08:20 AM
  4. Multithreading with the Windows API
    By Xzyx987X in forum Windows Programming
    Replies: 7
    Last Post: 11-06-2003, 11:22 PM
  5. How do you toggle keys like Scroll lock without Windows API?
    By animeaholic in forum C++ Programming
    Replies: 7
    Last Post: 09-15-2002, 07:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21