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
X

Xing Chen

@Xing Chen
About
Posts
45
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to call srand(time(NULL));
    X Xing Chen

    try this:

    #include <stdlib.h>
    #include <stdio.h>
    #include <time.h>

    int main( void )
    {
    int i;

    // Seed the random-number generator with current time so that
    // the numbers will be different every time we run.
    //
    srand( (unsigned)time( NULL ) );

    // Display 10 numbers.
    for( i = 0; i < 10;i++ )
    printf( " %6d\n", rand() );

    printf("\n");

    // Usually, you will want to generate a number in a specific range,
    // such as 0 to 100, like this:
    {
    int RANGE_MIN = 0;
    int RANGE_MAX = 100;
    for (i = 0; i < 10; i++ )
    {
    int rand100 = (((double) rand() /
    (double) RAND_MAX) * RANGE_MAX + RANGE_MIN);
    printf( " %6d\n", rand100);
    }
    }
    }

    C / C++ / MFC help tutorial question

  • Is it safe to load dll compiled in Visual studio 2005 into application compiled in the Visual studio 6?
    X Xing Chen

    Yes. It is safe.

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

  • Win32 application with out an UI.
    X Xing Chen

    why not create a shortcut for your customer?

    C / C++ / MFC design help tutorial

  • GIF showing problem
    X Xing Chen

    I guess Application Verifier use more strict strategy, just like you can compile project with /W4 option.

    C / C++ / MFC visual-studio graphics debugging help

  • GIF showing problem
    X Xing Chen

    Microsoft Specific try-except Statement[^]

    C / C++ / MFC visual-studio graphics debugging help

  • Coonected USB Device
    X Xing Chen

    To get USB Device informations which already connected to system, use SetupDiEnumDeviceInfo() take this article as reference: Detecting Hardware Insertion and/or Removal[^] Hope this[^] sample code can help you too.

    C / C++ / MFC help tutorial

  • GIF showing problem
    X Xing Chen

    why not use try-catch block to fix this problem?

    C / C++ / MFC visual-studio graphics debugging help

  • Coonected USB Device
    X Xing Chen

    1.You must use RegisterDeviceNotification() to let system notify you application. 2.Add message handler for WM_DEVICECHANGE.

    C / C++ / MFC help tutorial

  • SetWindowsHookEx function fails in VISTA
    X Xing Chen

    there are other guys discuss same case in MSDN Forums: Journaling hooks on Vista? [^] Hope it can help you.

    C / C++ / MFC testing beta-testing

  • Error specify the lpszIcon in the MSGBOXPARAM using ::LoadIcon
    X Xing Chen

    set lpszIcon to one of the values listed with the LoadIcon function means: lpszIcon can be one of these value: IDI_APPLICATION IDI_ASTERISK IDI_ERROR IDI_EXCLAMATION IDI_HAND IDI_INFORMATION IDI_QUESTION IDI_WARNING IDI_WINLOGO so you can use them directly. msgparam.lpszIcon = IDI_WINLOGO;

    C / C++ / MFC help learning

  • create a new process in c
    X Xing Chen

    use: int system( const char *command ); head file: <process.h> or <stdlib.h>

    C / C++ / MFC question

  • Calculated values from different functions to a single function.
    X Xing Chen

    I seems you want to use other process's function,as your's. I suggest you do it in Inject dll,and return result to your application. hope this article will be help you: http://www.codeproject.com/library/InjLib.asp[^]

    C / C++ / MFC help question

  • CreateProcess without Administrator Rights
    X Xing Chen

    Use CreateProcessAsUser() function please. Hope you can take ideas From this [^] article.

    C / C++ / MFC security json

  • Debugging
    X Xing Chen

    I think you want to inject or execute code to other process. if so, try read [ this ] article.

    C / C++ / MFC performance question

  • Debugging
    X Xing Chen

    I'm sorry. It is difficulty to understand your question for me. wish to get into a function which is not normally called by the function. Do you mean want to execute the function not normally call? Or you mean to set breakpoint when the function called?

    C / C++ / MFC performance question

  • converting from const char [] to 'LPWSTR'
    X Xing Chen

    Add L before "", it declare it as wide char. SERVICE_TABLE_ENTRY DispatchTable[]= {{L"Service1",serviceMain},{NULL,NULL}}; Best Regards.

    C / C++ / MFC c++ help question

  • CString::Format
    X Xing Chen

    you must declare uSum as float. and atof() instead of atoi(). float nSum = 0; float uSum = 0;

    C / C++ / MFC question

  • CString::Format
    X Xing Chen

    try like this: float uSum = 12.457 + 345; CString strFomat; strFomat.Format(TEXT("%.2f"),uSum);

    C / C++ / MFC question

  • WMI Put operation
    X Xing Chen

    CIM_VideoController::CurrentHorizontalResolution Data type: uint32 Access type: Read-only Current number of horizontal pixels. so you can't set it by put method. you can see more info in MSDN: http://msdn2.microsoft.com/en-us/library/aa388668.aspx[^]

    C / C++ / MFC help

  • How to set the caption text in the page of sheet?
    X Xing Chen

    try TCM_SETITEM[^] message plz. hope that's help.

    C / C++ / MFC tutorial 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