First  |  Prev |  Next  |  Last
Pages: 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
AfxGetApp() returned NULL - A possible solution.
I had the problem too that AfxGetApp() returned NULL inside the function of a dll. The solution was to set the ?General?configuration prop of the exe ?Use of MFC? to the value ?Use MFC in a shared DLL?. (perhaps because the dll where it was called (and crashed) was build with that config property as well). Build... 18 Dec 2009 18:22
h2inc
h2inc is a utility that creates an assembly-language .inc file from a .h file, in particular, it translates C structures to STRUCT declarations. However VS2008 does not appear to have it, although I always do a complete install of everything possible. Anyone have any ideas what happened to it? joe Joseph ... 22 Jan 2010 14:06
Assertions during DLL load
I have an out-of-proc ATL server w/MFC support using VS2008 SP1. When the DLL is registered or instatiatiated by a client I receive two assertions during DLL_PROCESS_ATTACH. The following line in dllinit.cpp line 587 (AfxCoreInitModule()) is causing the first assertion failiure: ASSERT(AfxGetModuleSta... 19 Dec 2009 09:26
Load RTF in Word
I've been searching up and down for this and haven't found any info yet. I have some RTF text that is in a CRichEditCtrl. I want to stick it in MSWord so I can use CRange::put_Case on it. But I can't figure out how to get the text in word! Or more specifically how to create a new document, and I'm guess I wi... 18 Dec 2009 13:55
Resizing the dialog bar
Hi, I am trying to resize the dialog bar programatically to fit exactly to its parent window's width. I have problem with this dialogbar when working on different monitors. Can any one please help me? Thanks ... 16 Dec 2009 15:45
[SOLVED] Looking for a API for listing all Domains/Workgroups on a Network (non WMI solution!)
Hi, you can use WMI or LDAP for that (lots of examples in the WWW available!) But another way is using NetServerEnum(...) with 7th parameter given the constant SV_TYPE_DOMAIN_ENUM, that wil give you a complete list with workgroups or domains, depending on what kind of network you are running. Another approach is... 16 Dec 2009 11:16
how to set admin privilege
How to set admin privilege for a windows user In windows7 i login to a user which admin right. when i use CreateFile to open a device say hard drive then it's fail. While if i login to administrator and use CreateFile then it's succeed. So i think i need to set admin privilege to current user. Please suggest. ... 12 Jan 2010 11:50
Source code library.
My company has finally decided to upgrade from Visual C++ version 6 to Visual Studio 2008. Is there a newer version scheduled for release anytime soon? What source code version control should we use? Is SourceSafe good? Are there alternatives that people would recommend for a small company with only a few d... 15 Dec 2009 22:16
CAsyncSocket
My main thread creates a CAsyncSocket derived class and tries to connect to the server by calling the Connect method. Unfortunately, since CAsyncSocket is non-blocking, the OnConnect notification arrives as a message to the main window. But, I cannot continue processing until a successful connection has been ... 17 Dec 2009 11:31
Need to make CFileDialog synchronize filename with selected extens
We have a class that derives from CFileDialog that overrides the OnTypeChange() method to allow it to change the filename to keep it in synch with the selected extension whenever the user selects a new extension from the filter combobox. (Our filters are set to contain only one extension per filter entry.) Unfo... 14 Dec 2009 14:23
First  |  Prev |  Next  |  Last
Pages: 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66