Hi, People. Does anybody know how to get number of days in
a certain month of a certain year? Looked all the way in MSDN but failed to find such function.
Tx.
Hi, People. Happy New Year!
What technology I have to choose to write a firewall? I need this to be
done on a single computer which isn't connected to network but only to
internet.
Thanks in advance.
Hi, People. There was some job employer which ask to do a
test which includes services. I need touch this topic but
there isn't too evident info on the web. I just need a very
simple, very small example how to use services.
Hi, People. What one can do with services.
Well, I managed to start, stop, pause nt service programm. But what
one can do practically with this. And where on the web to find
information what to do with services.
Tnx in advance.
Hi, People. How correctly copy CString to char * variable.
I have:
char * message;
CString strContent;
//this one is throwing an exception
memcpy(message,str.GetBuffer(str.GetLenght(),str.GetLength());
How do you do it, pros?
Hi, People. How to copy from char *buff to CString?
I've got such an sample:
int size=file.GetLength();
char *buff=new char(size);
file.Read(buff,size);
file.Close();
strCont=*buff;
//strCont=buff; don't work either
delete [] buff;
return strCount;
everything is good but after I try...
Hi, People. Can't figure out how to highlight CTreeCtrl Item when I
click on the one in stand alone function.
CTreeCtrl& m_ctlTree=GetTreeCtrl();
CSplitterDoc* pDoc = GetDocument();
HTREEITEM hItem=m_ctlTree.GetSelectedItem();
m_ctlTree.Select(hItem,TVGN_DROPHILITE )...
Hi, people. Can't create class with Class Wizard with base Class
COleDragTarget. When I'm trying to choose from drop-list there isn't
such base class like COleDragTarget. What's the problem?
Hi, People. Does anybody know how to communicate treeview control with
list view control. I want to drag item from list view to tree view but
list view capturing mouse events in order to make some manipulation so
my tree control never get chance to react to mouse controls. So all control
in list...
Hi, People. There is a problem with some listview control. When I choose some item in
listview control and try to drag it to treeview control there is no highlighting of treeview
control. I figured out that it is due to SetCapture(); function. Well, I withdrew this function from
there. It is...
What's wrong with this code?
//declaration
GetArrFromName(CString name, CArray<CString,CString>arr);
...
//definition
void CMyClass::GetArrFromName(CString name, CArray<CString,CString>arr){
}
...
While I'm not using this function everything ok.
compiler don't bark at me
but when I...
Suppose I have some classes in Visual C++ project. And suppose I created
every last of them. In other words I created objects from those classes.
How can I get all poiters to those objects. While some objects were created
by Visual C++ internals so I don't know where they started.
I like to...
Does anybody can decipher what this Macro means?
...
#define RUNTIME_CLASS(class_name) ((CRuntimeClass*)(&class_name::class##class_name))
I don't understand the last words:
&class_name::class##class_name
How can I to drag item from CListCtrl to CtreeCtrl with passing some
information from CListCtrl to CTreeCtrl that I dropped an item to the
later. It's like in Outlook when you drag a letter and drop it into the
folder on the left side. I think that I need pass info from one class to
another...
Does anybody know why ioctlsocket don't work properly.
It must place how much bytes is waiting in socket.
When I place breakpoint to ioctlsocket then this function place how much
bytes is waiting in i_HowMuch. But if I remove breakpoint then in
i_HowMuch just zero. Why that? What's the problem...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.