Answer Questions
RonSQL Can Anyone help me on CSocket memory leakage issue
Hi All, I'm facing a memory leakage issue when i use CSocket in Visual Studio 6.0 ( VS Service Pack 6) Windows XP Service 2. This problem doesn't appear when i disable the themes service. The below link suggests this fix.. http://www.codeguru.com/forum/showthread.php t=370761 But i'm not able to find any information about this in microsoft website. Can anyone please suggest me with the patch for this issue Or point to me a link in ...Show All
georgemga increment in C++
#include<iostream.h> void main(){ int a=5; cout<<++a<<a; cout<<"\n"; cout<<a; cout<<"\n"; } the above code generates the following output: 65 6 but as per me the output should be as follows: 66 6 why does the incement doen't show up the second time There is a toll called lint that gives warning about this. Look a gimple software. All ...Show All
StarRrr C++/CLR mixed DLL crash (sometimes even the debugger)
Sorry for the bad title but the problem is not easy to describe with only a few words. For a current project we need to reuse an old VC++ 6.0 DLL that makes heavy use of custom COM interfaces. To heavy for the standard COM interop. Because of this we have decide to build a C++/CLR wrapper around this old DLL. Work very well in one direction. But the DLL is used to communicate with external systems and use some custom COM interfaces t ...Show All
ash141vsp2003 how to copy directory ?
Hi People, i was going through the API regarding copying of a directory from one location to another, however, the MSDN always seems to point back to the "Directory" class to do the copying. However i could not find any examples which could help me or show me what needs to be called and passed in when using the Direcory class to copy whole directories. If you add a reference to Microsoft.VisualBasic.dll, you can access this method: Micr ...Show All
Hiromi Nakura Unhandled C++ exceptions and Doc Watson
Here is my problem. I have an unmanaged C++ application that occasionally has an unhandled C++ exception. Following good debugging practices I have the PDBs installed on the target machines that demonstrate the problem. Under normal circumstances when an exception occurs Doc Watson will log the information I need (like call stack) to duplicate the problem. Doc Watson is properly configured and works for general exceptions like Win32 exceptions. ...Show All
David Lowndes Exception when accessing an array element
This is just weird. I'm trying to iterate through an array of structures, passed as a pointer like so: void creeaza(Digraf* d, char * filename) Where the type Digraf is defined through these structures: typedef struct l{ int nr; l* next; }*LIST_AD; typedef struct { LIST_AD laI; //first element if internal list LIST_AD laE; //first element of external list ...Show All
mack0196 Managed class in a MFC ActiveX control
I have a MFC ActiveX Control peoject, and I am trying to create a managed class within the control project with the /clr option. The code compiles and links without errors. So now when I am trying to add reference to the ocx in a C# project, I get the interop stuff the COM control class, but nothing for the managed class. If I rename, says abc.ocx into abc.dll, and do the add reference to the dll, I get the reference to the managed class, but no ...Show All
Mack the knife passing arguments to a System(something.exe) function
Background : I have an MFC application and a c++ program (separate entities). I did a build on the c++ program, and copy pasted the resultant 'exe' formed in its debug folder into the MFC application's folder. Now in the MFC, I am calling the function "System(mt.exe)", which is a call to the exe that I had copy pasted. Question : This exe (ie the c++ program) uses a variable 'counter' at some point in its execution. Is it possible for ...Show All
casali-andrea where can I get the "standard document of c++/CLI", any type( doc,pdf,etc..) ok?
where can I get the "standard document of c++/CLI", any type( doc,pdf,etc..) ok http://msdn.microsoft.com/visualc/homepageheadlines/ecma/default.aspx ...Show All
DBG simple question
i was reading mfc book by jeff. i had installed vs 2005 . i tried simple programme but it does not works just add this to onpaint CPaintDC dc(this); CRect rect; GetClientRect(&rect); dc.DrawText("hi ",-1,&rect,DT_CENTER); but there is no display in output Did you update your message map to contain the entry for WM_PAINT That looks fine to me. What sort of project did you create Did yo ...Show All
intrader separate class files for namespaces
I'm writing some C++ library classes that I plan to use in my applications. Making a DLL. I write the classes in my_class.h, my_class.cpp file pairs. If I wish to organize these classes into namespaces, how do I do it without cutting & pasting the code text into a suingle translation unit Should I be using a MFC library object or a .NET class library Thank you for the advice. I must confess that my first ...Show All
slee1435 floating point vector optimization
Hello code gurus, I'm a recent arrival form the CodeWarrior PPC world, and hope someone can orient me toward the appropriate docs and examples. I need to do some floating point (double preferred) operations on vectors, basic ones like vector +,-,/, *, sqrt, dot product. Vectors are sized at runtime and don't change once created. I've read about hardware SIMD instructions and want to use these. 1) Do I need to use the SIMD instructions e ...Show All
Tech_Prince Help with how to read/write to COM port in VC++.NET
I was wondering if someone could tell me why my code will not read from a COM port successfully. My output window says that no bytes have been read. I have attached my code below. Thanks! #include "stdafx.h" #include "windows.h" #using <mscorlib.dll> using namespace System; int _tmain() { HANDLE hSerial; BOOL w_ret; BOOL r_ret; hSerial = CreateFile("COM1",GENERIC_READ | GENERIC_WRITE,0,0,OPEN_E ...Show All
nkerkin .NET, VC++ and COM
I have an API written in C++ that exposes all the interfaces as COM objects. This API is current ly used in a few VB6 Projects. I am migrating some of these VB6 Projects to VB.NET and although I can use the current API with COMInterop, it would be better if I could actually use a NET API. I am also not going to be able to port all my VB6 applications so my questions are: a) Is there any way to expose my API as a NET API instead of a traditional ...Show All
ThomasSob ON_WM_NCHITTEST definition incorrect
In the VS 2005 doc page "MFC Library Reference WM_ Message Handlers: N - O", we have ON_WM_NCHITTEST( ) afx_msg UINT OnNcHitTest ( CPoint ); However, in afxmsg_.h, the definition is #define ON_WM_NCHITTEST() \ { WM_NCHITTEST, 0, 0, 0, AfxSig_l_p, \ (AFX_PMSG)(AFX_PMSGW) \ ( static_cast < LRESULT (AFX_MSG_CALL CWnd::*)(CPoint) > (&ThisClass :: OnNcHitTest)) }, ...Show All
