Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: headshot

Search: Search took 0.02 seconds.

  1. FWPM_LAYER_INBOUND | OUTBOUND_IPPACKET_V4 capture all packet in WFP ?

    Hi guys
    I have read http://msdn.microsoft.com/en-us/library/windows/desktop/aa366492%28v=vs.85%29.aspx
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff549939%28v=vs.85%29.aspx ...
  2. Replies
    6
    Views
    1,292

    Re: How to convert IP to hex using C++ ?

    Hi cilu .
    Yes, my ideas exactly what you do
    Thank you so much
  3. Replies
    6
    Views
    1,292

    Re: How to convert IP to hex using C++ ?

    Hi S_M_A , I have tried that code , but it`s wrong . Did you try http://www.mustat.com/127.0.0.1 . you can see ip hex.

    Hi Clark_Kent_SuperCodr and cilu
    Can you demo some of code for me ?


    ...
  4. Replies
    6
    Views
    1,292

    How to convert IP to hex using C++ ?

    Hi guy .
    I don`t known how to convert IP to hex .
    In this link http://www.mustat.com/70.42.23.121 (Ip host codeguru.com) . I see hex IP : Hex IP 0x462a1779
    I want to convert IP "70.42.23.121" to...
  5. Replies
    8
    Views
    1,291

    Re: How to drop packet Using C++?

    Hi Oreubens .
    I use sniffer in my computer . When i go to google.com in web browser such as firefox , IE ,etc.. Application will drop packet because IP google.com in banned IP .
    30313 .
    I have...
  6. Replies
    8
    Views
    1,291

    Re: How to drop packet Using C++?

    Hi Paul and Igor
    I am currently studying and researching. Thank you so much advice from you.
    I try to do a program packet filtering and blocking packet. Accordingly we block packets based on the...
  7. Replies
    8
    Views
    1,291

    Re: How to drop packet Using C++?

    Hi Sir .
    Not so
    I will have a list of banned IP, In my LAN, the packet if the same destination IP in banned list, drop the packet
    For example :
    List IP : 8.8.8.8
    123.456.789.123
    9.9.9.9
    ...
  8. Replies
    8
    Views
    1,291

    How to drop packet Using C++?

    Hi for all.
    I want to drop packets using C ++ based on the destination IP address
    For example: the packet to IP address 8.8.8.8 will be drop.
    Currently, I have captured packet network card using...
  9. Replies
    8
    Views
    1,140

    Re: How to get text input ?

    I found some link from msdn
    http://msdn.microsoft.com/en-us/library/ms535260%28v=vs.85%29.aspx : input element | HTMLInputElement object
    ...
  10. Replies
    8
    Views
    1,140

    Re: How to get text input ?

    yes
    So what can you guide me to get value of textbox on the HTML page
  11. Replies
    8
    Views
    1,140

    Re: How to get text input ?

    Convert the text from Unicode to ANSI


    LPTSTR value_text= new TCHAR[SysStringLen(bstrValue)];
    lstrcpy(value_text, OLE2T(bstrValue));

    The main problems is get value of textbox in HTML page...
  12. Replies
    8
    Views
    1,140

    Re: How to get text input ?

    I think it`s recieved text the user input


    if(dispidMember == DISPID_BEFORENAVIGATE2)
    {
    CComBSTR bstrName;
    HRESULT hRes=m_spWebBrowser2->get_tagName(&bstrName);
    bstrName.ToUpper();
    ...
  13. Replies
    8
    Views
    1,140

    Re: How to get text input ?

    hi .
    About problem memory leak . I must exist string to compare with line in file text , :D:eek:
    Second . I think process ANSI/UNICODE


    // Convert the text from Unicode to ANSI
    LPTSTR...
  14. Replies
    8
    Views
    1,140

    How to get text input ?

    Hello everybody .
    I have read this reference
    http://msdn.microsoft.com/en-us/library/aa752127%28v=vs.85%29.aspx
    http://msdn.microsoft.com/en-us/library/aa768277%28v=vs.85%29.aspx...
  15. Replies
    5
    Views
    404

    Re: How to call function in ALT project C++?

    Hi Sir.
    At line 30-59 and 98-109 , I will open it. But I do not know how to call it and execute, I'm afraid it will not run
  16. Replies
    5
    Views
    404

    Re: How to call function in ALT project C++?

    Hi
    1 ) ALT , it`s mean Active Template Library , using C++ code , write in Visual Studio 2005
    2) Call Function

    strings_t getip(string hostname)
    and put in


    STDMETHODIMP...
  17. Replies
    5
    Views
    404

    How to call function in ALT project C++?

    Hello , I have a project ALT in C++. I want to check IP from file text , compare with url string . But I don`t known how to call it ?



    // BhoApp.cpp : Implementation of CBhoApp
    #include...
  18. Replies
    13
    Views
    2,687

    Re: How to get ip to hostname ?

    Hi all
    I have already edit function getip . I think it`s ok , but get one IP from hostname
  19. Replies
    13
    Views
    2,687

    Re: How to get ip to hostname ?

    Hi . thank for your help
    if you do not mind can see through my code, you can modify it slightly so that IP can print out. I think my jaw getip missing anything. Urge you to check out . I think in...
  20. Replies
    13
    Views
    2,687

    Re: How to get ip to hostname ?

    Hi Ejaz . can you see my code . I think www.google.com have six IP address as pic above :D :D


    #include <stdlib.h>
    #include <iostream>
    #include <fstream>
    #include <string>
    #include <conio.h>...
  21. Replies
    13
    Views
    2,687

    Re: How to get ip to hostname ?

    Hi Ejaz . I think I have libaray ws2_32.lib link. I have links and build, no errors, but can not get the result of running the IP of google.com
    30051
  22. Replies
    13
    Views
    2,687

    Re: How to get ip to hostname ?

    Hi Ejaz . i try it and i get many error . All of error in file "ws2def.h" 127 Error and 16 Warning
    30045
  23. Replies
    13
    Views
    2,687

    Re: How to get ip to hostname ?

    MVSC 2010 Pro v10.0.30319
    I created project : New Project -> C++ ->WIn 32 console Aplication -> Empty Project . Then I add file .CPP to project.
  24. Replies
    13
    Views
    2,687

    Re: How to get ip to hostname ?

    Hi S_M_A . I have read two topic at reference
    In this case . can you build function in my code above ? . If possible , thank so much


    string getip(string hostname)
    {
    //function get ip
    }
    ...
  25. Replies
    13
    Views
    2,687

    How to get ip to hostname ?

    Hello everybody . I have a text file , I want to compare ip with in line text
    This is file text



    codeguru.com

    c++.com
    C#.com
Results 1 to 25 of 25


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center