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

How to partially display a CButton in MFC

Hello All,I have 3 buttons. Namely Button1, Button2, Button3.When I press on Button3 then the Button2 should move towards Button1. This can be achieved using MoveWindow().At some point, when the...

View Article


Visual C++ - English (United States)

I'm using an MS Walk Through, <http://msdn.microsoft.com/en-us/library/bb384842.aspx>, to learn about the IDE. It provides a step-by-step description of how to create an executable program called...

View Article


How to use ATL 7.0 string conversion macros?

I have a problem in using ATL 7.0 string conversion macros.My codes looks like this, which uses ATL 3.0 string conversion macros in the past:Void Myfunc(){USES_CONVERSION;LPSTR lpszA;LPWSTR lpszW;If...

View Article

Not able to launch my application in Win8

I know its bit vague but have any one encountered a situation where his/her MFC based application is not launching on win8? It starts loading different tools for me and then just hangs. Please see...

View Article

wsprintf prints the argument twice instead of printing each argument.

static WCHAR szEquation[80]; GetDlgItemText(hwndDlg, IDC_EDIT1, newtonsmethod::szEquation, 80) wsprintf(szEquation, L"%s%s",L"Equation:",newtonsmethod::szEquation);At the time wsprintf executes...

View Article


Debugging application in VS2012 does not find DLL in working directory

In a VS2012 solution I build successfully, set my Debugging working directory to a directory outside my bin directory, and start debugging my startup project by pressing F5. After loading a number of...

View Article

EvtSaveChannelConfig function is failed

Hi,I have used EvtSetChannelConfigProperty to set EvtChannelLoggingConfigLogFilePath and used environment variable as value of this property. After setting this property I have used...

View Article

How Can I get this wrong message?

here is a example from book, when i run it in my visual studio 2013 professional, it show the following error: #include <iostream> #include <string> #include "stdafx.h" using namespace std;...

View Article


Sorting functions, Linear & Binary Search

#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <ctime> #include <iomanip> using namespace std; int searchList(int asciiA[],...

View Article


link errors on helloworld

Can someone please help.  I tried to install VS 2010 premium on top of 2010 pro and am now getting the following link errors from a simple helloworld application (Note that I have VS 2008 and 2012...

View Article

Getting The Entry Point Of An EXE

I have used a code like this#include <windows.h> #include <stdio.h> int main(void) { HMODULE hMod = GetModuleHandle("kernel32.dll"); void* fn = GetProcAddress(hMod, "Beep"); printf("%p",...

View Article

error : 0x2 trying to open file ._mc

HiI am migrating my application from vc++6.0 to vc++2008I am facing this error , can any one provide me the necessary steps i need to take to fix the errorThanks

View Article

Obtaining FontNames from Font Files

Obtaining every FontName + FontWeight installed on the system I need to know the best way to enumerate every Combination of FontName + FontStyle that is defined for a specific font. I need the same...

View Article


Library Set-up for Initial Compilations

What is the process for setting up the library (#include) structures needed to compile an OPEN SOURCE / C++ software we have retrieved off the WEB?  The download from the OPEN SOURCE site included:...

View Article

Newbie to VS C++ Desktop--Where to start?

Is there a tutorial that describes how one creates a C++ program, and compiles it?BTW, I just fired up VS, and see a bit of help there, but I'll still hold to my question above.

View Article


Why the need for a sub-namespace std::chrono?

I've taken this example from B.Stroustrup's new book "TCPL" at page 119.#include <iostream> #include <thread> //#include <chrono> //using namespace std::chrono; // see §35.2 int...

View Article

CString initialization problem

Hi, all, I found a interesting problem when comes to initialize a CString, I tried two blocks of code://m_FileName is a CString, declared elsewhere // the following line was compiled fine CString...

View Article


Link time much longer in VS 2012

Hi,I would like to ask for your help regarding some very long link times that we are encountering in VS 2012.We have been using VS 2010 Professional and recently we have upgraded to VS 2012...

View Article

Disable one tab in Multiple Tab MFC

Hi AllMy name is Passion88I am a MFC DeveloperI has a problem about GUI of MFCI create a MDI Application and I can open multiple tab.When I am operating on one Tab, I want other tabs that can disable.I...

View Article

DUKPT implementation

Hi everybodyI am working with a piece of hardware that encrypts data using Triple Des DUKPT (ANSI Standard). I have access to the KSN and the encrypted track2 data from this I need the data to be...

View Article
Browsing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>