TEMPLATES C/C++ POUR VS 2010

Neo_Fr Messages postés 653 Date d'inscription mardi 6 décembre 2005 Statut Membre Dernière intervention 10 novembre 2014 - 26 mai 2010 à 12:57
deck_bsd Messages postés 1243 Date d'inscription jeudi 31 mars 2005 Statut Membre Dernière intervention 3 août 2016 - 6 août 2010 à 09:53
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/51806-templates-c-c-pour-vs-2010

deck_bsd Messages postés 1243 Date d'inscription jeudi 31 mars 2005 Statut Membre Dernière intervention 3 août 2016 2
6 août 2010 à 09:53
Bon pour les LPCWSTR , j'ai trouvé, suffit de changer le character set dans les options du projet, pour le reste ...

Pour contre je pense comprendre pourquoi pour de template Cwnd et console ^^ je viens de faire un nouveau projet C++ et apparemment ils ont pensé à virer leur dépendance à ce foutu fichier stdafx si je me souvient bien ^^ donc ça roule.
deck_bsd Messages postés 1243 Date d'inscription jeudi 31 mars 2005 Statut Membre Dernière intervention 3 août 2016 2
6 août 2010 à 09:35
BruNews , te serais-t-il possible d'être plus explicite pour les modifications à apporté pour la compilation 32bits ? car pour *((UINT64*) szdir) = 0x7461642E6C7074; // "tpl.dat" je n'ai aucune erreur, j'ai ceci pour erreurs :

Error 36 error C2440: 'function' : cannot convert from 'INT_PTR (__cdecl *)(HWND,UINT,WPARAM,LPARAM)' to 'DLGPROC' D:\programmes_c_cpp\TEMPLATEVC2010\TpVs10.c 383
38 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 49
39 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 71
40 IntelliSense: a value of type "WCHAR *" cannot be assigned to an entity of type "char *" d:\programmes_c_cpp\templatevc2010\tpvs10.c 76
41 IntelliSense: a value of type "WCHAR *" cannot be assigned to an entity of type "char *" d:\programmes_c_cpp\templatevc2010\tpvs10.c 95
42 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 99
43 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 99
44 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 277
45 IntelliSense: argument of type "WCHAR *" is incompatible with parameter of type "const char *" d:\programmes_c_cpp\templatevc2010\tpvs10.c 282
46 IntelliSense: a value of type "WCHAR *" cannot be assigned to an entity of type "char *" d:\programmes_c_cpp\templatevc2010\tpvs10.c 284
47 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 288
48 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 290
49 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 292
50 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 307
51 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 309
52 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 325
53 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 337
54 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 346
55 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 348
56 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 360
57 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 364
58 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 366
59 IntelliSense: argument of type "char *" is incompatible with parameter of type "LPCWSTR" d:\programmes_c_cpp\templatevc2010\tpvs10.c 374
60 IntelliSense: argument of type "INT_PTR (*)(HWND hdlg, UINT mssg, WPARAM wParam, LPARAM lParam)" is incompatible with parameter of type "DLGPROC" d:\programmes_c_cpp\templatevc2010\tpvs10.c 383

Merci d'avance. Et est-ce que il y a des template pour les projets windows console et fenetré ?
deck_bsd Messages postés 1243 Date d'inscription jeudi 31 mars 2005 Statut Membre Dernière intervention 3 août 2016 2
29 mai 2010 à 22:06
Haaa en voila une nouvelle qu'elle est bonne, la version 2010 des templates de BruNews, néanmoins je m'interroge , je ne voie aucun Cwnd ?
BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
26 mai 2010 à 20:21
A décomposer en 2 DWORDs:
*((UINT64*) szdir) = 0x7461642E6C7074; // "tpl.dat"

Les 2 fonctions dans utils.asm bien entendu.
Le reste devrait passer.
Neo_Fr Messages postés 653 Date d'inscription mardi 6 décembre 2005 Statut Membre Dernière intervention 10 novembre 2014 2
26 mai 2010 à 13:31
Que faut-il changer pour compiler sous 32bits?
Neo_Fr Messages postés 653 Date d'inscription mardi 6 décembre 2005 Statut Membre Dernière intervention 10 novembre 2014 2
26 mai 2010 à 12:57
Merci !
Rejoignez-nous