Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Suivre ce blog Administration + Créer mon blog
MENU
Articles récents

Libraries statiques et dynamiques

12 Février 2013 Publié dans #library

http://www.siteduzero.com/forum-83-190884-p1-difference-entre-librairie-dynamique-et-statique.html tu as 3 moyens pour "lier" une bibliothèque : un .a/.lib seul : toute la bibliothèque est "intégrée" dans l'exécutable. un .a/.lib + .dll/.so : la partie...

Lire la suite
Publicité

convert TCHAR * to char *

3 Février 2013 Publié dans #c-c++

Windows Data Types for Strings (Windows) : int wstrlen(_TCHAR * wstr) { int l_idx = 0; while (((char*)wstr)[l_idx] != 0) l_idx += 2; return l_idx; } char *wstrdup(_TCHAR *wSrc) { int l_idx = 0; int l_len = wstrlen(wSrc); char *l_nstr = (char *)malloc(l_len);...

Lire la suite

convert int to char

24 Janvier 2013 Publié dans #c-c++

int a = 125; int b[50]; sprintf (b‚ "%d"‚ a); /* b contient la chaine "125"‚ et on concactene "oui". */ strcat (b‚ "oui"); printf ("%s\n"‚ b); ATTENTION : the first parameter of the fonction sprintf should be char[]

Lire la suite

Creation and use the DLL in Visual Studio

17 Janvier 2013 Publié dans #c-c++, #library

We will, in the article, see some examples for creating and using the DLL in VS. What's DLL? Dynamic-link library , or DLL, is Microsoft's implementation of the shared library concept in the Microsoft Windows and OS/2 operating systems. These libraries...

Lire la suite
Publicité

Using C++ library in C code

14 Janvier 2013 Publié dans #c-c++

extern “C” can help you to call c fonction from c++, and also it can help you do the reverse. But as we know c++ has class which we cannot use in c, so we have to do some wrapper to help us. 1. //code in add.cxx 2. #include "add.h" 3. int sample::method()...

Lire la suite

C/C++中static关键字详解

2 Janvier 2013 Publié dans #c-c++

http://www.cnblogs.com/yc_sunniwell/archive/2010/07/14/1777441.html 静态变量作用范围在一个文件内,程序开始时分配空间,结束时释放空间,默认初始化为0,使用时可以改变其值。 静态变量或静态函数只有本文件内的代码才能访问它,它的名字在其它文件中不可见。 用法1:函数内部声明的static变量,可作为对象间的一种通信机制 如果一局部变量被声明为static,那么将只有唯一的一个静态分配的对象,它被用于在该函数的所有调用中表示这个变量。这个对象将只在执行线程第一次到达它的定义使初始化。...

Lire la suite

Compilation Clucene avec Cmake

29 Décembre 2012 Publié dans #c-c++, #clucene, #opensource

Pour compiler Clucene (http://clucene.sourceforge.net/ ), vous devez utiliser Cmake, vous pouvez suivre les étapes suivantes : 1. Télécharger & installer Cmake http://www.cmake.org/cmake/resources/software.html 2. Télécharger Zlib http://zlib.net/ ou...

Lire la suite

Comparaison de licences open source

19 Décembre 2012 Publié dans #opensource, #library

1 Introduction J’ai fait une étude sur les licences de logiciels les plus répandues afin de déterminer les licences de logiciel qui seront le mieux adaptées pour être utilisées dans le projet industriel ; sachant que la contrainte principale est qu’aucun...

Lire la suite
Publicité

French caracter in HTML

17 Décembre 2012 Publié dans #html

Pour représenter les caractères accentués et des symboles comme les délimiteurs de balises, il faut utiliser des entités spéciales. Par exemple : à : à é : é ñ: ñ ô: ô Ä: Ä Ê: Ê &: & È: È

Lire la suite

First blog

14 Décembre 2012 Publié dans #life

I will soon finish my internship in SNCF(La Société nationale des chemins de fer français), here I learned a lot of new knowledge and I appreciate the chance here and all my colleges, and my interests of programming is increasing, so i create a Blog to...

Lire la suite
<< < 1 2 3 4 5 6