当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·把年月日分开的代码    »显示摘要«
    摘要: titleid=request("id") strcommand = "select * from tbl_house where houseid=" & titleid & "" set objreco = objdb.execute(strcommand) dim date dim year dim month......
    摘要: 在登陆成功以后将用户信息存放在session中,session应该howto声明,howto存信息,howto取??谢谢! ......


怎样在VC中启动另一个windows程序

同题目

NO.1   作者: whhif

createprocess()  
  在程序中启动一个进程就可以了.

NO.2   作者: micropentium6

去看看MSDN,正确的例子上面有,还有你也没说明你要干什么。createprocess()   的参数很多,选项也很多的

NO.3   作者: JennyVenus

void   main(   VOID   )  
  {  
          STARTUPINFO   si;  
          PROCESS_INFORMATION   pi;  
   
          ZeroMemory(   &si,   sizeof(si)   );  
          si.cb   =   sizeof(si);  
          ZeroMemory(   &pi,   sizeof(pi)   );  
   
          //   Start   the   child   process.    
          if(   !CreateProcess(   NULL,   //   No   module   name   (use   command   line).    
                  "MyChildProcess",   //   Command   line.    
                  NULL,                           //   Process   handle   not   inheritable.    
                  NULL,                           //   Thread   handle   not   inheritable.    
                  FALSE,                         //   Set   handle   inheritance   to   FALSE.    
                  0,                                 //   No   creation   flags.    
                  NULL,                           //   Use   parents   environment   block.    
                  NULL,                           //   Use   parents   starting   directory.    
                  &si,                             //   Pointer   to   STARTUPINFO   structure.  
                  &pi   )                           //   Pointer   to   PROCESS_INFORMATION   structure.  
          )    
          {  
                  ErrorExit(   "CreateProcess   failed."   );  
          }  
   
          //   Wait   until   child   process   exits.  
          WaitForSingleObject(   pi.hProcess,   INFINITE   );  
   
          //   Close   process   and   thread   handles.    
          CloseHandle(   pi.hProcess   );  
          CloseHandle(   pi.hThread   );  
  }  
 


    摘要: 我已经能把datareader读出的数据显示到网页上了,但我把程序的内容放在代码的最上面,默认是显示在最上面,我想把内容显示到网页中的一个单元格中,请问如何实现? 并且我还想用多个datareader将不同的内容显示到不同的单元格(独立的功能已经实现,每个使用一个page_load事件),但是我想知道如何让这些显示的内容融合到一个网页中(因为一个网页不允许使用多个page_load事件),......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE