我试过使用以下代码:
cd c:\windows\system32
regsvr32.exe dllname.ax
Run Code Online (Sandbox Code Playgroud)
但这不适合我.如何在Windows 7上使用64位处理器注册DLL文件?
我想显示一个带OK按钮的消息框.我使用了以下代码,但它导致带有参数的编译错误:
AlertDialog.Builder dlgAlert = new AlertDialog.Builder(this);
dlgAlert.setMessage("This is an alert with no consequence");
dlgAlert.setTitle("App Title");
dlgAlert.setPositiveButton("OK", null);
dlgAlert.setCancelable(true);
dlgAlert.create().show();
Run Code Online (Sandbox Code Playgroud)
我该如何在Android中显示消息框?
如何在vb.net中获取IP地址.我使用下面的代码来获取本地IP地址,但它没有声明显示dns.任何人都能告诉我守则中的Dns是什么
VB代码
Imports System.Environment
Imports System.Net
Public Class Tester
Public Shared Sub Main
Dim hostname As String = Dns.GetHostName()
Dim ipaddress As String = CType(Dns.GetHostByName(hostname).AddressList.GetValue(0), IPAddr
ess).ToString
Console.WriteLine("Computer Name: " & hostname & " IP Address: " & ipaddress)
End Sub
End Class
Run Code Online (Sandbox Code Playgroud) 我想将反弹动画应用到我的文本中.有可能吗?如果是的话,你能告诉我怎么样吗?谢谢.
我有一个RadioGroup内部,我有一些RadioButton.
我想以RadioButton编程方式在s 上设置一些文本.我使用了以下代码,因为我无法访问使用Java RadioButton的内部RadioGroup代码.
如何在RadioButton内部设置文本RadioGroup?
XML布局:
<RadioGroup android:layout_width="fill_parent"
android:layout_marginLeft="20dip"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/QueGroup1">
<RadioButton android:checked="false"
android:button="@drawable/green"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:textColor="#000"
android:text="Yes"
android:id="@+id/rbtnYes"
android:visibility="gone" />
<RadioButton android:checked="false"
android:button="@drawable/red"
android:textColor="#000"
android:text="No"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:id="@+id/rbtnNo"
android:visibility="gone" />
<RadioButton android:checked="false"
android:button="@drawable/red"
android:textColor="#000"
android:text="Dont Know"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:id="@+id/rbtnDontKnow"
android:visibility="gone" />
</RadioGroup>
Run Code Online (Sandbox Code Playgroud)
Java代码:
private void fnRadioTextSet(String strval) {
rbtnYes = (RadioButton)findViewById(R.id.rbtnYes);
rbtnNo = (RadioButton)findViewById(R.id.rbtnNo);
rbtnDontKnow = (RadioButton)findViewById(R.id.rbtnDontKnow);
RadioGroup rbtnGrp = (RadioGroup)findViewById(R.id.QueGroup1);
String[] strArrtext = strval.split(","); …Run Code Online (Sandbox Code Playgroud)