Skip to content
Code Project
CODE PROJECT For Those Who Code

C / C++ / MFC

C, Visual C++ and MFC discussions

This category can be followed from the open social web via the handle c-c-mfc@forum.codeproject.com

111.5k Topics 465.7k Posts
  • RegQueryValueEx returns wrong value

    database sql-server sysadmin tools help
    7
    0 Votes
    7 Posts
    0 Views
    V
    Thanks a lot!!:thumbsup:
  • Problem in reading BMP Header

    question ios data-structures help
    4
    0 Votes
    4 Posts
    1 Views
    CPalliniC
    You know, the BITMAPFILEHEADER may be followed either by a BITMAPINFOHEADER or by a BITMAPV4HEADER or by a BITMAPV5HEADER structure, see the documentation[^]. Veni, vidi, vici.
  • 0 Votes
    8 Posts
    0 Views
    L
    Sorry, I don't understand your question.
  • 0 Votes
    7 Posts
    5 Views
    L
    Did you try the link at the bottom of the page that says "Comments"?
  • GNU Gettext and windows localization

    html question announcement
    2
    0 Votes
    2 Posts
    8 Views
    L
    A number of suggestions here[^].
  • Resize a dialog

    question
    3
    0 Votes
    3 Posts
    0 Views
    M
    You need to do it manually. Get the parent dialog client size (CWnd::GetClientRect) and use either CWnd::MoveWindow or CWnd::SetWindowPos to move/resize the child dialog of your choice. be careful about the CRect that is returned by GetClientRect, you might have to use ScreenToClient to ClientToScreen to convert the rect before move/resize the child dialogs. I'd rather be phishing!
  • CreateProcess() not working

    help
    4
    0 Votes
    4 Posts
    7 Views
    S
    It works, you just dont have rehash.exe in C.\temp I compiled your code and it and it worked. Output: Line, Character counting Program === === by Newbie Usage: fileName EXE Path: Press any key to continue
  • How To Decrease Video Size

    json help tutorial question
    5
    0 Votes
    5 Posts
    13 Views
    S
    AmbiguousName wrote: Since I am storing video data as .wmv, does't it mean that video being stored is compressed (or encoded) ? Yes, your video is compressed, but not by much. If you do the calculation to see how large a 10 second uncompressed video file would be using your values, you get something like this: 640 * 480 * (32/8) * 30 * 10 = 368,640,000 = 352 MB This shows that the raw video is about 5 times larger than your compressed video. That is not an impressive compression ratio at all, so you should consider switching to H.264 as suggested by SuperCoder2014. Soren Madsen "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
  • ODS_SELECTED

    graphics help tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    J
    I have just tested it with an owner draw button in one of my applications. When BM_CLICK is send and the button did not had the focus, the DrawItem() member function is called with the ODS_FOCUS state bit set. The same applies when calling the SetFocus() member function of the button. So it seems that there is another error in your code. You may set a break point in your DrawItem() function and/or write the state to the debug window using trace() to check when and with which states your drawing function is called.
  • I need a two level priority queue

    data-structures career
    8
    0 Votes
    8 Posts
    0 Views
    U
    Finded it, thanks for your help! :)
  • How to use c + + and web interaction

    javascript c++ help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    L
    jingjing yuan wrote: how to use c + + for the Jason data You need to explain where this data comes from and exactly what you expect your C++ program to do with it.
  • C program for Embedded controller ICP CON I7188XAD

    hardware question
    4
    0 Votes
    4 Posts
    0 Views
    L
    Hmmmm, As someone who has worked with inmarsat hardware I would guess that this guy is simply asking about MODBUS response timeouts which isn't really proprietary information. Best Wishes, -David Delaune
  • If I use a library, do I need DLL file ?

    question c++ com help
    12
    0 Votes
    12 Posts
    3 Views
    L
    Congratulations! Cmake configuration may be nerve-wrecking (and often are imo ;) ). See you
  • [C]Strings' array goes crazy.

    data-structures
    5
    0 Votes
    5 Posts
    0 Views
    enhzflepE
    You're welcome. I'd hoped you had, though the way you used it gave me the impression it was only a char* Glad to be of help. :)
  • [IFileIsInUse] : Need help with its implementation

    help
    2
    0 Votes
    2 Posts
    0 Views
    L
    The MSDN entry[^] includes a link to a sample implementation.
  • Embedded C

    hardware debugging question workspace
    15
    0 Votes
    15 Posts
    0 Views
    U
    Re: The reason: It's so small that I honestly have great difficulty connecting alligator clips to the various pins. Forget the alligator clips. Get a crimper and some socket and pin ends that match the connector or pins available. Crimp the pin/socket on the end of your wire and put anything you want on the other end. Use various colors of wire to make it easy. To the OP, do some googling on demo and prototype boards. If you are really serious, for less than $100 you can get a demo/prototype board for just about any type of processor. Usually way less. Edit: Get some heat shrink tubing to insulate the crimped end.
  • Create style element with c++

    help c++ css
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • LZMA SDK and .zip files

    csharp c++ algorithms help tutorial
    6
    0 Votes
    6 Posts
    1 Views
    L
    Like most of these zip programs you can change the compression format off the command line. So set a command line on your compiler and follow it. The documentation to Z-Zip says Type switches Switch: -t7z Format: 7Z Example filename: archive.7z (default option) Switch: -tgzip Format: GZIP Example filename: archive.gzip, archive.gz Switch: -tzip Format: ZIP Example filename: archive.zip (compatible) Switch: -tbzip2 Format: BZIP2 Example filename: archive.bzip2 Switch: -ttar Format: TAR Example filename: tarball.tar (UNIX and Linux) Switch: -tiso Format: ISO Example filename: image.iso (may not be supported) Switch: -tudf Format: UDF Example filename: disk.udf So setup a command line to some file with -tZip and follow what it does. In vino veritas
  • 0 Votes
    8 Posts
    1 Views
    A
    If your connection is faster, then yes. In general, to achieve maximum performance, you will need a high performance protocol and I am not sure the Send API you are referring to falls into that category. Typical characteristics for high performance protocols are: * UDP based * Packet loss tolerant * Latency tolerant You may have to write your own protocol, or Google for "high performance open source UDP file transfer" and you may find something. Regards
  • 0 Votes
    3 Posts
    0 Views
    A
    The problem was that I followed the tutorial for upgrading the Scribble application. I changed the app class header to use CWinAppEx but not the source file. When I changed the source file the leak stopped.