CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    Join Date
    Feb 2003
    Location
    Bangalore, India
    Posts
    1,354
    Originally posted by SolarFlare
    Gasp! Xe*n???
    Me Xeon You must be kidding We both have almost exact nature (atleast in public) . BTW he is not banned, is he? Might be warned!!!
    Even if our suggestions didn't help, please post the answer once you find it. We took the effort to help you, please return it to others.

    * While posting code sections please use CODE tags
    * Please check the codeguru FAQ and do a little search to see if your question have been answered before.
    * Like a post, Rate The Post
    * I blog: Network programming, Bible

    I do all things thru CHRIST who strengthens me

  2. #17
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    I sure did not understand SolarFlare's comment because I sure know that you are not Xeon.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  3. #18
    Join Date
    Sep 2002
    Location
    Philadelphia ***Epoch: Timeless***
    Posts
    560
    It was just a joke... last we know, Xeon is afc in the army.
    SolarFlare

    Those who cling to life die and those who defy death live. -Sun Tzu

    cout << endl;
    return 0;
    }

  4. #19
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    Well, my thought...

    If people did their own research before posting and we only got intelligent and hard questions, then, well, then practically nobody could answer any of them

    This is to say that I don't really mind if people post questions that can be found by looking through MSDN. When you begin programming, the MSDN docs are daunting and you'll spend two days trying to find what you need. I may be exagerating a bit, but this was the case when I started off. However, of course, the ultimate goal for *that poster* is that he learns to search MSDN himself.

    On the other hand, the "precise question" thing is definitely important on CG. There are quite a few posts every day where somebody replies : "you are doing something wrong, show your source code".

    And well, the matters of common curtousy... I *hate* people who put in their post "Send any replies to [email protected]".

    For the practical side of things, it may be a good article to link to. There are always people who don't take notice of things like these, but there sure are people who have good faith and don't knowingly want to do stuff wrong.
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

  5. #20
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    It would be interesting to define what are good questions. It is more difficult to do that than to define bad questions.

    I often want to know where to look for an answer. For example I asked how to get the destination address of a UDP packet. The answer I got was the raw sockets function to use for that. I don't need sample code but it sure helps to know that the function will do what I asked about. For some reason I could not understand how I could use raw sockets with CAsyncSocket but now I probably know how to do many things now that I know I can use raw sockets. I think a question is good when a beginner can make a big leap such as that.

    So in other words, when someone is not sure where to even look for answers and someone else can answer immediately or nearly immediately where to look, then that is where a forum such as this can be especially effective.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  6. #21
    Join Date
    Feb 2003
    Location
    Bangalore, India
    Posts
    1,354
    Originally posted by Yves M
    And well, the matters of common curtousy... I *hate* people who put in their post "Send any replies to [email protected]".
    I agree with Yves here. And I think there should be a new guideline not to post anything like that. This defeats the whole purpose of the existance of CG. When the discussion and the solution is posted in public forums it benefits all who view them, not just the one who is having the problem.
    Even if our suggestions didn't help, please post the answer once you find it. We took the effort to help you, please return it to others.

    * While posting code sections please use CODE tags
    * Please check the codeguru FAQ and do a little search to see if your question have been answered before.
    * Like a post, Rate The Post
    * I blog: Network programming, Bible

    I do all things thru CHRIST who strengthens me

  7. #22
    Join Date
    Feb 2003
    Location
    Bangalore, India
    Posts
    1,354
    Originally posted by Sam Hobbs
    For some reason I could not understand how I could use raw sockets with CAsyncSocket but now I probably know how to do many things now that I know I can use raw sockets.
    I know that you can't mix raw sockets with TCP. If you are talking about SOCK_DGRAM (UDP) of CAsyncSocket,...well not much idea. You can post your qn. Those who know may answer and those who don't know may learn
    Even if our suggestions didn't help, please post the answer once you find it. We took the effort to help you, please return it to others.

    * While posting code sections please use CODE tags
    * Please check the codeguru FAQ and do a little search to see if your question have been answered before.
    * Like a post, Rate The Post
    * I blog: Network programming, Bible

    I do all things thru CHRIST who strengthens me

  8. #23
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    I posted a question in the Microsoft Networks programmer newsgroup and a Microsoft person suggested using WSARecvMsg with my CAsyncSocket UDP listener program. That function is not easy to figure out; that is, filling in the WSAMSG structure. I have not spent as much time as I should to try to figure it out so I am not asking for help with it now. If you can help, then we should do it in another thread or offline from these forums. However I will spend some more time working on a solution before I ask for help.

    I assume you are the same Mathew Joy I see in the Microsoft Networks programmer newsgroup, so I know you know a lot more about that stuff than I do.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  9. #24
    Join Date
    Feb 2003
    Location
    Bangalore, India
    Posts
    1,354

    Leaving with an advice

    Since I know that the discussion is deviating away from the topic, I'll leave with an advice, you'll never regret following. One of the reasons you didn't get the reply is, you are using winsock at the high level (MFC) and having problem with the low level (raw). People there may not be well aware of how MFC is handling the calls, simply because it is not worth figuring it out. If you want to have good knowledge of the working of winsock and its underlying principles, you simply cannot use general wrapper classes. MFC may have wrapped many apis well, but when it comes to winsock it is no where near the mark. So your option is either use MFC for simple communications or use apis to have control and use it efficiently. Since you are more into the technical side (as I see) pick MFC by the collar and throw it out of your backdoor and I'm sure it'll relieve you from unnecessary backstrain.

    When it comes to winsock, (apis ofcourse) always ready to help and learn

    Even if our suggestions didn't help, please post the answer once you find it. We took the effort to help you, please return it to others.

    * While posting code sections please use CODE tags
    * Please check the codeguru FAQ and do a little search to see if your question have been answered before.
    * Like a post, Rate The Post
    * I blog: Network programming, Bible

    I do all things thru CHRIST who strengthens me

  10. #25
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    Yes I realize that about use of MFC and such. Also, I did get an answer to my question, as I indicated here previously. I was able to use raw sockets with MFC. I realize there is a limit to how much I can do by mixing MFC and raw sockets.

    I assume the reasons I did not get responses to my follow-up questions is that I made a mistake, I have not researched the matter enough myself and I asked the question poorly.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  11. #26
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    Originally posted by Sam Hobbs
    I assume the reasons I did not get responses to my follow-up questions is that I made a mistake, I have not researched the matter enough myself and I asked the question poorly.
    You mean you "didn't ask the question The Smart Way?"

    /Couldn't resist

  12. #27
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863

    Re: Leaving with an advice

    Originally posted by Mathew Joy
    Since I know that the discussion is deviating away from the topic, I'll leave with an advice, you'll never regret following. One of the reasons you didn't get the reply is, you are using winsock at the high level (MFC) and having problem with the low level (raw). People there may not be well aware of how MFC is handling the calls, simply because it is not worth figuring it out. If you want to have good knowledge of the working of winsock and its underlying principles, you simply cannot use general wrapper classes. MFC may have wrapped many apis well, but when it comes to winsock it is no where near the mark. So your option is either use MFC for simple communications or use apis to have control and use it efficiently. Since you are more into the technical side (as I see) pick MFC by the collar and throw it out of your backdoor and I'm sure it'll relieve you from unnecessary backstrain.

    When it comes to winsock, (apis ofcourse) always ready to help and learn

    Well I don't much care about asking questions the smart way. If
    I can't figure out what is being asked then I don't answer.
    (OK sometimes I answer anyway )

    But I sure like to read thinhgs like what Matthew Joy posted above. ahh... the CSocket nightmare. How much time has been
    wasted by those stinking classes? Just can't get enough of
    MFC bashing.
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  13. #28
    Join Date
    Feb 2004
    Posts
    138
    You know, my friend once asked me if I could prove 1+1=n [n=integer]
    Does it sound crazy ? I did think it was just a silly question, absolutely not mathematical at all, but he is fun and I laughed so much when I understood why 1+1=n, I wont tell you, and please dont ask because now it is so trivial for me and for you still sounds so strange. Dont worry, we are human, and we have our own curiousity about many things, do you have such a feeling?
    True, I think it is so trivial, so common, and if you ask me why, I would say you didnt make a smart question, because that is what I personally think about what is mine-here it is my problem (1+1=n). I now know its solution, but you dont. But my friends know much more...
    So what is a smart question to me ?
    If a lot of people say it is a good question, so, we admit it s a good question, Newb's questions are hard to be said smart by gurus right ?
    I think it is just like rumors, for example, rumor1+rumor2+rumor3+rumor4+.....rumorn=Defame
    I really like to see difererent pieces of information from diferernt sources to improving things, making them much better, my eyes really get itchy when so much information comes from different pointers which are sharing the same address. True

  14. #29
    Join Date
    Feb 2003
    Location
    Bangalore, India
    Posts
    1,354
    Originally posted by Mathew Joy
    One of the reasons you didn't get the reply is...
    To make things more clear, when I said reply, I meant reply for the follow-up questions (I checked your question before posting)
    Even if our suggestions didn't help, please post the answer once you find it. We took the effort to help you, please return it to others.

    * While posting code sections please use CODE tags
    * Please check the codeguru FAQ and do a little search to see if your question have been answered before.
    * Like a post, Rate The Post
    * I blog: Network programming, Bible

    I do all things thru CHRIST who strengthens me

  15. #30
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    Originally posted by Mathew Joy
    (I checked your question before posting)
    I assumed you did.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured