Creating a virtual mini server
Is it possible to create a virtual mini server (like IIS) that takes http request? I have a toolbar that queries an DLL using http request, and then that DLL stores some arguments in some XML file,...
View ArticleNoob needs easy help with command line interface
Hi, I am a total idiot when it comes to command line interfaces. Unfortunately I was too young to use the family apple 2c before it was replaced by a windows computer :-( Here is my problem. I have a...
View ArticleBest way to allocate large memory
In my Visual C++ app, I know the total objects(CMyObject) to be allocated is 16728064 and each object is 64 byte, so the total memory to be allocated is 1GB. The memory will be allocated in the...
View ArticleProblem with CListCtrl - Visual Studio 2010
I have a list box control inserted in a dialog application. But I can't seem to do anything with it. I can insert items and I can't insert columns. I don't understand. Why is that none of the...
View ArticleProblem in Displaying Bit Values
I am writing a program to display values from a data file as an image. But I can only get a blue screen. Here is a small program resembling my code. Could you see what I have missed? I only changed...
View ArticleMFC button with icon or image
Can some one tell me the EASIEST way to create a button with an image on it. I am not interested in using the owner draw property with CBitmapButton and then have to create a whole lot of bitmaps for...
View Articlechange menu bar font size
Can you change the menu bar font size in CMainFrame::OnCreate()? Here's what I have: Code: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { CRect rect; GetClientRect(&rect);...
View ArticleHow to get rid of 'not responding' message
I have a simple dialog based app that performs some time consuming file manipulations. The activating method contains the customary Code: CWaitCursor wait; The hour glass initially appears, than after...
View ArticleCBitmap::LoadBitmap(...) doesn't work
http://msdn.microsoft.com/en-us/library/wc99t364.aspx There must be critical info that is missing in here because simply creating a CBitmap variable and then calling LoadBitmap(....) is not working....
View ArticleWhy is CreateDIBSection() Failing in My Code?
Hello, below is a block of my code. I don't understand why CreateDIBSection() returns NULL. Thanks a lot in advance. Code: pPackedDib = (BITMAPINFO *)(malloc (sizeof(BITMAPINFOHEADER) +...
View ArticleIDropTarget + elevated process. Msgs for ChangeWindowMessageFilter to make it...
I'm using the following approach to register an individual control in my MFC/C++ application for a drag-and-drop operation: Code: //I have my own class derived from IDropTarget class CDropTargetSpec :...
View ArticleImageList question
Hi, ALL, An ImageList_Create() function (see here) takes 2 parameters: cx and cy which are the width and height of each image. Everything is good if I know in advance what size my images will have. But...
View ArticleMoving from VC++ 6.0 to VC++.NET
I have, what to me, looks like a large project. Originally written about 90% in VB6 and the remainder in VC++ (Visual C++ 6.0 Enterprise Edition). There are maybe 2,000 lines of code written in VC++...
View ArticleCompile 64bit more like 32bit in vs2008? issue with CxImage Library.
I have an issue with CxImage 7.01 library in 64bit mode with a certain TIFF file with Jpeg compression causing a crash. BUT compiled as 32bit it works fine! but I need it as 64bit for a called dll been...
View ArticleWorker Thread handle leak
I my application a Worker Thread is started every 5 seconds. After a while (about 2 hours) no further threads are beeing started. Checking the application with Microsoft Process Explorer showed, that...
View ArticleProblem with CFileFind
A fairly simple loop: Code: if (rFinder.FindFile(strFolder + "\\*.*")) { while (rFinder.FindNextFile()) { strPath =...
View ArticleHow do I create Visual C++ apps?
How do I create Visual C++ applications that only rely on having Visual C++ redistributable installed and NOT .NET framework? I have Visual Studio 2005/2008/2012 express editions only. Can I compile...
View ArticleCreating a Grid?
Hi guys, I am working on another assignment and was wondering if anyone could help me by showing me a basic layout in how to complete it. I am pretty confused. Here it is: A Program For this program,...
View ArticleCalling a DLL written in VC++.NET Native Code from a VB.NET project
I have just installed VC++.net (2010 Express version) on a Win XP machine (the reason I am still using XP is that I need to use VB6 for a while and it will not install on Win 7/8). I would install 2013...
View ArticleCRichEditCtrl paragraph formatting and justification
I am using CRichEditCtrl in a dialog. I want to have auto wrapping off and paragraph justification as center or right. To turn off auto wrap i used SetTargetDevice which worked fine but the...
View Article