Visual C ++ .NET: What's New for MFC DEVELOPERS?

zhaozj2021-02-16  55

Visual C .NetWhat's New for MFC Developers?

By ANSON TSAO AND Walter Sullivan

[I have already planned to translate this article, but unfortunately, because the job is too busy, I can't help!] It has been three Years Since The Last Major Update to MFC And ATL. With all the press on Microsoft® .NET, MFC and C developers may be feeling left out. But do not worry-with the upcoming release of Visual Studio .NET, not only do developers using Visual C ® get a brand new IDE with tight integration for server-side development and a much improved C compiler, MFC and ATL have also received significant new features. The clear message is that MFC continues to be a great framework for developing sophisticated, rich client applications for all Windows® platforms. In this article, we'll provide you with a survey Of The New Features That You Can Use in your MFC Applications.

· There's a new MFC DLL (MFC70.DLL) that is no longer backward binary-compatible with MFC42.DLL, but your source is still compatible (although message maps have been made more type-safe, so that may break some code).

· MFC and ATL Are Much Better Integrated, And Common Classes Such As Cstring Are Now Shared Between The Two Libraries.

Header Files Are Synchronized with the Latest Platform SDK, Supporting Ui Features in Windows 2000 and Windows XP Such As Themes and Manifest Resources, Active Accessibility®, and New Common Dialog Boxes.

.

· New utility classes can be used in both MFC and ATL applications, such as regular expressions, performance counters support, and security. · Now there's support for consuming Web Services in MFC applications and writing Web Services and applications with ATL Server classes.

High-Performance Access to Databases Has Never Been Easier Using The New Ole DB Attributes and Classes.

· STL HAS BEEN Updated.

Integrating MFC and ATL

? Would not it be nice to use CString in thin ATL ActiveX® controls, or use ATL to implement COM objects in large MFC applications Well, now you can In MFC 7.0 a number of utility classes have been made shared classes:. CString, Cpoint, CRECT, CSIZE, AND CIMAGE. THESE CLASS CAN BE USED IN ATL with NO MFC Dependencies.

CString has been totally rewritten based on the template class CStringT <>. Different specializations of CStringT <> allow for different character types (char, wchar_t, TCHAR) and dependency on the C runtime (CRT). You can also provide custom memory management for Cstring classes.

MFC 7.0 adds a new string type called CFixedStringT <>. Fixed strings provide a user-defined amount of storage within the string itself so there's no need for additional memory allocation until the internal storage is exhausted. CFixedStringT's are very efficient when used as stack- Based Variables or As Keys in Associative Containers, Dramatical Reducing the number of heap-based allocations.

The Following Example Shows How To create a fixed string with a 1024-character Internal Buffer.

// allocating 1024 Character Internal Buffer

CfixedStringt string;

New UI Features and UpdatesMFC 7.0 has new DHTML dialog support, a new set of DHTML editor classes, new graphics API with GDI , updated bitmap support with CImage, a new common control wrapper class (CLinkCtrl), updated controls and dialogs for Windows 2000 and Windows XP, Enhanced ActiveX Control Containment, and Improved Type Safety In Message Maps. Let's Take a Look At Each of these New and Updated Features.DHSE New and Updated Features.dhtml Dialog Support and Editor Classes

The new DHTML dialog support brings graphics-rich HTML user interfaces to desktop applications. Now your desktop apps can have both the snazzy graphics that users have come to expect and the snappy interaction that's not possible with generic Web applications. MFC 7.0 has two classes to Support sale DHTML AS Dialog Boxes: CDHTMLDialog and Its Specialization, CMultipalog Boxes Can Load The HTML Pages Either from an Application's Resources ORANY VALID URL.

If you have used CHtmlView before, you know that setting and getting data from HTML elements requires you to traverse the IHTMLDocument2 COM objects, and responding to events from HTML controls is even more painful. CDHtmlDialog greatly simplifies the interaction with the HTML elements with a set Of extensions to the familiar ddx_ Dialog Data Exchange Macros and A DHTML Event Map.

The DDX_DHtml_ macros are used in DoDataExchange in much the same way as DDX_ macros are used in traditional dialog boxes. They allow you to set and get various properties of named HTML elements. For example, DDX_DHtml_CheckBox is bound to the value of a checkbox control, and DDX_DHtml_ElementInnerHtml sets and retrieves the HTML between the start and end tags of an element. to bind HTML elements to DDX, the elements must have the 'id =' attribute, as you can see in the following code.

Filename:

r EAD-ONLY

Void Cpropertiesdlg :: DODATAEXCHANGE (CDataExchange * PDX) {

CDHTMLDIALOG :: DODATAEXCHANGE (PDX);

// {{AFX_DATA_MAP (CPROPERTIESDLG)

//}} AFX_DATA_MAP

DDX_DHTML_ELEMENTINNNNNNERTEXT (PDX, _T ("filename"), m_strfilename);

DDX_DHTML_CHECKBOX (PDX, _T ("readonly"), m_nreadonly;}

To Respond to Html Control Events, you have to define a dhtml event map:

Begin_DHTML_EVENT_MAP (CDHTMLExPLOREDLG)

DHTML_EVENT_ONCLICK (_T ("Browse"), OnBrowse

DHTML_EVENT_CLASS (Dispid_htmlelementevents_Onmouseover,

T ("HOTELEMENT"), OnMouseOvelelement)

END_DHTML_EVENT_MAP ()

The event map is set up in the familiar MFC fashion, including DECLARE_DHTML_EVENT_MAP in the class definition and defining the map entries between BEGIN_DHTML_EVENT_MAP and END_DHTML_EVENT_MAP in the implementation file.

CMultiPageDHtmlDialog is useful for wizard and property page style dialog boxes. It allows you to load multiple pages into the same dialog boxes and respond to the events from each page using embedded event maps.This release also gives you a WYSIWYG DHTML editor to generate or modify HTML documents. This means that embedding HTML editing capability in your application is not much more difficult than adding a text control. Similar to the MFC 6.0 support for the rich edit control, MFC 7.0 exposes HTML editing through a control class, CHtmlEditCtrl, and the View / Document Combo of ChtmleditView / Chtmleditdoc. You Will, However, Still Need To Provide The Ui Elements To Change Fonts, Styles, Color, And So on.gdi

GDI is a new graphics subsystem for Windows and provides a new set of graphics APIs for rendering 2D graphics, images, and text. GDI is the only API for drawing in the .NET Framework, but in native C it is a complement to the current GDI to Provide More Advanced Rendering Capabilities.

Here's what you get with GDI : antialiased 2D drawing, alpha channel support, universal transformations and floating point coordinates, gradient brushes, cardinal splines, scalable regions, and a new programming model.

GDI is exposed through conventional C APIs, but there's also a set of C classes that encapsulates its functionality. Unfortunately, the GDI classes are not written in the style of MFC, instead they are named with the .NET Framework conventions. Nevertheless, they can be easily used in MFC apps. to use GDI , you have to include the gdiplus.h header file and link with gdiplus.lib. you also have to initialize the library before calling any of its functions. The GDI feature can be easily redistributed. GDI is standard on Windows XP. For Windows 98, Windows Me, Windows NT® 4.0, and Windows 2000, you can simply copy GdiPlus.DLL into your app's directory.GDI uses a different programming model from GDI. Instead of selecting brushes and pens . into a device context, in GDI you pass the pen or brush into every drawing command Graphics elements are no longer drawn with both the pen and brush together; they are outlined and filled using separate functions (such as DrawRectangle and FillRect Angle).

The Following Code Shows How you would do Draw An Outline of a Rectangle (3.5 inches × 4.4 inches) in response to onDraw.

Using namespace gdiplus;

Void CMYVIEW :: OnDraw (CDC * THEDC)

{

Graphics graphics (* hasdc);

Pen Pen (Color (128, 255, 0, 0), 2.0); // Alpha Value Set

// RealWorld Units

Graphics.SetPageUnit (Unitinch);

// Floating Point Coordinates

Graphics.drawRectangle (& Pen, Rectf (0.0F, 0.0F, 3.5F, 4.4F));

}

CIMAGE for Managing Bitmaps

The long-awaited update to bitmap support is also in this release of MFC. CImage can load and save images in JPEG, GIF, BMP, and PNG file formats. However, a number of the functions are not supported in older versions of Windows ( like Windows 95), and a few functions behave differently in different OSs, so make sure you check for version compatibility. CImage is a shared class, usable in both MFC and ATL. CImage also encapsulates the device-independent bitmap (DIB) section functionality Allowing You to Directly Manipulate Bitmap Bits.What Are The Cool Things You Can Do WITH CIMAGE?

· Alphablend Supports Pixel-Level Color Blending for Transparent and Semi-Transparent Effects.

· PLGBLT MAPS A Rectangle in The Bitmap to a Parallelogram in The Destination, Optionally with a bit mask.

· Transparentblt Specifies a color as the transparent color.

· Maskblt Combines The Bitmap with a Mask Bitmap When Drawing to the Destination.

CIMAGE :: getdc allows you to draw directly onto the cimage bitmap.

You Can Also Use Cimage Where MFC EXPECTS CBITMAP BY DOING THE FOLLOWING:

CiMage Image;

Image.Load ("Test.gif");

CBITMAP * Pbitmap = cbitmap :: fromHandle (image.m_hbitmap);

CLINKCTRL Common Control Wrapper Class

The only new common control wrapper class added to MFC 7.0 is CLinkCtrl. A convenient way of placing hyperlinks in windows, it is only available for Windows XP, wrapping the Win32® SYSLINK control. CLinkCtrl supports one or more hyperlink anchors and can link to any valid URL. You can respond to the hyperlink clicks by responding to OnNotify (NM_CLICK and NM_RETURN) messages.Windows 2000 and Windows XP SupportAll Win32 and common controls, CCheckListbox, file, and print dialog boxes have been updated to include Windows 2000 And Windows XP Support. CWnd Methods Have Also Been Updated to Reflect New UI Features Such As Layered Windows and Animated Windows. Clistview Now Supports Tiled Views on Windows XP.

MFC 7.0 apps are now created with a default manifest resource, allowing them to respond to Windows XP themes right out of the box. You can further override individual themes for controls by calling SetWindowTheme. As you can see in Figure 1, Windows XP themes change The Visual Styles of The Caption Bar, Scroll Bars, And Other Aspects of A Window.figure 1 Windows XP Themes

CWnd has been updated to add Active Accessibility support. Calling EnableActiveAccessibility allows you to override the default support to add your own non-windowed elements. MFC handles normal windows as well as windowless ActiveX controls. Windowless controls are lightweight ActiveX controls that are optimized for faster Rendering.

Windows 2000 and Windows XP have new File Open and Save dialog boxes (see Figure 2). MFC 7.0 applications using the CFileDialog class automatically take advantage of the new user interface.Figure 2 New File Open Dialog Box

For printing support, Windows 2000 has more extensible print property sheets (see Figure 3), replacing the older print dialog box. The new CPrintDialogEx encapsulates this functionality. You can customize the print property sheet by either extending the lower portion of the General page or adding your own property sheets.Figure 3 Print Property SheetsEnhanced ActiveX Control ContainmentMFC 7.0 added support for containing windowless ActiveX controls and the control container is now overridable. Many new control containers such as Visual Basic® 6.0 can take advantage of this performance optimization, and now Mfc Does, Too. ATL HAS Support for Building Windowless ActiveX Controls.

Now that the container hosts ActiveX controls, the control container is accessible to your application. You can override pieces of the COleControlSite to add custom containment behavior. This greatly increases the flexibility you now have with MFC.Type-safe Message Maps

And finally, MFC 7.0 message maps have been made more type-safe by providing stricter type checking of return values ​​and parameters of the message handler functions. This will alert the developer to unsafe handlers that previous versions of MFC let slip. For example, it used to be OK to return void (instead of LRESULT) on an ON_MESSAGE or ON_REGISTERED_MESSAGE handler, and the compiler would not generate any warning. With MFC 7.0, the compiler will generate an error message.Smorgasbord of Utilities

New utilities in MFC include a regular expression class, 64-bit date and time functions, template collection classes, security classes, wrappers for the Win32 CryptoAPI functions, classes and macros to support performance counters, and support for thread pools. In the next few sections we'll briefly describe these new utilities.Regular Expression ClassThe regular expression class adds to MFC's string searching and pattern matching capabilities Regular expression support is provided by two templates:.. CAtlRegExp and CAtlReMatchContext These templates can be specialized to support both Multibyte Character Set (MBCS) and UNICode strings.

To Use Regular Expressions, CATLREGEXP MUST FIRSSIALIZED with The Search Expression Using The Parse Method, As You Can See Here:

CATLREGEXP <> Re; // Using the default character trait

Re.Parse ("ab.d");

CATLRematchContext MC;

Re.match ("Abcd", & MC); // Returns True, Successful Match

Re.match ("BBCD", & MC); // Returns False, NO Match

Then the CAtlRegExp object can be used to match against a text string. The results of any matches are returned to the CAtlReMatchContext object. If matches are found in the string, CAtlReMatchContext :: GetMatch returns the starting and ending positions of the matched sequences.64 -bit Time and Date Functions

Your code may be safe from the Year 2000 bug, but did you know that the time and date functions in the standard C runtime library will fail after 19:14:07 on January 18, 2038? The new 64-bit time and date functions Can be used to represent a date Until Midnight of Decemr 31, 3000.

CTime and CTimeSpan have new methods to use 64-bit time / date values, including CTimeSpan :: GetDays64, CTimeSpan :: GetTotalHours64, CTimeSpan :: GetHours64, CTimeSpan :: Serialize64, CTime :: GetTime64, and CTime :: Serialize64.All these methods use the __int64 native compiler type C runtime library functions have also been updated to support 64-bit time / date: _ctime64, _wctime64, _ftime64, _futime64, _gmtime64, _localtime64, _time64, _utime64, _wutime64; _findfirst64, _wfindfirst64, _findnext64, _wfindnext64. ; and _stat64, _wstat64.atl collections and array classes

ATL 7.0 adds five new template collection classes: CAtlArray, CAtlList, CAtlMap, CRBMap, and CRBMultiMap (described in Figure 4) Why do you need more collection classes when you already have MFC and STL collections The new classes expand on the existing collections.? to allow for element types that are not 100 percent compatible with primitive type comparison and copying semantics such as smart pointers, auto pointers, and so on. The new collections accomplish this by using element trait classes, which define how the elements are copied, moved ., compared, and hashed A number of element traits are already defined for commonly used element types:. CAutoPtrElementTraits, CAutoVectorPtrElementTraits, CComQIPtrElementTraits, CStringElementTraits, and so on Unlike MFC collections, ATL collections do not support serialization.

To Use the collections, specify Both The element type and element trait in the templates, Like So:

CRBMAP ,

Cautoptr , CautopTrelementTraits >

This defines a dictionary, mapping CString's to CMyObject auto pointers CMyObject's elements are deleted automatically when they are removed from the collection.Security ClassesSecurity classes provide wrappers for all the common Windows NT security structures for access control ATL 7.0 defines wrappers for..:

· Access Control Lists with CaCl

· Discretionary Access Control Lists with cdacl

· SYSTEM Access Control Lists with csacl

· Security Identifier (SID) with csid

· Access token with caccriptiontoken

· Access token Groups with ctokengroups

· Access Token Privileges with ctokenprivileges

· Security Descriptors with csecuritydesc

· Security Attributes with CsecurityAttributes

A Number of Global Functions

Unfortunately, ATL 7.0 Does Not Provide Higher-Level Abstractions To The Windows NT Security Model

Cryptographic classes are wrappers to the Win32 CryptoAPI, providing functionality for encrypting, decrypting, hashing, digital signature, and key management (see Figure 5). Just like the security classes, you have to understand the Win32 CryptoAPI to make use of these classes. Performance Counters

Performance counters are very useful for monitoring the health and performance of a running application by providing various operating statistics at runtime. A new set of classes and macros have been added to support performance counters, and they are very easy to add into your own application using C Attributes from Your Application, You NEED TO IMPLEMENT THREE TYPES OF Objects: a Performance Monitor Object Manager, Performance Objects, and Performance Counters.

There is usually only one Performance Monitor Object Manager in your app;. It exposes a number of Performance Objects, each contains one or more Performance Counters The performance counter classes need to reside in a DLL, so you may need to create a separate DLL for Your app for the counter.

Here's How To Define The Performance Monitor Object Manager:

[Perfmon (Name = "MyApplication", Register = true)]

Class CMYApplicationPerfmon

{

}

Figure 6 shows how to define a Performance Object and Performance Counter.

To Use the counter itize the Performance Monitor Object Manager and create an instance of the Performance Object, as you can see in Figure 7.

With the Performance Object, you can update The Performance Counters Directly As Member of the Performance Object:

Void setCounter (Ulong Value)

{

IF (g_pstatsobject)

g_pstatsObject-> samplecounter = value;

}

That's it! If you do not want to use C attributes, there are corresponding classes and macros that you can use instead. You should also be aware that setting counters to specific values ​​is generally safe without having to worry about thread synchronization, but performing calculations on the counters, such as incrementing or decrementing, requires the use of atomic operations such as InterlockedIncrement or synchronization using critical sections.Thread PoolsThread pools are very useful in high-performance server apps where you want to maximize the concurrency of your app while minimizing the context switching overhead. The optimal number of concurrent threads is generally a multiple of the number of processors on your server, and the thread pool allows you to queue up worker tasks to be executed.

The MFC 7.0 thread pool implementation is based on the Windows NT I / O Completion Port. CThreadPool is a templated class that you can specialize with your own worker class. When a thread is available, your worker's Execute function will be called. Workers are queued And Executed on a FIFO Basis.

To Define your worker class, you need to follow the worker archtype by defining:

· Initialize, Which is Called Once Per thread.

· Execute, Which is Called Once for Every Request Queued.

Terminate, Which is Called Once Per thread.

In The Worker Class, Declare The Requesttype TypeDef, Which Defines The Type of Data To Be Processed by Execute.

RequestType is an opaque type that can not be larger than sizeof (ULONG_PTR) (that is, 32 bits on x86 machines), so unfortunately you can not use large primitive types (such as double) or class instances.The following example defines a worker class, CMYWORKER, THAT WILL BE. The Request Type as a Pointer to CMYDATA.

Class CMYWORKER

{

PUBLIC:

TypedEf CMYDATA * REQUESTTYPE;

BOOL Initialize (Void * initparam);

Void Execute (CMYDATA * REQUEST, VOID * INTPARAM, OVERLAPPED * POVERLAPPED);

Void Terminate (void * initparam);

}

This Is How You Initialize and Queue A Task for the Thread Pool:

Cthreadpool threadpool;

Threadpool.initialize ();

ThreadPool.QueueRequest (New CMYDATA ());

Threadpool.shutdown (1000L);

Web Services, Web Applications, Andnetwork Classes

New in MFC 7.0 is support for consuming Web Services in MFC applications, writing Web Services, and writing Web applications with ATL server classes. In the following sections we'll show you how to generate code to access Web Services and call methods exposed by the service. We'll also explain how to generate HTML and inject it into an IStream with the support for HTML generation in MFC 7.0, how to use the MFC 7.0 new lightweight HTTP client, and how to send mail from MFC applications with new support for SMTP AND MIME-Encode Messages in Mfc 7.0.consuming Web Services in MFC

The Microsoft .NET vision centers on Web Services, where distributed systems on the Internet provide software building blocks that can be utilized through XML-based SOAP remote procedure calls, and UDDI / WDSL to discover and describe the available services. Web Services promise a whole new class of applications such as the Microsoft service codenamed "HailStorm," where the user can really take advantage of the ubiquity of the Internet. By integrating MFC desktop applications to Web Services, you can take advantage of server-based services and not be limited to a Web-based user interface. Unlike DCOM, Web Services can be easily accessed through firewalls and provide truly loosely coupled applications.Using Web Services in MFC is not much more difficult than using #import with COM objects. SProxy.exe is a command -Line Tool That Generates C Client Code to Access Web Services. The generated code is a proxy class thing encapsulates everything That You need to do in order to call the remote SERVICE.

Here's an esample of using sproxy.exe to generate myService.h from the Web service Exposed by an ATL Server:

Sproxy /out:myService.h

http://myserver/myservice.dll? Handler = GenmyServiceWSDL

To call the methods exposed by the Web Service, Simply Instantiate An Instance of The Proxy Class and Call ITS Methods, Just Like a Native C Class!

#include "myservice.h"

•••••

MyService :: CMYSERVICE Service;

HRESULT HR = Service.MYMETHOD (CCOMBSTR (L "a parameter");

HTML Generation Support

HTML generation support is provided by the CHtmlGen class and CHtmlGenBase <> template. CHtmlGen allows you to inject fully formed HTML into an IStream. To use CHtmlGen, simply initialize it with an IStream and call the various methods to generate the HTML tags, as you Can see in the following code.chtmlgen out;

Out.initialize (astream);

Out.html ();

Out.Head ();

Out.Title ("Test HTML");

Out.headend ();

Out.body ();

Out.a ("http://www.microsoft.com", "Microsoft");

Out.bodynd ();

Out.htmlend ();

A helper class caled atlhtmlattrs is buy to construct and hold name / value pairs of html attributes.http client

CAtlHttpClient is a lightweight HTTP client that can send requests to and receive responses from HTTP servers. CAtlHttpClient supports manually set proxies and various authentication schemes (currently, Basic and NTLM implementations are supplied). CAtlHttpClient makes synchronous HTTP requests, so you need multiple threads and .

Catlhttpclient client;

Client.navigate (_t (http://www.microsoft.com);

CSTRING ContentType;

Client.getHeaderValue (_T ("content-type"), contenttype);

BYTE * PBODY = client.getBody ();

Authentication is supported by CBasicAuthObject and CNTLMAuthObject. To use CBasicAuthObject, you must also supply a class that implements IAuthInfo, which returns the user domain, name, and password. CNTLMAuthObject defaults to using your current user name and password, but you can also supply an implementation of IAuthInfo for alternate identities. Custom authentication schemes can be implemented by deriving from CAtlBaseAuthObject.The following code adds the NTLM authentication scheme to an HTTP client. Without additional setup, the client will use the current logged-on user's identity for authentication.

CNTLMAUTHOBJECT NTLMAUTH;

Client.addAuthObject (_T ("ntlm"), & ntlmauth;

SMTP Support and Mime-Encode Merssis Support

The new SMTP support in MFC 7.0 allows you to send mail from MFC applications without using MAPI, Outlook®, or any other mail client. CSMTPConnection connects directly to an SMTP server and allows you to send MIME-encoded e-mail.

The mail message can be constructed using the CMimeMessage class, which also allows you to attach files, raw data, and other MIME-encoded messages. CMimeMessage supports all the common header fields including sender, sender name, recipients, CC, BCC, subject, Priority, And Content Type. this shows how to construct a mime message:

CmimeMessage Message;

Message.set Shender (_T ("someone@microsoft.com"));

Message.addreceIpient (receipient);

Message.setSubject (_T ("a test message");

Message.addText (_T ("this is a test message");

CSMTPConnection Connection;

Connection.Connect (Somesmtpserver);

Connection.sendMessage (MESSAGE);

High-Performance Database with OLE DB

ATL's OLE DB Consumer Templates are well-known for their superior performance and ease of use in accessing the OLE DB API. In MFC 7.0 it's even easier to use the ATL OLE DB Consumer Templates through C attributes. Attributes are a declarative syntax you place on a class, class member, or in global scope to give the compiler information about that object. The compiler can then generate code, generate metadata, or otherwise respond to the information in the attributes.For OLE DB, there are five attributes you will use : [db_source], [db_command], [db_column], [db_accessor], [db_table], and [db_param] These map closely to the OLE DB Consumer Template classes and maps, so they're probably somewhat intuitive Figure 8 is.. .

The code in Figure 8 declares a class which opens a connection to the database with the provided command. You instantiate it as you would any other normal C class. As you call the class's MoveNext function, the first three columns get automatically bound to the corresponding member variables. Binding by ordinal is a performance optimization. If you want to free yourself from the layout of the row, you can bind by name and let the compiler look it up. The use of attributes simplifies data access using OLE DB. Since attributes Just Expand to C Code, You Can Pass the Compiler A Command-Line Switch To See The Code After The Attributes Are Expanded.Updates To STL

New hash_map, hash_multimap, and hash_set classes are new hash-table-based extension classes in the Standard Template Library (STL). They are similar to std :: map, std :: multimap, and std :: set, but with different performance characteristics. Hash-table-based collections generally have faster lookup performance than the binary tree-based collections. Unlike map and set, the hash classes are not ordered containers.The latest STL implementation also fixes the known multithreading bugs in previous versions of the library , specifically in the map / set implementations and basic_string. in Visual C 6.0, basic_string was reference-counted, but the implementation was not thread-safe. in this version of STL, basic_string has been changed to a strictly copied implementation, eliminating the need To do thread-safen.

And Finally, STL HAS Better DLL Support. STL No Longer Holds Local Static Data Members, So They Can Be Exported from Dlls Without Problems.conClusion

Visual Studio .NET is a giant step forward for enhancing programmer productivity, and the Microsoft .NET initiative will likely change the programming landscape in the coming years. With this release of Visual C , MFC 7.0 has been updated to live in this new world of Web Services, while gaining better C standard compliance, full integration with ATL, and numerous enhancements to UI and utility classes. Best of all, these new features can be added to your existing MFC applications.


New Post(0)