|
pls overload new ....
so u can do as u like
|
|
|
|
|
why not using std::string ?
|
|
|
|
|
No particular reason, but I would like to keep the size of the exe down to a minimum. Besides I'm on a learning curve
|
|
|
|
|
basically, if you use C++ (and you do, as new operator is not a C operator), prefer C++ classes instead of the C-runtime. STL is a powerful library which is too much abandonned because of the fear of templates...
|
|
|
|
|
I totally agree with you. I am just the sort of person who can't settle for "If it works it works", I need to know how it works. When I understand exactly what the code is doing behind the scenes, I have feel I have more control over what I can do.
|
|
|
|
|
pls check the following http://www.research.att.com/~bs/bs_faq2.html#placement-delete
these may b euseful
RinuRaj
|
|
|
|
|
please, stop you SMS typing. use full words so that every one can understand you...
|
|
|
|
|
Thanks for that, I suppose overloading them is the only way to go, but I can't understand why an operator for this wasn't created along with new and delete.
|
|
|
|
|
waldermort wrote: I suppose overloading them is the only way to go
nope. new serves for allocating a new object, not reallocating an already existing one...
|
|
|
|
|
plz kindly help me in my project
#sanroop#
|
|
|
|
|
Why don't you have a try first and show us what you did? Then we would be able to better help you.
|
|
|
|
|
I guess its a general question
|
|
|
|
|
See here[^] is this your answer?
|
|
|
|
|
Hi,
How you get the coordinates (screen) (on Win32) of the icon/exe/shortcut that initiated an exe. I.e how can I obtain the position of the icon/mouse, on which i clicked/double clicked and my application started.
Thanks in advance.
|
|
|
|
|
Can you be more specific,please
|
|
|
|
|
I don't think this is possible. What exactly are you trying to do, popup your window next to the icon or something?
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Steve Echols wrote: popup your window next to the icon or something?
yes that is true.
|
|
|
|
|
|
Please suggest me an article which helps me working with UDP.
I know working with TCP.
Thank you
KIRAN PINJARLA
|
|
|
|
|
See Here you can find the articles on UDP
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thank you _AnShUmAn_
KIRAN PINJARLA
|
|
|
|
|
|
Hi!
I am u using a Tree View control to get windows folder list. I am using IshellFolder Interface and PIDL to add folders to the list. The Problem is that I dont want some virtual folders to be added into the list.
Is there some way to determine whether the folder is virtual folder or some other special folder using its PIDL??
Thanks in advance!
|
|
|
|
|
See is this[^] good for you
|
|
|
|
|
Thx for the link! It was really helpful. I am facing a new problem now.
I am using SHGetDataFromIDList() function to determine the type of the PIDL variable.
Althought the fucntion returns NOERROR, I am not able to check the values of pv.dwDescriptionId structure. WHat I am trying to do is check dwDescriptionId and determine whether it is a FIXED drive or a removable.
here is my code
SHDESCRIPTIONID pv;<br />
HRESULT hres=SHGetDataFromIDList(pParentFolder,pidl,SHGDFIL_DESCRIPTIONID,&pv,sizeof(SHDESCRIPTIONID));<br />
if(hres==E_INVALIDARG) <br />
{<br />
MessageBox("ERROR","OK",MB_OK);<br />
}<br />
if(pv.dwDescriptionId & SHDID_COMPUTER_REMOVABLE)<br />
{<br />
MessageBox("REMOVABLE","OK",MB_OK);<br />
return;<br />
}
Plz help me!!
|
|
|
|