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

Search:

Type: Posts; User: paprica

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    0
    Views
    1,285

    Identify a client in a UDP server

    I'm new to UDP so please correct me if I'm wrong.

    A UDP server doesn't use client SOCKET's (which are unique to every client) in order to receive or send information, but a sockaddr structure...
  2. Replies
    2
    Views
    997

    .obj file to c++ code?

    Hello.
    I've lost six c++ files (3 headers and 3 .cpp files) but I still have the .obj files of them (3 .obj files) in the Debug and Release directories.
    Is there a way to get the c++ code out of...
  3. Replies
    1
    Views
    11,217

    Need a BitBlt example

    I try to take a screenshot and save it to a bmp file.

    Here's what I got from some unexplained examples so far

    HDC hdcSource = NULL, hdcDest = NULL;
    HBITMAP hbmp;

    hdcSource = GetDC(NULL);...
  4. Replies
    13
    Views
    2,446

    Re: Is SQL a must for a database system?

    I decided to ask the same question in a different forum because no one has answered it in here after more than a day.
    I think it would be more selfish to ask the same question in two different...
  5. Replies
    13
    Views
    2,446

    nvm.

    nvm.
  6. Replies
    3
    Views
    1,275

    Get my power supply unit

    Is it possible to get the model of my power supply unit via software?
    There is no text in the back of my computer and I really don't feel like opening my computer to see it.

    Thanks!
  7. Replies
    6
    Views
    5,221

    Re: Get a unique hardware ID (HWID)

    I see...
  8. Replies
    6
    Views
    5,221

    Re: Get a unique hardware ID (HWID)

    Always heard there is a way to identify a computer based on an ID it has somewhere...
  9. Replies
    9
    Views
    902

    Re: "Force" a class to be abstract

    You're right.
  10. Replies
    9
    Views
    902

    Re: "Force" a class to be abstract

    A protected constructor seems alright.
    Thanks!


    AFAIK There are no functions in winsock2.h besides WSAStartup() that use WSADATA so there is no need to make its type other but private.
  11. Replies
    9
    Views
    902

    Re: "Force" a class to be abstract

    I edited my post to include more info.

    And here's a class I made that uses winsock2.

    class tcp
    {
    public:
    tcp();
    virtual ~tcp();
  12. Replies
    9
    Views
    902

    "Force" a class to be abstract

    Is it possible to make a class abstract even though it has no pure virtual functions?
    I could do this I guess:

    virtual void Dummy() = 0;

    But I just wanted to know if there's a better way to do...
  13. Replies
    6
    Views
    5,221

    Get a unique hardware ID (HWID)

    Hello.
    How do I get a unique hardware ID that is unique to the computer?
  14. Replies
    13
    Views
    4,799

    Re: Left trim a char*

    I see.
    What's the difference between these two?

    const char *a = "asdasd";
    const char a[] = "asdasd";
  15. Replies
    13
    Views
    4,799

    Re: Left trim a char*

    const char *a = trim(" asd");

    That's one point.
  16. Replies
    13
    Views
    4,799

    Re: Left trim a char*

    I see.

    How's this?

    char* trim(char *a)
    {
    while(isspace(*a))
    a++;

    return a;
  17. Replies
    13
    Views
    4,799

    Left trim a char*

    Hello.
    What is wrong with my code?

    #include <iostream>

    using namespace std;

    void trim(char *a)
    {
    while(isspace(*a))
  18. Re: Ollydbg (and probably other debuggers) can view my C++ source code

    BTW, Is there some kind of anti-debugger protection for executables?
  19. Re: Ollydbg (and probably other debuggers) can view my C++ source code

    How do I do that in VS2010?

    Edit: It's okay now. I deleted the .pdb file from the executable directory.
    Thanks
  20. Ollydbg (and probably other debuggers) can view my C++ source code

    Really. With the comments too.
    What the hell?
    I thought it was impossible or at least hard to retrieve the source code for a C/C++ application but opening my executable with OllyDbg and going to...
  21. Replies
    9
    Views
    14,781

    Re: std::string to LPSTR

    Thank you

    Edit: Did you mean
    LPSTR p2 = &s1[0];
    ?
  22. Replies
    9
    Views
    14,781

    std::string to LPSTR

    Hello, is there a better way to cast std::string to LPSTR than this?

    const_cast<LPSTR>(sString.c_str())
  23. Replies
    3
    Views
    1,657

    Re: Can't get InternetReadFile to work

    You're right. Thanks!

    InternetReadFile(m_hOpenURL, &buf, 1, &dwRead)
  24. Replies
    3
    Views
    1,657

    Can't get InternetReadFile to work

    Hello, here's my code:

    std::string ReadHTML()
    {
    BYTE buf = 0;
    DWORD dwRead;

    std::string s = "";

    while(InternetReadFile(m_hOpenURL, reinterpret_cast<LPVOID>(buf), 1, &dwRead) == TRUE)
  25. Replies
    15
    Views
    4,637

    Re: Creating a Windows API interface

    Please don't enhance controversial words that I say, like "annoying".
    What I really meant was that these functions really require nonstop MSDN pages navigations.

    Anyway, I get you. "Wrapping"...
Results 1 to 25 of 76
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured