|
"The above message is a fine specimen of office correspondence in India. Can you stomach this stuff ? "
Can u make it clear?
|
|
|
|
|
learn to use words the way they are spelled in a dictionary. reading '4' as 'for' is really painful. i see absoultely no reason why a "with" can be replaced by "vth". is it that difficult to type in a few extra letters ?
|
|
|
|
|
avsrivastava wrote: is it that difficult to type in a few extra letters ?
Ofcourse not, but since he is quite new to here thats why.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Actually when you post something here, use complete english words for that. Here people don't use to write short forms of the words.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thank you so much,
I really didn't know that over here shortcuts of the words should not use. I will take care of it in the future. And one more thing I am Ms. not Mr.
Thank you once again.
|
|
|
|
|
Always welcome..
hiral_shah wrote: And one more thing I am Ms. not Mr.
May be I got confused with the name..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Can you repeat that in English (or even German or Thai)???
Please don't use text-speak in the Lounge!
Anna
Currently working mostly on: Visual Lint
Anna's Place | Tears and Laughter
"Be yourself - not what others think you should be"
- Marcia Graesch
"Anna's just a sexy-looking lesbian tart"
- A friend, trying to wind me up. It didn't work.
|
|
|
|
|
This forum uses the English language. Please respect the language of the board.
|
|
|
|
|
Hi,
I got some compilation errors when including both winsock.h && Ws2tcpip.h in my .cpp file.
Eg:
"C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\Ws2tcpip.h(28) : error C2011: 'ip_mreq' : 'struct' type redefinition
1> C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(372) : see declaration of 'ip_mreq'
1>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\Ws2tcpip.h(71) : warning C4005: 'IP_TOS' : macro redefinition
1> C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(361) : see previous definition of 'IP_TOS'"
so on.....
I am using visual studio-2005.
Thanx in Advance.
|
|
|
|
|
Instead of winsock.h include winsock2.h
#include "winsock2.h"
#include "ws2tcpip.h"
|
|
|
|
|
|
Hi, Experts,
I'm implementing a shell extension COM dll, to create a Encrypt folder, user can put some file into this folder and excute them.
when user put their file in my folder, I'll encrypt those file, and when user double click the file,
I can hook the open action because I'm in a shell extension, I'll decrypt file to a temp file, then use shell extension to open the decrypt temp file.
Follow is my code, I use a hidden window to perform shellexcute:
HWND hHiddenWnd = CreateWindow(_T("EDIT"), _T(""), 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
ShellExecute(hHiddenWnd,L"open",wszNewModifiedFilePath,0,0, SW_SHOWNORMAL);
DestroyWindow(hHiddenWnd);
But after user close the file, when user try to delete the file, it will occur this file is "lock by another process" message.
And when I close the explorer, then open explorer again to open my shell extension folder, the the file won't lock.
I think it maybe because, I use shellexcute in shell extension COM dll, and it load by explorer process.
so explorer lock the file.
Please tell me how to solve this problem, Thanks!!
|
|
|
|
|
Within a project work I have to print rich text files from a console program. Did anyone know a solution for this problem and can provide me a sample code or a library to do this or give me a link to an article that helps? It would really help, because I stepped to articles here on the site and since now didn't get the clue.
|
|
|
|
|
can anyone help me out in clearly understanding the concept of COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS. I have gone through lots of books but still i am not much clear as why we go for COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS.
Kindly help me out.
|
|
|
|
|
Virtual destructors have the same meaning of virtual methods.
Those are useful if you use a base class pointer to hold a derived class pointer.
if base class destructor is not virtual :
class A
{
public:
~A() { cout << "Class A destructor"; }
};
class B : public A
{
public:
~B() { cout << "Class B destructor"; }
};
B *Bobj = new B;
A *Aobj = Bobj;
delete Aobj;
Only the A destructor is invoked.
if you make A destructor Virtual, the destructors of derived class and base class (in this order) are invoked.
Copy constructors are used to copy an object, in these cases:
MyClass obj;
MyClass obj2(obj); // Copy constructor invoked
MyClass obj = obj2; // Copy construcotr invoked
obj = obj2, in this case the assignment operator is used ...
|
|
|
|
|
copy constructor have an explicit enough name ! it gets another instance of its class, and duplicate it into "this"...
imagine in one class, you have a pointer to an object. if you make a simple copy, you would duplicate actually the address, ,not the object pointed. a copy constructor allow you to make a deep copy...
virtual destructors is another topic, with no relation with the first one. in a general mean, you tell a destructor to be virtual if you think that you class can be derived.
|
|
|
|
|
Subramaniam s.V. wrote: COPY CONSTRUCTORS
A copy constructor is used to copy the contents of one object to another. A copy constructor unlike the assignment operator is also responsible for creating the object alongwith the initialization.
Ex:
class sample
{
public:
sample()
{
}
sample(sample &s)
{
cout<<"In Copy Constructor:"<<endl;
}
};
void main()
{
="" sample="" s;
="" *s1="s;" copy="" constructor="" is="" called
="" s2(s);="" called="" in="" this="" case="" also
="" s3;
="" s3="s;" overloaded="" assignment="" called
}
="" a="" differs="" from="" an="" operator="" terms="" of="" creation="" object="" alongwith="" the="" initialization="" variable="" class.in="" there="" piece="" meal="" copying="" contents.
when="" we="" are="" using="" creating="" deep="" object.="" create="" shallow="" object.
so="" use="" constructor.
<blockquote="" class="FQ">Subramaniam s.V. wrote: VIRTUAL DESTRUCTORS.
We need virtual destructors to perform memory cleanup from derived class to the base class.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
See here[^] and here[^] maybe it is some helpful to you
|
|
|
|
|
Hi all,
I would need to close a pop-up menu when the current session expires automatically in my application.
This pop-up menu is displayed by TrackPopupMenu() when the user presses the right button on a window. On the other hand, when a time-out occurs (OnTimer()) the current session expires, and I would like to close all possible pop-up menus.
Could anyone help me?
Thank you.
Ser.
|
|
|
|
|
seanru wrote: and I would like to close all possible pop-up menus.
May be you can send a WM_LBUTTONDOWN message to the main window.
|
|
|
|
|
Off the top of my head WM_CANCELMODE[^] is the way to go to cancel menus.
Iain.
|
|
|
|
|
Thanks for your answers.
Anyway, I think it doesn't work.
What I need to do also is to 'close' Start Menu when a timer expires in my application, because that application should go to foreground, and Start Menu should disappear.
I tried to send WM_KEYDOWN and WM_LBUTTONDOWN to Windows task bar, but it does not work.
How could I close that Menu??
Thanks.
|
|
|
|
|
Sadly, the start menu is only an imitation menu. It has a load of non-menu features, and varies from one operating system and service pack to another.
About the only thing I can think of is to find the window with the current focus, and send a WM_KEYUP / WM_KEYDOWN with VK_ESCAPE as a parameter.
Iain.
|
|
|
|
|
Hi,
I have a thirdy party OCX. There is a sample VB program which uses "On Error" to trap runtime errors when an OCX method is invoked.
I want to build my application using this OCX and VC++. How do I trap runtime errors ? Do I have to use exception handling ?
Thanks
|
|
|
|
|
Nyarlatotep wrote: Do I have to use exception handling ?
yes
use
try...catch
nave
|
|
|
|