User Profile

Collapse

Profile Sidebar

Collapse
walsug
walsug
Last Activity: Feb 4 '10, 02:00 AM
Joined: Oct 16 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • walsug
    started a topic WindowsXP FileMapping problem

    WindowsXP FileMapping problem

    hello,
    When I want to use the shared memory, I got a problem.
    1.I wrote a server to create a piece of shared memory. Source is below:
    // shmsv.cpp
    HANDLE hMapFile = NULL;
    LPVOID pVoid = NULL;

    hMapFile = CreateFileMappi ng(
    INVALID_HANDLE_ VALUE,
    NULL,
    PAGE_READWRITE,
    ...
    See more | Go to post

  • Can java develop an program related to OS kernel,such as IPC,etc.

    hello,
    I've just finished an program migration from linux system V IPC to Windows Interprocess communication(i nclude other system calls,of course).
    Now I have to take effort to re-develop it with JAVA,but it seems that java itself has little to do this,or it has but I don't know.The OS kernel mechanism I used include process,thread, semaphore,mutex ,filelock,pipe( or message queue),filemapp ing(or shared memory),etc.

    I would...
    See more | Go to post

  • walsug
    started a topic The windows named pipe buffer size limitation.
    in C

    The windows named pipe buffer size limitation.

    hello,
    I created a named pipe by CreateNamedPipe (),but some bug arised in my application,whi ch I think has something to do with the pipe buffer size(out buffer size and in buffer size),this size could be set to system minimum or system maximum,when assigned zero,the size is system default value.
    My question is : how can I get these values(max,min, default)?Especi ally the system default value.
    Is it variant under different OS?(Mine...
    See more | Go to post

  • Thank you and I will take a look~
    -yogo
    See more | Go to post

    Leave a comment:


  • Is there a limitation of process and thread ID under windows?

    hi,
    Does windows has a max value for it's process and thread ID?(not the limitation of int or DWORD datatype but by system definition)
    if exists,tell me that value,thanks~
    regards.
    -yogo
    See more | Go to post

  • walsug
    started a topic Does windows support extended unix code(EUC)?

    Does windows support extended unix code(EUC)?

    hello,
    I'm engaged in some code migration work,in linux the EUC-jp and Shift-JIS encoding are supported and configurable by LANG.
    Does windows offer this support?
    -yogo
    See more | Go to post

  • Now I've made it clear,it's not allowed to pipe("|") to NUL,insteat,you have to redirect to it(">"or">>"),t he whole command line shall like this:
    Code:
    start /B -myapp- >nul 2>&1
    Thanks to Banfa and Neopa,I've solved this problem,now I could perfectly replace the linux counterpart.
    regards,
    yogo....
    See more | Go to post

    Leave a comment:


  • hi,
    I tested the "|nul" that Sir.Banfa offered,but here popup a msgbox says:"指定されたデバイス 、パス、またはファイルにアクセ スできません。アクセス許可がな い可能性があります 。"Then console says:"アクセスが拒否され ました。"Both mean "access denied!Maybe you have no access right to this device",then what could I probably do?
    -yogo
    See more | Go to post

    Leave a comment:


  • walsug
    started a topic How to get the SEM_UNDO functionality in windows?

    How to get the SEM_UNDO functionality in windows?

    hello,
    This is a problem i have to handle in code migration from linux to windows.In linux when you set SEM_UNDO,the semaphore could be released automatically even if the process exit prior to a release.but windows' semaphore seems to have no functionalities like this.
    Is there any way to solve this?
    -yogo
    See more | Go to post

  • hi,
    I've hit this page and got some useful info,I knew the pipe "|" and redirection ">"or ">>",I don't want the application to generate extra file,so i do it as follows:
    create a console application with an empty main(),which is named "null.exe" and placed in the same path as my application,the n run my application like this:
    Code:
    start /B -myapp- 2>&1|null
    to throw both...
    See more | Go to post

    Leave a comment:


  • sorry for the misposting
    I'll be attentive next time

    -yogo...
    See more | Go to post

    Leave a comment:


  • hello,
    I 've tried start command and yes it works! thank you!
    but a little bit different form the code you posted:
    Code:
    start /B edit
    /B create no windows but /MIN minimized the new window,the former is what I want :),thank sir JosAH offer such a good hint~
    but here comes about another problem,I'm gonna to use "start" like this:
    Code:
    start /B -MyOwnCommand-
    but my command would probably output to the...
    See more | Go to post

    Leave a comment:


  • Is there a replacement of linux's "command &" in windows?

    hello,
    I know in linux the "&" right after a command line is used to put the execution of this command into the background.
    The question is :Is there a substitution for this under the windows os?
    thx~
    -yogo
    See more | Go to post

  • walsug
    started a topic [help]how to implement a linux message queue in windows?
    in C

    [help]how to implement a linux message queue in windows?

    hello,
    I'm doing some job concerning code migration from linux to windows,one of the handicaps is the message queue,which is used to do interprocess communication.I 've tried several ways under windows such like pipes ,mailslot and sending message to a window(SendMess age then GetMessage),but it can't reach the performances of the linux's related system calls.
    I've got no time to write the message queue source code of my own,through the...
    See more | Go to post
No activity results to display
Show More
Working...