Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

Ghasrfakhri

@Ghasrfakhri
About
Posts
103
Topics
44
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Socket Connectioin via Proxy
    G Ghasrfakhri

    Hello (It maybe not related to this board, but I'm sure there is many intelligent person they can help me) I need to know how to use a HTTP proxy server to mack a socket like connection for example for contact a whois server.:confused: thanks you very much

    Iman Ghasrfakhri

    C / C++ / MFC tutorial sysadmin help

  • missing storage-class or type specifiers
    G Ghasrfakhri

    I have this problem when I have 2 or more file Included eachothere (file 1 include file 2 & file 2 include file 1) Iman Ghasrfakhri

    C / C++ / MFC help question

  • How to hide fiel name in URL
    G Ghasrfakhri

    Hi your home page most ha a name like default.asp or index.php. & for hide othere pages place each page in a separate directory file names most be index.php or default.asp or some think like this, and use directory name in your links Iman Ghasrfakhri

    Web Development tutorial html database com question

  • How to start with creating Device Drivers
    G Ghasrfakhri

    Hi nice work! you can find some very good articles here[^] Iman Ghasrfakhri

    C / C++ / MFC c++ tutorial question

  • How to scan for a port in the lan.
    G Ghasrfakhri

    Hi in this code I listen a socket to receive server's response and then Send BC message to the network (this is a client action) // m_LSocket is a Class member & its type is CAsyncSocket * m_LSocket->Create(1000); m_LSocket->Listen(); CAsyncSocket s; s.Create(334400,SOCK_DGRAM); BOOL bOptVal = TRUE; s.SetSockOpt(SO_BROADCAST,(char*)&bOptVal,sizeof(BOOL)); char buf[256]; CString Address("255.255.255.255"); // broadcast IP unsigned int port = 1000; // Port No. strcpy(buf,"Requesting Connection"); // Message s.SendTo(buf,256,port); // Sending On the server side you most listen a Datagram socke (SOCK_DGRAM), and wait to receive a connection request. Is it enough.;) Iman Ghasrfakhri

    C / C++ / MFC sysadmin c++ tutorial question lounge

  • Strange prob with Socket CAsyncSocket
    G Ghasrfakhri

    Hi use a pointer to CAsyncSocket & use new to create a instant of socket then after close delete the old one and create new CAsyncSocket instant. it maybe work!:^) Iman Ghasrfakhri

    C / C++ / MFC sysadmin performance help tutorial question

  • How to scan for a port in the lan.
    G Ghasrfakhri

    Hi I have a suggest,I think it is better to use othere way to find server. If you wana to use your messanger on a LAN you can use broadcast messages. when a client want to find server Send a BC message on the network if server peresent answer it by sending message contain its IP & other information and if isn't present the client can work as a server after some try and listen for clients BC message. Iman Ghasrfakhri

    C / C++ / MFC sysadmin c++ tutorial question lounge

  • [PHP] functions and variables
    G Ghasrfakhri

    Hi If you want use $variable_2 in other pages of your site you most register a session to use session you most call session_start() function then register your session variable like this $_SESSION['variable_2'] = 1234; then you can use $variable_2 in all pages that have session_start() function session_start() most call befor html codes & php functions that have output like echo & print Iman Ghasrfakhri

    Web Development question php data-structures tools

  • 59:10
    G Ghasrfakhri

    Wow! Iman Ghasrfakhri

    The Lounge

  • POTD
    G Ghasrfakhri

    Oh My God ! Iman Ghasrfakhri

    The Lounge php question

  • PHP AND JavaScript
    G Ghasrfakhri

    Hi You can Define your submit buttons as following then in your PHP code check like this switch($act /* or $_REQUEST['act']*/) { case "do1": //some code to handle first action break; case "do2": //some code to handle 2nd action break; case "do3": //some code to handle 3rd action } depend on the submit button has been clicked, the value of act will change. Iman Ghasrfakhri

    Web Development question javascript php html tools

  • PHP.....?
    G Ghasrfakhri

    Hi Wow PHP! congratulation :D It seem you are using IIS, you most add .php extension to IIS configuration, & tell IIS to opne .php file with c:\php\php4.exe (depend on your PHP version & installation path). If you want to use php & does not need ASP, I suggest to use Zend Studio Server with Apache, or if you want to use IIS use Zend Studio Server on IIS ,It enable Debuging & some othere features. you can fined in in http://www.Zend.com[^] Iman Ghasrfakhri

    Web Development php help question

  • Save As?
    G Ghasrfakhri

    Hi you can use : execCommand(sCommand [, bUserInterface] [, vValue]); **sCommand**: SaveAs **bUserInterface**: [Optional]. This command displays a dialogue box if the bUserInterface argument of execCommand is set to true or omitted. It does not display a dialogue box if the argument is set to false or null and the vValue parameter is present (even if it's null). **vValue** [Optional]: String that specifies the path and file name of the file to which to save the Web page. When the path contains more than one folder name, separate the folder names with two backward slashes (\\). Use it like Iman Ghasrfakhri

    Web Development tutorial question

  • Import Contacs from third party web sites like Ringo
    G Ghasrfakhri

    Hi I wana my website's users be able to invit the peoples are in thire address book in Gmail or Yahoo! mail Like Ringo. Please tell me how to do that or show me a point :) Thanks Iman Ghasrfakhri

    Web Development tutorial learning

  • syntax error '<'
    G Ghasrfakhri

    gr8coaster329 wrote:

    ?xml version="1.0" encoding="utf-8" ? >

    Hi :) I think you most change "< ?" to "<?" , you have an space between < and ? , ? and > <? xml version="1.0" encoding="utf-8" ?> Iman Ghasrfakhri -- modified at 1:26 Sunday 30th October, 2005

    C / C++ / MFC help xml question announcement

  • sort structures
    G Ghasrfakhri

    kerrywes wrote:

    = per[x+1]; 5. per[x+1] = *temp; 6. }

    but replace the content of that ! must change to
    = per[x+1]; per[x+1] = *temp; }
    but in this case you have a problem that the temp is pointer, you most declere it as PERSON temp; Iman Ghasrfakhri -- modified at 1:12 Sunday 30th October, 2005

    C / C++ / MFC data-structures question learning

  • IP range. Help Needed
    G Ghasrfakhri

    Hi bit AND used to check if source and destination IP is in a rang. S-IP 192.168.0.1 = 11000000.10101000.00000000.00000001 D-IP1 192.168.0.2 = 11000000.10101000.00000000.00000010 D-IP2 192.168.10.3 = 11000000.10101000.00001010.00000011 Mask 255.255.255.0 = 11111111.11111111.11111111.00000000 S-IP AND Mask = 11000000.10101000.00000000.00000000 D-IP1 AND Mask = 11000000.10101000.00000000.00000000 S-IP AND Mask = D-IP1 AND Mask S-IP AND Mask = 11000000.10101000.00000000.00000000 D-IP1 AND Mask = 11000000.10101000.00001010.00000000 S-IP AND Mask <> D-IP2 AND Mask Iman Ghasrfakhri

    C / C++ / MFC help tutorial

  • Function parameters tip
    G Ghasrfakhri

    Hi You can get that tip by press Ctrl+Shift+Space Iman Ghasrfakhri

    C / C++ / MFC csharp visual-studio question

  • while (*p++);
    G Ghasrfakhri

    first Compare value of *P & then inc P , *p++ used no *(++p) Iman Ghasrfakhri

    C / C++ / MFC

  • Get the folder of current application
    G Ghasrfakhri

    Hi You can extract Path easily, Like GetModuleFileName(NULL,m_CurrentPath.GetBuffer(512),512); m_CurrentPath.ReleaseBuffer(); m_CurrentPath.Delete(m_CurrentPath.ReverseFind('\\'),m_CurrentPath.GetLength()-m_CurrentPath.ReverseFind('\\')); Iman Ghasrfakhri

    C / C++ / MFC json question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups