Software Development Network Logo
  • Audio and Video
  • Smart Devicet
  • Visual Basic
  • SQL Server
  • IE Development
  • Game Technologies
  • Windows Vista
  • Microsoft ISV
  • .NET Development
  • Windows Forms
  • SharePoint Products
  • Visual C#
  • Visual FoxPro
  • Visual Studio
  • VS Team System

Software Development Network >> Visual C++

Visual C++

New Question

Error messsage
How to convert ULONGLONG to int?
Computing for large matrices
Replacement of CComModule in VS2005
friend and non-member function
error LNK2005: _main already defined
How to detect mouse click in the child window created by the CHTMLEDITVIEW VC++. NET
MFC: Right click toolbar button.
Q: How to disallow users to terminate my program?
problems creating c++ browser applet

Top Answerers

Duncan_
carlop
World Piece
donkaiser
Muhammad Essa
errolian
.Net Pro
Igor Nikiforov
Ben Taylor
Eduardo D
sitemap
Only Title

Answer Questions

  • vahdam_mn Help! Link error: "unresolved external symbol"

    Hello all, I'm using STL in vc console and got stuck on a simple program. Here is the .h file #ifndef SimplePropertySet_hpp #define SimplePropertySet_hpp template <class N, class V> class SimplePropertySet { private: N nam; V value; public: // Constructors and destructor SimplePropertySet(); // Default constructor SimplePropertySet(const SimplePropertySet<N,V>& source); // Copy constructor virtual ~SimplePropertySet(); // Destructor }; #endif // SimplePropertySet_hpp And the corresponding .cpp file #ifndef SimplePropertySet_CPP #define SimplePropertySet_CPP #include "SimplePropertySet.hpp" template <class N, class V> SimplePropertySet<N,V>::SimplePropertySet() { // Defa ...Show All

  • barry sela How can I judge the mail has been read??

    Hello,everyone!I face a problem when I programming,I'd like to ask for you: I enter the mailbox from webpage,and read some mails,so I'd like to remain the mail in my mailbox.(in fact I use some commerce Email client software like FOXMAIL,it doesn't download this kind mail), as the picture :http://p.blog.csdn.net/images/p_blog_csdn_net/ZhengKarl/249778/o_ScreenCopy.JPG shows,the mail has been read is been distinguished from the mail has not been read in mail server website. SO when I programming, how can I judge whether the mail has been read from webpage ... If you kown,pls email me:Karlzheng@126.com.I'll appreciate very much.Thank you very much! BestRegards! KarlZheng as the pictures shows: but I use pop3 protoca ...Show All

  • VBAddict Cannot add member variable

    Whenever I select "Add member variable" menu from context menu at dialog editor, I only get blank form with nothing in it, totaly blank. What's wrong It goes the same for MFC project, CLR, Win32, etc. I'm using Visual Studio 2005 update version and Windows Vista Business update version. I'm sorry for making you feel bad. I don't think that way. I really apreciate every help that I can get. That's why I've tried your suggestion. By the way, the "Add new member variable" wizard works fine on XP. Thank you. kgs014 wrote: I don't think it has nothing to do with .ncb file. I really tried to make it clear that what I said might be totally irrelevant. I don't think it has nothing to do wi ...Show All

  • Aleniko29139 C++. Can build DLL file, but won't register.

    I'm converting a VC++6.0 project from MBCS to Unicode. I was able to succeed in building it in Win32 Debug mode and also run it. The dll files were able to register using Regsvr32. Now when I build them in Win32    Release mode I'm getting problem with the dll files registration. It compiles, links and builds the dll files. But when i try to register them using Regsvr32 it'll fail giving error like The instruction at "0x72842565" referenced memory at "0x00000000". The memory could not be "read". So I tried to use Dependency walker and its results are below (I've pasted only the errors given by it): LoadLibraryA("C:\WINDOWS\system32\MFC42LOC.DLL") returned NULL. Error: The specified ...Show All

  • Juice Johnson Combo Box Question

    hi I'm making my first 'simple' application to get me started. its the basic windows Form with just a combo box containg just 3 options ' a or b or c ' ok it works fine but how can i make it remember my last selection i mean when i run the application again it shows nothing and you have to select the option all over again. i sent you the project via email, i hope i got the address correct i was wondering that myself and decided to uninstall the 2003 version and download the free version of Ms Visual Studio .NET 2005 (until i can but the pro version) maybe when thats installed i will try again. Programming can be difficult even to the professionals but being a beginner is a constant uphill task with everything i enter resulti ...Show All

  • Rotte2 WMI or not WMI?

    Hi! Help me please to recognize situation : CPU USAGE 0%, all windows are not responding when IEXPLORE/EXPLORER waiting for timeout(or searching the net) by using WMI or if i should not use WMI on this case,tell me PLZ how i could do it. (CPU usage=0%,but all opened windows or part of them are not responding while internet explorer or windows explorer waiting for 'timeout' . This situation looks like deadlock or delay for a while,or because GDI does not responce proparly because it cannot redraw window till it gets answer back. ) 10x, Maria. Hi! I'm not trying to find or fix a bug.I just know that those situations can happen and i just want to catch or recognize it. Maria. You can not detect such situatio ...Show All

  • mbp OnShutdown() method does not work !

    Hi all experts, I am using VS Pro 2005 and Win XP Pro. I have developed a C++ Window Service to detect the shutdown event and perform some tasks before desktop shutdown. I have followed the MSDN instruction and assigned CanShutdown to TRUE. However, I found that OnShutdown() method is not being called. Could anyone please help me Many Thanks The following sample codes are attached for your reference: =============================== virtual void ABCWS::ABCWSWinService::OnShutdown() override { ServiceStatusLog->WriteEntry("ABC Shutdown"); } void InitializeComponent(void) { .. this->CanShutdown = true; .. } =============================== ...Show All

  • soni_ace modal dialog box not closing quickly enough

    Hi. I have a single threaded MDI application with several windows that are concurrently open and displayed during normal operation. I need to print the contents of a user-selected window. Per end-user request I display a CDialog based modal dialog box that allows the user to select the window he wants to print and then click on the OK button. I have code that then takes a bitmap snapshot of the requested window and prints it to the printer(from KB article q186736). So far so good, but if the dialog box overlaps the window that the user wants to print, the overlapping part of the dialog box is also printed. This doesn't make sense to me - the dialog should completely go away as I understand it. FWIW here's a code snippet: ...Show All

  • Sanophy msvcr80.dll Problem

    Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin having the same problem, did you get a fix for this Are you sure that WinDoctor is right Thanks much everyone for the feedback. Sounds to me like its an inconsequential error that Norton will need to address in a future update to look for it in the correct dir. I read on an msn blog somewhere (sor ...Show All

  • Sigfuss Multiple file extensions

    If I create a C++ project and select 'MFC application', there is a dialog where I can enter the file extension I want to use. If I want to use two different file extensions in my program, for example '.abc' and '.def', then what shall I do I am sorry if I posted in the wrong forum, but it was the the first time I posted, so I didn't that MFC is outside the scope of this forum. You asked a question that I want to answer. The two extensions are for two different formats, and I want to add that it is an SDI project.   Simon Eriksson wrote: Thanks a lot for helping me! When I create a new MFC project (SDI application), the MFC application wizard display ...Show All

  • Arpit Arora Unexpected operator function call.

    I have a class with overloaded operators. The most basic example I can create is as follows. //class.h class testclass { private: char cbuf[50]; public: testclass(){cbuf[0] = '\0';} testclass(char* pchar); testclass operator+(testclass& nclass); testclass operator+(char* pchar); testclass& operator=(testclass& nclass); testclass& operator=(char* pchar); operator char*(); }; //class.cpp #include <string.h> #include "class.h" testclass::testclass(char* pchar) { strcpy(cbuf, pchar); } testclass& testclass::operator=(testclass& nclass) { strcpy(cbuf, nclass.cbuf); return *this; } testclass& testclass::operator =(char *pchar) { strcpy(cbuf, pchar); return *this; } testclass tes ...Show All

  • Sergey Zwezdin Getting Error Description.

    Hello Everyone, Is there any way i get the Error Description or Exceptions Description when i use try { --- Some code here. } catch(...) { --Exception Descrption .. } I want to get the description in the catch block, is it possible if so then how can i get Thanks Thanks for the Reply. but in many case, i m not sure that what kind of exception can occurs, so what is the ideal thing to do in kind of situation That depends on why the exception was thrown. If your catch all block get an exception because a subsystem like winsock has reported an error, you can get an error code with WSAGetLastError. This isn't a very good approac ...Show All

  • Emmanuel Huna UI thread dialog???

    Hi everyone, I like to write a MFC program where files will be copied from one place to another. While worker thread is copying the files, I like to show users a window with file copying (the copied files will be displayed, then the some other file operations that worker thread will be processig at a time, are also to be reported). But the thing is that I don't know what kind of class would be used to implement that reporting window and UI thread to have the program with this feature. Can you please help me with that Thanks!!! Thanks for the hint. But I am a beginner in multithreading and need a whole picture. Now, I have created a dialog class (named as "CStatusDialog") that is activated by A ...Show All

  • Alvin Kuiper Tree-view with checkboxes (Win32)

    I have created a tree-view control with the TVS_CHECKBOXES style. I want to include a few items on root level as a kind of headings only. I don't want these to have checkboxes. Then the default functionality is not good enough, but it should be possible to achieve this by providing a state image list and setting the state image index to 0. I have created a bitmap (48x16, 16 colors) with three images. One blank, one empty checkbox, and one selected checkbox. I create the list and selects it with the following code: HIMAGELIST himl; himl = ImageList_Create(16,16,ILC_COLOR4,3,1); TreeView_SetImageList(GetDlgItem(hDlg,IDC_OPTIONS),himl,TVSIL_STATE); I then set an item: TVINSERTSTRUCT tvis; HTREEITEM hItem; tvis.hParent = NU ...Show All

  • stephanielauym VS .NET 2003 VC++: SP1 introduces a nasty compiler bug

    The following code will reproduce a newly introduced (SP1) C1001 compile time bug. Enjoy! -HB ----------------------------------------------------------------------------------------------- // BugTest.cpp : The "nasty bug" revealing application. // // CL /Od /FD /MTd /W3 /nologo /c /Zi /Gd /TP <---FAILS // CL /Od /FD /MTd /W3 /nologo /c /Zi /Gd /TP /EHsc <---SUCCEEDS class IAnyInterface { }; template < class ObjectType> class TC { public : TC( const TC< ObjectType > &right) : data(right.data) {} ~TC() {} private : ObjectType data; }; class Buffer { public : explicit Buffer (TC< IAnyInterface> ifac ...Show All

83848586878889909192939495969798990

©2008 Software Development Network

powered by phorum