What is the 64 bit version of GetTextExtent

I'm porting our 32 bit windows app to 64 bit, and trying to clean up all the warnings. I have found calls in our code to CDC::GetTextExtent which take an int as a parameter.

I notice that GetTextExtent simply calls GetTextExtentPoint32. The 32 scares me, so i started looking for a 64 bit version of GetTextExtent but i can't find one.

Can anyone tell me is GetTextExtent totally safe in 64 bit? Or is there some other way we're supposed to get that information?

Thanks

-------------Problems Reply------------

According to the documentation, GetTextExtentPoint32 was added in 32-bit operating systems in order to provider more accurate results (I guess GetTextExtentPoint had a few limitations). All of the parameters are identical, so it doesn't have anything to do with 16-bit vs 32-bit vs 64-bit as far as I can tell. It would have made more sense to call it GetTextExtentPointEx or something, but what's done is done.

Category:windows Views:3 Time:2010-01-22
Tags: windows 64bit

Related post

  • Graphics.MeasureString returns different values than Win32 GetTextExtent 2008-10-15

    i've been trying to find a method in C# to measure the size of a string. The standard method to measure a string in Win32 is to use GetTextExtent. The real goal is to find the average width and height of a font character. The standard method to find

  • Is there any trick that allows to use Management Studio's (ver. 2008) IntelliSense feature with earlier versions of SQL Server? 2008-08-07

    New version of Management Studio (i.e. the one that ships with SQL Server 2008) finally has a Transact-SQL IntelliSense feature. However, out-of-the-box it only works with SQL Server 2008 instances. Is there some workaround for this? --------------So

  • Version control PHP Web Project 2008-08-07

    We have a php project that we would like to version control. Right now there are three of us working on a "Dev" version of the project that all have our Eclipse linked to it with just an external folder, and thus no version control. What is the right

  • ASP.NET version of Joomla 2008-08-07

    Does anyone ever found/used an ASP.NET application similar to Joomla? I need to set up a quick and dirty CMS on a Windows Server and our client doesn't want us to use something else than ASP.NET. Thanks! --------------Solutions------------- Here is a

  • Gathering OS and tool version numbers for build archive purposes 2008-08-08

    Our automated build machine needs to archive the version numbers of the OS plus various tools used during each build. (In case we ever need to replicate exactly the same build later on, perhaps when the machine is long dead.) I see the command "msinf

  • How to avoid redefining VERSION, PACKAGE, etc 2008-08-10

    I haven't seen any questions relating to GNU autoconf/automake builds, but I'm hoping at least some of you out there are familiar with it. Here goes: I have a project (I'll call it myproject) that includes another project (vendor). The vendor project

  • Learning Version Control, and learning it well 2008-08-12

    Where should I start learning about version control systems? I've used SVN, Team Foundation, and Sourcesafe in the past but I don't really feel like I grasp it completely, and my team doesn't seem to grasp it either. Which points are the most importa

  • Using C#/WIA version 2.0 on Vista to Scan 2008-08-12

    I want to implement a paperless filing system and was looking to use WIA with C# for the image acquisition. There are quite a few sample projects on CodeProject, etc. However, after downloading every one of them that I can find, I have run into a pro

  • What version of .Net framework ships with SQL Server 2008? 2008-08-14

    Does SQL Server 2008 ship with the .NET 3.5 CLR, so that stored procedures written in CLR can use 3.5 features? --------------Solutions------------- Actually it ships with .NET 3.5 SP1. So yes, the stored procs can use 3.5 features and libraries. I s

  • Design debate: what are good ways to store and manipulate versioned objects? 2008-08-14

    I am intentionally leaving this quite vague at first. I'm looking for discussion and what issues are important more than I'm looking for hard answers. I'm in the middle of designing an app that does something like portfolio management. The design I h

  • SVN Revision Version in .NET Assembly w/ out CC.NET 2008-08-15

    Is there any way to include the SVN repository revision number in the version string of a .NET assembly? Something like Major.Minor.SVNRev I've seen mention of doing this with something like CC.NET (although on ASP.NET actually), but is there any way

  • Do you use version control other than for source code? 2008-08-18

    I've found SVN to be extremely useful for documentation, personal files, among other non-source code uses. What other practical uses have you found to version control systems in general? --------------Solutions------------- I've seen version control

  • How best to use File Version and Assembly Version? 2008-08-18

    In .NET there are two version numbers available when building a project, File Version and Assembly Version. How are you using these numbers? Keeping them the same? Auto-incrementing one, but manually changing the other? Also what about the AssemblyIn

  • SSRS - Uninstall Trial Version of VS Business Intelligence 2008-08-19

    I want to know how to fully uninstall MSSQL 2005. I've been using the Trial version of SQL Server Reporting Services for a while now. My company finally purchased the software from an online distributor, and for support of Oracle, we needed to upgrad

  • Structure of Projects in Version Control 2008-08-19

    I know there are at least 10 different ways to structure project in version control. I'm curious what some methods being used are and which ones work for you. I've worked with SVN, TFS, and currently/unfortunately VSS. I've seen version control imple

  • Warning: Found conflicts between different versions of the same dependent assembly 2008-08-20

    I am currently developing a .NET application, which consists of 20 projects. Some of those projects are compiled using .NET 3.5, some others are still .NET 2.0 projects (so far no problem). The problem is that if I include an external component I alw

  • Version track, automate DB schema changes with django 2008-08-21

    I'm currently looking at the Python framework Django for future db-based web apps as well as for a port of some apps currently written in PHP. One of the nastier issues during my last years was keeping track of database schema changes and deploying t

  • Version detection with Silverlight 2008-08-21

    How can I efficiently and effectively detect the version and, for that matter, any available information about the instance of Silverlight currently running on the browser? --------------Solutions------------- The Silverlight control only has an IsVe

  • VBScript/IIS - How do I automatically set ASP.NET version for a particular website 2008-08-21

    I need to script the creation of app pools and websites on IIS 6.0. I have been able to create these using adsutil.vbs and iisweb.vbs, but don't know how to set the version of ASP.NET for the sites I have just created to 2.0.50727.0. Ideally I would

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.094 (s). 11 q(s)