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

Gajendra Sharma

@Gajendra Sharma
About
Posts
22
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Message Deleted]
    G Gajendra Sharma

    Thanks all for the valuable replies. Best Regards. Gajendra Sharma

    Gajendra

    C / C++ / MFC

  • [Message Deleted]
    G Gajendra Sharma

    [Message Deleted]

    C / C++ / MFC

  • [Message Deleted]
    G Gajendra Sharma

    [Message Deleted]

    C / C++ / MFC

  • [Message Deleted]
    G Gajendra Sharma

    hello David, Thanks for your constructive suggestions. I will see how i can use the information provided. Thanks and Best regards. Gajendra Sharma

    Gajendra

    System Admin

  • [Message Deleted]
    G Gajendra Sharma

    May be you are right about the developers you are talking about. May be you are smarter and more talented and experienced then your fellow Indian colleagues or may be you are exceptionally talented. But, If you are saying/thinking that you have not found smarter people then you or if you are saying/thinking that you have never been proved dumb in your career by someone more experienced/talented/smart, then I know that you are lying big time. Nobody in this world is absolute smartest/most talented/ever intelligent. I am pretty much sure that there are dumb people in every society including Russia. If that was not the case, they would not keep the word "dumb" in many languages in many countries. So please do not categorize people based on nationalities. Moreover, There is no person in this world which hadn't have his moments of dumbness. Now to tell you the facts that there is highest percentage of Indian developers in organizations (e.g. NASA/Microsoft)that boast of having the smartest/talented people in the world. No every country has shown there share of dumbness/follies in their history including Russia/former Soviet Union, so dont blame India alone for dumbness detected in this world. As far as I am concerned, i do not have any problem if you think i am dumb. One should have the ability to ask the dumbest of questions if one needs to gain some knowledge.

    Gajendra

    System Admin

  • [Message Deleted]
    G Gajendra Sharma

    Thanks for your help. I could solve the problem by enumerating local interfaces using WSAIoctl and then checking loopback net with flag IFF_LOOPBACK.

    Gajendra

    C / C++ / MFC

  • [Message Deleted]
    G Gajendra Sharma

    Hello Mr. Nickolay Karnaukhov, Thanks for your reply. Unlike you,I refrain from blaming your community/nationality for poking your nose to make un-welcome comments about Indian developers and the not so polite attitude displayed in your mail-as i dont believe in such notions. I am sure that you didn't have any idea of what i was talking about in my post and didn't have anything to help. Like it or not, there are millions of Indian developers across the globe and across the industries whom people like you can seek inspiration from. I am an ordinary developer though who seeks to find answer to my small queries in places like codeproject where some wise and level headed people devote their time to spread knowledge and help lesser mortals like me. Thanks and Best regards. Gajendra Sharma

    Gajendra

    System Admin

  • [Message Deleted]
    G Gajendra Sharma

    David, Thanks for your answer and quick and valuable help. I am not asking about loopback adapter that is optionally installed and does not come with Windows. The Microsoft Loopback Adapter is an optional interface you can install, not a standard part of the OS, and, even *without* that adapter installed, you can send IP packets from the machine to its own IP address, or to 127.0.0.1 (the loopback address), and have them be received by the machine.I assume that the purpose of the Microsoft Loopback Adapter is to deal with cases where you *do* want a network adapter for testing purposes (so that what I presume is internal looping-back by the networking stack isn't sufficient), or where you need a network address other than one that belongs to a real network adapter and other than the 127.0.0.1 (or other loopback network) address. Thus the loopback address i am talking about is different then the loopback adapter that you seem to be talking about which can have any address other then "127.*" net. I was looking for a programming solution on all WIndows platforms e.g. XP/2000, 2003, 2008/Vista. Now i have found the solution, which is to enumerate the local interfaces using WSAIoctl() and checking for loopback net with flag IFF_LOOPBACK for the loopback interface. Thanks again for your help. Best Regards. Gajendra Sharma

    Gajendra

    System Admin

  • [Message Deleted]
    G Gajendra Sharma

    loopback address can exist even if /etc/hosts file dosn't have an entry indicating it. Am i missing something?

    Gajendra

    C / C++ / MFC

  • [Message Deleted]
    G Gajendra Sharma

    Thanks for your reply. I do not want to resolve the loopback address through naming services such as /etc/hosts file. I need to get the real loopback address configured with the machine irrespective of whether it is specified in /etc/hosts file or not. gethostbyname() will give me what is configured in /etc/hosts file. Is there any other mechanism to get the real loopback address of the machine e.g. reading the routing table etc.? Thanks and Best regards. Gajendra Sharma

    Gajendra

    C / C++ / MFC

  • [Message Deleted]
    G Gajendra Sharma

    [Message Deleted]

    C / C++ / MFC

  • [Message Deleted]
    G Gajendra Sharma

    [Message Deleted]

    System Admin

  • robocopy: access denied
    G Gajendra Sharma

    Hello, I am getting "error 5: access is denied " message when trying robocopy: robocopy c:\user\myuser\Documents\myfile.txt c:\user\myuser\mydest /E /XO stagein.txt This happens only when i try to copy a file present is existing folder in user's home, such as: c:\users\myuser\documents or c:\user\myuser etc. Interestingly, if i create my own folder under these folders and try copying a file from there, it works. I have tried giving full permissions, changing acls etc. with cacls . But with no avail. Any help is appreciated. - Gajendra

    Gajendra

    Windows API

  • WIndows Vista: robocopy : error 5 : access is denied, while copying files from user's home directory
    G Gajendra Sharma

    Hello, I am getting "error 5: access is denied " message when trying robocopy: robocopy c:\user\myuser\Documents\myfile.txt c:\user\myuser\mydest /E /XO stagein.txt This happens only when i try to copy a file present is existing folder in user's home, such as: c:\users\myuser\documents or c:\user\myuser etc. Interestingly, if i create my own folder under these folders and try copying a file from there, it works. I have tried giving full permissions, changing acls etc. with cacls . But with no avail. Any help is appreciated. - Gajendra

    Gajendra

    System Admin

  • How to get a port number bound to a given socket using function other than getsockname()
    G Gajendra Sharma

    Thanks for your answer!!!

    Gajendra

    C / C++ / MFC tutorial

  • Strange problem with errno modification while using sprintf call.
    G Gajendra Sharma

    Ok..so nobody knows it....:-)

    Gajendra

    C / C++ / MFC help visual-studio debugging csharp announcement

  • How to get a port number bound to a given socket using function other than getsockname()
    G Gajendra Sharma

    u mean using Get the port number using getsockname()?

    Gajendra

    C / C++ / MFC tutorial

  • How to get a port number bound to a given socket using function other than getsockname()
    G Gajendra Sharma

    I want to avoid the complexity associated with WSADuplicateSocket. I just want to pass the port number across processes, thats my only requirement. I need some mechanism through which i can get socket number in parent process and pass it to the child process as an argument. By parent process i mean process that invokes the second process, which i call the child process.

    Gajendra

    C / C++ / MFC tutorial

  • How to get a port number bound to a given socket using function other than getsockname()
    G Gajendra Sharma

    Thanks for your response. the problem is getsockname() sometimes fails due the following microsoft issue: http://support.microsoft.com/kb/319952[^]

    Gajendra

    C / C++ / MFC tutorial

  • How to get a port number bound to a given socket using function other than getsockname()
    G Gajendra Sharma

    Hello, Is there any way to get port number bound to a given socket using the socket descriptor. I dont want to use getsockname(). Thanks in advance.

    Gajendra

    C / C++ / MFC tutorial
  • Login

  • Don't have an account? Register

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