Skip to content

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
  • Select and Pick lines in OpenGL

    c++ graphics game-dev tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    G
    Hi Leon, This code is working fine for 2D points. Is there anyway to get the logic for 3D points? Thanks in advance. Regards, Gopinath.
  • How we find best online assignment solution website?

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    3 Posts
    2 Views
    M
    that's what I am doing; just annoying to have to create images for many combinations. Thanks. I'd rather be phishing!
  • FTPS Connection

    security c++ sysadmin help
    5
    0 Votes
    5 Posts
    0 Views
    P
    I hadn't seen that particular post, but I've seen most of the links listed there. I did try adding ftps:// to the server name, as suggested in that link, but that returns and invalid url error. I was hoping for a simple solution but it looks to be more complicated than I hoped. Thanks for the help!
  • .bmp and .ico MFC vc++

    c++ help
    11
    0 Votes
    11 Posts
    0 Views
    L
    Thought he wanted to draw in the frame which is non client .. that belongs to windows (the O/S) not the app (the client). It's so easy to draw in the normal client screen area with MFC didn't think you could mess that up ... Anyhow he worked it out. Moral never over-estimate the question being asked :-) In vino veritas
  • AMD or Intel

    windows-admin hardware architecture question workspace
    24
    0 Votes
    24 Posts
    0 Views
    _
    Very good idea. I think I would try this solution too, however, the location from HARDWARE\... seem to show what I need it.
  • 0 Votes
    8 Posts
    11 Views
    L
    Set the compiler flags -std=c11 or -std=c99 either standard will accept the code The portable case has to work or you are on an old C89 compiler which I find odd given it accepts the shortcut syntax in 1 The only other choice is you are on something like a PIC where you have to use builtins to get function addresses because of the crazy 32K block arrangements on memory In vino veritas
  • c++

    c++ help
    5
    0 Votes
    5 Posts
    0 Views
    D
    Developers don't find programs; they create them. Get started! "One man's wage rise is another man's price increase." - Harold Wilson "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
  • c++ enum

    c++ help question
    2
    0 Votes
    2 Posts
    0 Views
    CPalliniC
    What about The Documentation? Enumeration declaration - cppreference.com[^] And other resources? https://medium.com/@nonuruzun/overloading-input-output-operators-in-c-a2a74c5dda8a[^] .
  • error C2143

    help tutorial question
    15
    0 Votes
    15 Posts
    0 Views
    L
    test_and_clear is a macro you can't use it as a function, macros don't return things without hijinx :-) GCC has a thing called a statement expression Using the GNU Compiler Collection (GCC): Statement Exprs[^] However I strong suggestly you don't do it just create a proper function (that is after all what you are trying to write) and inline it if speed is an issue. In vino veritas
  • CCombobox MFC vc++

    c++
    12
    0 Votes
    12 Posts
    0 Views
    V
    Member 14575556 wrote: Yes, I used MFC combobox with CBS_DROPDOWNLIST style. Then you will only able to display a string already inserted in the combo listbox. Use either CComboBox::SelectString or CComboBox::SetCurSel.
  • 0 Votes
    10 Posts
    0 Views
    CPalliniC
    Very probably there is, but, unfortunately, I am not aware of. I do use a little Lua script for the purpose. Lua features powerful string manipulation functions and it is a very enjoyable scripting language. You might also use a more popular scripting language, like, for instance, Python (another option is, if you like it, using the C++ 11 regex classes).
  • 0 Votes
    6 Posts
    1 Views
    M
    Bonjour, //hi essayez avec : //try with arg=v*pi*i/n; k++); //two time i++);
  • 0 Votes
    5 Posts
    0 Views
    A
    My product is quite low-level, i.e. I'm setting up impedances, gains, current limiters, bias voltages, differential signal on/off, generating PWM signals, etc. Also, communication protocols are cascaded, for example a PC is transmitting a USB-packet to a microcontroller, who in turn forwards this over an SPI-bus to another microcontroller, who in turn forwards this over a CAN-bus, etc and then an ACK/NACK-packet has to travel the opposite direction. So, to have "local" interfaces between different microcontrollers would make this packet forwarding extremely confusing. Especially the CAN-bus is a bit troublesome because of the limited payload size (8 bytes/packet and no, we can't use the improved version that clocks the data faster) and sometimes I need to send several kBytes of data.
  • String Table MFC vc++

    c++ question learning
    4
    0 Votes
    4 Posts
    0 Views
    M
    I gave the value which is already there.. I gave a different number which is not already used and that solve my problem.
  • 0 Votes
    6 Posts
    0 Views
    L
    Sorry I misread the question. I have tried a number of variants but cannot get it to work. it would appear that #define statements are not accepted inside a macro definition.
  • Problem with AlphaBlend.

    help question
    4
    0 Votes
    4 Posts
    0 Views
    L
    Sorry, I cannot see anything obvious. Also, I am afraid I don't use MFC, so cannot try a similar test.
  • error C2678

    linux regex help learning
    30
    0 Votes
    30 Posts
    0 Views
    _
    That was the problem, on #define: I assigned with '='. My bad !
  • Displays the image in Picture Control.

    tutorial
    13
    0 Votes
    13 Posts
    0 Views
    U
    Now that I have understood everything and got the right result, I read my question with a smile. Thank you very much to everyone who sent me in the right direction.
  • 0 Votes
    7 Posts
    0 Views
    L
    OT means "Off topic". I am replying to a message but discussing a different subject.