ATL / WTL / STL
|
|
Yes, but only struct members relevant to the application level should be initialized at the application level. The low-level driver struct members should be initialized at the low-level driver level.
|
|
|
|
|
That is irrelevant; this discussion is about the struct definition. What you do with the content is dependent on your code, but the definition (as I keep repeating) must include every element of the block of memory.
|
|
|
|
|
|
|
|
|
|
I like C but I feel it's Achilles heel is string processing. I've started to do a lot of parsing of text databases in arbitrary format without documentation lately and I need to adapt.
What I need to do is define patterns - expected format for the data and to store the values only if the whole string matches that known pattern. Input validation.
I'd rather not run the rest of my code without verifying the input conforms.
I think regular expressions are the best way to augment my existing skills without learning a new language, but regexes seem kind of varied and mixed breed.
Perl (5?) Seems to have formal standardization of regexes which is supported in many searching and text editing programs. There's also PCRE which I can compile on windows or download precompiled lib/dll.
Should I learn Perl regexes and use PCRE or am I overlooking things?
|
|
|
|
|
There are many websites that help to learn regexes, Expresso Regular Expression Tool[^] is a popular one. But you will also need a support library, as C does not have native support for them.
|
|
|
|
|
As far as I can tell there are at least three main types; POSIX basic, POSIX extended, and Perl Compatible.
There's a list of engines here:
Comparison of regular expression engines - Wikipedia[^]
And apparently some differences between PERL and PCRE:
Perl Compatible Regular Expressions - Wikipedia[^]
I don't know/understand if let's say 80 or 97 percent of the Regex syntax is the same between one version or another or if they are distinct subtypes with significant differences.
I don't know if they all support ascii, Unicode, and utf encoding, or whether they are all capable of returning matched variables or if some are only providing a match/no match result.
|
|
|
|
|
You will have to read the documentation to find out which one suits your requirements best.
|
|
|
|
|
Dear Friends,
I am working on a legacy project where i do not have support for boost libraries or latest C++ version.
I need to identify the path of a file with given extension(*.abc) that is inside couple of folder.
as example i have path like C:\test
but the given file is found in c:\test\Application\SomeohterApplication\hello.abc
can someone help please ?
Thanks in advance.
vikas da
|
|
|
|
|
|
Hi,
I am trying to use Ribbon control in my outlook addin but could not find "Microsoft Office xx.x Object Library in available type library.
I am using Microsoft Office 365 ProPlus. Please help.
|
|
|
|
|
Hi,
Freshly installed Windows 10 and VS2017 enterprise and doing migration from VS2010 to VS2017. Getting fatal error C1083: Cannot open include file: 'atlapp.h: No such file or direectory when i compile one of the project, even i have selected ATL and required options during VC2017 installation.
I would appreciate if anyone can suggest how to resolve this issue.
Thanks & Regards
Krishna Rao
|
|
|
|
|
|
Thank you very much Jochen Arndt. Now its working fine without any issues. Once again Thank you very much.
|
|
|
|
|
Hi
I need to create edit control on frame window.
please suggest to do so?
|
|
|
|
|
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.
|
|
|
|
|
Hello boys.
I use Visual Studio 2015.
Projekt setting: Use MFC in a Shared DLL.
For building from command line is used:
msbuild .\my_project.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64
All is working well, build runs OK.
I would like to ask you:
Is there a way how to switch (any parametr for msbuild) between Shared and Static MFC DLL?
for example:
msbuild .\my_project.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64 /p:ANYKEYWORD=Shared
or
msbuild .\my_project.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64 p:/ANYKEYWORD=Static
or anything like that.
I can not find a way, how to build project from command line and switch both possibilities: "Use MFC in a Shared DLL" and "Use MFC in a Static DLL" without opening IDE and switching it there manualy in project setting.
Thank you for advices and help.
Lubomir
|
|
|
|
|
There are two solutions:- Create another configuration like ReleaseStatic which has the required setting configured
- Open the vcxproj file with a text editor and lookup the property for the setting you want to override (
UseOfMfc=Static with VS 2017 here)
Note also that the Visual Studio Discussion Boards[^] would be the appropriate forum for such questions.
|
|
|
|
|
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
|
|
|
|
|
Bandwidth test - test memory bandwidth.
Especially important for PCIE capability. Different MB has different PCIE capability.
The CUDA adaptor performance is depend on the capability of PCIE. It could be the performance bottleneck.
On the following programming drills, the number of clock cycles necessary for computation and utilised memory bandwidth have to be computing.
(1) parallelization in the programs - using 256 threads
(2) improving the memory access modes
(3) testing the parallelization by using 512/1024
(4) utilizing BLOCKS in the computation
(5) utilizing shared memory
(6) improving the computation oerfdormance by using a Treesum algorithm
(7) resolving the memory band conflict issue, encountered in applying Treesum algorithm with the shared memory
|
|
|
|
|
Sorry, this site does not provide code to order.
|
|
|
|
|
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Praise
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
Copyright ©
CodeProject, 1999-2019
All Rights Reserved.