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

Search:

Type: Posts; User: Coder Dave

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Re: Processing Time For PVOID Into Byte Array Conversion

    Why are you copying 2048 bytes when the input buffer is only 1024 bytes?

    So your application is basically displaying the output of a black and white digital camera in a window. You are receiving...
  2. Thread: Doubt

    by Coder Dave
    Replies
    3
    Views
    1,553

    Re: Doubt

    If Vec contains a pointer to some some structure, then eax is assigned a copy of the first attribute of that structure. To assign a copy of the second attribute of that same structure to ebx, follow...
  3. Re: Processing Time For PVOID Into Byte Array Conversion

    Other processes running would also affect the speed of your program.

    I am just wondering if one line of data (1024 bytes) will be drawn to one line of the display that was created in Draw Image...
  4. Replies
    5
    Views
    965

    Re: looping lines and blocks of characters

    Hmmm, I could swear someone else just posted questions about this same assignment a little while ago ...

    nested loops to streamlined code

    And would you know it was from the same user? :wave:
    ...
  5. Replies
    9
    Views
    4,435

    Re: C++ Battleship Game in PSPAD

    I am sure the term "procedure" is being used loosely. It just means a function that does not return a value, that is, the return type is void. Of course, a class method is also a function.

    ...
  6. Replies
    7
    Views
    7,632

    Re: StretchDIBits

    What is CPP?
    What is BitPlanes? This should be 1.
    Unless CPP is 32, BMPInfo.bmiHeader.biSizeImage is miscalculated.
    Why do you set BMPInfo.bmiHeader.biClrUsed to 24? This is saying that you want...
  7. Re: How to get the source code of a software/program

    The only way to learn to program is to actually write programs. If you have the source code for something, you still need to try it to see if it does what you think it does. A lot of times you may...
  8. Replies
    3
    Views
    1,421

    Re: Questions about memory usage of programs

    A process is an instance of an executable or application. If you have multiple instances of the same executable running at the same time, each instance is its own process. The process includes all...
  9. Replies
    6
    Views
    2,443

    Re: Image Processing

    GIFs are lossy too.

    An uncompressed bitmap file would be the easiest to process.
  10. Replies
    6
    Views
    1,644

    Re: Violating C++ Standard?

    Optimizers are known for switching the order of instructions in order to make things run faster. However, this switching should only occur if it does not affect the outcome of the instructions. ...
  11. Re: How to get the source code of a software/program

    I have never used Python so I do not know anything about it. I mainly use C++. It is sort of in the middle in terms of programming languages. It is not tedious like assembly language, but at the...
  12. Replies
    3
    Views
    1,421

    Re: Questions about memory usage of programs

    Any program that does anything will use more memory than the size of the executable file. First, that executable file is loaded into memory. Then any DLLs that the process uses are also loaded into...
  13. Re: How to get the source code of a software/program

    If you have Microsoft Visual Studio installed and an application crashes due to an access violation or invalid machine instruction, you will be asked if you want to start the debugger that comes with...
  14. Replies
    7
    Views
    1,969

    Re: cash depost "p help po pra s code ni2 "

    Instead of using your iPhone to take pictures of your monitor, you could press Ctrl-Alt-Print Screen, which copies the contents of the current window into the clipboard. From there you can paste it...
  15. Re: How to get the source code of a software/program

    Should I assume that you just want to know how to do this for curiosity's sake? You do not want to steal anyone's code or do anything malicious, right? You just want to peak under the "hood"? All...
  16. Replies
    8
    Views
    1,708

    Re: help me with c++

    If you want to learn C++, you need to understand the syntax of the language. These are simple errors that even a beginner should be able to find and fix easily.

    By the way, the answer is 10.

    S...
  17. Replies
    7
    Views
    2,069

    Re: Reversing the digits

    Doh! :blush:
  18. Re: window on center of screen and fullscreen(on\off)

    If your compiler does not support an API function, you can always use LoadLibrary() and GetProcAddress() to get the address of the function dynamically. The following test program shows how this is...
  19. Replies
    7
    Views
    2,069

    Re: Reversing the digits

    Here are some fixes to your code. Study it and my comments. :)
  20. Re: trouble with while statements...what am i missing?

    Your while loop will be executed only one time at most, since you are breaking out of it under both conditions of the if statement. Breaking out of loops is also considered to be sloppy coding...
  21. Replies
    9
    Views
    3,247

    Re: Problem registering windowsclass

    Use the GetParent() function to get the window handle of the dialog box's parent. Then use the GetWindowLongPtrW() as before to get the pointer to your App instance. There is also a...
  22. Re: window on center of screen and fullscreen(on\off)

    From my experience, GetWindowRect() always sets the left and top members of the RECT structure variable to 0, so subtracting them would not be needed. If this assumption bothers you, then you can...
  23. Replies
    9
    Views
    3,247

    Re: Problem registering windowsclass

    Callback functions must be static, that is, they cannot be associated with any particular instance of a class.


    static LRESULT CALLBACK App::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM...
  24. Re: window on center of screen and fullscreen(on\off)

    RECT is a structure. When you pass a structure variable to a function in C++, you need to pass a pointer/reference to that variable. GetWindowRect() takes two arguments, a window handle and a...
  25. Replies
    8
    Views
    1,278

    Re: Why "char" is inside "int" loop?

    On a side note, make sure you terminate the copy of the string.
Results 1 to 25 of 56
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured