visual-c++

MDI Document taskbar thumbnails with no decorations

Is it possible to remove the close window decoration from an mdi document taskbar flyout window? That is, remove the red "x" to prevent the user from closing the document via the taskbar. ...

fatal error C1084: Cannot read type library file: 'Smegui.tlb': Error loading type library/DLL.

Hi, I am trying to build an old version of an application which consists of VC++ projects that were written in Visual Studio 2003. My OS is Windows 7 Enterprise (64-bit). When I try and build the solution I get the following errors: error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a pla...

error LNK2001: unresolved external symbol

I am receiving this error >GXRenderManager.obj : error LNK2001: unresolved external symbol "private: static class GXRenderer * GXRenderManager::renderDevice" (?renderDevice@GXRenderManager@@0PAVGXRenderer@@A) The following is my code... GXDX.h class GXDX: public GXRenderer { public: void Render(); void StartUp(); }; GXGL....

how to turn a picture from clipboard into array data

I want to turn a screen shot from the clipboard into a array data (Red/Green/Blue) in my program. so i guess it's as simple as that. but i don't want to use anything else then the print screen and clipboard if i can? anyway any questions just ask. ...

Changing Selection Colour for CRichEditCtrl to black by default.

I am using a CRichEditCtrl object. Now when I select any text, the selection is highlighted in Blue Colour. However I need the selection to be highlighted in Black Colour. I have tried the SetSelectionCharFormat, but it only seems to be changing the colour of the selected part when the code is executed. However when I select the te...

error C2504: 'BASECLASS' : base class undefined

I checked out a post similar to this but the linkage was different the issue was never resolved. The problem with mine is that for some reason the linker is expecting there to be a definition for the base class, but the base class is just a interface. Below is the error in it's entirety c:\users\numerical25\desktop\intro todirectx\godfi...

how to avoid header coupling

I am trying to address this issues because I can not seem to find a good resource online that does so. I do not fully understand the issue cause I never got it resolved so I will try to describe it as best as possible. Awhile ago I had an issue where headers were being ignored because "They were called once already and therefore when ...

TCHAR* envp[]: What is it?

I created a VC++ console project with Visual Studio and it auto-generated this function: int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { ... } I was just wondering what envp stands for and how/when I can/should use it? Thank you! ...

Difference between COM and DCOM ?

What is the difference between COM and DCOM ? ...

Is Private Bytes >> Working Set normal?

OK, this may sound weird, but here goes. There are 2 computers, A (Pentium D) and B (Quad Core) with almost the same amount of RAM running Windows XP. If I run the same code on both computers, the allocated private bytes in A never goes down resulting in a crash later on. In B it looks like the private bytes is constantly deallocated a...

Windows Network Programming

I am planning to get some good book for Windows Socket Programming in VC++. I have 2+ years of experience in working with VC++/ATL/COM/MFC; but not in the networking domain. I have been doing some search in Google for "Windows network programming" books. There are few but they have both good and bad comments scattered all over; and I am...

Strange exception phenomenon in Windows 7

I spot some interesting articles about exception handle in CodeProject http://www.codeproject.com/KB/cpp/seexception.aspx After reading, I decided to do some experiment. The first time I try to execute the following code char *p; p[0] = 0; The program died without question. But After several times when I executed the same proble...

What is the difference between CreateProcess and CreateProcessA ?

Hi, what is the difference between CreateProcess and CreateProcessA, also are there any alternatives to these in VC++ 2008 ? I have also a problem, that i use the CreateProcessA function, this works well in one system but fails in other systems. Also when i use CreateProcess i get the error cannot convert 2 parameter from 'CHAR[40]' to...

C++ why no .lib file created?

I am using Visual Studio 2008 to create a dll. But cannot find the corresponding .lib file. Why? I need that file to put it into my tester. ...

Unable to fetch initial output of "defrag" commad in Windows Server 2008 R2 in WOW64 environment.

Hi All, [Application & code back ground] I have an MFC application which is executing on Windows Server 2008 R2 in WOW64 environment. In which on user input it defragments the selected drive on the disk. I initiated the process(.i.e. cmd /c defrag –v c:) of defragmentation using the CreateProcess() API, along with this to display output...

C++ project type: unicode vs multi-byte; pros and cons

I'm wondering what the Stack Overflow community thinks when it comes to creating a project (thinking primarily c++ here) with a unicode or a multi-byte character set. Are there pros to going Unicode straight from the start, implying all your strings will be in wide format? Are there performance issues / larger memory requirements becau...

Making a simple app that logs and reads in command line arguments with Visual Studio 2010 Express, google glog and google gflags?

I've written the following simple program: #include "stdafx.h" #include <gflags/gflags.h> #include <glog/logging.h> #include <ostream> int _tmain(int argc, char* argv[]) { google::InitGoogleLogging(argv[0]); LOG(INFO) << "Found"; return 0; } I checked out google-glog from here: http://code.google.com/p/google-glog/sourc...

MSVC++ Preprocessor - How do I output a define's value with a compiler macro?

I tried #error MY_DEFINE But all that did is echo "MY_DEFINE" when it threw the error. Thanks! ...

Where to start Handwritten Recognition using Neural Network in C# or any language

i am doing project on hand written recognition systems.i need help where to start....... ...

How can be Interop of MSXML Node in C++/CLI as XMLTextWriter or related XML Usability

Hello, I have some native code which generates native XML node of MSXML. I need that root node in C++/CLI to be use as XMLTextWriter or in any form of XML in C++/CLI. Is there any interop available for MSXML Node for using in C++/CLI. Regards Usman ...