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
  • 0 Votes
    19 Posts
    0 Views
    L
    Delete all the project files and do a create project from existing source .. usually faster once the problem goes to far. In vino veritas
  • 0 Votes
    2 Posts
    0 Views
    L
    This has nothing to do with C/C++/MFC, or indeed software in general. Please find a more appropriate forum.
  • error LNK2019

    help c++ question learning
    6
    0 Votes
    6 Posts
    0 Views
    _
    "2. The declaration in your header does not match your implementation. Make sure there is no typo, the argument type and number matches, and ..." That was the problem. Thank you all of you !
  • 0 Votes
    3 Posts
    0 Views
    M
    Thank you! Man! I would have never guessed the porting would look like that :omg:
  • why pApplication.CreateInstance( _T("Excel.Application") ) FAILED?

    help question
    10
    0 Votes
    10 Posts
    0 Views
    S
    Hi. I am facing exactly same problem and posted in the query in below link. https://www.codeproject.com/Answers/5165616/Excel-applicationptr-createinstance-is-failing#answer1 Can any one explain how to resolve this CreateInstance() failure. Windows 10 - 64 bit and Office 365 64bit and VS2017 enterprise edition i am using.
  • warning LNK4099: PDB 'utils.pdb' was not found

    question debugging
    4
    0 Votes
    4 Posts
    0 Views
    L
    Sorry, but we have no idea what your setup looks like so it is impossible to guess how things have been set up. If you use the Visual Studio IDE then project settings will be in a file called <project_name>.vcxproj or some similar extension. You need to provide some more details of how your project is setup and what commands you run to build it. See also: Linker Tools Warning LNK4099 | Microsoft Docs[^].
  • error LNK2019

    question c++ help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • write a c program to convert decimal no to binary

    2
    0 Votes
    2 Posts
    0 Views
    Richard DeemingR
    You have already posted this homework in QA: Convert decimal number to binary[^] "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • error C2059

    question c++ com linux data-structures
    31
    0 Votes
    31 Posts
    0 Views
    _
    It works ! :) Kindly thank you all of you ! Without you I would not succedded !
  • C++ Program to decompress a compressed string

    c++ regex performance help tutorial
    26
    0 Votes
    26 Posts
    0 Views
    K
    There's a couple of things I can think of: 1) there's no end-of-line char output. The specs don't say that it should, but that might be causing a fail. 2) the program, as given, only processes one input line per run. Again, the specs as given, do not say you need to process multiple lines of input, but again, that might be the cause of fail.
  • 0 Votes
    7 Posts
    0 Views
    L
    From what I can work out you are still building a Virtual Memory system what you are calling the sector selector is the page index and the memory window size itself is the page size. Memory segmentation - Wikipedia[^] Quote: Segmentation with paging Instead of an actual memory location the segment information includes the address of a page table for the segment. If that is the case you are building a page table for a Virtual Memory Implementation Page table - Wikipedia[^] The Virtual space can be bigger, 1:1 or smaller than the real memory space. Even on Flash Memory we still call them pages and a group of pages become a block. That also holds for the old superVGA (VESA) standard where you have blocks being made up of pages of a set granularity Although in both those cases we do call the selector a "bank selector" or a "block selector" as opposed to a "page index" Sliding Window tends to be used as a term on transmission protocols Realistically we understand what you are doing and it's only a name. In vino veritas
  • amibroker afl to dll

    tutorial
    3
    0 Votes
    3 Posts
    0 Views
    L
    Probably be rewriting it.
  • CTreeCtrl get individual item font ?

    data-structures question
    6
    0 Votes
    6 Posts
    0 Views
    M
    That only tells me the font is created, but not if it was set to one particular tree item. I'd rather be phishing!
  • error C2143: syntax error

    help question
    4
    0 Votes
    4 Posts
    1 Views
    _
    Thank you all of you, it works.
  • zero-sized array in struct/union

    data-structures question
    25
    0 Votes
    25 Posts
    3 Views
    L
    Stefan_Lang wrote: it doesn't make any sense at all. Sadly true of so much that we see here.
  • High salary looking for strong C++ programmer

    c++ com game-dev sysadmin security
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • error C2143 error C2059

    c++ help adobe question
    15
    0 Votes
    15 Posts
    0 Views
    K
    David Crow wrote: bool equals( struct foo f ) { // this is not the preferred method for comparing floating-point values return (this->s == f.s) && (this->d == f.d); } I use fabs(v1 - v2) < delta. Its OK to compare a floating point value against zero, but other comparisons may produce unexpected results. e.g. $ cat ex.c \#include int main() { double d = 0.0; const double one = 1.0; for(size\_t i = 0; i < 100; ++i) d += 0.01; // we would expect d now to be 1.0, but ... printf("d = %8.6f\\n", d); // output looks like 1.000000 printf("d == 1.0 => %d\\n", d == one); // but comparison fails printf("1.0 - d = %g\\n", one -d); // there's a very small diff btwn d and 1.0 return 0; } $ ./ex d = 1.000000 d == 1.0 => 0 1.0 - d = -6.66134e-16 $
  • Best way to call REST Service from C++

    csharp c++ json tutorial question
    8
    0 Votes
    8 Posts
    0 Views
    L
    I had a nap after supper. Now I need to get sleepy again. The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.' ― Confucian Analects
  • Call C functions from VC++

    c++ question help announcement
    13
    0 Votes
    13 Posts
    0 Views
    L
    It just occurred to me that you are probably suffering from C++ name mangling. You need to add the following lines to the header files of your .c code: #ifdef __cplusplus // these lines at the beginning of the file before your definitions extern "C" { #endif #ifdef __cplusplus // these lines at the end of the file after your definitions } #endif
  • MFC Picture Control image size.

    c++ graphics design help question
    7
    0 Votes
    7 Posts
    0 Views
    V
    Your problem has nothing to do with MFC! MFC is just a wrapper for plain Win32 API