Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

ATL COM Library Class Not Registered Error

I have an ATL COM project that creates a type library called Grouper. I have compiled this C++ ATL COM project and VS2013 automatically registers the library. Great. I then add a reference to this COM...

View Article


Issues in Window7 with AeroTheme

Radio Button is not showing for selected menu item for window7 with aero theme?Languages:ATL with MFCSample Application:m_MyMenu.CreatePopupMenu(); for (long id = IDB_BITMAP1; id <= IDB_BITMAP6;...

View Article


Windows 2000+ available folder to store generic application settings files...

Hi, what are some folders (not registry) that are available from windows 2000 onwards that are aren't usually deleted (through disk cleanup, etc... but maybe deleted manually) that is also accessible...

View Article

How to use SetSystemCursor

HiI am developing a program in Winapi with C. In the program I have a button that when clicked plays a sound file of about 5 seconds. What I need to do is to change the cursor to the circle used for...

View Article

MFC SDI Maximize position error.

I have created a simple C++ sdi project to try this. My desktop windows bar is on left, try to maximize this sdi application! Note the position is 2x size of bar to the right. Is it a bug? I'm using...

View Article


C++ - Windows 8 - Can't write to common start menu - access denied.

Hi, how do I write to the common start menu (C:\ProgramData\Microsoft\Windows\Start Menu\Programs) as a limited user under windows 8. It requires admin to do that. I kept trying to get my C++ code to...

View Article

Compiling with "Whole Program Optimization" but linker says no code...

Hello,I have an MFC application which uses "Whole Program Optimization" (/GL) and "Link time code generation" (/LTCG). The application contains files built with CLR support (/clr) making it mixed-mode....

View Article

How do I save a project with a new name in Studio 2013 Express?

I'm using Visual Studio Express 2013.  The system called my first attempt Project1. It was a failure, and so was Project2. Project3 was much better and actually did something, so I want to base...

View Article


simple string vector init question

I'd like to create an array of strings that I can use in a loop to fill a combo box and wondered what the best way is and to initialise?this won't compliestd::vector<std::string>...

View Article


LoadImage() problem loading OEM icons

wcx.hIcon = (HICON)LoadImage(NULL, MAKEINTRESOURCE(OIC_INFORMATION), IMAGE_ICON, 0, 0, LR_SHARED | LR_DEFAULTSIZE); wcx.hIconSm = (HICON)LoadImage(NULL, MAKEINTRESOURCE(OIC_INFORMATION), IMAGE_ICON, 0,...

View Article

DDX_Radio is crashing

Hi,I have written a dialog based MFC application where i have 3 radio button "Inches", "Centimeters" and "Pixels".I grouped the three radio button in a group name "Units". The defined IDs  for those...

View Article

Visual Studio hang

While implementing MSSCCI interfaces (scc.h) when HWND received in scc callbacks is passed to SCC provider written in JAVA/SWT to create additional/provider specific dialogs, Visual Studio hangs after...

View Article

Compiling a SDL2 Program from the Command Line

Hello, everyone! I tried to set up SDL2 with Visual Studio 2013 Express, but didn't succeed. So, I'm trying to compile a SDL2 program from the command line. The file name is main.cpp. My command so far...

View Article


VS2013 : passing iterator to a function that takes pointer (migrating VS2010...

I have the following code, when I compile it in VS2010, compilation goes through and everything works fine.AA.hclass AA{int i;public: AA(){ i =0;}void setA(AA *a){ i = a->geti();}int geti(){return...

View Article

domodal crashing in release mode.

Hi,I have a strange problem in our application.We are doing some process in function, it is taking some time to complete it.So we are showing one modal dialog without any button..which will diappear by...

View Article


VS2012: v110_xp 11.0\VC\include\sal.h __useHeader redefinition when editing...

We have a project that we have brought forward from VS 8.0 through VS 10.0 to VS 11.0 and wish to maintain Windows XP support so we have the Platform Toolset on v110_xp.Every time I attempt to edit a...

View Article

Memory Leak Option Problem

I hope someone can help me out here.I have removed all defines and libraries for memory leak detection from my code like:#define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include...

View Article


error MSB6006: "CL.exe" exited with code -1073741765

Hi, I'm using msbuild command line to build my vc12 project.I saw the error 'MSB6006: "CL.exe" exited with code -1073741765' while build my code. But that's the only error messages I got. Even when run...

View Article

Is enhanced C++ optimizaitons in VS2013 Update 2 RC a real story?

[File size is our concern]We are using gifsicle in a VS extension; Web Essentials (https://github.com/madskristensen/WebEssentials2013/).We tried compiling gifsicle (https://github.com/kohler/gifsicle)...

View Article

Windows service and desktop Application communication for screen share.

I'm new to programming. There are quite a lot of Q/A on this, but I couldn't find a concrete answer. Hence the question. I'm writing a screen sharing application. Now I want to turn that application to...

View Article
Browsing all 15302 articles
Browse latest View live