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

Search:

Type: Posts; User: philkr

Page 1 of 50 1 2 3 4

Search: Search took 0.19 seconds.

  1. Replies
    1
    Views
    1,627

    Silverlight in ASP.NET Page

    Hi,

    I got a problem with a Silverlight application embedded in an ASP.NET page. The control was already running well, but suddenly (I don't know what exactly we changed) the invocation with...
  2. Replies
    5
    Views
    1,225

    Re: Help with a compile error :)

    I can't tell without seeing the code of the function which writes to the com port.
  3. Thread: string question

    by philkr
    Replies
    16
    Views
    1,563

    Re: string question

    Yes, this can only have been a joke, I thoght afterwards. Sorry, that I didn't understand it in the first place.

    I am sympathizing with you. This must be really bloodcurdling. I wonder what...
  4. Thread: string question

    by philkr
    Replies
    16
    Views
    1,563

    Re: string question

    What the...! This code is hardly readable, therefore unmaintainable. Where did you learn such bad coding style?
    The shortest solution is not always the best.
  5. Replies
    9
    Views
    3,583

    Re: problem in sendMessageTimeout

    What about PostMessage()?
  6. Replies
    8
    Views
    1,451

    Re: CString to uchar

    LPTSTR nptr = strMacAddr.GetBuffer(strMacAddr.GetLength());
    unsigned char Addr[6] = {0};

    _stscanf(nptr, _T("%02X-%02X-%02X-%02X-%02X-%02X"), &Addr[0], &Addr[1], &Addr[2], &Addr[3], &Addr[4],...
  7. Replies
    8
    Views
    1,451

    Re: CString to uchar

    You could use the member function GetBuffer() to get a character array and then use ::sscanf() to read the formatted data.
  8. Replies
    16
    Views
    1,689

    Re: How can we know the pointer is deleted?

    Does this also count for C, I mean with free() then?
  9. Re: [RESOLVED] can BSTR only store unicode character ?

    Why does it not work with char* instead of BSTR?
  10. Replies
    10
    Views
    1,299

    Re: Implicit Declaration

    It is only a typo: It must be "strlen" (lowercase).
  11. Replies
    3
    Views
    688

    Re: track files/reg a program affects

    Here are the tools you need:
    http://www.wintotal.de/yad/index.php?rb=30&id=78
    http://www.wintotal.de/yad/index.php?id=535
    (The original site is www.sysinternals.com, but it is/was down, so I...
  12. Replies
    5
    Views
    1,225

    Re: Help with a compile error :)

    Concerning your compile problem: I assume you want to pass a function pointer as the third argument. In this case the right syntax is like this:

    void SendREDBoot (HANDLE com, HWND hWnd, int...
  13. Re: What function one must use to get checksum of a file?

    You're right. Since you didn't like the english wikipedia article, I copied this piece of code from the german one.
  14. Replies
    2
    Views
    2,515

    Re: SetCursor in new thread failed >.

    You have to handle the WM_SETCURSOR window message and simply return TRUE; in the handler.
  15. Replies
    15
    Views
    2,322

    Re: get Count of number of threads running

    What about storing the thread handles and WaitForMultipleObjects()?
  16. Replies
    2
    Views
    1,344

    Re: Socket Connection Still Alive!!

    It is obvious: Because the client machine hang, it failed to send a request to close the connection. Therefore for the server the connections seemed to be still established. Since nothing was sent...
  17. Replies
    645
    Views
    33,381

    Re: letter from Yuliya

    I wonder if Yuliya (on this forum) is the original scammer (who wrote the email) or another guru, who is having a little fun with this thread.
  18. Replies
    5
    Views
    999

    Re: Character replacement in string

    Well, what shall I say? Force of habit! ;)
  19. Replies
    5
    Views
    999

    Re: Character replacement in string

    char* szTemp = malloc(2*strlen(p)+1);
    char* d = szTemp;
    for(char* s = p; *s != '\0'; ++s)
    {
    *d = *s;
    ++d;
    if(*s == '\\')
    {
    *d = '\\';
    ++d;
  20. Re: What function one must use to get checksum of a file?

    Well, you have to skip the unimportant parts. But maybe a simple example will be better.

    The following C program will calculate the CRC-32 of the 8 bit long data stream 10001100:


    #include...
  21. Replies
    2
    Views
    688

    Re: Tricky Q (C/C++) Printing Your own Code

    ReadProcessMemory()
  22. Thread: Realloc test

    by philkr
    Replies
    11
    Views
    1,424

    Re: Realloc test

    Not clear what you mean, but I give it a try:


    void* p = NULL;
    printf("0x%08X\n", (unsigned long)p);
    p = realloc(p, 32);
    printf("0x%08X\n", (unsigned long)p);
  23. Replies
    10
    Views
    1,052

    Re: ["myVarName" + g]

    I am neither sure if I am right, because you all understood the OP different than me, but I assume infernosnow wants to have something like this:


    string myVarName1;
    string myVarName2;
    string...
  24. Replies
    10
    Views
    1,052

    Re: ["myVarName" + g]

    I thought you wanted variables names with a consecutive number at the end. Arrays can be used for this. I don't understand where the problem is.
  25. Replies
    8
    Views
    892

    Re: want to make a custom string function

    Thanks for the explanation, laserlight and Elrond! I will take a look at it. Maybe sometime I will need it, too.
Results 1 to 25 of 1228
Page 1 of 50 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)