问题列表 - 第12318页

如何将System.Drawing.font转换为System.Windows.Media.Fonts或TypeFace?

如何将a转换System.Drawing.Font为a System.Windows.Media.FontsTypeFace

或者,我怎么能生成的实例System.Windows.Media.Fonts或者TypeFace从一个实例System.Drawing.Font

c# fonts

12
推荐指数
2
解决办法
2万
查看次数

安装前检查Java是否存在

我正在为jar应用创建一个Inno Setup安装程序.我现在要做的是在继续安装之前检查java是否存在.所以我只需要确保用户能够运行:

java -jar my-app.jar
Run Code Online (Sandbox Code Playgroud)

我现在正在做的是:

[Code]

function InitializeSetup(): Boolean;
var
  ErrorCode: Integer;
  JavaInstalled : Boolean;
  Result1 : Boolean;
begin
  JavaInstalled := RegKeyExists(HKLM,'SOFTWARE\JavaSoft\Java Runtime Environment\1.6');
  if JavaInstalled then
  begin
    Result := true;
  end else
    begin
      Result1 := MsgBox('This tool requires Java Runtime Environment version 1.6 or newer to run. Please download and install the JRE and run this setup again. Do you want to download it now?',
        mbConfirmation, MB_YESNO) = idYes;
      if Result1 = false then
      begin
        Result:=false;
      end else …
Run Code Online (Sandbox Code Playgroud)

java registry inno-setup

19
推荐指数
2
解决办法
2万
查看次数

通过JDBC创建触发器(oracle)

有谁知道如何通过JDBC创建触发器.似乎问题与分号有关.任何反馈都非常赞赏.

以下SQL在数据库上运行时有效,但在使用以下Java代码运行时则无效:

Connection c=null;
    Statement s=null;
    try {
        c=dataSource.getConnection();
        s=c.createStatement();
        s.executeUpdate("create or replace trigger startuptrigger after insert on startuptest for each row begin insert into startuptest values(99); end");
        s.close();
        s=null;
        c.close();
        c=null;
    } catch(SQLException e) {
        if(s!=null) { try { s.close(); } catch(Exception f){} }
        if(c!=null) { try { c.close(); } catch(Exception f){} }
        throw new IOException(e.toString());
    }
Run Code Online (Sandbox Code Playgroud)

我尝试过s.execute(...)和s.executeUpdate(...)并没有什么区别.我正在使用ojdbc5.jar驱动程序.Oracle返回错误:

ORA-04098: trigger 'POLICYUAT.STARTUPTRIGGER' is invalid and failed re-validation
Run Code Online (Sandbox Code Playgroud)

java oracle jdbc

6
推荐指数
1
解决办法
5355
查看次数

有多少台个人电脑安装了Java?

是否有关于PC上Java运行时可用性的已发布数据?

java jvm

11
推荐指数
1
解决办法
7628
查看次数

Windows/DOS程序集 - 简单数学

我目前正在学习Windows/DOS程序集.我只是制作了一个小程序,它添加了两个基数为10的整数,并将解决方案输出到标准输出.这是我目前的代码:

org 100h


MOV al,5
ADD al,3

mov dx,al

mov ah,9
int 21h

ret
Run Code Online (Sandbox Code Playgroud)

我很困惑为什么在编译时,我得到错误:

错误:操作码和操作数的无效组合

因为从理论上讲,我所做的只是将5放入AL寄存器中,向其中加3,将AL寄存器的内容放入DX寄存器进行输出,然后显示.

任何帮助将不胜感激,谢谢!

windows assembly dos nasm

3
推荐指数
1
解决办法
1090
查看次数

如何在Iphone中创建钢琴UI?

我是newbei在创建这样的基于钢琴的UI应用程序.我正在开发一个我必须使用钢琴的应用程序.如何在Iphone中创建钢琴UI?如何使用Interface builder创建它?或者还有其他方法来制作钢琴吗?

我迫切需要创建这样的UI,如果任何正文有任何解决方案或任何有用的代码或任何链接,将不胜感激.

谢谢,Niraj

iphone piano

3
推荐指数
1
解决办法
9757
查看次数

你能删除appengine项目吗?

我刚刚达到我的10个申请限额.有没有办法删除我从未完成这个想法的那些?

http://appengine.google.com/

google-app-engine

16
推荐指数
1
解决办法
1万
查看次数

WCF多个绑定

当我尝试多个终点时,我收到以下错误..

System.ServiceModel.AddressAlreadyInUseException: The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: the service failed to listen.
   at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Register()
   at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Open(Boolean isReconnecting)
   at System.ServiceModel.Channels.SharedConnectionListener.StartListen(Boolean isReconnecting)
   at System.ServiceModel.Channels.SharedConnectionListener..ctor(BaseUriWithWildcard baseAddress, Int32 queueId, Guid token, OnDuplicatedViaDelegate onDuplicatedViaCallback)
   at System.ServiceModel.Channels.SharedTcpTransportManager.OnOpenInternal(Int32 queueId, Guid token)
   at System.ServiceModel.Channels.SharedTcpTransportManager.OnOpen()
   at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
   at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
   at System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.TcpChannelListener`2.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.ReliableChannelListenerBase`1.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) …
Run Code Online (Sandbox Code Playgroud)

c# wcf wcf-binding

8
推荐指数
2
解决办法
1万
查看次数

使用Java检测CPU速度/内存/ Internet速度?

在Java中是否可以识别可用的总CPU速度以及总系统内存?网络的网络连接速度也很棒.

java memory cpu ram networking

9
推荐指数
1
解决办法
1万
查看次数

如何编写单文件Django应用程序?

我想在一个文件中编写一个非常小的Django应用程序,需要所有相应的模块和东西,然后能够将其作为普通的Python脚本运行,如下所示:

$ python myapp.py
Run Code Online (Sandbox Code Playgroud)

您可以假设我不会呈现HTML,因此我不需要模板(我将返回JSON或其他一些自动生成的字符串).

python django web-applications

14
推荐指数
4
解决办法
3975
查看次数