Skip to content

ATL / WTL / STL

Discussions on ATL, WTL and STL programming

This category can be followed from the open social web via the handle atl-wtl-stl@forum.codeproject.com

3.1k Topics 9.9k Posts
  • 0 Votes
    10 Posts
    15 Views
    E
    I did not write my answer for "dolly". This question has the highest ranking on Google. It appears in the first place! Anybody searching for IMAGE_DLLCHARACTERISTICS_NX_COMPAT on Google will come here.
  • vipblogweb

    com
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • Keypad locks

    algorithms help tutorial question
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • 0 Votes
    5 Posts
    14 Views
    J
    PCRE is a good option. It is based on the Perl regexe, although there are some minor differences under the hood (which I do not remember now). I wrote my own C++ template regex some years ago that gives me full control of behavior in my personal projects. I used other libraries like PCRE, for comparison, in my test bed, to test for speed and accuracy. That is why I know that there are some minor differences on what one considers valid and invalid syntax (implementation differences or programmers mind set - who knows?). As for Cs ability to process strings or any other data type - it is very efficient. I used to be able to look a C-code and translate it, in my head, directly to the equivalent assembly code. What you are talking about is the standard C libraries, which were designed to provide only the simple low level functionality that programmers require to develop more complex algorithms (how many ways are there to write a 'strcmp' function?). It was left to others to provide libraries that required more than a simple 'for' or while 'loop' in their functions. That being said, when I find my self doing contract work on old C-code, where I am not allowed to upgrade or use external libraries, I recreate some simple algorithms for parsing (hey its their money, so who am I to argue with a brick wall). Basically, I create equivalent functions for parsing sub-strings like the regex "\d*" or "[abd]" and wrap them in a function call - depending on what I am looking for. What little testing I have done has actually shown me that they were more efficient than using the MS implementation of regex (not a surprise). Conclusion: C is the most efficient language I have ever work with - there is a reason that all of the modern operating systems, I have worked with, were written in C. (I have not checked lately, so it is possible that C++ snuck in their some were). INTP "Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra "I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
  • 0 Votes
    3 Posts
    13 Views
    K
    int&& is a rvalue reference. Until C++11 we only had lvalue references. In Nontemplate_universal_ref(x), x is a lvalue, not an rvalue. Try the following: template void Template_universal_ref(ParamType&& param) { cout << "Template_universal_ref, param : " << param << endl; } void NonTemplate_universal_ref(int&& param) { cout << "NonTemplate_universal_ref(int&&), param : " << param << endl; } void NonTemplate_universal_ref(int& param) { cout << "NonTemplate_universal_ref(int&), param : " << param << endl; } int main() { int x=5; Template_universal_ref(x); NonTemplate_universal_ref(x); NonTemplate_universal_ref(x+3); return 0; } Note that in the second call to NonTemplate_universal_ref, the argument x+3 is not an lvalue, that is, it cannot be assigned to. Now, maybe someone can explain why the call via the template works?
  • what the live status

    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • 0 Votes
    9 Posts
    23 Views
    B
    Good work..!!
  • How to get key-down message in a WTL combobox?

    c++ help tutorial question
    4
    0 Votes
    4 Posts
    4 Views
    K
    Still in demand. Thanks,buddy.
  • 0 Votes
    2 Posts
    11 Views
    A
    Just like I have a secretData_s struct as part of the task data, maybe I should also have a postTaskInfo_s section: #define PLEASE_SEE_SIZE_OF_POST_TASK_DATA_PARAMETER (1) struct postTaskInfo_s { task_t postTask; taskQueueSelector_e postTaskQueueSelector; uint16_t sizeOfPostTaskData; uint8_t postTaskData[PLEASE_SEE_SIZE_OF_POST_TASK_DATA_PARAMETER] }; Then if postTaskInfo->postTask is not null then the CAN_readRegs-task will queue the postTask just before it's finished. Can someone think of something better?
  • Buy cheap MapleStory 2 Mesos at MMOAH

    game-dev collaboration
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Buy cheap MapleStory 2 Mesos at MMOAH

    game-dev collaboration
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    1 Posts
    3 Views
    No one has replied
  • saudi arabia,uae (91-9680118734) Black Ma gic, Love Problems in rajasthan

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • saudi arabia,uae (9 1-9680118734) Mantra for Wife in rajasthan

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • saudi arabia,uae (9 1-9680118734) Mantra for Business in rajasthan

    business
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Directory manipulation in C++

    c++ help tutorial question announcement
    2
    0 Votes
    2 Posts
    6 Views
    L
    Use FindFirstFileA function | Microsoft Docs[^] to find when you do not know the full path.
  • Microsoft Office Object Library

    sharepoint help
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    3 Posts
    11 Views
    K
    Thank you very much Jochen Arndt. Now its working fine without any issues. Once again Thank you very much.
  • CEditCtrl in FrameWnd

    question
    2
    0 Votes
    2 Posts
    8 Views
    J
    The appropriate forum for this question would be the C / C++ / MFC Discussion Boards[^]. However, a frame window should not contain controls. It is - as the name indicates - a frame for other windows which are CView based or - for the main frame - child frames which then have their views. So your edit control should be part of a CView based window.
  • 0 Votes
    3 Posts
    21 Views
    M
    Thank you for you advice. Yes, It is a way, which is working well. New configuration with config manager "StaticRelease" + change "Use Static DLL" from IDE. Command line is then: msbuild my_project.vcxproj /t:Rebuild /p:Configuration=ReleaseStatic /p:Platform=x64 Thank you again. Lubomir