
.Net
文章平均质量分 56
米的向日葵
这个作者很懒,什么都没留下…
展开
-
OS Loader Lock Error?
Attempting managed execution inside OS Loader lock.Do not attempt to run managedcode inside a dllmain or image initialzation function since doing so can cause the application to hang.July 5t原创 2008-07-05 00:37:00 · 955 阅读 · 0 评论 -
Delphi Data Type to C# Data Type
Delphi DataType C# datatypeansistringstringbooleanboolbytebytecharcharcompdoublecurrencydecimaldoubledoubleextendeddoublei转载 2009-11-20 15:49:00 · 1589 阅读 · 0 评论 -
java C#命名规则
java1.包命名:全部字母小写:cn.package.bean2.类命名:单词的首字母大写:SimpleBean3.属性名称:第一个单词的首字母小写,之后每个单词的首字母大写studentName4.方法命名:与属性命名相同:public void sayHello()5.常量命名:全部单词大写:final String DBDRIVER="zhangde" C#类名不能是转载 2009-09-23 07:34:00 · 572 阅读 · 0 评论 -
Delphi编译的程序如果被杀毒软件误杀,请注意Delphi安装目录Lib下的SysConst.dcu,可能已被病毒感染
注意检查下delphi安装目录lib下的SysConst.dcu文件,如果大小为17KB,就是被感染了,正常大小在12KB,编译出来的程序都会被报病毒。目前杀毒软件大都检测到。 以下是卡巴工程师的回答:尊敬的用户,您好! 我们最新截获了一种病毒Virus.Win32.Induc.a,此病毒会向您现有的delphi工程中添加病毒文件并修改工程配置文件,使得编译时将病毒一同编原创 2009-08-24 15:35:00 · 3189 阅读 · 0 评论 -
How To Organize Template Source Code
By Nemanja TrifunovicDifferent ways to organize source code in C++ template libraries IntroductionOften I get asked whether programming with templates is hard or easy. The answer I usually giv转载 2008-07-04 10:19:00 · 612 阅读 · 0 评论 -
const_cast & static_cast
const_cast ( expression )Removes the const, volatile, and __unaligned attribute(s) from a class.static_cast ( expression ) Converts expression to the type of type-id based solely on the types原创 2008-07-03 21:24:00 · 537 阅读 · 0 评论 -
error C2872: ‘IServiceProvider’ : ambiguous symbol;
This is a very common compiler error with the C++ applications using the /clr switch. Here is the compiler output错误 2 error C3699: “*”: 不能在类型“IServiceProvider”上使用此间接寻址 c:/program files/microsoft sdk原创 2008-07-03 21:04:00 · 4625 阅读 · 1 评论 -
How to Marshal a C++ Class
Download source files - 16.4 KB IntroductionI recently needed to marshal some legacy C++ classes into a C# project on which I was working. Microsoft provides well documented means to marsh转载 2008-07-02 22:23:00 · 1611 阅读 · 0 评论 -
Calling C++ Unmanaged Class from C#
This may be a no-brainer, but I thought Id post it anyway.If you have a C++ class in an unmanaged dll what is the best way to call it from C#?1. You need to wrap the C++ class in a COM object转载 2008-07-02 16:29:00 · 638 阅读 · 0 评论 -
Read binary files more efficiently using C#
By Robert L. Bogue, Builder.com While not used prominently, binary files are still used in legacy systems. Reading binary files requires a certain amount of manipulation that can be made easier w转载 2008-07-02 16:00:00 · 1396 阅读 · 0 评论 -
Consuming Unmanaged C++ Class Libraries from .NET Clients
Consuming Unmanaged C++ Class Libraries from .NET Clients Andreas Wieberneit (view profile)April 1, 2004 Environment: Managed转载 2008-07-02 20:48:00 · 1170 阅读 · 0 评论 -
Call Unmanaged Code. Part 1 - Simple DLLImport
Call Unmanaged Code. Part 1 - Simple DLLImportBy Vyacheslav Biktagirov Managed world is beautiful, I have all classes I want in FrameWork.. But what if I want call转载 2008-07-02 12:52:00 · 706 阅读 · 0 评论 -
PInvoke
PInvokeIf you want to call one of the many Win32 API functions that are not available directly from the .NET framework, you should be able to call them using PInvoke (Platform Invoke). (PInvoke is转载 2008-07-02 20:46:00 · 662 阅读 · 0 评论 -
Call Unmanaged Code Part 2 - Marshal Class
Call Unmanaged Code Part 2 - Marshal Class By Vyacheslav Biktagirov In previous part we seen, how we can interop with unmanaged code and some simple examples. We obse转载 2008-07-02 12:54:00 · 946 阅读 · 0 评论 -
Live Mesh: First Look at Microsoft's New Platform
Live Mesh: First Look at Microsofts New PlatformWritten by Josh Catone / April 22, 2008 9:00 PM / 14 Comments The new Live Mesh service that just launched as an invite only "tec转载 2008-07-18 15:44:00 · 591 阅读 · 0 评论 -
How to set NULL to a pointer in Managed C++?
In unmanaged C++ we can set null to a pointer just like this: CUnmanagedClass *pClass = NULL; But how can we do this in managed C++? there is a new keyword in C++/CLI "nullptr" C原创 2008-07-15 16:54:00 · 483 阅读 · 0 评论 -
Handling unmanaged memory pointers in managed memory
Handling unmanaged memory pointers in managed memoryBy rwilly64AbstractThis article explores some of the issues in using libraries of unmanaged memory in the new managed memory environment (.N转载 2008-07-10 10:20:00 · 993 阅读 · 0 评论 -
Using Beyond Compare with Version Control Systems(zt)
Using Beyond Compare with Version Control Systems(from:http://www.scootersoftware.com)Beyond Compare can be configured as the external difference utility in many popular VCS applications. The fol转载 2010-02-04 17:21:00 · 1910 阅读 · 0 评论