User Profile

Collapse

Profile Sidebar

Collapse
leejwen
leejwen
Last Activity: Sep 6 '10, 08:30 AM
Joined: Jun 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I got answers for the hosters

    There were two answers from two different person, one told me to add a php.ini, another just simply pointed me to the link: www.php-cli.com. Anybody once experienced this? Thank you!
    See more | Go to post

    Leave a comment:


  • leejwen
    started a topic how to enable PHP CLI (command line) on a hosting?
    in PHP

    how to enable PHP CLI (command line) on a hosting?

    I applied for a hosting service recently. But I dont know how to enable the PHP CLI (command line) on a hosting. Is there a parameter in PHP.ini? or have alternative method to do that. Thank you!
    See more | Go to post

  • leejwen
    started a topic File transfer between two computer

    File transfer between two computer

    Under Windows and Internet environment, what is the best way to tranfer a big file ( about 27M ) between two remote computers? Does windows have commands to support this (e.g. ftp & ftpd)?

    Thank you!
    See more | Go to post

  • Sorry for the confusion. Actually, I want the debug to be stopped automatically where the variable IFC=5, for example. Is it possible to set a condition? This program is huge with lots functions while IFC is a global variable. :-)

    Many thanks
    See more | Go to post

    Leave a comment:


  • Visual studio debug - set a condition on a particular variable

    I'm using VS 2005 under WINDOWS to debug a piece of code. Can I set a breakpoint based on a variable's value. For example, I have a variable IFC. I want to find out where IFC is set to 5.

    Another question: could somebody tell me where I can find a best tutorial about how to use Visual Studio debug.
    See more | Go to post

  • leejwen
    started a topic about visual studio editing
    in C

    about visual studio editing

    Envirionment: Windows and Visual Studio 2003.

    Sorry, I dont if this is a right question to post here. I'm using VS 'Find and Replace'. Is there any method to look for a variable name based on the Find Result 1. For example, I want to look for two seperate words in one file.

    Thank you!
    See more | Go to post

  • leejwen
    started a topic a question of Installscript to call a c function
    in C

    a question of Installscript to call a c function

    Hello guys, I couldnt find anywhere to post. I hope I didnt break the rules ( at least it's a c function :-) ), if I did, just delete this post.

    I would like to know if I can call a system function "ImmInstall IME" in Installscript, and how?

    OS: windows xp
    Lanague: Installscript and Windows C
    PS: ImmInstallIME is a function of Windows C

    As I know, niss can do this like, System::Call...
    See more | Go to post

  • leejwen
    started a topic about a question of Installscript

    about a question of Installscript

    Hello guys,

    I would like to know if I can call a system function "ImmInstall IME" in Installscript, and how?

    OS: windows xp
    Lanague: Installscript
    PS: ImmInstallIME is a function can be used by Windows C

    As I know, niss can do this like, System::Call 'imm32::ImmInst allIME()'
    See more | Go to post

  • leejwen
    started a topic How to be on top of IE address list
    in C

    How to be on top of IE address list

    I'm doing a word prediction softwere using C & WindowsXP. When I use IE and type an address, its address-list always covers my word-prediction window.

    I created the word-prediction window with 'WS_EX_TOPMOST' parameter, and also tried 'HWND_TOP' of SetWindowPos. But it didnt work. Are there any suggestions? Thank you!

    By the way, if I want to get the info of IE address list (e.g. size), how can I get it?
    See more | Go to post

  • leejwen
    started a topic about IME hotkey

    about IME hotkey

    Actually, I'm developing an English IME (Input Method Editor). I'm just wonderring if I can set any compound keys ( e.g. ctrl+F1) to turn on IME rather than use the default one (alt+shift, this is not very comfortable for disabled people). I add a new item in regedit (HKEY_CURRENT_U SER\Control Panel\Input Method\Hot keys), but it doesnt work. Any idea about this? Thank you!

    About IME, please refer to Control Panel ->Regional and...
    See more | Go to post

  • leejwen
    replied to Reverse the string..
    in C
    It's very easy!

    Use a 'while' and a char variable as transition variable. only cost O(n/2).
    See more | Go to post

    Leave a comment:


  • leejwen
    replied to Reversing digits of an integer using recursion
    in C
    <Code Removed Please Read how to respond to a question>
    See more | Go to post
    Last edited by Banfa; Aug 23 '08, 12:30 PM. Reason: Removed Full Solution

    Leave a comment:


  • leejwen
    replied to Initialize char array in one line
    in C
    memset(name, 0, 1024);...
    See more | Go to post

    Leave a comment:


  • leejwen
    replied to How to multiple two values with out *
    in C
    1. Recommend a book,

    Generic Programming and the STL - Using and Extending the C++ Standard Template Library.

    You can write a Template which can deal with different types.

    2. Train a feedforward neural network by using Matlab, which is a black box, you just need to pre-process and postprocess your input and output based on some data mining method, such as gaussion distribution, histgram etc.
    See more | Go to post

    Leave a comment:


  • leejwen
    started a topic some questions
    in C

    some questions

    Recently, need these functions. I thought it's better to ask experts first before rush into programming. Thank you!

    1.is there c/c++ function to calculate two word's similarity
    2.given an English dictionary, is there c/c++ function to calculate its hush value.
    3.given a word, is there c/c++ function to pronunce it
    4.given a wrong word, is there c/c++ function can recommend a list of words.
    See more | Go to post

  • leejwen
    replied to file pointer reset of CArchive
    in C
    play a small trick to finish that,

    CFile f;
    {
    CArchive ar(&f, CArchive::load) ;
    while(ar.ReadSt ring())
    {
    //
    }
    }
    f.SeekToBegin() ;
    {
    CArchive ar(&f, CArchive::load) ;
    while(ar.ReadSt ring())
    {
    //
    }
    }

    Thank you!
    See more | Go to post

    Leave a comment:


  • leejwen
    replied to file pointer reset of CArchive
    in C
    But why second "while" doesnt work? see below. (It seems the pointer is still at the end of file)

    CFile f;
    CArchive ar(&f, CArchive::load) ;
    ...
    while(ar.ReadSt ring(ptr))
    {
    //work well
    }

    ar.Flush();
    ar.GetFile()->SeekToBegin( );
    ar.Flush();
    while(ar.ReadSt ring(ptr))
    {
    //
    }...
    See more | Go to post

    Leave a comment:


  • leejwen
    replied to file pointer reset of CArchive
    in C
    Thank you! That's helpful...
    See more | Go to post

    Leave a comment:


  • leejwen
    started a topic file pointer reset of CArchive
    in C

    file pointer reset of CArchive

    Hello, I used below MFC code to read a file, but I need do that several times, how can I move the pointer to the beginning of file once again. Thank you!

    CFile f;
    CArchive ar(&f, CArchive::load) ;
    ...
    while(ar.ReadSt ring(ptr))
    {
    ...
    }

    //here should reset to the beginning of file

    //re-read the file again
    while(ar.ReadSt ring(ptr))
    {
    ...
    See more | Go to post

  • leejwen
    replied to ReadString and Unicode
    in C
    Thank you! This is helpful....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...