以下是超级终端的显示的一段代码,有重复,麻烦大侠分析下,小弟感恩戴德。
Attaching network interface lo0... done.ootTask): 9c
fi
f
0
Loading... 0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=8, Rx need reset.: 3424102.168.1.200:ffffff00
0x37fffe68 (tRootTask): DM9000 loading Now
0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=8, Rx need reset.ey to stop auto-boot...
0
Error loading file: errno = 0x3c.****************boot from flash*
Can't load boot file!!
0x37fffe68 (tRootTask): DM9000 loading Now...e for -1 bytes form flashor loading file: err
0x37fffe68 (tRootTask): DM9000 loading Now...p password
Can
unit number
0x37fffe68 (tRootTask): 0gs
processor number
0x37fffe68 (tRootTask): 21p
host name : h
0x37fffe68 (tRootTask): 5dfff
file name :
0x37fffe68 (tRootTask): 9c
auto-booti
inet on ethern
0x37fffe68 (tRootT
loading image for -1 bytes form flashot...
Attaching networ
boot device : dmf
file name
flag
unit number : 0
Error loading fil
processor number : 0rget name (tn) : S3C
host name : host
Att
0x37fffe6
file name : vxWorksow....40
inet on ethernet (e) : 192.168.1.200:ffffff00M9000 loading Now...done.: 192.168.1.1
host inet (h) : 192.168.1.40otTask): 0
Loading... 0x3ff923f4 (t
gateway inet (g) : 192.168.1.1 Rx need reset.)
0x37fffe68 (tRo
user (u) : vx
0x37fffe68 (t
ftp password (pw
f
0x37fffe68 (tRootTask): 28erface to dmf0.
0x37fffe68 (tRootTask): 34aching network interface l
0x37fffe68 (tRootTask): DM9000 loading Now...ace t
Loading... 0x37f923f4 (tNetTask): dm900
Press any key to stop auto-boot... vxWorkstaching network interface
0.
auto-booting...
****************boot from flash**********************set.200:ffffff00
loading image for -1 bytes form flash00 loading Now...
host in
boot device : dmf7fffe68 (tRootTask): DM900
unit number : 0 file!!
processor number : 0tRootTask): 0.1otTask):
host name : hostRootTask): 21
file name : vxWorksask): 5dx3ffffe68 (tR
inet on ethernet (e) : 192.168.1.200:ffffff00e: errno =
0x37fffe68 (tRootTask)
target name (tn) : S3C2410
Attached TCP/IP interface to dmf0.es form flashfe68 (tRootTask): 0**
Attaching network interface lo0... done. dmfe68 (tRootTask): 21
unit numb
Loading... 0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=8, Rx need reset.
host name : host 9c : dmf
fil
0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=8, Rx need reset.on ethernet (e) : 192.168.1.200:ffffff00otTask): 34 : 0
0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=8, Rx need reset.
gateway inet (g) : 192.168
0x37fffe68 (tRootTask): DM9000 loading Now...) : vx : 0
f
0x37fffe
0x37fffe68 (tRootTask): DM9000 loading Now... : vxle: errno = 0x3c.
0x37fffe
Press any key to stop auto-boot... : vxCan't load boot file!!
2
[Pacbridg]: ?ooooooooooo镲oo??oo?ooooooooooo镲ooooooo飋ooo飋oo飋ooo飋?o飋ooo飋o21M9000 lo
0x37fffe68 (tRootTask): 5d
target name (tn)
oo?ooooo?oooo飋飋ooo飋ooo?o??o???o飋o飋镲镲??????????0x37fffe68 (tRootTasing Now...
0x37fffe68 (tRootTask): 34
0x3ffffe68 (tRootTa
k): DM9000 loading Now...9000 loading Now... loadi
0x37fffe68 (tRootTask): DM9000 loading
Press any key to stop auto-boot...otT
host name : host
0
auto-booting...
file name
****************boot from flash**********************ethernet (e) : 192.168.1.200:ffffff00
loading image for -1 bytes form flash) : 192.168.1.40
boot device : dmf inet (g) : 192.168.1.
unit number : 0t0x37fffe6
user (u)
processor number : 0
f
ftp passwor
host name : host
flags (f)
file name : vxWorkstherne
target name (tn) :
inet on ethernet (e) : 19
0x37fffe68 (tRootTask): 9c1 bytes form flash
0x37fffe68 (tRootTask): 28
boot device
0x37fffe68 (tRootTask): 34
unit number
0x37fffe68 (tRootTask): DM9000 loading Now... : 0number : 0e (tn
host name
Press any key to stop auto-boot...
file name : vxWorks
0
auto-booting...
Atta
inet o
****************boot from flash**********************t
host inet (h) : 192.1
loading image for -1 bytes form flashtT
gateway inet (g) : 192.168.1.1
boot device : dmf
i
user (u)
unit number : 0m9000
ftp password (pw)
processor number : 0
flags (f)
host name : host
target name (tn)
file name : vxWorks2.168.1.40
Attached TCP/IP i
inet on ethernet (e) : 192.168.1.200:ffffff00.1.1.
Attaching network interfa
0x37fffe68 (tRootTask): DM9000 loading Now...host name : host... done.
Press any key to stop auto-boot...ksffe68 (tRootTask): 21
i
0 o
auto-booting... 192.168.1.200:
****************boot from flash********************** inet (h) : 192.168.1.40
0x3ffffe
loading image for -1 bytes form flash68.1.1
RX SR
boot device : dmf): DM9000 loading Now...
unit number : 0
processor number : 00x0
host name : host S3C2410
0x3ffff
0
file name : vxWorksterface to dmf0.
inet on ethernet (e) : 192.168.1.200:ffffff00ce lo0... done.
0x3ffff
host inet (h) : 192.168.1.40r loading file: errno = 0x3c.
gateway inet (g) : 192.168.1.1oad boot file!!
user (u)
Attaching network interface lo0... done.
0x37fffe68 (tRootTask): 5d: 1
Loading... 0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=33, Rx need reset.
0x37fffe68 (tRootTask): 28
loading
0x37fffe68 (tRootTa
0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=223, Rx need reset.loading Now...ndor2 ID:0
boot devic
P
0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=223, Rx need reset.
0
auto-booting...r : 0
****************boot f
0x37f923f4 (tNetTask): dm9000Recv;The rxbyte=223, Rx need reset.
我是在B程序等初始化时,增加以下代码,让它只运行一个实例。并在找到先前的实例后,激活先前实例,关闭本次实例。但是用了以下注释的所有方法都没能成功,貌视用:::SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 800, 480, SWP_SHOWWINDOW);
// ::SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 800, 480, SWP_NOMOVE|SWP_NOSIZE|SWP_SHOWWINDOW);
还能将B程序激活,但不确定,只是看到一个窗口放大又缩小。却始终被A挡住。
HANDLE hEvent;
HWND hwnd;
WCHAR className[100];
::GetClassName(this->m_hWnd,className,100);
hEvent = CreateEvent(NULL,TRUE,FALSE,_T("setting"));
if(NULL != hEvent)
{
if(GetLastError() == ERROR_ALREADY_EXISTS)
{
Sleep(10);
hwnd = ::FindWindow(className,NULL);
if(hwnd != NULL)
{
// if(0 == ::SetForegroundWindow((HWND)(((ULONG) hwnd) | 0x01) ))
// {
// MessageBox(_T("窗口激活失败"));
// }
// ::ShowWindow(hwnd,SW_SHOWMAXIMIZED);
// ::SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 800, 480, SWP_SHOWWINDOW);
// ::SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 800, 480, SWP_NOMOVE|SWP_NOSIZE|SWP_SHOWWINDOW);
// ::SetForegroundWindow((HWND)(((ULONG) hwnd) | 0x01) );
// ::SetActiveWindow(hwnd);
// ::SetWindowPos(hwnd, HWND_TOP, 0, 0, 800, 480, SWP_SHOWWINDOW | SWP_NOREPOSITION | SWP_NOOWNERZORDER);
::BringWindowToTop(hwnd);
CloseHandle(hEvent);
DestroyWindow();
}
}
}
91program
隐藏A,显示B
由于A是系统启动时一并启动的,感觉有点像mobile手机上的桌面程序一样。似乎隐藏它不太好。而且,在什么时候隐藏什么时候显示也是个问题。
因为不光只有ABC的,而且,B对话框里也有像A一样能通过createprocess启动其它程序如“播放器”之类的窗口D,挡在AB之上,这样子的话,如果有来电时,A叫出来的C对话框,就在ABD之上。然后,通话结束后,本应该是ABD这样的顺序,却变成BDA。