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

Search:

Type: Posts; User: Jehjoa

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,219

    Re: .dll to call client function

    This is actually very easy to do, and has nothing to do with driver programming whatsoever. In fact, you have probably already done this at least few hundred times without realizing it.

    For...
  2. Replies
    2
    Views
    809

    Re: major redraw problems.

    The easiest solution would probably be to add CS_HREDRAW | CS_VREDRAW to the class styles, but there's a very nice article about this sort of issue here, which also gives other solutions that might...
  3. Re: Richedit control keeps sending WM_COMMAND with WM_USER as notification code

    Hi John, thank you for replying. I'm sorry for responding so late but I only just discovered the CodeGuru notification in my mailbox. ;)

    Okay, so this is actually pretty funny. I found out...
  4. Re: Does POST data have to be urlencoded in HttpSendRequest?

    I'm not 100% sure, but I think you indeed need to URL encode the entire string. There's no API for it (as far as I know), but it's very easy to write such a function yourself. Have a look at this...
  5. Re: my c++ application cannot allocate more than 400MB with new[]

    Yes, we know. But, as I understand it, ybenaabud's problem is that he (or she :eek: ) can't even allocate 400 MB on a 3 GB system while I can allocate 1732 MB on a 2 GB system with 1 call to...
  6. Re: my c++ application cannot allocate more than 400MB with new[]

    Okay so I got interested and wanted to test it out, so I launched Visual Studio 2008 and started hacking away. :)

    Here is my code:

    common.h

    #ifndef _COMMON_H_
    #define _COMMON_H_

    #define...
  7. Re: my c++ application cannot allocate more than 400MB with new[]

    To be honest I'm not sure why it doesn't let you do it, but why would you even want to allocate such a large amount of memory in one go? If you're trying to load a large file into memory, have a...
  8. Re: Richedit control keeps sending WM_COMMAND with WM_USER as notification code

    Yes, I know what WM_COMMAND and WM_USER are for, that is not the problem. The problem is that my window procedure constantly receives WM_COMMAND messages where:


    HIWORD(wParam) == WM_USER; //...
  9. Replies
    4
    Views
    8,761

    Re: Borland C++ Builder, Play Sound

    I've never used Borland's compiler or the TMediaPlayer class, but it looks like you're trying to use a class without instantiating an object of that class.

    At the moment, you have a pointer to a...
  10. Richedit control keeps sending WM_COMMAND with WM_USER as notification code

    Hello everybody,

    I thought my program was working exactly as expected so far, until I decided to have a closer look at the window messages my window procedure is receiving.

    My program is...
  11. Replies
    4
    Views
    625

    Re: Monitor Window Changes

    I don't know if there's a better API function to use, but if you're going to use GetForegroundWindow, don't make an infinite loop... Remember that your program needs to play nice with other programs...
  12. Replies
    10
    Views
    1,046

    Re: ShellExecute() problem

    Great that you got it working. :thumb:
  13. Re: Can't compile win32 program on Visual C++ 2005 express

    I always include TCHAR.h to my projects and use the TCHAR type instead of a char or wchar. That way, your program will always compile, ANSI or Unicode.
  14. Re: ListView control creates 2 threads and other strange behaviour

    Yeah, Windows XP SP2... :confused:
  15. Re: ListView control creates 2 threads and other strange behaviour

    Well I ran the listview_thread.exe and sure enough, after clicking a list item the threadcount in Task Manager changes from 1 to 3... You did click an item while testing, right? :)

    If you did, how...
  16. Thread: Boss Key

    by Jehjoa
    Replies
    4
    Views
    640

    Re: Boss Key

    A window that gets hidden is taken off the screen and loses focus, but it isn't 'deactivated' in the way that you mean. Sure, the user doesn't have a way of interacting with it, but the window is...
  17. Replies
    10
    Views
    1,046

    Re: ShellExecute() problem

    Hmm very strange. The only other thing I can think of is that maybe something is wrong with the function that gets the file path from the text file... Maybe you start reading directly after the comma...
  18. Re: ListView control creates 2 threads and other strange behaviour

    Sure, I don't mind sharing my code... There's hardly anything interesting in it at the moment, anyway. :) Thanks for having a look kkez, that's pretty cool.

    I uploaded a file here so anyone can...
  19. Replies
    10
    Views
    1,046

    Re: ShellExecute() problem

    Hmm you're right about the LPCTSTR thing. Sorry for sidetracking you there.


    HINSTANCE MyInst = NULL; // always initialize your variables
    int iInstance = 0;
    MyInst = ShellExecute(NULL,...
  20. Replies
    13
    Views
    935

    Re: I would like to start game programming.

    As MikeAThon said, to be able to program anything for Windows in C++ you need to download the Windows Platform SDK. It contains the windows.h file, among others. I found a DVD image of the SDK here.
  21. Re: ListView control creates 2 threads and other strange behaviour

    Well that is funny. I was just working on a little side project (the Process Explorer program made me interested in trying to make a similar program myself), it uses a ListView control as well, and...
  22. Replies
    10
    Views
    1,046

    Re: ShellExecute() problem

    Well I don't know anything about string objects because I always just use TCHAR's, but I just googled for an explanation of it, and it appears that the c_str member function returns a pointer to a...
  23. Replies
    5
    Views
    595

    Re: Determing if window has certain style ?

    From the top of my head:

    bool hasStyle (HWND hWnd, DWORD style) {
    return (style & GetWindowLongPtr(hWnd, GWL_STYLE));
    }

    bool hasExStyle (HWND hWnd, DWORD style) {
    return (style &...
  24. Re: ListView control creates 2 threads and other strange behaviour

    Well, I downloaded Process Explorer from MSDN to have a look at those threads. The first thread's starting address is wdmaud.drv!midMessage+0x306 (screenshot), the second's is...
  25. Replies
    4
    Views
    3,631

    Re: Browse for File Win32 API

    You are looking for this: Open and Save As Dialog Boxes. You're welcome. :D
Results 1 to 25 of 39
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center