Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1336
  • Last Modified:

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
0
vinceTrace
Asked:
vinceTrace
  • 8
  • 7
1 Solution
 
Roshan DavisCommented:
Try

#define WINVER 0x0400 in "stdafx.h"

Good Luck
0
 
vinceTraceAuthor Commented:
Unfortunately this line is already present in "stdafx.h"....
Thanks.
Vincent
0
 
Roshan DavisCommented:
Try this
#define DS_SHELLFONT        (DS_SETFONT | 0x0008L)
Rosh :)
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
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 :)
0
 
Roshan DavisCommented:
Exclude "#define VC_EXTRALEAN" from stdafx.h
0
 
vinceTraceAuthor Commented:
No changes...
Thanks.
0
 
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 :)
0
 
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

0
 
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
0
 
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
0
 
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..
0
 
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.
0
 
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 :)
0
 
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.
0
 
Roshan DavisCommented:
Hi Vincent,

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

Rosh :)
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now