|
|
I can answer your second question:
It will be sent to the IP that is set as source-IP in the outgoing header.
If your "real" IP was 10.127.3.54 and you change the header to read "Source-IP = 10.127.3.53", the answer to that packet will go to 10.127.3.53.
If there is an answer, that is. The target will simply drop most packets.
Oh, and if you are after messing the target up on purpose, you will (in most European, Asian and American countries) violate at least one law. Depending on where you are doing this from, you might get more than you expected in terms of response and jailtime.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Thank you man,
Really I am not in Euorpe nor in America... Regardless, I am here to learn some aspects of network programming
Thank you
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
I am new to VC++ programming so I am sure this question will be very simple for a lot of you. I am trying to reposition a button every time the user resizes the dialog.
What is the best way to accomplish this?
Thanks!
|
|
|
|
|
masnu wrote:
What is the best way to accomplish this?
By reading the "Extras" section of this article.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
|
Use MoveWindow API.
Manish Rastogi
|
|
|
|
|
|
|
|
In MDI project. I want my child frame fill main frame window. So I inplement this in
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
CWnd* pwnd = AfxGetMainWnd();
CRect rect;
pwnd->GetClientRect( &rect );
cs.cx = rect.Width(); cs.cy = rect.Height();
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
return TRUE;
}
It's very close to success. But look closely, you will find a bit off. main frame overlapped child frame a little bit. I think that is because of edge of main frame window. But I am getting client area, it should not include edge right? any one can explain?
|
|
|
|
|
I create a 1 column, 2 row splitter window. use CreateStatic, because I want too different view in each panes. But I also want dynamically delete a pane, how to do this?
Thank u.
|
|
|
|
|
LeeeNN wrote: But I also want dynamically delete a pane, how to do this?
Use CSplitterWnd::DeleteView() for this.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Hey,
I have form derived from CFormView. On the form I placed a tabcontrol. Now I want to paint a line on the tabcontrol (in my CFormView::OnPaint) and not in the tabcontrol (derived) class!
My problem is that the tab overwrites my graphic... Is there any solution?
|
|
|
|
|
Anyone using good alternatives to WinHTTP and SoapToolkit?
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
install a service on a host OS such as Win2K or XP? I mean the binary executable file. Should it go into the System32 directory? I see that under System32 there is a Drivers sub-dir but nothing for services.
I realize that I can deliver the service with my runtime deliverables and place it into my runtime directory but prefer not to since I may want to leave the service even though my program has been uninstalled or deleted accidentally.
Clarification: I have a program that I will be installing in addition to the service (a RFC-868 Time Server) I will be installing. When my program is uninstalled or the directory is accidentally deleted, I still want my service to run and am looking for the (Windows) conventional directory location that it should be stored in.
-- modified at 11:19 Thursday 26th January, 2006
|
|
|
|
|
Just going down through the list of services on my XP machine, I see that a lot of them reside in the System32 folder.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Hi I need to determine, if possible using VC++, the size and date information relating to the current logged in user's profile.
I can get who is logged in, their Domain and SID value, but struggling to find how to find out details as to if the user's profile is roaming, local etc and then the size/quota, date etc information.
Any help would be greatly appreciated, thanks in advance.
Phil
|
|
|
|
|
P Gibson wrote: ...but struggling to find how to find out details as to if the user's profile is roaming, local etc...
Can you use LoadUserProfile() for this?
P Gibson wrote: and then the size/quota, date etc information.
In what context are you looking for? You might be able to get quota information, although it is not profile related, from here.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Hello All,
is it possible to show an CMDIFrameWnd as or in an ActiveX.
The background is that i have an comm dll with this frame inside.
Now i will create an ActiveX which shows this frame.
|
|
|
|
|
|
Hi Friends
Yesterday also I have posted the same question but I didn't get any reply.
I have my dialog based application which shows one form and it contains one button. When I press the button I create new desktop and then use switch to the new desktop. Now I want to show one more dialog form in this newly created desktop. But I am unable to do it. is there a way to do same?
Or is there a way to give parent window or attaching it to other desktop?
I am pating my little code here so that you can have exact idea what I am doing.
//My CPP file
HDESK hOriginalThread;
HDESK hOriginalInput;
HDESK hNewDesktop;
// Save original ...
hOriginalThread = GetThreadDesktop(GetCurrentThreadId());
hOriginalInput = OpenInputDesktop(0, FALSE, DESKTOP_SWITCHDESKTOP);
// Create a new Desktop and switch to it
hNewDesktop = CreateDesktop("MYDesktop", NULL, NULL, 0, GENERIC_ALL, NULL);
SetThreadDesktop(hNewDesktop);
SwitchDesktop(hNewDesktop);
// Here I want to show my new dialog form
CMyDlg objDlg;
objDlg.DoModal(); or objDlg.ShowWindow(SW_SHOW);
// Restore original ...
SwitchDesktop(hOriginalInput);
SetThreadDesktop(hOriginalThread);
// Close the Desktop
CloseDesktop(hNewDesktop);
return 0;
Any idea how to achieve...
Regards
Mahesh
|
|
|
|
|
Hi,
I had a look to your problem yesterday, but could not find any satisfying answer to it.
Some questions:
Amarelia wrote: CMyDlg objDlg;
objDlg.DoModal(); or objDlg.ShowWindow(SW_SHOW);
Is CMyDlg your main dialog ? Do you want to create another instance of your main dialog in the new desktop ? or is it an instance of another child dialog ?
Other question : Do all SomehtingDesktop() functions you use in the provided code snippet return TRUE ?
~RaGE();
|
|
|
|
|
Hi Rage
First of all my heart felt thankx that you give some time to look into my question.
No CMyDlg is not my main dialog. It's another dialog whose any instance is yet not created. You can say it's another child dialog. Even if it's possible to show another instance of the same dialog in other desktop then also I will be little bit happy.
Yes my all SomethingDesktop functions execute perfectly and give TRUE value.
Anything else you want to know...I'll be glad to answer u'r questions...
Hope to see some positive answers
Mahesh
|
|
|
|
|