AutoCompletion and catching the text content message
Hi, ALL, According to this page, there are only 2 methods in the AutoComplete interface. Which means that there is no way I can catch the EN_CHANGE notification. Or is there? Basically I'm looking for...
View ArticleImport Dialog from other VS2003 project
I have questions on how to properly import a dialog from one project to another project using Visual Studio 2003. Assume I have a dialog called IDD_DIALOG_IMPORT at a TestDialog project and I want copy...
View ArticleWhat does C4237 mean?
warning C4273: 'MyTextOutW' : inconsistent dll linkage I am developing the hooker in windows xp using Visual Studio 2010, I have linked all kernel32.dll, user32.lib, advapi32.lib.... from the 7.0a sdk...
View Article[RESOLVED] File Extension ".S"
I'm trying to build a 64-bit library called libffi using MSVC. It contains a bunch of 'C' files and another file with the extension .S whose file contents seem to be mostly assembler - but with certain...
View ArticleConcurrency vs parallelism in c++
Hello, I just started using parallel programming and I have a couple of questions. 1.Can some one give me an example in c++ of thread executing congruently and threads executing in parallel. When I say...
View Articleusing namespace
Several files contain objects called Rectangle. For example it could be this version, from wingdi.h:- Code: WINGDIAPI BOOL WINAPI Rectangle(HDC,int,int,int,int); or this version which is a c'tor in...
View ArticleCreateProcess failed with ERROR_ACCESS_DENIED
Hello, big problem: on an users system my app's call to CreateProcess failed with ERROR_ACCESS_DENIED. What are possible reasons?! I have no idea. My call: Code:...
View Articleadmin post: C++ Testing Tools - your favorite?
What is your favorite C++ Testing tool? Note: I'm looking for the name of the testing tool that is your favorite. I'm looking for what C++ Testing tools you (as a C++ developer) like and/or use....
View ArticleSimple Text File Open and Parse
I'm a rusty amateur coder re-writing some console apps in MS Visual Studio v14 rev 3. My code appears to fail on the file open. I have these includes... #include "stdafx.h" #include <windows.h>...
View ArticleExpected constant expression
In MSVC-8 (VS2005) it isn't possible to declare an array using a variable name for the array size - i.e. Code: int somevar = 20; int array[somevar]; The above causes an error ("expected constant...
View ArticleWhich MS Visual Studio C++ Framework?
I have some C/C++ experience but new to windows programming and frameworks. I've been using some Windows Form tutorials in MS VS2015 just to get a feel. I need to write programs that handle reading and...
View ArticleRichEdit text issue
I use a RichEdit control in my MFC program to display log messages. When I first create the control, I change the default font using SetFont() to something like "MS Sans Serif". I then change the text...
View ArticleZOOM picture control
Got a class CDispView derived from CScrollView. Got Dialog MFC Picture Control that displays bitmaps. Using SetDIBBitsToDevice in myOnDraw. Like to implement a simple ZOOM. Any code, examples, simple...
View Articlehelp to fix and improve the code
This is my code about congkak I need to fix and improve this code.And don't know how to draw the board of the congkak #include<iostream>usingnamespace std;bool checkWinningCondition(int...
View Articlepic control x,y coords
Got a CDialog derived modeless with picture control. The image View is derived from CScrollView. Tried different ways, I can not get the x,y coordinates right. They do not match the location on the...
View ArticleNeed Help
I'm extremely lost on how to do this... If anyone could help, it would be greatly appreciated. I need to write an application in that continuously prompts a user for test scores until the user enters a...
View ArticleHow is it possible to load a dll into memory and disallowing it to unload?
I want to load advapi32.dll from disk into memory, but I don't want it to unload. How can I make it happen? Should I write a program like Code: LoadLibrary("advapi32.dll"); and put a breakpoint there,...
View ArticleHow to get return value of CreateDialog from CWinThread
Hello I'm creating a dialog from thread then i need to get the return value from it. Code: UINT CSTC_Analiser::StockDiagram(LPVOID param) { CSTC_Analiser* MainDialog = (CSTC_Analiser...
View ArticleWNetAddConnection2 returns error 1200
I have shared network folder on my disk C:\folder. When I use WNetAddConnection2 I get error 1200. My code is: Code: DWORD dwResult; NETRESOURCE nr; nr.dwType = RESOURCETYPE_ANY; nr.lpLocalName =...
View Article