I seek to understand ATL better. When I create a Win32 Project (App or DLL)
the option to add support for ATL (or MFC) is not selectable. It is only
selectable for a Win32 Console App. However, it seems that ATL-MFC Shared
classes, e.g. CString, CStringT, and the new CRect, can be added to the
project and work fine. All that is required is to include the needed ATL
header (e.g. #include <atlbase.h>, #include <atlcom.h>, #include <atlstr.h>
etc.).
I have two questions related to this:
1. Can these new ATL-MFC Shared classes such as CString, CStringT, CRect,
CImage, etc. be used in any VC++ Win32 (non-MFC, non-ATL) Project whether it
be App or DLL?
2. If these ATL-MFC Shared classes can be used in any Win32 project, then
what does the Add Support for: ATL checkbox refer to? It does not seem that
it refers to being able to use Classes such as the new CStringT and CRect
(ATL MFC Shared classes). So what does it refer to?
Thank You
--
Greg McPherran www.McPherran.com 3 3083
Regarding my question in this thread:
See http://msdn.microsoft.com/library/de...yreference.asp
Based, on the above information, I seek to understand if and how these
Shared ATL-MFC are distinguished from New Win32 C++ Project --> "Add Support
for: ATL" (checkbox).
"Greg" wrote: I seek to understand ATL better. When I create a Win32 Project (App or DLL) the option to add support for ATL (or MFC) is not selectable. It is only selectable for a Win32 Console App. However, it seems that ATL-MFC Shared classes, e.g. CString, CStringT, and the new CRect, can be added to the project and work fine. All that is required is to include the needed ATL header (e.g. #include <atlbase.h>, #include <atlcom.h>, #include <atlstr.h> etc.).
I have two questions related to this:
1. Can these new ATL-MFC Shared classes such as CString, CStringT, CRect, CImage, etc. be used in any VC++ Win32 (non-MFC, non-ATL) Project whether it be App or DLL?
2. If these ATL-MFC Shared classes can be used in any Win32 project, then what does the Add Support for: ATL checkbox refer to? It does not seem that it refers to being able to use Classes such as the new CStringT and CRect (ATL MFC Shared classes). So what does it refer to?
Thank You -- Greg McPherran www.McPherran.com
Greg wrote: Regarding my question in this thread:
See http://msdn.microsoft.com/library/de...yreference.asp
Based, on the above information, I seek to understand if and how these Shared ATL-MFC are distinguished from New Win32 C++ Project --> "Add Support for: ATL" (checkbox).
You might want to also post this question to microsoft.publi c.vc.atl.
-cd
Yes, but my point is that apparently these classes are not considered part of
ATL even though they're called "ATL". Apparently, these classes are now
general classes available for any VC++ program including just a minimal Win32. http://msdn.microsoft.com/library/de...yreference.asp
I shall post in ATL though also and thank you for the suggestion.
"Carl Daniel [VC++ MVP]" wrote: Greg wrote: Regarding my question in this thread:
See http://msdn.microsoft.com/library/de...yreference.asp
Based, on the above information, I seek to understand if and how these Shared ATL-MFC are distinguished from New Win32 C++ Project --> "Add Support for: ATL" (checkbox).
You might want to also post this question to microsoft.publi c.vc.atl.
-cd This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: News Admin |
last post by:
I have a bunch of classes, instances of which that need to live in shared
memory and be accessed by multiple processes. This means that they cannot
have a vtable as the addresses in it will be in the address space of the
process that originally created the shared memory and therefore unavailable
to the other processes that may wish to use these instances of the classes.
Every so often I forget this and introduce a virtual function causing...
|
by: Willem van Rumpt |
last post by:
Hi all,
I was wondering: Why isn't it possible to write "static classes". By
this I mean a class that will _never_ get instantiated, but will always
work on and with other static members of its class.
The class would in effect behave like a "classic" win32 dll and its
exported functions, only this time referred by
<classname>.<ExportedFunction>
I know (how) I can achieve the same results with a singleton, but why
|
by: Siddharth Jain |
last post by:
hello
I am trying to enumerate the shared folders on a server using the
NetShareEnum function.
Now, when the server has a password set to access the shared folders,
the function returns system error code 5 (access denied).
However, if I know the password to access the shares, how can I specify
that in my program?
|
by: Shiraz |
last post by:
Hi
I have a question regarding the functionality of merge modules. Since this
relates to my previous queries, I'll just give you a brief background on the
topic. I had to make an installer for an application which was to share dlls
with another application and these dlls were not self-registering. Someone on
the forum suggested a few methods for the Visual studio installer, but since
I had been using another software, a certain...
|
by: ransoma22 |
last post by:
I developing an application that receive SMS from a connected GSM
handphone, e.g Siemens M55, Nokia 6230,etc through the data cable.
The application(VB.NET) will receive the SMS automatically, process and
output to the screen in my application when a message arrived. But the
problem is how do I read the SMS message immediately when it arrived
without my handphone BeEPINg for new message ? I read up the AT
commands, but when getting down...
| |
by: Michael Sperlle |
last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems
to need changes to the kernel before it can be installed, and I have no
intention of going through whatever hell that would cause.
If I could create a large file that could be encrypted, and maybe add
files to it by appending them and putting in some kind of delimiter
between files, maybe a homemade version of truecrypt could be constructed.
Any idea what it...
|
by: Bill Nguyen |
last post by:
I ran into this error using ClickOne to deploy a .NET 2.0 app.
CrystalReports for .NET 2.0 is included in the delployment.
The error indicates that an incorrect version of CrystalReports.Engine DLL
is added to the client GAC.
My question is how to obtain a correct redistributable package of R10 so
that I can automate the delpoyment.
Thanks
Bill
|
by: GHUM |
last post by:
The compile works, BUT linking fails:
2.5\Release\psycopg\_psycopg.def -Lc:\python25\libs -Lc:
\python25\PCBuild -Lc:/p
ostgres/83RC2/lib -lpython25 -lpq -lws2_32 -ladvapi32 -o build
\lib.win32-2.5\psy
copg2\_psycopg.pyd
c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lpq
collect2: ld returned 1 exit status
|
by: shobhitguptait |
last post by:
How to Run C#.NET Windows App on N/W with centralized DB using SQL SERVER 2000
Hello All...i m really grate full to c such a website where developers try to help people like us who face problems in s/w develepment...I am shobhit Gupta...23 years of age prusuing B.Tech in I.T. Engg. Final Year from Kurukshetra University, Kurukshetra. Recently, i have been working on a project which is to be implemented in a hospital for real life use...Its a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |