- 博客(7)
- 资源 (5)
- 收藏
- 关注
转载 关于char *p和char p[]
见论坛上有人讨论这个问题,感觉也是涉及面比较广,而且很多人犯过这个错误,比如声明char *p = "hello world!";却妄图用p指针改变字符串内容,所以就这个问题,我总结了一下。转载注明作者Logic0以及出处。主要解析的问题:问题1:#include "stdio.h"char *get_string_1(){ char p[] = "hello world!";
2011-06-29 21:41:00 224
原创 Asynchronous Method Invocation 【翻译】 (六)
Wait a minute! On which thread is the call-back executed on?After all, the callback is invoked by .NET using your delegate, but still it is .NET that calls this delegate. It is your right and duty t
2011-06-24 00:48:00 384
原创 Asynchronous Method Invocation 【翻译】 (五)
Using the Callback delegate, Hollywood style "Don�t call me I will call you!"At this point, you should understand how parameters can be passed, how to pass state, and understand the fact that your m
2011-06-24 00:13:00 323
原创 Asynchronous Method Invocation 【翻译】 (四)
What they don�t want you to know about IAsyncResultYou should be wondering how EndInvoke is able to give us the output parameters and the updated ref parameters. Or, better yet, how EndInvoke is abl
2011-06-23 22:06:00 368
原创 Asynchronous Method Invocation 【翻译】 (三)
Passing parameters to your methodOkay, so calling functions without parameters is not going to take us very far, so I am going to modify my super fancy and sophisticated Foo function to take a few p
2011-06-23 20:56:00 286
原创 Asynchronous Method Invocation 【翻译】 (二)
BeginInvoke() and EndInvoke()So far we saw how to invoke a method without really knowing when it is finished. But with EndInvoke(), it is possible to do a few more things. First of all, EndInvoke wi
2011-06-23 12:29:00 329
原创 Asynchronous Method Invocation 【翻译】 (一)
IntroductionIn this article, I am going to explain asynchronous method calls and how to use them. After playing with delegates, threads, and asynchronous invocation for so long, it would be a sin
2011-06-22 21:36:00 432
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人