Hi, I try to use the DumpElements function to dump specific information from a CMap. If I define the Dump function has follow: template <> void AFXAPI DumpElements (CDumpContext& dc, const CString* pElements, INT_PTR nCount) { … do something } I get a linker error (LNK2005) that this function is already defined in a other obj. The only thing defined in this obj is a other CMap of CStrig. Is there any sample available on you to properly use this function? Thank you Sascha Schantz
Sascha
Posts
-
How to use DumpElements ? -
Copy XML string into a nodeIf I am not mistaking you are using the .NET Framework. I need to do the same whiteout the framework and use directly the MSXML.dll
-
Copy XML string into a nodeHi, I am working on a C++ application using MSXML 4.0. I have a update function that need to update a node of the XML document. The function only receives a XML string that contains the new XML string corresponding to the node. How can I copy the XML string into the node? Thank you.
-
text string ID to numeric IDThank you. This is what I was also thinking.
-
text string ID to numeric IDI am receiving some configuration setting via a XML document. One of the entry is the caption of a column header. The caption is given using a string ID (IDS_COL1_CAPTION) when extracting this info from the XML document the resulting value is a string containing “IDS_COL1_CAPTION”. Is there a way to convert this text string ID into a numeric ID to be able to use the LoadString function of CString? Thank you
-
Problems with conjg in complex class !Hi I need the complex class for (!) complex calculations (Visual C++ 5.0). There is no problem in using the class but: If I try to get the conjugate complex of a complex it doesn´t work !!! In the complex.h is conjg defined but if I use conjg an error occured: - conjg is undeclared... e.g. #include using namespace std; complex x(1,2); sqrt(x) is no problem, but conjg(x) doesn´t work. Can anybody help me ? bye and thanks, Sascha
-
How can I set an user defined icon (e.g. 32 x 64) in a buton ?Hello It is no problem to set an icon in a button, but I have problems to set a user defined icon. The icon size in a buton is only 32 x 32, but I need a schowable size of 32 x 64 (or bigger). I use this code : CButton m_Button; HICON m_Test; m_Test = AfxGetApp()->LoadIcon(Icon_Test); m_Button.SetIcon(m_Test); Another Question: How can I set an icon and a text in a button ??? thank`s and bye, Sascha
-
How to set a individual row-picture (Bitmap) in ClistCtrl ?Hi I`m in trouble with setting a bitmap in any row I want in ClistCtrl. I have no problem to make a ImageList, but it put the same bitmap in every row. I need to put any bitmap in any row I want. The CListCtrl was made by MFC-Wizzard. Can anybody help me ? thanks, Sascha
-
Problems to get double from CListCtrl...Hi I need to enter and get 'double'-values from CListCtrl. At the moment, I can enter and get CString from CListCtrl. So far, so good but CString is not double !-) Can anybody help me or give a tip ? bye, Sascha bye the way: www.codeguru.com is very good, but I need a simple solution if possible.