How to use SHGetFolderPath()? In my code, I try to use the SHGetFolderPath(). I already include the header file "ShlObj.h". But when I try to build it, I got: c:\temp\MyCode\MyCodeDlg.cpp(277): error C3861: 'SHGetFolderPath': identifier not found, even with argument-dependent lookup ... 19 Jan 2006 04:26
VC++ .NET 2003 - Compilation Error C2976 Hello! I have a problem with imported project from VC++ 6.0 to .NET 2003. I get the following compilation error: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxstr.h(85) : error C2976: 'StrTraitMFC_DLL' : too few template arguments C:\Program Files\Microsoft Visual Studio .NET ... 11 Jan 2006 21:20
CAsyncSocket and Send Hello, I have two programs that use async sockets. Occasionally, there is garbage (extra bytes) being sent after data, thus confusing my finite state machine. Is there a way to track everytime the send() is called? Any ideas on why this could be happening? I don't know if it matters, but the sending side... 26 Jan 2006 20:39
Error: no data exchange control with ID I have a CView, and trying to create a dialog for user input. Unfortunately, I am getting the message & assert Error: no data exchange control with ID 110 Here is my code class CDlgGoto : public CDialog { // Construction public: CDlgGoto(CWnd* pParent = NULL); // standard constructor virtual ~CDlgGoto();... 31 Dec 2005 22:39
Compile errors in STL with VS8 I'm getting the following errors: Error 14 error C2365: 'operator new' : redefinition; previous definition was 'function' d:\microsoft visual studio 8\vc\include\xdebug 32 Error 15 error C2491: 'new' : definition of dllimport data not allowed d:\microsoft visual studio 8\vc\include\xdebug 32 Error 16 error C207... 2 Jan 2006 13:01
error LINK2019: unresolved external symbol I have realized a DLL (MFC Extension) in which a class is included with some methods: some use as parameter of the int, other CString. During the compilation of the DLL I don't have errors. In the compilation of the application that uses the DLL it appears the error 'error LINK2019: unresolved external symbol' on... 23 Dec 2005 11:51
CSocket I am trying to understand CSocket. I don't think I like the idea of using a CSocketFile and a CArchive. Can CSocket be used without them like I would use CAsyncSocket, but still giving the benefits CSocket offers? I looked in the sample files Chatsrvr and Chatter. Both use a derived version of CSocket so they c... 16 Dec 2005 08:28
draw text on a cimage hi, I am generating a Cimage object and I was wondering how can I draw text on it before saving it? thanks. ... 14 Dec 2005 09:39
CDialogBar in a regular mfc DLL I am trying to create a dialog bar inside a regular mfc dll with a frame window as its parent. The code for the export function that is supposed to create the dialog bar and attach it to the main window is below: extern "C" LINK_DLL CDialogBar* APIENTRY CreateDlgBar(HWND hWnd) { AFX_MANAGE_STATE(AfxGetStati... 30 Nov 2005 08:21
CToolTipCtrl, CIPAddressCtrl: tooltip doesn't display over IP I have a dialog based MFC application with a collection of edit boxes, list boxes, radio buttons, and a CIPAddressCtrl Box. I have added tooltips to each of these items listed above in the source code. However, when I run the application, the tooltip does not display the specified string (or any string) when the m... 28 Nov 2005 20:48 |