c#µ÷ÓÃcдµÄdll,Ò»¸ö½á¹¹²»»áд - .NET¼¼Êõ / C#
vcÀ
typedef struct _FontAttr{
char fontname[64]; //×ÖÌåÃû
int fontsize; //×ÖÌå´óС
}FontAttr;
°ÑËüת»»³Éc#µÄstruct Ó¦¸ÃÔõôд£¿
struct _FontAttr
{
Char [] fontname = new Char[64];
Int32 fontsize;
}
public struct PostalAddress
{
char fontname[64]; //×ÖÌåÃû
int fontsize; //×ÖÌå´óС
}
struct _FontAttr
{
public Char [] fontname = new Char[64];
public Int32 fontsize;
}
C# code:
public struct _FontAttr
{
public char [] fontname = new char[64] ; //×ÖÌåÃû
public int fontsize; //×ÖÌå´óС
}
//ʹÓÃ
_FontAttr f;
public Char [] fontname = new Char[64];
---------------
Èç¹ûÕâÑùд£¬ÈçºÎ°Ñ¡°ËÎÌ塱´«½øÈ¥£¿
C# code:
public struct _FontAttr
{
public string fontname ; //×ÖÌåÃû
public int fontsize; //×ÖÌå´óС
}
//ʹÓÃ
_FontAttr f;
f.fontname="ËÎÌå"
ÄãÒª°Ñ¡°ËÎÌ塱´æÔÚchar Êý×éÖУ¿
{{---
Ïà¹ØÎÊ´ð£º
SHIFT¼ÓF10ÓëÄǸö¼üÓÒctrl±ßÉϵÄÄǸö¼ü¹¦ÄÜÒ»Ñù£¬ÏëÆÁÕâ¸ö
µ«²»ÖªÒªÔõôдÄǸö×éºÏ¼ü£¡
ÓÐûÄĸö´óÏÀ·ÅÒ»¶ÎÕâ¸öµÄ´úÂë»òдһ¶Î
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ÎÒÓÐÒ»¸öÀàËÆµÄxmlµÄ string£¬Ïëͨ¹ý±éÀúÔõô¸öxml Êä³öÎÒÏëÒªµÄelementµÄÖµ
xml Ϊ£º
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_ME ......
ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......
visual c++2008Ëٳɰ棬²»ÄܱàÒëC³ÌÐòÂð£¿Èç¹ûÄÜÊÇÔõô¿ªÊ¼µÄ°¡£¿ÓÃËü´øµÄÃüÁîÌáʾµ¥Ôª³ýÍâ ¡£
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆÌ¨£©
¾ø¶Ô¿ÉÒÔ¡£½¨Á¢win32¿ØÖÆÌ¨³ÌÐò¾Í¿ÉÒÔ
ÒýÓÃ
н¨¹¤³Ì£¨¿Õ¹¤³Ì»òwin32¿ØÖÆÌ¨£ ......