delphi 在多线程中动态连接ADO控件 异常:exception class EOleSysError with message '尚未调用CoInitialize'如果是使用多线程的话那就在 Execute事件的开头加上 CoInitialize(nil); 结尾加上CoUninitializ...
分类:
编程语言 时间:
2014-08-05 10:48:20
阅读次数:
880
1 -(IBAction)btnRegisterClicked:(id)sender 2 { 3 if(secondViewController==nil) 4 { 5 secondViewController = [[SecondViewController al...
分类:
其他好文 时间:
2014-08-05 00:21:38
阅读次数:
218
1.OC中,只有对象才能设置为nil,而swift中除了对象,Int、struct、enum等任何可选类型都可以等于nil2.OC中,nil是一个指向不存在对象的指针。swift中,nil不是指针,nil是个确定的值,用来表示值缺失。
分类:
其他好文 时间:
2014-08-02 23:06:34
阅读次数:
281
//发送通知NSNotification*updateNotifi = [NSNotificationnotificationWithName:notification_name_update_pushobject:nil]; [[NSNotificationCenterdefaultCenter....
分类:
其他好文 时间:
2014-08-02 01:33:42
阅读次数:
287
-(void)addBtn{ NSArray*arr=[[NSArrayalloc]initWithObjects:@"未使用",@"已使用",@"已付款",@"退款",nil];for(inti=0;i>>>>>>>>%d",currentSelectButtonIndex);}
分类:
其他好文 时间:
2014-08-01 23:03:02
阅读次数:
252
- (void)startLoop
{
[NSThread
detachNewThreadSelector:@selector(loopMethod)
toTarget:self
withObject:nil];
}
- (void)loopMethod
{
[NSTimer
scheduledTimerWithTimeInterval:3.0f...
分类:
移动开发 时间:
2014-08-01 19:42:52
阅读次数:
186
lua中打印所以类型功能实现本人測试 number、string、bool、nil、table嵌套table、userdata没问题 共享一下有什么问题请拍砖 代码例如以下cclog = function( ... ) local tv = "\n" local xn = 0 lo...
分类:
其他好文 时间:
2014-08-01 19:35:42
阅读次数:
194
1. 由于使用ado等引起的异常。2. 若是子线程或某方法操作ado可在该方法开头和结尾分别加上:function myfunbeginCoInitialize(nil); // your code;CoUninitialize; end;3. 在主方法加入该句子有时候不能解决问题,因为默认是初始化...
分类:
其他好文 时间:
2014-08-01 18:45:02
阅读次数:
172
//方法1---- (void)textFieldDidBeginEditing:(UITextField *)textField { if (iPhone5) { return; } else { [UIView beginAnimations:nil context:NUL...
分类:
移动开发 时间:
2014-08-01 13:11:11
阅读次数:
254
//数组的创建?
????NSArray?*array1?=?[NSArray?arrayWithObject:@"one"];
????NSArray?*array2?=?[NSArray?arrayWithObjects:@"one",?@"two",?nil];
????NSArray?*array3?=?[...
分类:
其他好文 时间:
2014-07-31 21:22:47
阅读次数:
225