About WritePrivateProfileString and file operations

2007-08-16 Thread Zhongli Xu
Hi all, I run some tests about mixed using WritePrivateProfileString and stand file operations Codes look like this: GetPrivateProfileString(keyname, value); fopen(); fprintf("# comments"); fclose(); WritePrivateProfileString(keyname, newvalue); What I found in the file is that either WritePriv

About new environment variable

2007-07-30 Thread Zhongli Xu
After I add an environment avriable in the system.reg file, e.g. [System\\CurrentControlSet\\Control\\Session Manager\\Environment] 1185851455 "MY_VARIABLE"="VALUE" I tried to read this variable thru the API GetEnvironmentVariable(), but it failed. Other variables, such as PATH, OS, are OK. Any i

Re: About stdlib.h system()

2007-06-26 Thread Zhongli Xu
Yes, the mingw-gcc case works. But I use the Visual C++ 7.0 to compile. It still fails. On 6/26/07, Kirill K. Smirnov <[EMAIL PROTECTED]> wrote: Hi, I've tried to reproduce, but failed: a.c: #include #include int main(void) { system("qqq.exe"); return 0; } $ mingw-gcc -mconsole -

Re: About stdlib.h system()

2007-06-26 Thread Zhongli Xu
gv[0]=L"./System.exe" trace:process:set_entry_point setting FT_Thunk at 0x602ae084 to i: -1 ENOENT Any idea? Thanks in advance. Milo Xu On 6/26/07, Zhongli Xu <[EMAIL PROTECTED]> wrote: Hi all, I tried to call another .exe file in my own exe file by using the system() API. But the return

About stdlib.h system()

2007-06-25 Thread Zhongli Xu
Hi all, I tried to call another .exe file in my own exe file by using the system() API. But the return value of system() is -1 and errno is set to ENOENT. It indicates that the another exe file is not found. So I copy the another exe to the fake directory: C:\windoes\system32, since wine always

About Parallel Port Driver

2007-05-25 Thread Zhongli Xu
Hi all, I have a .sys driver for parallel port communication. But it seems wine didn't support loading the driver. My windows program has to be configured as XP version. And directly accessing to parallel port is not allowed on the XP host, therefore _outp() and _inp() are useless. Is there any s