visual-c++

Visual Studio 2008 Resource Editor

Hi, I am on VC++; What is the unit used in Resource Editor? It does not seem to be pixel.. Than how to use pixel, or is there a option to use pixel? Here is a screen shot... ...

Does Visual Studio support data cache operations?

Reading through some great presentations on low latency computing. They had a reference to IBM's XL C/C++ compiler data cache operation __dcbt (Data Cache Block Touch) for their cell compiler. The operation loads a block of memory into L1 cache. Does Visual Studio (or G++ or Intel) have similar functionality for Intel Processors? If so...

How can i create bucket and post xml file on aws s3 using vc++

Hi, How can i create bucket and post xml file on aws s3 using vc++. Thanks dabara ...

newbie: Determinate CRT lib used by library

I'm developing application using VC++ 6. I have a 3rd party DLL. This library compiled as Multithreaded DLL (/MD) and my application too. But I fail to link: LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,stru...

What is the reason of _tcs prefix for common string functions in Visual C?

Visual C++ CRT has several _t prefixed functions for both unicode and Ansi compatibility in the same source. So strcmp becomes _tcscmp, which I could never remember easily. So what is the hungarian notation meaning of _tcs and why Microsoft choose the way it is now instead of just simple prefixing, like strcmp -> _tstrcmp ? ...

choosing the right control for developing windows application

Hi all, I am looking for a contol either listbox or listview to support my requirements. Basically how my application looks is: The background should be black when the user clicks any 'row' the row should get highlighted witgh grey. The user will have the ability to search items in this control. For example , if one of the row ...

Why are there so many libraries in MSVC and why do I have to recompile the code again

In every platform there are various versions of a given library: multi-threaded, debug, dynamic, etc.. Correct me if I am wrong here, but in Linux an object can link to any version of a library just fine, regardless of how its compiled. For example, there is no need to use any special flags at compile time to specify whether the link ...

Is the Team Foundation Server 2010 of the VS 2010 necessary for doing personal projects?

Basically what the title says. I am looking to install the Visual Studio 2010 Beta for compiling personal C++ projects. I haven't made it through the tutorial for setting things up, but do I need the Server part of the program if I don't plan on doing any team projects? Thanks. Edit: Well it looks like I can't install the Team Foundati...

What is nothrow delete in C++?

This MSDN page mentions that there're nothrow versions of new and delete. nothrow new is quite a known thing - returns null instead of throwing an exception if memory allocation fails. But what is nothrow delete mentioned there? ...

List of things to check to prevent VC++ applications from showing fatal error message boxes

Every now and then there's a strong need to write a program in such a way that it never (really never) shows an error message as a message box. For example it can be a program run inside a daily build - if it hangs with a message box the daily build hangs. Unfortunately VC++ runtime has a lot of ways to trigger message boxes when indica...

Win32 On Mouse Over Event

How to know if the cursor on a specific control like a button in Win32? For this purpose WM_MOUSEMOVE exists but I can't get WM_MOUSEMOVE message? What to do? ...

Converting C-Strings from Local Encoding to UTF8

I'm writing a small App in which i read some text from to console, which is then stored in a classic char* string. As it happens i need to pass it to an lib which only takes UTF-8 encoded Strings. Since the Windows console uses the local Encoding, i need to convert from local encoding to UTF-8. If i'm not mistaken i could use MultiByteTo...

vc++ localization support in resource editor automatically

Hi; I am developing a multilingual software which is compiled with MultiByte Character Set compile option. What would you suggest to support multiple languages without using an external resource dll etc. Rather, there is an option "Language" for resource types, Also "String Table" in resource editor has this option. So If I set a langua...

Visual C++ 2008 Express - cpp filename conflict

I'm developing application for GNU/Linux using gcc 4 and cmake to manage compilation process. I found that is has no problems when there are two files with the same name but in other directory and namespace like this: . |-- gfx | |-- Object.cpp | `-- Object.h `-- logic |-- Object.cpp `-- Object.h First Object...

c++ float to bool conversion

I'm looking at some 3rd party code and am unsure exactly what one line is doing. I can't post the exact code but it's along the lines of: bool function(float x) { float f = doCalculation(x); return x > 0 ? f : std::numeric_limits<float>::infinity(); } This obviously throws a warning from the compiler about converting float->bool, but ...

VC choosing the wrong operator<< overload only at the first call. Bug?

I spent some time removing all the uninfluent code and here is my problem. --- File.h --- #include <fstream> #include <string> template <typename Element> class DataOutput : public std::basic_ofstream<Element> { public: DataOutput(const std::string &strPath, bool bAppend, bool bBinary) : std::basic_ofstream<Element>( s...

bizarre VC10 linker error

hey all, I just installed VC 2010 Premium Beta2 on my system and I migrated my old vc9 projects to it... everything seemed ok at first... what's strange is that no matter what I compile I get the following error message: 1> Microsoft (R) Incremental Linker Version 6.00.8447 1> Copyright (C) Microsoft Corp 1992-1998. All rights reser...

getting International Mobile Subscriber Identity (IMSI) in win32 application

Dear All, I am developing a application, where I need to display the IMSI number from data card which has been plugged in to a vista system.I am using visual studio 2005 and microsoft SDK. Is there any way to access the IMSI number of the data card(both GSM and CDMA) using any win32 api or any other way to access it thanks in advance ...

Create new Visual C++ project based on existing project?

I have a library project in a VC++ 2008 solution. I'd like to split it into two projects, both having the same project settings. I can't see an easy way to do this, is it possible? ...

why "Error : IActiveDesktop undeclared indentifier" occurs even after incluing the specifed file ?

I am using IActiveDesktop interface to change wallpaper . I have included files "shlobj.h" , "shlguid.h" for that in my MFC project. But still i am getting error : "undeclared identifier IActiveDesktop" . Can anybody tell me how to resolve it ? ...