在animateWithDuration调用时旋转

用下面的代码动画UIView,运行正常,就是不能实现在调用时实现旋转和缩放,我想同时实现这些,需要缩放至0,并且旋转。

[UIView animateWithDuration:0.4 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut
                 animations:^(void) {
                     recognizer.view.transform = CGAffineTransformMakeRotation(DegreesToRadians(540));
                     recognizer.view.backgroundColor = [[UIColor alloc] initWithRed:220.0/255.0 green:220.0/255.0 blue:220.0/255.0 alpha:1.0];   
                 }];

1个回答

CGAffineTransformConcat方法:

[UIView animateWithDuration:0.4 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut
                 animations:^(void) {
                     recognizer.view.transform = CGAffineTransformConcat(CGAffineTransformMakeRotation(DegreesToRadians(540)), CGAffineTransformMakeScale(1.0, 1.0));
                     recognizer.view.backgroundColor = [[UIColor alloc] initWithRed:220.0/255.0 green:220.0/255.0 blue:220.0/255.0 alpha:1.0];   
                 }];

希望有帮助~

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
JavaBean调用时不执行
//bbsreg.javarnpackage twm;rnimport java.sql.*;rnrnpublic class bbsreg rn String sDBDriver;rn String sConncStr;rn Connection conn;rn ResultSet rs;rnpublic bbsreg()rn String url="jdbc:mysql://localhost:3306/bbs";rn sDBDriver="com.mysql.jdbc.Driver";rn conn=null;rn rs=null;rn String user="root"; rn String password="6949453";rn tryrn Class.forName(sDBDriver);//加载数据库rn conn=DriverManager.getConnection(url,user,password);//连接数据库rn [color=#0000FF]System.out.println("数据库连接成功!");[/color]可以打印输出 catch(ClassNotFoundException e)rn System.out.println(e.getMessage());rn catch(SQLException e) rn System.out.println("cannot connect the sql"); rnrnpublic ResultSet executeQuery(String sql) //创建查询结果集rn rs=null;rn tryrn Statement statement=conn.createStatement();rn rs=statement.executeQuery(sql);rn [color=#0000FF]System.out.println("正在查询!");[/color]不执行!! catch(SQLException e)rn System.out.println(e.getMessage()); rn rn return rs;rn rnpublic void executeUpdate(String sql)rn tryrn Statement statement=conn.createStatement();rn statement.executeUpdate(sql);rn catch(SQLException e)rn System.out.println(e.getMessage()); rn rnrnrn--------------------------------------------------------------------------------------------------------rn注册页面跳转到此页面。rn<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>rn<%@ page import="java.sql.*" %>rnrn<% %>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn%>rnrnrnrn rn rn rn My JSP 'chklogin.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn <%request.setCharacterEncoding("gb2312");rn String sql="";rn ResultSet rs;rn String username=request.getParameter("username");rn String password=request.getParameter("password");rn //out.println(username+password);rn if(username!=null&&username.equals(" ")) rn tryrn rn sql="select * from user where username='"+username+"'and userpassword='"+password+"'";rn rs=conn.executeQuery(sql);rn [color=#0000FF] System.out.println("调用JavaBean!");调用JavaBean!打印不出来[/[/color]rn if(rs.next())rn // session.setAttribute("login","ok");rn //session.setAttribute("username",username);rn %>rn rn 若无法跳转,请点击这里rn <%elsern out.println("错误的用户名或密码!");rn out.println("返回"); rn catch(Exception e)rn e.printStackTrace(); %>rn rnrn
EJB调用时的问题
EJB发布到服务器后我用简单的java测试通过,就是Jbuuilder自动生成的那个,填上相关的数据测试的。 对方用jsp测试,数据发送过来也可以正确的写入到这边的数据库里面。rn可是问题是当对方用他的系统真的发送数据的时候出现如下错误:rnjava.sql.SQLException: java.sql.SQLException: javax.naming.NameNotFoundException: Unable to resolve 'NFJF_TEST' Resolved [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'NFJF_TEST' Resolved ]; remaining name 'NFJF_TEST'rnat weblogic.jdbc.jts.Driver.createRemoteConnection(Driver.java:403)rnat weblogic.jdbc.jts.Driver.connect(Driver.java:161)rnat weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:344)rnat com.dreamtel.db.conn.dbConnect.getConnection_ex(dbConnect.java:65)rnat com.dreamtel.db.conn.dbConnect.transBegin_ex(dbConnect.java:110)rnat com.dreamtel.interfaces.InterfacesBean.insert(InterfacesBean.java:78)rnat com.dreamtel.interfaces.Interfaces_kuhd1g_EOImpl.insert(Interfaces_kuhd1g_EOImpl.java:149)rnat com.dreamtel.interfaces.Interfaces_kuhd1g_EOImpl_WLSkel.invoke(Unknown Source)rnat weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)rnat weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)rnat weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)rnat weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)rnat weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)rnat weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)rnat weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)rnat weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)rnNFJF_TEST数据源在服务器是存在而且可用的阿rn还望大家多多帮忙rn谢谢rnat weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)rn
XFire+hibernate+Spring 调用时报错!!
这是错误信息:rnJava code[DEBUG] [org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:115)] erPipeline - Invoking phase servicern[DEBUG] [org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:129)] erPipeline - Invoking handler org.codehaus.xfire.client.ClientReceiveHandler in phase servicernException in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Faultrnorg.codehaus.xfire.fault.XFireFault: Faultrn at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)rn at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Client.onReceive(Client.java:406)rn at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)rn at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)rn at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)rn at org.codehaus.xfire.client.Client.invoke(Client.java:336)rn at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)rn at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)rn at $Proxy0.GetJLSet(Unknown Source)rn at jia.tf.Test.testSHXFire(Test.java:67)rn at jia.tf.Test.main(Test.java:51)rnrnrn调用:rnJava codeService service = new ObjectServiceFactory().create(ICheckLogin.class);rn XFireProxyFactory proxyFactory = new XFireProxyFactory(XFireFactory.newInstance().getXFire());rn String url = "http://localhost:8080/computation/services.ws";rn ICheckLogin login = (ICheckLogin) proxyFactory.create(service, url);rn// System.out.println(login.test("123"));rn List listf = login.GetJLSet();rn for(FlSysSet fss : listf)rn rn System.out.println(fss.getCmemo());rn rnrnrn配置文件:rnXML codern rn rn rn rnrn
水晶报表调用时出错???
指定的参数已超出有效值的范围。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.ArgumentOutOfRangeException: 指定的参数已超出有效值的范围。rnrn源错误: rnrnrn行 55: rn行 56: ParameterFields paramFields = CrystalReportViewer1.ParameterFieldInfo;rn行 57: ParameterField paramField0 = paramFields["test"];rnrn 为什么??rn
在用调用时的问题..
我在用外部swf调用名为pop.swf时.不知怎的.调用后就不正常了.而单独放pop.swf又很正常.,,唉.我为这事头都大了.好像以前有人说过是_root路径的问题.还有_level之类的问题.我试了.可不知怎.还是没解决,,请高手给我治治. 明天就要放假了.急救.rnrnwww.flash8.net/bbs/viewFile....id=10&ID=133370
参数调用时的问题
在方法调用时,如果用的是传值调用的话,方法只是将定义在方法外的变量作复制,然后进行运算,变量本身不发生改变。可以下代码的BufferReplace()方法执行后,变量textBufferString的值发生了改变,请问为什么?rnpublic class T6 rn public static void StringReplace(String text)rn text=text.replace('j', 'i');rn System.out.println(text);rn rn public static void BufferReplace(StringBuffer text)rn text=text.append("C");rn rn rn public static void main(String[] args)rn String textString=new String("java");rn StringBuffer textBufferString=new StringBuffer("java");rn rn StringReplace(textString);rn BufferReplace(textBufferString);rn rn System.out.println(textString+textBufferString);rn rn
CFilediglog 调用时错误
CFileDialog    dlgFile(TRUE, NULL, NULL, OFN_HIDEREADONLY, _T("Describe Files (*.cfg)|*.cfg|All Files (*.*)|*.*||"), NULL);(这源自网络,我是按VS2010定义写的)rn我最近改用VS2010,单步到这里就错误,走进去貌似走到getcurrentinstance吧(我手机写的),然再进去到了个API然后就挂了。可是忽略了又可以正常工作。rn出问题的位置是在一个连接Ado数据库的全局类的私有函数,附近有try catchrn我用高一一年业余写了这软件,现在暑假得赶快把它做好,高二没时间了rn求大神救济!做我的指导老师也好,现在没时间自学咯
response.sendRedirect调用时出错
/*rn * Created on 2005-7-11rn */rnpackage com.tatchun.util;rnimport javax.servlet.http.HttpSession;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport java.io.IOException;rnimport org.apache.log4j.Logger;rnrn/**rn * @author johnsonrn */rnpublic class SessionUtil rn Logger logger = Logger.getLogger(SessionUtil.class.getName());rn HttpSession session = null;rn HttpServletResponse response = null;rn HttpServletRequest request = null;rn rn public SessionUtil(HttpSession session, HttpServletRequest request, HttpServletResponse response)rn this.session = session;rn this.request = request;rn this.response = response;rn rn rn public boolean validSession()rn if(session == null)rn dispErrorPage();rn return false;rn rn return true; rn rn public void dispErrorPage()rn tryrn response.sendRedirect("/tatchun/index.jsp");rn catch(IOException e)rn logger.debug("Exception in SessionUtil.disErrorPage()"+e.getMessage());rn e.printStackTrace();rn rn rn rn public Object getAttribute(String str)rn if(session.getAttribute(str) == null)rn session.invalidate();rn dispErrorPage();rn return null;rn elsern return session.getAttribute(str);rn rn rn rn public void setAttribute(String str, Object obj)rn session.setAttribute(str, obj);rn rnrn当运行到我调用SessionUtil程序判断是否有效session,如果无效就运行dispErrorPage(),但是调用dispErrorPage()的时候抛出以下错误,请问是怎么一回事?rntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Thread.java:534)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn at org.apache.jsp.kqrbIndex_jsp._jspService(kqrbIndex_jsp.java:70)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)rn at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)rn at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Thread.java:534)rn
调用时编译器的优化问题
构造拷贝构造的N种调用情况的编译器优化1、传参合传返回值时构造的优化处理include<iostream> using namespace std;class Date { public: Date()//构造 { cout << "Date()" << endl; } Date(const Date& d)//拷贝 { cou
存储过程调用时出错
我要在存储过程中返回一个结果集rn分别统计六张表中的记录数rn我用了一个临时表,统计出结果然后放进去,最后rnSELECT * FROM #TEPTABLErn在查询分析器中执行这个存储过程,得到正确结果rn在外面调用时,说在对象关闭时,不能执行操作.rn
curses.wrapper调用时报错
新手玩家上路,在碰到一个curses.wrapper调用时报错,请大家帮忙,谢谢!rnrn环境:rnrnPython3.6rnrn在使用函数时,好像可以使用rnrndef creats(stdscr):rn print('输入q退出')rn stdscr = curses.initscr()rn while True:rn c = stdscr.getch()rn if c == ord('p'):rn PrintDocument()rn elif c == ord('q'):rn break # Exit the while()rn elif c == curses.KEY_HOME:rn x = y = 0rnrnrncurses.wrapper(creats)rnrn但是,当我想转成类的时候,会报错rnrnclass tests():rn rn def __main__(self): rn rn passrn rn rnstdscr = curses.initscr()rncurses.wrapper(tests)rnrnTraceback (most recent call last):rn File "标准.py", line 29, in rn curses.wrapper(tests)rn File "E:\python36\lib\curses\__init__.py", line 94, in wrapperrn return func(stdscr, *args, **kwds)rnTypeError: object() takes no parametersrnrn请大神们指导下,谢谢
header()调用时出错。
header()调用时出错。rndo_register.php页面执行到 header("Location:msg.php?m=register_success");rn时出错。rnWarning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\accountSys\register.php:9) in C:\wamp\www\accountSys\do_register.php on line 29rnrnrnregister.php代码:rn[code=PHP]rnrnrn rn rn rn 用户名:rn * rn rn 你的全名或你更喜欢的名字。允许中英文,空格和数字。rn rn rn 密码:*rn rn 请输入您的密码。rn rn 请再次输入您的密码。rn rn rn rn rnrnrn rn rn[/code]rnrnrndo_register.php代码:[code=PHP][/code]
函数指针在调用时的问题
void Function1(void (*pFunc)())rnrn pFunc();rnrnrnvoid Func2() ;rnrnint main()rnrn Function1(Func2);rn//和rn Function1(&Func2);rn//有什么不同? 结果好像都一样rn
函数模板隐式调用时的优先级
#include #include using namespace std; //当函数模板隐式调用时,若同时存在模板函数和非模板函数,优先匹配非模板函数 template inline void foo(T a) { cout << "in template\t" << a << endl; } inline void foo(int a) { cout << "in speci
WebServices调用时RSA问题
我做了一个WebServices并且发布好了。让后在一个Winfrom应该程序引用了这个WebServices。当引用发布的地址时如:http://aa.aaa.com,执行时出现 WebServices中的RSA加密算法获取密钥 的异常。当引用本地的http://localhost:3493/ReqService.asmx时可以正确执行
关于动态连接库调用时的错误
在用Visual Studio .NET 中制作了一个DLL,库中包含一个函数:rnCUBICSPLINE_API int Test(vector x, vector y);rn制作过程没有问题,但是把Test.h,Test.lib和Test.dll放入另一个解决方案之后,编译时出错,显示如下:rnd:\MySolution\MySolution\Test.h(22) : error C2065: “vector” : 未声明的标识符rn但是我的stdafx.h头文件中已经包含了#include。rnrn请高手指点。本人不是学计算机的,麻烦解释得详细一些。非常感谢!
ejb调用时提示“NoSuchMethodError”
程序如下:仿照petstore来的rnrnpublic synchronized EventResponse handleEvent(Event ev, HttpSession session)rn throws EventException rnrn DefaultComponentManager cm=new DefaultComponentManager();rn EJBControllerLocal controllerEJB =cm.getEJBController(session);rn //以上成功rn return controllerEJB.processEvent(ev);rn rnrn在浏览器执行时出错,提示NoSuchMethodError,但是在jbuilder中编译时是可以的。rnrn由于这是web层的程序,它要import EJBControllerLocal ,后者是ejb层的,在另一个目录,所有我把那个文件拷了一个到web层,在没有修改接口名称的情况下,是否要求同步更新呢?rnrn到底是怎么回事啊?rnrn另外这和本地调用有关系吗?
DLL调用时参数匹配问题
..., int *numOfRecord, int *numOfRetRecord) 这是函数原型的写法 Crn我调用的时候声明如下: ..., numOfRecord, numOfRetRecord:^integer) : boolean;...rn编译却总不能通过 : [Error] Unit1.pas(36): Identifier expected but '^' foundrn觉得我写的写法没错啊 可是。。。
fushioncharts循环调用时内存问题
使用定时器无限次调用fushioncharts渲染图标时浏览器内存占用持续上涨问题解决方案!
EntityFramework连接串的调用时传入
EntityFramework自动将数据库映射到Model,同时会生成相应的连接字符串,如下图。 生成之后,我们看到自动生成的DBDemoEntities的类,只有一个默认的无参的构造函数,如下图 这在一般情况下是OK的,因为只我们在App.config或者Web.config配置了这个连接串即可。如下图。 但是当我们希望自己传入连接字符串时,就无能为力了。那我们怎么
htmlhelp()调用时的奇怪问题
我已完成.chm文件的制作。rn且在菜单中有相应的调用.chm的菜单。rn问题是:rn每次打开程序,只有先调用该菜单命令,那么一切都正常。但如果先调用了“打开文件对话框”则.chm文件无法打开。rnhtmlhelp.hrnhtmlhelp.librn已添加,且在相应目录下。使用rnHtmlHelp(NULL, "ASPDOC.CHM::/ASPDOC.htm", HH_DISPLAY_TOPIC, 0);rn请大家看看,究竟可能是什么问题?
[求助]自定义组件调用时出错
目的是做自定义按钮组控件,所有按钮执行onclick事件,并根据事件参数动态添加删除和保存按钮rnrn红色部分该如何写。后台动态添加按钮到HeadToolButtonItem出错(索引超出数组界限)rnrn调用代码:rnprotected void tt(object sender, EventArgs e)rn rn string args = ((Button)sender).CommandArgument;rn txt_Name.Text = args+sender.ToString();rn if (args == "Edit")rn rn ... //添加删除和保存按钮rn rn rnrn控件代码:rn /// rn /// 构造函数rn /// rn public HeadTooBarControls()rn rn _ButtonList = new List();rn rnrn #region "Private Variables"rn private List _ButtonList = new List();rnrn /// rn /// 按钮集合rn /// rn [rn Category("Behavior"),rn Description("按钮集合"),rn Editor(typeof(CollectionEditor), typeof(UITypeEditor)),rn PersistenceMode(PersistenceMode.InnerDefaultProperty)rn ]rn [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] rn public List ButtonListrn rn getrn rn object m = ViewState["ButtonList"];rn return m == null ? _ButtonList : (List)m;rn rn setrn rn ViewState["ButtonList"] = value;rn rn rnrn #region private proppertiesrn //定义button对象rn private Button[] _button;rn private Button _currbutton;rn //定义Click事件委托对象rn private static readonly object EventClick = new object();rn #endregionrnrn #region Overriden propertiesrn /// rn /// 子控件集合rn /// rn public override ControlCollection Controlsrn rn getrn rn //判断是否已生成控件集合,如果未生成,则调用CreateChildControls()rn EnsureChildControls();rn return base.Controls;rn rn rn #endregion Overriden propertiesrnrn #region Eventsrn /// rn /// 事件委托rn /// rn [rn Category("Action"),rn Description("Raised when the user clicks the button")rn ]rn public event EventHandler Clickrn rn addrn rn Events.AddHandler(EventClick, value);rn rn removern rn Events.RemoveHandler(EventClick, value);rn rn rnrn /// rn /// 事件rn /// rn /// rn protected virtual void OnClick(EventArgs e)rn rn EventHandler logonHandler =rn (EventHandler)Events[EventClick];rn if (logonHandler != null)rn rn logonHandler(this._currbutton, e);rn rn rn #endregionrnrn #region Event bubblingrn // The use of event bubbling in this scenario is somewhat contrived;rn // We have implemented it mainly for demonstration purposes.rn // In this case you could insteadrn // Raise the Logon event from an event handler wired to thern // Click event or to the Command event of the Button control.rnrn /// rn /// 控件内包含的控件向外层控件作事件冒泡rn /// rn /// rn /// rn /// rn protected override bool OnBubbleEvent(object source, EventArgs e)rn rn bool handled = false;rnrn if (e is CommandEventArgs)rn rn CommandEventArgs ce = (CommandEventArgs)e;rn _currbutton = (Button)source; //无法获取当前点击的Buttonrn if (ce.CommandName == "Click")rn rn OnClick(EventArgs.Empty);rn handled = true;rn rn rn return handled;rn rn #endregion Event bubblingrnrn #region Overriden methodsrn //Createchildcontrols在页生命周期的各个阶段都有可能被执行rn //CreateChildControls方法来对子控件进行实例化、初始化、并把这些子控件添加到控件树中。rnrn /// rn /// CreateChildControls方法rn /// rn protected override void CreateChildControls()rn rn Controls.Clear();rn _button = new Button[ButtonList.Count];rnrn if (ButtonList != null && ButtonList.Count > 0)rn rn int DispButtonNum = 0;rn for (int i = 0; i < ButtonList.Count; i++)rn rn if (ButtonList[i].ButtonVisible && FrameWorkPermission.CheckButtonPermission(ButtonList[i].ButtonPopedom))rn rn _button[DispButtonNum] = new Button();rn _button[DispButtonNum].ID = "button"+DispButtonNum.ToString();rn _button[DispButtonNum].Text = ButtonList[i].ButtonPopedom.ToString();rn _button[DispButtonNum].CssClass = "button";rn _button[DispButtonNum].CommandName = "Click";rn _button[DispButtonNum].CommandArgument = ButtonList[i].ButtonPopedom.ToString();rnrn this.Controls.Add(_button[DispButtonNum]);rnrn DispButtonNum++;rn rn rn rn rnrn /// rn /// 将此控件呈现给指定的输出参数。 rn /// rn /// 要写出到的 HTML 编写器rn protected override void Render(HtmlTextWriter writer)rn rn writer.Write(" ");rnrn [color=#FF0000]for (int i = 0; i < ButtonList.Count; i++)rn rn _button[i].RenderControl(writer);rn [/color]rnrn writer.Write(" ");rn rn #endregion Overriden methods
子类继承父类在调用时的问题
A类为父类;B类为A类的子类;rnB a=new B()时,B类会调用A类的构造函数,但调用时是否建立A类句柄?已经给A类成员变量初始化了,用什么句柄调用A类的成员变量啊? rn
JNI调用时,报错:EXCEPTION_ACCESS_VIOLATION__.?
JNI调用时,当我多次调用DLL中方法返回一个类时,报出这样的错误:EXCEPTION_ACCESS_VIOLATION__.查了查资料说是内存溢出,不知是不是这种原因,究竟该怎么解决?
webservice调用时怎么传参数
nnnnnn-nnn-nnn-nnnnnnnnn-nnnnnnn-nnnnnnn-nnn-nnnnnnnnnnn-nnnnn-nnnnn-nnnnnnn-nnnnnnnnnnn-nnn-nnnnnnnnnnn下面是我的调用代码:nn```n Service service = new Service();n Call call = (Call) service.createCall();n String url = "http://192.1.1.64:8082/Service/ServiceHello?wsdl";n call.setTargetEndpointAddress(url);n call.setOperationName(new QName("http://webservice_302/", "getValue"));n call.addParameter(new QName("http://webservice_302/", "name"), org.apache.axis.encoding.XMLType.XSD_STRING,n javax.xml.rpc.ParameterMode.IN);n call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);n String result = (String) call.invoke(new String[] "11" );n System.out.println(result);n```n下面是接口的方法点:nn```n public String getValue(String name)n return "欢迎你! "+name;n n```nn可以成功调用,返回结果是:欢迎你! nullnn说明参数没有传进去,请问这里我应该怎么写呢?nn
请教bean调用时出错!??
useBean:rnpackage jbean;rnimport javax.servlet.http.HttpSession;rnimport javax.servlet.http.HttpServletRequest;rnpublic class usessionrn public String getSe()rn HttpServletRequest req=null;rn HttpSession session=req.getSession(true);rn return (String)session.getAttribute("useranme");rn rnrnrnjsp:rnrn<%rnsession.setAttribute("username","xian");rnout.println(uSession.getSe()+" ");rn%>
xfire客户端调用时异常
客户端main方法测试,rn调试时可以调用服务端,但是当遇到rnnew Hibernate的DAO 是就出现异常~rn(DAO层都是存在继承关系的~) rn异常如下:rnException in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Error invoking 'com.service.IehomeService.sendProposalObj(com.ui.form.ProposalForm)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrnorg.codehaus.xfire.fault.XFireFault: Error invoking 'com.service.IehomeService.sendProposalObj(com.ui.form.ProposalForm)'. Nested exception is java.lang.reflect.InvocationTargetException: nullrn at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)rn at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)rn at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Client.onReceive(Client.java:406)rn at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)rn at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)rn at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)rn at org.codehaus.xfire.client.Client.invoke(Client.java:336)rn at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)rn at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)rn at $Proxy12.sendProposalObj(Unknown Source)rn at com.client.ehomeServiceClient.main(ehomeServiceClient.java:106)rnrn昨天调数据源也不行说数据源未注册:rn*** DBDataSource testDataSource has not registed!rnjava.lang.IllegalArgumentException: **** DBDataSource testDataSource has not registed!rn 汗汗~!各位大侠帮帮忙呀~!!!
ActiveX控件调用时的权限问题
同一个ActiveX控件,使用一般的CS模式调用时可以设置系统时间,但是使用BS模式(用IE来加载控件)调用时,rnrn却无法设置系统时间(SetSystemTime),错误码是 1314,没有对应的权限,请问如何解决呢?
dll显式调用时的疑问...
dll显式调用的话,都是通过GetProcAddress来获得函数地址...rn那如果dll里面有导出类呐?类貌似没有地址吧?rnrn那是否又会是rnclass _declspec(dllexport) CArnrn void A();rn void B();rnrnrn--->rnrnvoid _declspec(dllexport) A();rnvoid _declspec(dllexport) B();rnrn这样的话,我们是可以依然去获得地址哦...rn但是如果这个导出类中有成员变量呢?应该是可以有的,虽然好像不推荐,但是应该可以有吧?rnrnrnrn小菜鸟的一点疑问哈,希望大家解释一下
声明多维数组调用时出错
S_Cell 是一个类rnrnS_Cell[,] cell = new S_Cell[9, 9];rnrnrn然后 cell[0,0].x=1;rn出错,显示:rnrn未将对象引用设置到对象的实例。rnrn然后设置断点,看到 cell的所有成员的数据都是 NULL。。。rnrn这是什么情况?
Xfire webService调用时报错
代码片段rnclient=new Client(new URL(url));rnObject[] obj =client.invoke("getResult", new Object[]userName,pwd,sourcecode,xmlParameter.toString().getBytes());rn代码执行到这个Invoke的时候报错:rnException in thread "main" org.codehaus.xfire.fault.XFireFault: [B cannot be cast to javax.activation.DataHandlerrn at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:83)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)rn at org.codehaus.xfire.client.Client.invoke(Client.java:336)rn at org.codehaus.xfire.client.Client.invoke(Client.java:368)rn at com.hirisun.webService.WebServiceUtil.getResult(WebServiceUtil.java:56)rn at com.hirisun.webService.Test2.main(Test2.java:45)rnCaused by: java.lang.ClassCastException: [B cannot be cast to javax.activation.DataHandlerrn at org.codehaus.xfire.aegis.type.mtom.DataHandlerType.createAttachment(DataHandlerType.java:18)rn at org.codehaus.xfire.aegis.type.mtom.AbstractXOPType.writeObject(AbstractXOPType.java:89)rn at org.codehaus.xfire.aegis.AegisBindingProvider.writeParameter(AegisBindingProvider.java:229)rn at org.codehaus.xfire.service.binding.AbstractBinding.writeParameter(AbstractBinding.java:273)rn at org.codehaus.xfire.service.binding.WrappedBinding.writeMessage(WrappedBinding.java:90)rn at org.codehaus.xfire.soap.SoapSerializer.writeMessage(SoapSerializer.java:80)rn at org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpChannel.java:56)rn at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.getByteArrayRequestEntity(CommonsHttpMessageSender.java:422)rn at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:360)rn at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)rn at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)rn at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)rn at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)rn at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)rn求高手帮忙看看是为什么,我传入BYTE数组的时候就会出现这个错误
cxf 客户端调用时异常
java.lang.NoSuchMethodError: org.apache.neethi.Policy.normalize(Z)Lorg/apache/neethi/PolicyComponent;rnrnrnException in thread "main" java.lang.NoSuchMethodError: org.apache.neethi.Policy.normalize(Z)Lorg/apache/neethi/PolicyComponent;rn at org.apache.cxf.ws.policy.EffectivePolicyImpl.initialisePolicy(EffectivePolicyImpl.java:134)rn at org.apache.cxf.ws.policy.EffectivePolicyImpl.initialise(EffectivePolicyImpl.java:86)rn at org.apache.cxf.ws.policy.PolicyEngineImpl.getEffectiveClientRequestPolicy(PolicyEngineImpl.java:155)rn at org.apache.cxf.ws.policy.PolicyOutInterceptor.handle(PolicyOutInterceptor.java:110)rn at org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(AbstractPolicyInterceptor.java:45)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)rn at $Proxy50.sayHi(Unknown Source)rn at cxf.demo.WebServiceClient.main(WebServiceClient.java:22)rn
webservers 调用时报错401
// 创建WebService客户端代理工厂 JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); // 判断是否抛出异常 factory.getOutInterceptors().add(new LoggingInInterceptor()); // 注册we...
dll调用时参数传递的问题
我设计了一个应用程序用来动态的加载dll,现在我知道dll中一个函数的名字(也知道他的参数表)在程序中加载了dll后调用这个函数时却无法传递参数(因为在程序中没有定义这个函数,所以默认这个函数不带参数),请问有什么办法可以解决?rn目的就是为了要兼容所有的dll。谢谢……
结构体调用时警告问题
我用的是VC2008.NET,初学C++,用strcpy函数报了警告rnrn#include "stdafx.h"rn#include "iostream"rnusing namespace std;rnrnstruct Person rn char name[20];rn unsigned long id;rn double salary;rn char address[200];rn;rnrnvoid setName(Person *p, char name[]);rnrnint main() rnrn Person zhang = "Yan", 100102, 2.321, "Shandong";rn char name[] = "Shun";rn setName(&zhang, name);rn cout << zhang.name << endl;rn rnrn return 0;rnrnrnvoid setName(Person *p, char name[]) rn strcpy(p->name, name);rnrnrn抽出点时间,研究了一下C++,没太多时间了解细节,请高手回答。rn
JS对象调用时找不到对象
昨天还不报错,今天就报错。我什么都没改。rn报错信息:rnlogonOper未定义rnrn十分不解,请高手解答,谢谢!rnrnlogon.jsp部分代码rn[code=XML]rn.......rn rn[/code]rnrnrnlogon.js部分代码:rn[code=JScript]var logonOper = new LogonOPer();rnfunction LogonOPer()rnrn /* 提交 */rn this.submit = function()rn alert('ffff');rnrn[/code]
客户端调用时header错误
搜索了一下: rn有说法是服务端 客户端时间不对 但是我都是本机 应该不存在这个问题rn还有说法是jar冲突 因为我工程用的jar包比较多 也不清楚是哪个jar包导致的?rnrn错误代码如下:rn[code=Java]rn2011-11-21 16:45:07 org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor handleMessagern警告: Request does not contain required Security header, but it's a fault.rnException in thread "main" javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the headerrn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)rn at $Proxy33.proxyMethod(Unknown Source)rn at client.SpringClient.main(SpringClient.java:32)rnCaused by: org.apache.cxf.binding.soap.SoapFault: An error was discovered processing the headerrn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)rn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)rn at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)rn at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:99)rn at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)rn at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)rn at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:755)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2335)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2193)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2037)rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:697)rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)rn ... 2 morern[/code]
shell调用时如何传递参数?
shell调用时如何传递参数?
WebService调用时标准代码
public class WebServiceClient { public static void main(String[] args) throws Exception { String targetEendPoint = &quot;url&quot;;//测试地址 String param = &quot;&amp;lt;...&amp;gt;&amp;lt;/...&amp;gt;&quot;;测试报文 Service service =...
cxf 调用时出现的错误
java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLReader.readWSDL(Ljavax/wsdl/xml/ WSDLLocator;Lorg/w3c/dom/Element;)Ljavax/wsdl/Definition;问题 - jar包冲突 wsdl4j-1.5.1.jar , wsdl4j-1.6.3.jar解决 - 删除wsdl4j-1...
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件