|
Jörgen Sigvardsson wrote:
yes!
and what is it ?
|
|
|
|
|
I don't know. I just answered his question..
I know it is possible though. You can read and write ethernet packets without any special voodoo. And ICMP packets are quite easy to construct as well, so I do know that it is not impossible.
--
Unser Tanz ist so wild! Ein neuer böser Tanz.
Alle gegen Alle!
|
|
|
|
|
I know that the answer is yes too but , if i really dont know how to do it, then no point in replying the question.
|
|
|
|
|
|
Thanks Mr.Prakash.
But, the source code you specified is using socket commands
like gethostbyname,WSAStartup...
With Best regards,
A.Ilamparithi.
|
|
|
|
|
Hi,
I am writing a P2P chat application. It allows two persons to communicate with each other over the internet using their IP addresses. The application works fine when both users are directly connected to the internet. but if one user is behind a firewall or proxy, the application does not connect. I understand that I have to bypass the proxy using SOCKS protocol. I want to ask is there some class or other method, that does this for me, that is, any implementation of the SOCKS protocol. I am using Visual C++ 6.0.
|
|
|
|
|
hy, i have a virtual function in a class. i must go sure, that every class who is inherited from this class overwrites this function, otherwise a warning shoud occur at runtime, or something like that. is this possible??
thanx andreas
|
|
|
|
|
in the base class make the functino pure virtual
like
virtual void somefunction() = 0; //pure virtual function.
this ensures that the derived class has to override/implement the method.
|
|
|
|
|
yes, but i need a technique, who workes also when i derive a class from a derived class and so on!
is there any trick?
|
|
|
|
|
Please do read about pure virtual function.
|
|
|
|
|
yes, but what, if i make a pure virtual function (abstract class) then derive a class from it, and implement this function. now i derive a class from this class, and forget to overwritte this function, how will i know?
|
|
|
|
|
It will cause a compile error.
Robert-Antonio
"CRAY is the only computer, which runs an endless loop in just 4 hours"
|
|
|
|
|
It doesnt for the second derivation.
|
|
|
|
|
there is no complie error(on the 2th. deriv)!!!
is there any trick, or technique, that could give me
a compile error?
|
|
|
|
|
If you derive the class from CObject in MFC then i guess you can use the RTTI to determine which object's method is called and then generate the error accordingly.
|
|
|
|
|
so it would be possible that, whenever someone is calling the function, who is not overwritten (and therefore the one of the superclass is called) it throws an error?
that would be grat!
|
|
|
|
|
Maybe some light.
Any function has its start address. So you can check whether the start address of the function in the derived class is the same as the address of the function in the super class itself. If so, you could fault on runtime.
It has some difficulties, and some knowledge of vtables seem to be handy here, but I think it is in the direction you should be thinking.
LPCTSTR Dutch = TEXT("Double Dutch ");
|
|
|
|
|
No.
This is a very serious design flaw in C++.
(It gets worse. Say you created a function of the same name in the inherited class, but very slightly changed one of the parameters. You're screwed.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hey... Got a question about detecting debug vs. release configurations. I am working with an app at work that gave me an assertion error the other day. It included the filename and the line number in the error message. This would mean that the EXE we got from the vendor was compiled with DEBUG flags on. (I'm sort of a newbie (6 months as a convert from VB6).)
My question is... is there any way to tell whether an exe or dll was compiled with Win32 Debug configuration without opening in a hex editor and looking for extra symbols? (I'm trying to see if I can automate the process for a software test team.)
Thanks!
Tojam
|
|
|
|
|
one thing i would do is that open the exe or the dll with dependency walker and find anything that depends on debug dlls like mfc42d.dll or mfc42ud.dll if it does then this binary was build in debug version.
|
|
|
|
|
Well if you want, you can search on the net for Windows PE file Specification, and according to it ".exe" file compiled with debug information will have ".debug" section. If you find this section, this means your ".exe" file has dubug information included.
Best Regards,
Bilal Anjum
|
|
|
|
|
Hi,
I have still two little questions.
I can restart, stop, pause the application by using the service control manager. Are there somehow some messages sent to the program so i can do some additional work . (for example, reboot a service which is minimised to the task bar .. two icons in the task bar) If you move with your cursor above it, one will disappear. But it is not nice to see two icons
Greetings,
Jens
|
|
|
|
|
執行這一行
HINSTANCE inst = AfxGetInstanceHandle();
會停在
MFC\Include\AFXWIN1.INL
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetInstanceHandle()
{ ASSERT(afxCurrentInstanceHandle != NULL);
return afxCurrentInstanceHandle; }
好像afxCurrentInstanceHandle是NULL的關係
這是因為什麼原因?
是我少Call什麼Function嗎?(win32 application project)
|
|
|
|
|
You are more likely to get an answer if you ask the question in English.
Lots of people here can read bad english. Not as many people can read chinese.
Try again!
Iain.
|
|
|
|
|
Hi,
Help me to change the account type of current user in Windows XP dynamically through my application. (ie. Normal user to Administrator or viceversa)
Provide me is there any demo projects to download...
Thanks in Advance
iRams
|
|
|
|