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

Search:

Type: Posts; User: luckiejacky

Page 1 of 5 1 2 3 4

Search: Search took 0.11 seconds.

  1. Changing the coordinates where I want to draw my bitmaps onto?

    First, I don't want to use Blit or StretchBlit, I will use another function to draw that bitmap to that area.
    So I need to change the coordinates.
    I did some research on the web and I found a...
  2. Replies
    3
    Views
    968

    Re: Can I ask a question about FFT here?

    The program wasn't written by me, however, when I said label, I meant the frequency "number", for example, 10KHz, 20KHz.
    When the data comes out of the function, I receive a stack of vectors. But I...
  3. Replies
    3
    Views
    968

    Can I ask a question about FFT here?

    Hello,
    I am not sure I am allowed to ask FFT question here. I am using Visual Studio to program it.
    First I've got a FFT function handy. But I will need to collect a certain amount of samples...
  4. Where is the "active" configuration stored?

    When I cracked open the vcxproj file, I see a lot of configurations like win32 and win64.
    But where is the "active" configuration stored?
    For example, when I compiled my program using win64 and...
  5. Replies
    1
    Views
    3,158

    C++ new specification syntax problem

    Hello guys,
    I have some trouble understanding the following syntax.

    This is supposed to be compiled under VS2019. Now, I want to compile it under 2015. How to make the changes to make them...
  6. How can I move a single color value into 4 different channel arrays?

    After establishing 4 channels arrays like this,



    std::vector<std::vector<double>> rchannel;
    std::vector<std::vector<double>> gchannel;
    std::vector<std::vector<double>> bchannel;...
  7. How to retrieve the address of the surface of a HWND?

    I've got a little Directdraw application, that currently is rendering into the desktop (the listview), but I want to divert it to another window, How can I get the surface address of the HWND?


    ...
  8. Avoiding drawings from one device context from overwriting another one?

    First, I've got 2 separate device contexts to draw on, they are both static images. However, one of them is going to be moved around. As usual, these 2 device contexts is updated on a game loop,
    the...
  9. Re: How to force windows 7 to update/refresh forcefully?

    shortcut icons, taskbar, wallpaper etc, but I found the way...using ::InvalidateRect(NULL, NULL, FALSE);
  10. How to force windows 7 to update/refresh forcefully?

    I want to force the windows 7 desktop to refresh itself by force? and by code. How can I achieve this?
    thanks
    Jack
  11. Replies
    1
    Views
    1,997

    Paint Operation for this truth table?

    What paint operation can I use for the following truth table?


    Truth Table

    0 0 => 0
    1 0 => Src
    0 1 => Dest
    1 1 => Src
  12. Returning a vector of "objects" or floats out of a function

    The third-user library, inside of the c file, when I include the vector header, it just doesn't compile because of certain conflict. But I indeed want to retrieve a set of values out of that...
  13. How to create a transparent with opacity bitmap, that is moved around on the desktop?

    Dear all,

    We used to have some little programs like the windows desktop dancers, which are very old stuff. But I wonder how they were made. any examples?

    thanks
    Jack
  14. Help with constructing a video file using a series of bitmaps and chunks of aud data?

    I've tried using ffmpeg, but I couldn't get it to work. At the very beginning, I cannot register the codecs by calling av_register_codecs() and later I couldn't find the relevant codec(s) to use....
  15. Is it possible to get a screen capture on windows 7 without capturing its own window?

    If I use GetDesktopWindow(), it includes the window which starts the capturing, I don't want to include that window. Just everything except the firing program. how can I achieve this?
    thanks
    Jack
  16. Retrieving Mathematical formulae and manipulating them with C++?

    #define formula_( operand0, operator0, operand1 ) printf_s("%d %s %d", ##operand0, ##operator0, ##operand1 )

    int red = 1;
    int green = 2;
    int blue = 3;

    int v = formula_(red, "+", blue);

    ...
  17. Replies
    5
    Views
    1,106

    Re: Calling on an element of a matrix class

    Thanks
  18. Replies
    5
    Views
    1,106

    Re: Calling on an element of a matrix class

    The original definition of the matrix is:


    template<class T, size_t Rows, size_t Cols> using matrix = std::array<std::array<T, Cols>, Rows>;

    I was unable to compie this with some low-end...
  19. Replies
    5
    Views
    1,106

    Calling on an element of a matrix class

    The line:


    sum += (gauss[x + 2][y + 2] = exp(-(x * x + y * y) / s) / s / M_PI);


    cannot be compiled.

    which says:
  20. Converting number literals to time_point?

    I would like to create a boost::chrono::system_clock::time_point based on the supplied date and time...
    What is the way to do it?
    Thanks
    Jack



    void SimClock::SetStartTime(unsigned int year,...
  21. [RESOLVED] Writing an extremely tiny number to disk

    float matWorld[16]

    errno_t err = _wfopen_s( &fFile, File.c_str(), L"wb" );
    fwrite( (void*) matWorld, sizeof(float), 16, fFile);


    The numbers are as small as these

    ...
  22. Cannot save a wav file after SampleGrabber grabs the audio sample?

    DexterLib::_AMMediaType mt;
    ZeroMemory(&mt, sizeof(AM_MEDIA_TYPE));
    //mt.majortype = MEDIATYPE_Video;
    //mt.subtype = MEDIASUBTYPE_RGB24;
    mt.majortype = MEDIATYPE_Audio;
    mt.formattype =...
  23. How to create a directshow video capture filter?

    After creating a capture graph builder, how can I directly query a video capture filter? The example I have only got an enumerator for all devices thru monkiers... is it the only path I need to use?...
  24. Which interface should I grab if I want to build an audio filter for directshow?

    https://msdn.microsoft.com/en-us/library/windows/desktop/dd317586(v=vs.85).aspx

    Thanks
    Jack
  25. Re: Promoting a derived struct to another deriving struct

    Why this thing is always a problem? I mean I create FRAME's inside this function (the B) and return to the caller, then the caller accepts it as a derived class (the A)


    newFrame->pFrameSibling ...
Results 1 to 25 of 121
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured