Search:

Type: Posts; User: Br5an

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,195

    Maybe you could tell us (and the developer) what...

    Maybe you could tell us (and the developer) what the problem is. I'm using 2.2.1.2222 and it seems fine though maybe I just don't use the feature where the bug is?

    Regards,
    Brian
  2. Replies
    4
    Views
    3,841

    You need to link in comctl32.lib Regards,...

    You need to link in comctl32.lib

    Regards,
    Brian
  3. Replies
    10
    Views
    5,293

    I'll give a brief example but I think this is...

    I'll give a brief example but I think this is going to be more informative and include more detail: Set Desktop Color In short:
    int aiElements[1] = {COLOR_BACKGROUND};
    DWORD aColors[1] =...
  4. Replies
    5
    Views
    1,481

    Also make sure that your HBITMAP declaration is...

    Also make sure that your HBITMAP declaration is global or static. If it's local to your windows proceedure perhaps it's going out of scope on you.

    Regards,
    Brian
  5. Thread: WM_COMMAND help

    by Br5an
    Replies
    4
    Views
    1,875

    LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT...

    LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    Calculator MyCalc;

    Now that code is going to give you alot of trouble. It's because MyCalc is...
  6. Replies
    5
    Views
    5,088

    When I want to disable resizing I usually start...

    When I want to disable resizing I usually start with WS_DLGFRAME instead of WS_OVERLAPPEDWINDOW and build it up from there.

    For example: WS_DLGFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX...
  7. Thread: Long Integers

    by Br5an
    Replies
    24
    Views
    2,765

    I guess it's worth noting that when you use type...

    I guess it's worth noting that when you use type 'long' with pow you can get inaccurate results. For example pow(5, 3) is likely to be displayed as 124. But hey, at least you know the general reason...
  8. Thread: Lockdown program

    by Br5an
    Replies
    4
    Views
    1,121

    On WinXP you could just go to the logon screen...

    On WinXP you could just go to the logon screen and require a password to login (locking is not the same as logout) and you could call LockWorkStation without going into standby. Essentially the same...
  9. Thread: Broken Necklace

    by Br5an
    Replies
    6
    Views
    4,238

    Just a comment on std::string reverse method...

    Just a comment on std::string reverse method comment. If I'm understanding correctly I'd normally write something like:
    reverse(current_split_necklace.begin( ), current_split_necklace.end( ));...
  10. Replies
    4
    Views
    1,807

    Interesting thread, I'd thought I post what came...

    Interesting thread, I'd thought I post what came to mind here.

    Regards,
    Brian

    #include <iostream>
    #include <bitset>

    using std::cin;
    using std::cout;
  11. Replies
    8
    Views
    4,484

    One more, still ten messageboxes but automated:...

    One more, still ten messageboxes but automated:
    #include <windows.h>

    typedef int (WINAPI *MyProcA)(HWND, LPCTSTR, LPCTSTR, UINT, WORD, DWORD);

    int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR,...
  12. // from winspool.h // #if _WIN32_WINNT >= 0x0500...

    // from winspool.h
    // #if _WIN32_WINNT >= 0x0500
    so:
    #define _WIN32_WINNT 0x0500

    before including windows.h or winspool.h

    That should get you going,
    Brian
  13. Thread: console graphics

    by Br5an
    Replies
    12
    Views
    3,460

    You might have a look at: WinBGIm...

    You might have a look at: WinBGIm. It kind of leads you to think that you might be doing graphics in a Windows Console but really it's a GUI window that simulates the old Borland stuff.

    If you...
  14. Replies
    2
    Views
    7,258

    I guess you'd have to write this function and I...

    I guess you'd have to write this function and I can't think of a 'C standard' solution off hand. I do think the following should work on VC6 and any TC / TC++ that had stat.h. You might have to make...
  15. Thread: casting HBRUSH

    by Br5an
    Replies
    4
    Views
    1,364

    Alternately: #include ......

    Alternately:
    #include <windowsx.h>
    ...
    wincl.hbrBackground = GetStockBrush(BLACK_BRUSH);

    In this case windowsx.h helps take care of some things like that for you, brush, pen, font
  16. Replies
    5
    Views
    1,713

    I like this one Notepad++...

    I like this one Notepad++ . It will highlight your braces for you, syntax highlighting, ect... Just posting because I've found it multipurpose and quite useful.
  17. Replies
    1
    Views
    2,767

    I don't think that Dev-C++ (MinGW) implements...

    I don't think that Dev-C++ (MinGW) implements d3dx9.lib, probably licensing/copyright issues. I haven't tried converting d3dx9.lib to libd3dx9.a (MinGW naming convention) but it might well be...
  18. Replies
    7
    Views
    1,225

    kryptkat, I could take a look at it if you...

    kryptkat,

    I could take a look at it if you can zip the files up and post a link to the zip. From looking at the source code provided I'd suggest implimenting SetTimer, KillTimer, and handling...
  19. Replies
    9
    Views
    2,350

    Try this: int a = 0; while(a != 'q') { ...

    Try this:

    int a = 0;

    while(a != 'q')
    {
    a = getch();
    if(a == 0 || a == 224)
    a = getch();
  20. Thread: Code formatter

    by Br5an
    Replies
    4
    Views
    936

    If I understand correctly... You could run the...

    If I understand correctly... You could run the code through Astyle
    Regards,
    Brian
  21. Thread: Em_limittext

    by Br5an
    Replies
    3
    Views
    4,310

    First I verified that the following works...

    First I verified that the following works correctly:
    LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    static HBRUSH hBrush;
    static HWND hEdit;
    static...
  22. Replies
    5
    Views
    2,074

    This is a gif animator software from the old...

    This is a gif animator software from the old days. I still have a copy and use it now and then. MS GIF Animator Sorry it's not going to help you with coding but I think a little utility like this...
  23. Thread: Opinions?

    by Br5an
    Replies
    1
    Views
    1,676

    I know one option in the area is the Milwaukee...

    I know one option in the area is the Milwaukee School of Engineering. Sorry I can be of any help with your other questions.
  24. Replies
    5
    Views
    1,085

    Ok, I looked it up and !ifs has defined...

    Ok, I looked it up and
    !ifs has defined behavior. From there it's a small step to do something like
    if(ifs) and I'm not sure that behavior is defined. Maybe someone "in the know" will comment on...
  25. Replies
    5
    Views
    1,085

    I wasn't talking about ifs.open(process.txt)I...

    I wasn't talking about
    ifs.open(process.txt)I was talking about
    if (!ifs)Change the -external- input file name to something else, for example rename process.txt to process.bin, and you'll soon see...
Results 1 to 25 of 72
Page 1 of 3 1 2 3