Search:

Type: Posts; User: Exile

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    9,665

    Thanks, that clears up a lot of the questions I...

    Thanks, that clears up a lot of the questions I had left.
  2. Replies
    3
    Views
    1,165

    Success! Thanks kuphryn, that ended up working...

    Success! Thanks kuphryn, that ended up working after all.

    I needed to add this to the switch in WinProc:

    case (WM_ERASEBKGND) :
    {
    break;
    }

    And the handling of the WM_PAINT message...
  3. Replies
    3
    Views
    1,165

    I haven't tried that, and I'll be honest I'm not...

    I haven't tried that, and I'll be honest I'm not entirely sure how. I've never painted to a bitmap, or did much with bitblt.

    As a test of that (using what I know and the model as I understand it)...
  4. Replies
    3
    Views
    9,665

    Maybe an answer? This is a crude way of...

    Maybe an answer?

    This is a crude way of setting the font size, its by no means very thorough though. If you read the font.alias file (not sure what its default location is, I found mine at...
  5. Replies
    3
    Views
    1,165

    Drawing problem, getting flickers

    All the program does, is create a plain window and draw a couple of rectangles in it. When the window is resized the rectangles are redrawn to match the size of the window, pretty simple.

    The...
  6. Thread: expontants??

    by Exile
    Replies
    3
    Views
    1,122

    Just make a loop out of it, something like this:...

    Just make a loop out of it, something like this:

    int Base = 2, Exp = 5, ctr, Result;
    Result = Base;
    for (ctr = 0; ctr < Exp; ctr++)
    {
    Result *= Base;
    }
    That will calculate the value Base...
  7. Replies
    3
    Views
    9,665

    Setting the font size

    In XWIndows how do I set the font size to draw with? There's probably something simple I'm missing on this.

    I know you can get a font's size with something like this:

    int FontSize(Display...
  8. Replies
    9
    Views
    1,615

    If I'm understanding things right, it sounds like...

    If I'm understanding things right, it sounds like the Java set and the boost.org signals library are fairly similar.

    I would create one class that represents the control, then the users...
  9. Replies
    9
    Views
    1,615

    To be honest I really liked your suggestion over...

    To be honest I really liked your suggestion over the use of variants. It gives me more flexibility in the property types. I highly doubt any variant type would permit function pointers as a value,...
  10. Thread: Scanf Doubt

    by Exile
    Replies
    7
    Views
    3,026

    I used the following code: #include ...

    I used the following code:

    #include <stdio.h>

    int main(){
    char string[30];

    scanf("%[^\n]\n",string);
    printf("%s",string);
    return 0;
  11. Replies
    9
    Views
    1,615

    Yeah, you have those right. Guess I could have...

    Yeah, you have those right. Guess I could have explained those better. The properties would be an enumerated list of values that define how the window looks and acts. The basic window settings...
  12. Thread: Scanf Doubt

    by Exile
    Replies
    7
    Views
    3,026

    You don't need to put the & in fron of arrays. ...

    You don't need to put the & in fron of arrays.

    int main(){
    char string[30];

    scanf("%[^\n]\n",string);
    printf("%s",string);
    return 0;
    }
  13. Replies
    9
    Views
    1,615

    GUI Design Question (Seeking an opinion)

    In my spare time I've been constructing a cross platform API in my basement. Not that I expect anyone to use it, there's certainly better options available, its just been a heck of a challenge and...
  14. Replies
    2
    Views
    1,729

    There isn't any for each in C. The only way to...

    There isn't any for each in C. The only way to go through all the elements in a structure is to write a line for each member in the structure.

    At least, so far as I know.

    As for you question...
  15. Replies
    11
    Views
    10,043

    Even on windows you need to include that switch. ...

    Even on windows you need to include that switch. As far as I can tell it just sets up the libraries that need to be linked to. Not sure why they don't use normal linking, like -lX11 for XWindows.
  16. Replies
    11
    Views
    10,043

    It sounds like when you run just `gcc' its using...

    It sounds like when you run just `gcc' its using the standard Linux compiler, not the MinGW compiler. You may want to try it with the -v switch (maybe its --version ?) to get the version information...
  17. Replies
    11
    Views
    10,043

    be sure when you compile you use the -mwindows...

    be sure when you compile you use the -mwindows switch


    gcc source.c -mwindows
    otherwise it won't link against the windows libraries.
  18. Thread: OS X Carbon GUI

    by Exile
    Replies
    0
    Views
    4,158

    OS X Carbon GUI

    Positng this question here for lack of a better place to put it.

    Here is the code I'm messing with:

    #include<Carbon/Carbon.h>

    int main(int ArgC, char **ArgV)
    {
    Rect rPos;
    ...
  19. Replies
    3
    Views
    1,111

    To expand on anonytmouse's answer you will need...

    To expand on anonytmouse's answer you will need something like this in your main window's callback function.


    switch(message)
    {
    case (WM_COMMAND) :
    {
    if (LOWORD(wParam) ==...
  20. Replies
    4
    Views
    1,743

    Even with a GL app, if another window was placed...

    Even with a GL app, if another window was placed on top of it or dragged across it you would have to redraw the graph. Granted with GL it would be possible to keep an offscreen buffer with the graph...
  21. Replies
    3
    Views
    1,618

    Thats something in the KDE project, I believe,...

    Thats something in the KDE project, I believe, the KDevelop tries to use autoconf to create the makefile for your project before compiling it. If I remember right aclocal.m4 is a set of macros for...
  22. Replies
    4
    Views
    1,743

    I would think both ways would work the same. The...

    I would think both ways would work the same. The real difference is how you plan to draw the lines.

    If you are just calculating some points and connecting them with straight lines you won't see...
  23. Replies
    4
    Views
    1,611

    Calling a program doesn't require you to be in...

    Calling a program doesn't require you to be in the directory with the application to start. You should be able to do that with the system() function:


    system("c:\\Program...
  24. Replies
    4
    Views
    1,611

    Why do you need to change the directory? ...

    Why do you need to change the directory? Generally speaking thats not something you commonly have to do.

    When a program needs to access a file in some other directory, it can specify the full...
  25. Thread: MFC sucks

    by Exile
    Replies
    13
    Views
    8,397

    I messed with MFC for a couple of weeks. I got...

    I messed with MFC for a couple of weeks. I got tired or sorting out all the MS crap that gets thrown in there by the wizards and whatnot.

    The standard C API calls work fine for making GUI's from...
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4