DS_SHELLFONT & Visual C++ Net

Hi everybody,


I've just tried to develop my first application on Visual C++ Net and I have the following problem:

I'd like to create a MFC application, dialog based.
When I click on finish, the following problem appears :
error :rc 2104 undefined key or unknow key DS_SHELLFONT
I have no idea how to fix this problem...
Thank you for your help....
Vincent
vinceTraceAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Roshan DavisCommented:
Try

#define WINVER 0x0400 in "stdafx.h"

Good Luck
vinceTraceAuthor Commented:
Unfortunately this line is already present in "stdafx.h"....
Thanks.
Vincent
Roshan DavisCommented:
Try this
#define DS_SHELLFONT        (DS_SETFONT | 0x0008L)
Rosh :)
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

vinceTraceAuthor Commented:
does not work neither....
When I try to build my solution (only the Microsoft default files) I have 92 errors:
the first one is:

on afxv_w32.h error C2065 'DWORD_PTR': undeclared identifier

I had the habit to use Visual C++ 6.0 , and I'm really lost...
Thank you.
Vincent :)
Roshan DavisCommented:
Exclude "#define VC_EXTRALEAN" from stdafx.h
vinceTraceAuthor Commented:
No changes...
Thanks.
Roshan DavisCommented:
Tried #define WINVER 0x0500
Show me what all are includes u are using in stdafx.h

Just show the starting of resource.h and stdafx.h

Rosh :)
vinceTraceAuthor Commented:
Here is Resource.h :

// Used by dotNet2.RC
//
#define IDR_MAINFRAME                              128
#define IDM_ABOUTBOX                              0x0010
#define IDD_ABOUTBOX                              100
#define IDS_ABOUTBOX                              101
#define IDD_DOTNET2_DIALOG                        102
#define IDR_MANIFEST                              CREATEPROCESS_MANIFEST_RESOURCE_ID

// Valeurs par défaut suivantes des nouveaux objets
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS

#define _APS_NEXT_RESOURCE_VALUE      129
#define _APS_NEXT_CONTROL_VALUE            1000
#define _APS_NEXT_SYMED_VALUE            101
#define _APS_NEXT_COMMAND_VALUE            32771
#endif
#endif
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Here is stdafx.h :

// stdafx.h : Fichier Include pour les fichiers Include système standard,
// ou les fichiers Include spécifiques aux projets qui sont utilisés fréquemment,
// et sont rarement modifiés

#pragma once

#define DS_SHELLFONT (DS_SETFONT|0x0008L)

/*#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN            // Exclure les en-têtes Windows rarement utilisés
#endif*/

// Modifiez les définitions suivantes si vous devez cibler une plate-forme avant celles spécifiées ci-dessous.
// Reportez-vous à MSDN pour obtenir les dernières informations sur les valeurs correspondantes pour les différentes plates-formes.
#ifndef WINVER                        // Autorise l'utilisation des fonctionnalités spécifiques à Windows 95 et Windows NT 4 ou version ultérieure.
#define WINVER 0x0500            // Attribuez la valeur appropriée à cet élément pour cibler Windows 98 et Windows 2000 ou version ultérieure.
#endif

#ifndef _WIN32_WINNT            // Autorise l'utilisation des fonctionnalités spécifiques à Windows NT 4 ou version ultérieure.
#define _WIN32_WINNT 0x0400            // Attribuez la valeur appropriée à cet élément pour cibler Windows 98 et Windows 2000 ou version ultérieure.
#endif                                    

#ifndef _WIN32_WINDOWS            // Autorise l'utilisation des fonctionnalités spécifiques à Windows 98 ou version ultérieure.
#define _WIN32_WINDOWS 0x0410 // Attribuez la valeur appropriée à cet élément pour cibler Windows Me ou version ultérieure.
#endif

#ifndef _WIN32_IE                  // Autorise l'utilisation des fonctionnalités spécifiques à IE 4.0 ou version ultérieure.
#define _WIN32_IE 0x0400      // Attribuez la valeur appropriée à cet élément pour cibler IE 5.0 ou version ultérieure.
#endif

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS      // certains constructeurs CString seront explicites

// désactive le masquage MFC de certains messages d'avertissement courants et par ailleurs souvent ignorés
#define _AFX_ALL_WARNINGS

#include <afxwin.h>         // composants MFC principaux et standard
#include <afxext.h>         // extensions MFC
#include <afxdisp.h>        // Classes MFC Automation

#include <afxdtctl.h>            // Prise en charge des MFC pour les contrôles communs Internet Explorer 4
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>                  // Prise en charge des MFC pour les contrôles communs Windows
#endif // _AFX_NO_AFXCMN_SUPPORT
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Thank you very much!
Vincent

Roshan DavisCommented:
Did u added any code in that Project, Or changed any dialog property?

Here I'm getting all fine... These all what I did

New Project
Visual C++ Projects
MFC Application
Name the application

Application type - Dialog based
Click Finish
Build Solution
vinceTraceAuthor Commented:
I have tried a new project, Visual C++ Projects, MFC Application, MyApplication, and I've chosen dialog based.
Then I click on Finish and the same message appear:
error RC2104 : undefined keyword or key name : DS_SHELLFONT

I just don't understand...
Thanks
Vincent
Roshan DavisCommented:
I think some Include folders or something is missing.....

Is that error comes before *Building* the Project?

Here I checked and all gone well..
vinceTraceAuthor Commented:
Yes that error occurs just after I click on finish.
Do you think it could a problem of installation?
Thank you very much for your help.
Vincent.
Roshan DavisCommented:
I think thats an installation problem.

Do you have any old test programs, just take a copy of that and open that in VC.Net.

Check that Project....Old projects should work

Rosh :)
vinceTraceAuthor Commented:
When I open previous projects developped under VC++6.0,it converts them, but I cannot build them...I have lot of errors like :

Studio .NET 2003\Vc7\atlmfc\include\afxv_w32.h(230) : error C2065: 'DWORD_PTR' : undeclared identifier

c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxv_w32.h(230) : error C2143: syntax error : missing ';' before 'GetWindowThreadProcessId'

c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlalloc.h(344) : error C3861: '_resetstkoflw': identifier not found, even with argument-dependent lookup

and so on...
I had the impression that the installation did not met any problems, but...
If you think I should reinstall VC Net I'll do, I don't want to make you waste your time.
Thank your for your help.
Vincent.
Roshan DavisCommented:
Hi Vincent,

sorry for the delay, I came to native yesterday from Bangalore.
I think reinstallation will solve the problem.

Rosh :)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.