サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
災害への備え
www.codeguru.com
Introduction Usually, it’s not needed and not a very good idea to change the default font in property sheets. However, sometimes that may be a requirement. Let’s say, one client wants some particular corporate font or simply we must use very large fonts in an application for kids or for grandpa. That’s it, we have to solve the problem and change the font. First attempts Some people could say: “Tha
Terms of Use<\/a> and Privacy Policy<\/a>.","subscribe_button":"Subscribe"}},"identifier":"665996758cc4c","campaign_id":"19717","campaign_type":"sidebar","popup_type":null,"newsletters":["developer-insider"],"behavior":{"opt_in_enabled":true},"appearance":{"colors":{"primary":"#238fee","button":{"text":"#fff","hover":{"background":"#DBDBDB","text":"#fff"},"toggle":{"background":"#238fee","text":"#
With the new C++0x standardization process about to have the final technical vote we sit down with C++ creator Bjarne Stroustrup to talk about C++0x, new features and future plans. Danny Kalev: Where is the C++0x standardization process standing these days? How close are we to a new International Standard? Bjarne Stroustrup: The final technical vote is scheduled for March 26, 2011. I see no reason
This article was contributed by Tom Archer and Rick Leinecker. Preface This class is meant as a very simple alternative to the more robust, feature-rich CSerialPort class presented by Remon Spekreijse. In other words, if you need a very simple class to read or write data to the serial port, then this class might be perfect for you. However, if you need more control over just how the serial communi
Microsoft has added two interesting new API’s to Windows 7: Direct2D and DirectWrite. Direct2D replaces GDI and GDI+. It can render more accurate results and has support for hardware acceleration on your graphics hardware. DirectWrite is a new API to render text. It makes it easy to render paragraphs of text that can contain different formatting, coloring, fonts etc. It supports horizontal and ver
Environment: Visual C++ 6.0, Windows 98/NT/2000 Section 1: Introduction In this article, I’ll show you how to build a SOAP client using Visual C++. This tutorial gives you a hands-on introduction to using the SOAP API. SOAP is emerging as a very popular protocol for exchanging information. It’s relatively simple and designed to work with HTTP, SMTP, and other such protocols. Prerequisites: You sho
1. Introduction Meta-programming means writing a program that can generate other programs. This technique is used in different ways in different languages. It can also be said to be partial evaluation, a method of transforming one program into another or, in other words, automating programming [11]. A typical example of meta-programming is compiler construction tools such as Lex and YACC, which ge
Introduction This article follows on from the Active Script Hosting discussions of Andrew Garbuzov. Before you start on adding debugger support to your active script it’s probably a good idea to have active scripts up and running…. The code in this article builds on the Microsoft sample : "MFCAXS.EXE: MFCAXS Implements an Active Script Host Using MFC". This sample on its own is really a very good
This artical suggests yet another way to edit subitems in CListView or CListCtrl. It uses LVM_GETEDITCONTROL message to return the handle of the actual edit control used by MFC and then subclasses the handle in order to re-postition the control over the subitem you wish to edit. The sample download program was written using MSVC 5.0 and includes a class called CListEditView, derived from CListView
Managing Low-Level Keyboard Hooks with the Windows API for VB .NET I am amazed at the overwhelming and disproportionately high number of email responses I get about hooking the keyboard. Many people in a diverse group of industries have legitimate reasons for wanting to block certain key combinations. Last November, I wrote about low-level keyboard hooks for VB6 (see Managing Low-Level Keyboard Ho
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More. Introduction In computer vision, one usually needs access to video frames as they are streamed in order to analyze or process them in some way. This article shows how to obtain a single bitmap from a video stream using Microsoft Directshow. A prevous arti
Introduction This article will showcase the technique to host WPF content in an MFC-based application. The main usage of this implementation is to enhance the graphical appearance of conventional Win32/MFC-based applications. The demo program that comes along with this article will host an animated WPF clock in an MFC dialog program. Development Tools & Library To build and run the demo program, t
For one of my projects, I needed the so-called Delaunay triangulation of a set of points. Loosely put, the Delaunay triangulation is the most efficient way to draw triangles between pairs of points. Each point is connected by lines to its closest neighbours, in such a way that all line parts form triangles, and do not intersect otherwise. No triangles overlap; in fact, the surface is completely co
What It Does This is a class for interfacing with the Windows Map Network Drive APIs. Background/Description This class was originally written to aid me during a contract for writing a startup automation application on Windows 2000. Since then, it has been used or tested with Windows XP, XP64 2003, and Vista beta2. The class was structured around some C++ MSDN documents/examples of the network API
Introduction Interfaces Step 1:Create the IDL file Step 2:Generating the type library Step 3:Derive from IAdd Step 4:Implement the methods of IAdd Step 5:Implementing IUnkown Step 6:Factory Step 7:Implementing the methods of IClassFactory Step 8:Implementing DllGetClassObject Step 9:Implementing DllCanUnloadNow Step 10:DllRegisterServer-UnregisterServer Step 11:Inserting the IDL file into the Work
My previous article, “How Do Windows NT System Calls REALLY Work?”, explains how Windows NT calls system services by using an ‘int 2e’ software interrupt. Newer platforms, such as Windows XP and 2003, normally use another method to call system services. As explained in my previous article, the ‘int 2e’ instruction uses both an interrupt gate and a code segment descriptor to find the interrupt serv
If you often create VC++ projects that are very similar, such as DLLs that follow some guidelines or rules for common integration in an application (like a plug-in based application), you might get tired of creating a default VC++ project and then doing the same changes to it over and over again. In that case, perhaps it’s time for you to write a VC++ wizard that automatically generates all that y
This article illustrates the implementation of a simple OLE container that is used to host a transparent or windowed Flash Player Object. Part 1. OLE Interfaces The simplest OLE control implementation for an ActiveX object should consist of several interfaces: IOleClientSite IOleInPlaceSiteWindowless IOleInPlaceFrame IStorage My implementation of the OLE container is called COleContainerWnd. It is
Environment: VC6 SP4, NT4 SP4, Windows 2000, Windows 9x/Me Introduction Intercepting Win32 API calls has always been a challenging subject among most of the Windows developers and I have to admit, it’s been one of my favorite topics. The term Hooking represents a fundamental technique of getting control over a particular piece of code execution. It provides an straightforward mechanism that can ea
Introduction CGEnabledView is a view class designed to wrap all OpenGL stuff (initialization, managing of Rendering Contexts and palettes, destruction, etc.) allowing the creation of multiple views in a MDI application. CGEnabledView also offers these services: a function to get various information about OpenGL implementation. manages internally the creation of up to 20 stock display list and offe
Environment: Windows 2000 / Windows ME / IE 5.0+ I have a lot of experience in programming low-level MSHTML and I always see questions on how one can use MSHTML to parse HTML and then access elements via the DOM. Well, here it is. I use IMarkupServices provided by MSHTML. There is no need for an IOleClientSite or any sort of embedding. I think is is just about as light as anyone can get. In future
Peeking into Password Edit ‘& Internet Explorer – Super Password Spy++ . Environment: VC6/VC7, MS Platform Core SDK, IE4.0+, WinNT/2K/XP ONLY (Test has passed on English/Chinese/Japanese Win2k/XP with IE6.0+SP1) Key Technology Used: Windows Hook, IE COM Object, Win2k Security Context Applicable Article Category in CodeGuru: IE Programming, Tool, System, Miscellaneous Summary If you need a tool to
In the CodeGuru newsletter, I brought up the topic of constant pointers and pointers to constants. While this is a beginning level topic, it is one that some advanced-level people goof up in their code. Pointer contants and contant pointers are also something that many people simply don’t use. If you have a value in your program and it should not change, or if you have a pointer and you don’t want
C# and Java are two very popular programming languages, each regularly topping the charts of the top 5 most widely use programming languages in the world. Both programming languages share a similar syntax and structure, and are often considered to be part of the same family of programming languages -...
Introduction Microsoft Intermediate Language (MSIL) is a language used as the output of a number of compilers (C#, VB, .NET, and so forth). The ILDasm (Intermediate Language Disassembler) program that ships with the .NET Framework SDK (FrameworkSDKBinildasm.exe) allows the user to see MSIL code in human-readable format. By using this utility, we can open any .NET executable file (EXE or DLL) and s
Has your love of gaming sparked interest in possibly working in the video game industry? If so, here are some of the most popular video game careers you may want to pursue. Careers In The Video Game...
このページを最初にブックマークしてみませんか?
『CodeGuru : codeguru』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く