为什么progressDialog 就是不出来呢?

progressDialog = ProgressDialog.show(ReadMe.this, "请稍等...",
"正在读取数据,请稍等...", true,false);

。。。。(数据处理)

progressDialog.dismiss();

为什么progressDialog 就是不出来呢?

2个回答

你要多线程来处理这种问题,否则刚show出来就关了

final ProgressDialog progressDialog = ProgressDialog.show(ReadMe.this, "请稍等...",
"正在读取数据,请稍等...", true,false);
final Handler msgHandle = new Handler(){
@Override
public void handleMessage(Message msg) {
progressDialog.dismiss();

super.handleMessage(msg);
}
};
new Thread()
{
//加载数据
Bundle bundle = new Bundle();
bundle.putInt("pageCount", pageCount);
Message m = new Message();
m.setData(bundle );
msgHandle.sendMessage(m);

}.start();

ProgressDialog mDialog = new ProgressDialog(mContext);
mDialog.setCancelable(false);
mDialog.setMessage("加载中...");
mDialog.show();

试一下.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
为什么验证码就是显示不出来呢
rnrnrn<%rn if IsEmpty(Session("Passed")) thenrn Session("Passed") = Falsern End ifrnrn if Session("Passed") = False thenrn UserName = Trim(Request.form("UserName"))rn UserPwd = Request.form("password")rnrn if UserName = "" or password = "" thenrn Errmsg = "如果您是本站会员,请在此登陆!"rn elsern If not IsNumeric(Request.Form("confirm")) Thenrn Response.Write " "rn Response.Endrn End Ifrn If (int(Session("SafeCode"))=int(Request.Form("confirm"))) Thenrn set rs = server.createobject("adodb.recordset")rn sql = "Select * from user where UserName = '"&UserName&"'"rn rs.open sql,conn,1,3rn if rs.EOF thenrn Errmsg = "用户不存在"rn conn.Closern Set conn = nothingrn elsern if md5(UserPwd)<>rs.Fields("UserPwd") thenrn Errmsg = "密码不正确"rn conn.Closern Set conn = nothingrn else rn Errmsg = ""rn Session("Passed") = Truern Session("UserName") = rs.Fields("UserName")rn Session("Id") = rs.Fields("Id")rn end ifrn end ifrn Elsern Errmsg = "验证码输入错误!"rn End Ifrn end ifrn end ifrn if Not Session("Passed") Thenrn %>rnrnrn loginrn rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn <%=Errmsg%>rn rn rn rn rn rn rn rn rn 用户名:rn rn rn rn rn rn rn 密码:rn rnrn rn 验证码:rn <%call GetSafeCode()%>rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 用户注册rn 找回密码rn rn rn rn rn rn rnrnrnrnrn<%response.endrn End ifrn %>rn
为什么就是运行不出来
# include rnrn#define n 5rn#define m 2*n-1rnrntypedef structrn float weight;rn int parent,lchild,rchild;rn*hufmtree;rnhufmtree tree[m];rnvoid Hufmtree()rn rn int i,j,p1,p2;rnfloat small1,small2,f,maxval=10000.00; rn int wpl=0;rn printf("\n\t\t请输入%d棵树(叶子)的权值\nplease:\n\n",n);rnrn for (i=0;iparent=0; rn tree[i]->lchild=0; rn tree[i]->rchild=0; rn tree[i]->weight=0.0; rn rn for (i=0;iweight=f; rn rn for (i=n;iparent==0) rn if (tree[j]->weightweight; rn p2=p1; p1=j; rn rn rn else rn if (tree[j]->weightweight; rn p2=j; rn rn tree[p1]->parent=i+1; rn tree[p2]->parent=i+1; rn tree[i]->lchild=p1+1; rn tree[i]->rchild=p2+1; rn tree[i]->weight=tree[p1]->weight+ tree[p2]->weight; rnrn printf("\n");rn for(i=n;iweight=%.2f\n",i,tree[i]->weight);rn printf("\n\tWPL=%.2f\n\n\t",tree[m-1]->weight);rn rn rnrnvoid main()rnrn Hufmtree();rnrn rn rn
为什么呢 图片显示不出来??
我JSp页面中有如下代码[code=HTML]rn rn rn rn rn 您的相片是:rn rn rn rn rn rn rn rn rn 修改相片rn rn rn rn rn rn rnrn[/code]rnrn初始化的图片能在myeclipse的视图和预览中显示出来,但真的通过IE 访问就不行了 这要怎么解决 rn还有个问题就是 我想让客户端预览自己准备上传的图片 我哪个javascript有没错误,有的话如何更改
为什么显示不出来呢???
我用的是一个OMNIHTTPD的WEB服务器和PHP语言开发的一个网站,别的程序都能在网页上显示,可是编的一个显示图片的网页,能够在本地的机子上访问,而且也能够显示出来,但是在别的机子上却显示不出来,本人实在是想不出来是哪里的问题,哪个高手能帮忙???谢谢!!!!
为什么运行不出来呢?
#includernusing namespace std;rnstruct Piontrn void setxy(double a,double b )rn x=a; y=b;rn void display()rn cout<
为什么编译不出来呢
int main()rnrnconst int count=10;rnint areas[count];rnmemset(areas,0,count*sizeof(int));rnputs("please input 10 areas:");rnfor(int i=0;i
为什么运行不出来呢?
以下程序为什么运行不出来,难道LINUX 下没有conio.h? rn #include rn #include rnint main() rn rn int i; rn for(i=0;i <8;i++) rn textbackground(i); rn cprintf("this is color %d \r\n",i); rn cprintf("press enter to continue:\r\n); rn getch(); rn rn return 0; rn
为什么读取不出来呢?
string userName = Request["username"];rn string pwd = Request["pwd"];rn string constr = ConfigurationManager.ConnectionStrings["RegisterConnection"].ConnectionString;rn SqlConnection sql = new SqlConnection(constr);rn sql.Open();rn string selectsql = "SELECT mastername, masterpwd FROM master";rn Console.Write(selectsql);
为什么打印不出来呢
#includernmain()rnrn int i,j,k;rn for(i=7;i<=1;i--)rn rn for(j=1;j<(8-i);j++)rn printf(" ");rn for(k=1;k<=(2*i-1);k++)rn printf("*");rn printf("\n");rn rnrn[img=https://img-bbs.csdn.net/upload/201605/15/1463314978_41651.png][/img]rn为什么打印不出来呢(一个到三角形状)rn
为什么退不出来呢?
#include rn#include rnusing namespace std;rn rnint main()rnrn string temp;rn do rn cout << "input string: " ;rn cin >> temp;rn cout << temp << endl;rn while (!temp.empty());rn cout << "Bye!" << endl;rnrn按理我根据我的while循环我在直接输入回车后(空字符串啦)rn为什么不结束 do while呢?好像要模拟文件结束才行哪。。。。
为什么就是 不行呢?
有些将字段拖到DATAREPORT报表里就行了rn但有些运行后会提示是无效数据源rn(DATAREPORT 的数据源来自于ACCESS)rn为什么呢?rn请指点?rnrn
为什么就是出错呢?
我想在DataGrad里每项前加一个选择框,然后勾选了后实现删除功能,在删除botton中代码如下:rn private void Button2_Click(object sender, System.EventArgs e)rn rn bool IsChecked;rnrn //循环判断哪些数据记录已被勾选,并将相对应的数据记录删除rn foreach(DataGridItem CheckBoxItem in DGView.Items)rn rn IsChecked=((CheckBox)CheckBoxItem.FindControl("DeleteOrNot")).Checked;rn rnrn if (IsChecked)rn rn Response.Write(DGView.DataKeys[CheckBoxItem.ItemIndex]);rn rn rn rn为什么我一运行就是出错,信息为:rn未将对象引用设置到对象的实例。rn行:IsChecked=((CheckBox)CheckBoxItem.FindControl("DeleteOrNot")).Checked;rn请问到底是怎么回事?
大家看看我的false为什么就是显示不出来呢
Dim fil As String = CS.EScalar("select txt from [sys_Tguong] where id=1")rn Dim txt As String = CS.EScalar("select ww from [sys_Tguong] where id=1")rn Dim type As String = CS.EScalar("select type from [sys_Tguong] where id=1")rn Dim file() As String = Split(fil, "\")rn If type = "图片" Thenrn Response.Write("")rn ElseIf type = "False" Thenrn Response.Write("")rn Response.Write(" ")rn Response.Write("")rn Response.Write("")rn Response.Write("")rn ElseIf type = "视频" Thenrnrnrn End Ifrnrn路径没有错
d3d中,为什么这个三角形就是画不出来呢?郁闷
[code=C/C++]rn//顶点声明rnOnD3D9CreateDevice()rnrn ....rn D3DVERTEXELEMENT9 decl[] =rn rn 0, 0, D3DDECLTYPE_FLOAT2, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_POSITION, 0 ,rn D3DDECL_END()rn ;rnrn V_RETURN( pd3dDevice->CreateVertexDeclaration( decl, &g_pVertexDeclaration ) );rn ..rnrn//顶点结构rnOnD3D9ResetDevice()rnrn......rn // Setup render statesrn pd3dDevice->SetRenderState( D3DRS_LIGHTING, FALSE );rn pd3dDevice->SetRenderState( D3DRS_CULLMODE, D3DCULL_NONE );rnrn // Create and initialize vertex buffer测试,用最简单的三角形rn V_RETURN( pd3dDevice->CreateVertexBuffer( 3 * sizeof( D3DXVECTOR2 ),rn 0, 0,rn D3DPOOL_DEFAULT, &g_pVB, NULL ) );rnrn D3DXVECTOR2* pVertices;rn V_RETURN( g_pVB->Lock( 0, 0, ( void** )&pVertices, 0 ) );rnrn for( WORD i =0; i<3; i++)rn rn *pVertices++= D3DXVECTOR2( 200*sinf( i*D3DX_PI/4.0)+300, 200*cosf( i*D3DX_PI/4.0)+250);rn rnrn V_RETURN( hr = g_pVB->Unlock() );rnrn //Create and initialize index bufferrnrn WORD* pIndices;rn V_RETURN( pd3dDevice->CreateIndexBuffer( 3 * sizeof( WORD ),rn 0, D3DFMT_INDEX16,rn D3DPOOL_DEFAULT, &g_pIB, NULL ) );rnrnrn V_RETURN( g_pIB->Lock( 0, 0, ( void** )&pIndices, 0 ) );rnrn pIndices[0] = ( WORD )( 0 );rn pIndices[1] = ( WORD )( 1 );rn pIndices[2] = ( WORD )( 2 );rn rn V_RETURN( g_pIB->Unlock() );rn......rnrn//画三角形rnOnD3D9FrameRender()rnrn..rn if( SUCCEEDED( pd3dDevice->BeginScene() ) )rn rnrn pd3dDevice->SetVertexDeclaration( g_pVertexDeclaration );rn pd3dDevice->SetStreamSource( 0, g_pVB, 0, sizeof( D3DXVECTOR2 ) );rn pd3dDevice->SetIndices( g_pIB );rn V( pd3dDevice->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, 0, 3,rn 0, 1 ) );rn..rnrn[/code]rnrn我怎么看都找不到问题啊,问什么一运行就说D3DERE_INVALIDCAL(0x887686c)rnCalling:pd3dDevice->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, 0, 3, 0, 1 )rnrn如果不用索引模式,就没事,为什么呢?请求帮助
为什么回车提交以后,文本框的内容就是取不出来呢??????
rnrn rn 无标题文档rnrnrnrnrn rnrn rn rnrnrnrn回车提交到action.jsp以后,为什么xm的内容取不出来呢,每次都是空值??
为什么数据读不出来呢?
<%rnif session("hy_zh")<>"" then rnset rs=server.createobject("adodb.recordset") rnsql="select hysex,zh from hy where zh='"&hy_zh&"'" rnrs.open sql,conn,1,1 rnif rs.eof then rnerrmsg=" " rnrs.Close rnend if rnset rs=nothing rnconn.close rnend ifrn%> rn<%=hysex%>rn如上代码rnhy_zh的值是取到了。但是读不出来hysex的值。为什么啊?这个东西都弄了好久,我快哭了。。
为什么DataGrid显示不出来呢?
我用C#建立了一个ASP.Net Web应用程序。rn在html中:rnrn在aspx.cs 文件中:rnprivate void InitializeComponent()rn rn this.Load += new System.EventHandler(this.Page_Load);rn .... rn this.ShowDataGrid();rnrnrnprotected void ShowDataGrid()rnrn .....rn oracleDataReader1 = oracleCommand1.ExecuteReader();rn //已经确保DataReader1确实是正确的。rn DataGrid_Manager.DataSource = CreateSource(oracleDataReader1);rn DataGrid_Manager.DataBind();rn .....rnrnrnrnprotected ICollection CreateSource(System.Data.OracleClient.OracleDataReader reader)rnrn int i = 0;rn int colCount = reader.FieldCount;rn rn DataTable dt = new DataTable();rn DataRow dr;rnrn for ( i =0; i < colCount;i++)rn rn dt.Columns.Add(new DataColumn(reader.GetName(i),typeof(string)));rn rn while(reader.Read())rn rn dr = dt.NewRow();rn for (i = 0; i < colCount; i ++)rn rn dr[i] = reader.GetValue(i).ToString(); rn rn dt.Rows.Add(dr);rn rn //我跟踪过,从Reader中确实有内容读出来。rn DataView dv = new DataView(dt);rn return dv; rnrnrn 但是DataGrid在html中就是显示不出来。
为什么窗口显示不出来呢~
/*头文件里的定义*/rn#ifndef HINST_THISCOMPONENTrnEXTERN_C IMAGE_DOS_HEADER __ImageBase;rn#define HINST_THISCOMPONENT ((HINSTANCE)&__ImageBase)rn#endifrnrn/*cpp文件里的部分代码*/rnHRESULT hr;rnif(SUCCEEDED(hr))rn WNDCLASSEX wcex;rn wcex.cbSize=sizeof(WNDCLASSEX);rn wcex.cbWndExtra=sizeof(LONG_PTR);rn wcex.cbClsExtra=0;rn wcex.hbrBackground=NULL;rn wcex.hCursor=LoadCursor(NULL,IDC_ARROW);rn wcex.hIcon=NULL;rn wcex.hIconSm=NULL;rn wcex.hInstance=HINST_THISCOMPONENT;rn wcex.lpfnWndProc=D2Dapp::WinProc;rn wcex.lpszClassName=L"D2Dapp";rn wcex.lpszMenuName=NULL;rn wcex.style=CS_HREDRAW | CS_VREDRAW;rn RegisterClassEx(&wcex);rn rn FLOAT dpiX,dpiY;rn pD2DFactory->GetDesktopDpi(&dpiX,&dpiY);rn rn hwnd=CreateWindow(rn wcex.lpszClassName,rn L"Main Window",rn WS_OVERLAPPEDWINDOW,rn CW_USEDEFAULT,rn CW_USEDEFAULT,rn static_cast(ceil(640.f*dpiX/96.f)),rn static_cast(ceil(480.f*dpiY/96.f)),rn NULL,rn NULL,rn HINST_THISCOMPONENT,rn this);rn hr=hwnd ? S_OK : E_FAIL;//输出E_FAILrn if(SUCCEEDED(hr))rn ShowWindow(hwnd,SW_SHOWNORMAL);rn UpdateWindow(hwnd);rn rn rnrn测试了一下,发现hr=hwnd ? S_OK : E_FAIL;//输出E_FAILrn这是为什么啊?哪里有问题了吗?
为什么DataGrid显示不出来呢?
DataGrid控件1rnrn rn rn rn rn rn ☆rn rn <%# DataBinder.Eval(Container.DataItem, "u_time","0:d")%>rn rn rn rn rnrnrnDataGrid控件2rnrn rn rn rn rn rn ☆rn rn <%# DataBinder.Eval(Container.DataItem, "u_time","0:d")%>rn rn rn rn rnrnrnCS文件rnrnnamespace formworkrnrn public class default1 : Page rn rn public DataGrid MyList;rn public DataGrid MyList1;rnrnrnrn private void Page_Load(Object sender, EventArgs e) rn rn rn if(!IsPostBack) rn rnrn OleDbConnection myConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source="+ Server.MapPath("data/new.mdb")); rn OleDbDataAdapter myCommand = new OleDbDataAdapter("select top 6 aa.* FROM aa WHERE typeid=1 order by u_time desc", myConnection);rn OleDbDataAdapter myCommand1 = new OleDbDataAdapter("select top 6 aa.* FROM aa WHERE typeid=2 order by u_time desc", myConnection);rn DataSet ds = new DataSet();rn myCommand.Fill(ds, "aa");rn myCommand1.Fill(ds, "bb");rn MyList.DataSource = ds.Tables["aa"].DefaultView;rn MyList1.DataSource = ds.Tables["bb"].DefaultView;rn MyList.DataBind();rn MyList1.DataBind();rn rn rn rn rn protected string FormatString(string str) rn rn str=str.Replace(" "," "); rn str=str.Replace("<","<"); rn str=str.Replace(">",">"); rn str=str.Replace('\n'.ToString()," "); rn return str; rn rnrn rnrn rnrn rnrn帮忙看一下,谢谢了!
为什么画图显示不出来呢?
rnimport java.awt.*;rnimport java.awt.geom.Rectangle2D;rnimport javax.swing.*;rnrn/*rn * To change this template, choose Tools | Templatesrn * and open the template in the editor.rn */rnrn/*rn * MyJframe.javarn *rn * Created on 2009-8-19, 9:24:05rn */rnrn/**rn *rn * @author Administratorrn */rnpublic class MyJframe extends javax.swing.JFrame rnrn /** Creates new form MyJframe */rn public MyJframe() rn initComponents();rn DrawComponent component=new DrawComponent();rn add(component);rn rnrn /** This method is called from within the constructor torn * initialize the form.rn * WARNING: Do NOT modify this code. The content of this method isrn * always regenerated by the Form Editor.rn */rn @SuppressWarnings("unchecked")rn // rn private void initComponents() rnrn setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);rn setBackground(new java.awt.Color(255, 255, 102));rn setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));rn setLocationByPlatform(true);rnrn javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());rn getContentPane().setLayout(layout);rn layout.setHorizontalGroup(rn layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)rn .addGap(0, 427, Short.MAX_VALUE)rn );rn layout.setVerticalGroup(rn layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)rn .addGap(0, 372, Short.MAX_VALUE)rn );rnrn pack();rn // rnrn /**rn * @param args the command line argumentsrn */rn public static void main(String args[]) rn java.awt.EventQueue.invokeLater(new Runnable() rn public void run() rn new MyJframe().setVisible(true);rn rn );rn rnrn // Variables declaration - do not modifyrn // End of variables declarationrnrnrnrnclass DrawComponent extends JComponentrn public void paintComponent(Graphics g)rn Graphics2D g2=(Graphics2D)g;rn Rectangle2D rect=new Rectangle2D.Double(100,100,200,200);rn g2.setPaint(Color.ORANGE);rn g2.fill(rect);rn rnrnrnrnrn如题啊..只能显示一个frame 画的图出不来
OpenPictureDialog为什么显示不出来呢?
我在一个窗体中设一个按钮,实现OpenPictureDialog的Execute功能,但点此按钮后显示不出来,把焦点移走再移回来才能把OpenPictureDialog的窗口显示出来。
为什么字打印不出来呢?
[code=C/C++]rn#include "DXUT.h"rn#include "windows.h"rn#include "Ctrl.h"rnrnbool CALLBACK IsDeviceAcceptable( D3DCAPS9* pCaps, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat, bool bWindowed,rn void* pUserContext );rnbool CALLBACK ModifyDeviceSettings( DXUTDeviceSettings* pDeviceSettings, void* pUserContext );rnHRESULT CALLBACK OnCreateDevice( IDirect3DDevice9* pd3dDevice, const D3DSURFACE_DESC* pBackBufferSurfaceDesc,rn void* pUserContext );rnHRESULT CALLBACK OnResetDevice( IDirect3DDevice9* pd3dDevice, const D3DSURFACE_DESC* pBackBufferSurfaceDesc,rn void* pUserContext );rnvoid CALLBACK OnFrameMove( double fTime, float fElapsedTime, void* pUserContext );rnvoid CALLBACK OnFrameRender( IDirect3DDevice9* pd3dDevice, double fTime, float fElapsedTime, void* pUserContext );rnLRESULT CALLBACK MsgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, bool* pbNoFurtherProcessing,rn void* pUserContext );rnvoid CALLBACK KeyboardProc( UINT nChar, bool bKeyDown, bool bAltDown, void* pUserContext );rnvoid CALLBACK OnLostDevice( void* pUserContext );rnvoid CALLBACK OnDestroyDevice( void* pUserContext );rnrnvoid First( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,BYTE ID );rnvoid F1( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,BYTE ID );rnvoid ScreenPro( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,BYTE ID );rnrn LPD3DXFONT ObjFont;rnrnINT WINAPI wWinMain( HINSTANCE, HINSTANCE, LPWSTR, int )rnrn // Enable run-time memory check for debug builds.rn#if defined(DEBUG) | defined(_DEBUG)rn _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );rn#endifrnrn // DXUT will create and use the best device (either D3D9 or D3D10) rn // that is available on the system depending on which D3D callbacks are set belowrnrn // Set DXUT callbacksrn //DXUTSetCallbackD3D9DeviceAcceptable( IsDeviceAcceptable );rn DXUTSetCallbackD3D9DeviceCreated( OnCreateDevice );rn DXUTSetCallbackD3D9DeviceReset( OnResetDevice );rn DXUTSetCallbackD3D9FrameRender( OnFrameRender );rn DXUTSetCallbackD3D9DeviceLost( OnLostDevice );rn DXUTSetCallbackD3D9DeviceDestroyed( OnDestroyDevice );rn DXUTSetCallbackKeyboard( KeyboardProc );rn DXUTSetCallbackFrameMove( OnFrameMove );rn //DXUTSetCallbackDeviceChanging( ModifyDeviceSettings );rnrn //DXUTSetCursorSettings( true, true );rnrn DXUTInit( true, true ); // Parse the command line and show msgboxesrn //DXUTSetHotkeyHandling( true, true, true );rn DXUTCreateWindow( L"UIControl" );rn DXUTCreateDevice( true, 640, 480 );rnrnrn DXUTMainLoop();rnrn return DXUTGetExitCode();rnrnrnrnbool CALLBACK IsDeviceAcceptable( D3DCAPS9* pCaps, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat, bool bWindowed, void* pUserContext )rnrn return true;rnrnbool CALLBACK ModifyDeviceSettings( DXUTDeviceSettings* pDeviceSettings, void* pUserContext )rnrn return true;rnrnHRESULT CALLBACK OnCreateDevice( IDirect3DDevice9* pd3dDevice, const D3DSURFACE_DESC* pBackBufferSurfaceDesc,void* pUserContext )rnrnrn D3DXCreateFont (pd3dDevice,0,0,0,false,0,0,0,0,0,L"Arial",&ObjFont);rnrn DXUTSetCallbackMsgProc( MsgProc );rn/****************************************************************************/rn return 0;rnrnHRESULT CALLBACK OnResetDevice( IDirect3DDevice9* pd3dDevice, const D3DSURFACE_DESC* pBackBufferSurfaceDesc,void* pUserContext )rnrn return 0;rnrnrnvoid CALLBACK OnFrameRender( IDirect3DDevice9* pd3dDevice, double fTime, float fElapsedTime, void* pUserContext )rnrn pd3dDevice->Clear ( 0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, D3DCOLOR_ARGB( 255, 0, 0, 0 ), 1.0f, 0 );rn pd3dDevice->BeginScene();rnrn LPCTSTR S = L"test";rn RECT r = 10,10,0,0;rnrn ObjFont->DrawTextW(NULL, S,-1,&r,DT_LEFT | DT_TOP,D3DCOLOR_ARGB( 255, 255, 255, 255 ));rnrn pd3dDevice->EndScene();rnrnrnLRESULT CALLBACK MsgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, bool* pbNoFurtherProcessing,void* pUserContext )rnrnrn //MyCtrl.MsgProcess ( hWnd, uMsg, wParam, lParam);rn return 0;rnrnrn[/code]
hibernate为什么查不出来呢?
有一个查询rnString str="From Table where col1=? and col2=? and col3=col4";rnrn使用getHibernateTemplate().find(str,new Object[]"aaa","bbb","ccc");rn始终查询不出结果。但打印出来的sql语句却可以查询。rnrn将字符串改为rnString str="From Table where col1='"+aaa+"' and col2='"+bbb+"' and col3=col4";rngetHibernateTemplate().find(str);rnrn却可以正常读出。这是为什么呢?
为什么下面的程序调试不出来呢
rnrn但没有任何显示?
为什么层显示不出来呢??
请稍候!。。。rnrnrndocument.all.divmoment.style.display="";rnvar xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");rnxmlHttp.open("Post", "?ProvinceID=2", false);rnxmlHttp.send(null);rnvar result;rnresult=xmlHttp.responseText;rndocument.getElementById("txtContent").innerHTML=result;rndocument.all.divmoment.style.display="none";rnrnrn为什么我感觉不到那个层的显示呢??rn
为啥datagrid就是不出来东西呢?
用c#作web,我从工具箱拖了 conn ,adpapter,dataset 出来了,但是用datagrid为什么总是出不来东西呢?难道只能用代码写么?不写都不行?rn高手教我怎么不写一句代码就可以显示数据呢?我的意思是起码不用我写嘛。。。rn
验证码的一个类,怎么就是不出来图片呢
自己闲着没事,自定义了一个验证码生成的类,但是不知道为什么,图片就是现实不出来。还请高手指点一下。rn[code=php]rnimg_width = $img_width;rn $this->img_height = $img_height;rn $this->font_size = $font_size;rn $this->line_count = $line_count;rn rn rn //验证码生成主方法rn function createCodeImg()rn $this->createGraphics(); rn $this->getChars();rn $this->setNoiceLine();rn rn $x = rand(2,5);rn $arr_X_Y = array(array($x,rand(1,3)),array($x+$this->font_size,rand(1,4)),array($x+2*$this->font_size,rand(1,3)),array($x+3*$this->font_size,rand(1,4)));rn print_r($arr_X_Y);rn for($i = 0;$i< 4;$i++)rn $text_color = imagecolorallocate($this->img, rand(180,250), rand(180,250), rand(180,250));rn imagechar($this->img,$this->font_size,$arr_X_Y[$i][0],$arr_X_Y[$i][1],$this->arr_char[$i],$text_color); rn rn rnrn //创建画图板 rn function createGraphics()rn header("Content-type: image/png"); rn $this->img = @imagecreatetruecolor($this->img_width, $this->img_height) or die("建立图像失败"); //创建图片rn $background_color = imagecolorallocate($this->img, 250, 250, 250);rn imagefill($this->img,0,0,$background_color);rn $border_color = imagecolorallocate($this->img,0,0,0); //边框色rn imagerectangle($this->img,0,0,$this->img_width,$this->img_height,$border_color);rn rn rn //画噪音线rn function setNoiceLine()rn for($i = 0;$i < $this->line_count;$i ++)rn $x1 = rand(3,20);//开始位置rn $y1 = rand(2,$this->img_height);rn $x2 = rand($this->img_width-20,$this->img_width-2);//结束位置rn $y2 = rand(2,$this->img_height);rn $line_color = imagecolorallocate($this->img, rand(180,250), rand(180,250), rand(180,250));rn imageline($this->img,$x1,$y1,$x2,$y2,$line_color); rn rn rnrn //产生随机字符串或者加减字符 rn function getChars()rn $strCode = "";rn if(rand(0,1) == 1)//字符串类型的 验证码rn for($i = 0;$i < 4;$i ++)rn $this->arr_char[$i] = $this->str_chars[rand(0,56)];rn $strCode .= $this->arr_char[$i];rn rn $this->code_result = $strCode;rn rn else //加减类型验证码rn $first_num = rand(1,10);rn $second_num = 0;rn $result = 0;rn $arr_operater = array("+","-");rn $operater = $arr_operater[rand(0,1)];rn switch ($operater)rn case "+":rn $second_num = rand(0,10);rn $result = $first_num + $second_num;rn break;rn case "-":rn $second_num = rand(0,$first_num);rn $result = $first_num - $second_num;rn break;rn rn $this->arr_char = array($first_num,$operater,$second_num,"=");rn $this->code_result = $result;rn rn rnrnrn$YZM = new imageCode(65,27,16,7);rn$YZM->createCodeImg();rnecho ($YZM->img_width."-----".$YZM->code_result);rnimagepng($YZM->img); rnimagedestroy($YZM->img);rn?>rn[/code]
dataGrid为什么显示不出来呢?
我的代码就这么简单:rnprivate void Page_Load(object sender, System.EventArgs e)rnrn // 在此处放置用户代码以初始化页面rn sqlDataAdapter1.Fill(dataSet11);rnrndatGrid已经绑定到dataSet11,但启动后无显示。
ProgressDialog进度条显示不出来, 在线等
android程序中rn rn private ProgressDialog pd;rn private Handler handler;rn handler=new Handler()rn rn public void handleMessage(android.os.Message msg) rn rn if(Thread.currentThread().isInterrupted())rn switch(msg.what)rn case 0:rn pd.show();rn break;rn case 1:rn pd.hide();rn break;rn rn rn ;rn ;rn pd=new ProgressDialog(Tab1Activity.this);rn pd.setProgressStyle(ProgressDialog.STYLE_SPINNER);rn pd.setMessage("数据加载中,请稍候...");rn rn程序中,进度条的代码都有,rn现问:1 可为什么就是显示不出来呢, rn 2 需实现加载此activity时,显示 "数据加载中,请稍候" 加载完后,就不显示此提示信息,如何实现呀
请教高手,为什么就是显示不出来???
在action类中rn ActionErrors errors = new ActionErrors();rn errors.add("errorTest",new ActionError("error.test"));rn saveErrors(request, errors);rn return new ActionForward(actionMapping.getInput());rn..........rn文件设置如下:rn struts\WEB-INF\classes\ApplicationResources.propertiesrnApplicationResources.properties中有rnerror.test=this is a test!rnconfig-struts.xml中已加上rn rnweb-config.xml中也加上了rn rn applicationrn ApplicationResourcesrn rnjsp页面中使用来显示错误信息,可是总也没显示出来,但也不报错,不知道为什么?搞了一天,论坛上也搜了个遍,实在是没办法了,望哪位高手来帮帮忙,感激不尽!!
应用样式表,为什么 超级链接 就是表现不出来
我将.CSS 文件拖到ASPX页面,BODY部分的样子表现与.CSS一致,但 超级链接 的样式怎么样就是与CSS文件定义的不一致,死就是蓝色写加下划线。rn怎么解决,谢谢!rn下面为我写的样式表rnA rn TEXT-DECORATION: nonernrnA:link rn COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: nonernrnA:visited rn COLOR: #666666; FONT-FAMILY: 宋体; TEXT-DECORATION: nonernrnA:active rn FONT-FAMILY: 宋体; TEXT-DECORATION: underlinernrnA:hover rn BORDER-BOTTOM: 1px dotted; BORDER-LEFT-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-WIDTH: 1px; COLOR: #ff6600; TEXT-DECORATION: nonern
XML中的内容为什么就是显示不出来?!!!
下面是我的XML 文件和相应的HTML文件rnfirst.xmlrnrnrnrnrnstudentrnauthorrnintroductionrnwelcome to XML!rnrnrnfirst_show.htmlrnrnrnrn rnrnrnto: rnfrom: rnsubject: rnbody: rnrnrn上面是代码,可是只能显示成下面这样rnto:rnfrom:rnsubject:rnbody:rn为什么冒号后面却什么也没有呢?不能把相应XML中的内容显示出来呢?rnto: 是什么个语法与意思?rn小弟是个新手,还求高手大哥花点宝贵时间帮助一下,看一看到底是哪里出了问题,小弟这里先谢了!!!!rn
怎么了,为什么就是错误呢?
<% @ language=VBScript %> rn<% response.buffer=true %>rn<%rn strUserName=request.form("username")rn struserPass=request.form("userpass")rn if strUserName="" thenrn response.write " 用户名不能为空,请输入! "rn response.write "回到主页面" rn elseif strUserPass="" thenrn response.write " 密码不能为空,请输入! "rn response.write "回到主页面"rn end ifrn rn strSQL="select * from usertable where username='"&trim(strUserName)&"'""and userpass='"&trim(strUserPass)&"'"rn virtualpath="/test/dbJSTV.mdb"rn path=server.mappath(virtualpath)rn set strConn=server.createobject("adodb.connection")rn strConn.open "driver=Microsoft Access Driver (*.mdb);DBQ="&pathrn set cmd=server.CreateObject("adodb.recordset")rn cmd.ActiveConnection =strConnrn cmd.open strSQL,,3,2(为什么这一步错误?)))))))))))))))rn if cmd.recordcount=0 thenrn response.write " 此用户不存在,或者密码不正确,请再一次输入! "rn elsern response.redirect "index.asp"rn response.flushrn end if rn rn cmd.closern set cmd=nothingrn%>
ProgressDialog
一个简单的ProgressDialog demo希望能给初学者一点帮助
为什么他就是不可以呢?
这是删除记录的代码,可为什么要以姓名字段来删除就是不行呢?而用其它如电话号码,或者用编码来删除都可以啊,可用这个怎么就不可以呢》?rnname是数据库里的姓名字段,相对应删除表单里的name文本域。请指教!rn<%rnset conn=server.createobject("adodb.connection")rnconn.open "driver=microsoft access driver (*.mdb);dbq="&server.mappath("example3.mdb")rnexec="delete * from guestbook where name="&request.form("id")rnconn.execute execrn%>rn
为什么数据库中的符号读不出来呢!(数据库里明明有,但就是response.write不出来)什么原因?
没有使用任何过滤!rn数据库是使用sql server2000!rn怎么读出来呢!
About 对话框就是不出来!!
按书上说的,我用了 DialogBox 这个函数rn就是出不来。(编译无错,其它都没问题)rn后来建了一个对话框资源,可是不知道怎么和已有代码联系在一起,高手帮忙啊。rnrn...rncase WM_LBUTTONDOWN:rn DialogBox ( hInstance, TEXT("About"), hwnd, AboutProc );rnbreak;rn...
为什么这个progressDialog会报错
![![图片说明](https://img-ask.csdn.net/upload/201703/27/1490599294_571796.png)图片说明](https://img-ask.csdn.net/upload/201703/27/1490599288_577479.png)
高手帮忙~~为什么DIB位图显示不出来呢
位图显示调用StretchDIBits(.....)之后,不是已经把获取的位图数据拷贝到一个指定的矩形区域了么?为什么还不能在客户区显示呢?
求助啊,为什么我的图片显示不出来呢
这是jsp的代码rn<%@ page language="java" contentType="text/html; charset=utf-8"rn pageEncoding="utf-8"%>rn<%@ taglib prefix="s" uri="/struts-tags"%>rnrnrnrn rn 管理员登陆rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rnrnrn请注意这一句,为什么我的就不显示背景图片呢,在工具中显示的,一到了浏览器中就没了 ,帮帮我吧,纠结死了
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件