CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Soul_Eater

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    4,555

    Re: Token parsing

    it is the same
  2. Replies
    4
    Views
    4,555

    Re: Token parsing

    Hmm.

    Ok now I have:




    FILE* DB_handle = fopen (dbfile, "rb");

    if (DB_handle!=NULL) {
  3. Replies
    4
    Views
    4,555

    Token parsing

    Ok.

    This is what I have:




    FILE* DB_handle = fopen (dbfile, "rb");

    if (DB_handle!=NULL) {
  4. Replies
    0
    Views
    372

    Reading byte clusters of a file

    I honestly don't know where to begin here.

    I'm writing a program to read certain groups of bytes in a file, and then write them to a .html

    I have it all set except the reading the byte...
  5. Replies
    10
    Views
    3,201

    Re: Bitmap saving.

    I'm using the following to get the hbitmap:



    HWND hStatic = GetDlgItem(hWndDlg,ID_STATIC_1);
    HDC staticDC = GetDC(hStatic);
    hBitmap2 = (HBITMAP)SendMessage(hStatic, STM_GETIMAGE,...
  6. Replies
    10
    Views
    3,201

    Re: Bitmap saving.

    I got it working now, but for some reason, it's not working on my iRiver of all things.
  7. Replies
    10
    Views
    3,201

    Re: Bitmap saving.

    by "load" I mean open. Like in irfanview or mspaint or sometihng. not load in c++.

    if i try to open the bitmap it writes, I get an error.
  8. Replies
    10
    Views
    3,201

    Bitmap saving.

    I'm using functions from here

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_7zfp.asp

    if I try to open the new bmp, it says "Bitmap decode error" and cant load it...
  9. Replies
    3
    Views
    644

    Re: Resource editor won't create statics

    you are a great man.
  10. Replies
    3
    Views
    644

    Resource editor won't create statics

    I had a dialog with a bitmap static on it. It worked fine.

    I edited the menu resource, and it asked to update the resource.h
    i let it, and for some reason it removed the static from it.

    The...
  11. Replies
    1
    Views
    2,519

    Re: Bitmap resizing algorithm - errors

    just wanted to say problem solved. Had to add a '(' bracket and comment out a #define.
  12. Replies
    1
    Views
    2,519

    Bitmap resizing algorithm - errors

    I'm trying to compile Variant B here
    http://www.codeguru.com/Cpp/G-M/bitmap/specialeffects/article.php/c4897/

    And I get all these errors:


    C:\Program Files\Microsoft Visual...
  13. Replies
    2
    Views
    578

    Re: Bmp drawing..prog crashing

    That fixed the crashing. That's kinda weird that it's commented out by default.

    Now for some reason, sometimes its drew images, sometimes it didn't, and currently I havent been able to get it to...
  14. Replies
    2
    Views
    578

    Bmp drawing..prog crashing

    ok. I'm using the following code from the archive


    HBITMAP LoadAnImage(char* FileName)
    {
    // Use IPicture stuff to use JPG / GIF files
    IPicture* p;
    IStream* s;
    IPersistStream*...
  15. Replies
    10
    Views
    1,842

    Re: Dialog & OPENFILENAME issues

    thanks for all of your help
  16. Replies
    10
    Views
    1,842

    Re: Dialog & OPENFILENAME issues

    I'll be damned. You were right! I reordered the headers and it compiled, now the only error I get is this one(which I was unsure about if I was doing it right anyway)


    ...
  17. Replies
    10
    Views
    1,842

    Re: Dialog & OPENFILENAME issues

    C:\Program Files\Microsoft Visual Studio\MyProjects\RiverImage\RiverImage.cpp(53) : error C2065: 'OPENFILENAME' : undeclared identifier
    C:\Program Files\Microsoft Visual...
  18. Replies
    10
    Views
    1,842

    Re: Dialog & OPENFILENAME issues

    doh, thanks. Fixed the parentheses error, but I'm still getting compile errors from having the OFN code.
  19. Replies
    10
    Views
    1,842

    Re: Dialog & OPENFILENAME issues

    Also now, if I comment the code thats causing errors out, I'm getting this error on the very last line:

    fatal error C1004: unexpected end of file found
  20. Replies
    10
    Views
    1,842

    Dialog & OPENFILENAME issues

    Ok. I'm writing a small app to eventually resize images.

    For some reason, I'm getting compile errors when I get to the OPENFILENAME part, even though I'm including the right headers.

    After the...
  21. Thread: Cursors

    by Soul_Eater
    Replies
    11
    Views
    868

    Re: Cursors

    spy++ exits
  22. Thread: Cursors

    by Soul_Eater
    Replies
    11
    Views
    868

    Re: Cursors

    found what i needed

    SetClassLong(hwnd,GCL_HCURSOR,(LONG)hcursor);


    :)

    For some weird reason, I'm opening up Spy++ look for a window, but when I run spy++, it displays the main window, then...
  23. Thread: Cursors

    by Soul_Eater
    Replies
    11
    Views
    868

    Re: Cursors

    right, but then after the cursor moves, it changes back to what it was.

    The code I had previously made the cursor stay to whatever I changed it to, AND didnt involve any window procs
  24. Thread: Cursors

    by Soul_Eater
    Replies
    11
    Views
    868

    Re: Cursors

    I'm not creating a new window, just changing the cursor in a window of a program
  25. Thread: Cursors

    by Soul_Eater
    Replies
    11
    Views
    868

    Cursors

    My hard drive crashed and I lost some important source.

    I was using LoadCursorFromFile

    to load a cursor, then set it to an hwnd, and the cursor would be permanent and stay when moved.

    I...
Results 1 to 25 of 32
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured