Click here to Skip to main content
15,912,932 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Getting HDD serial No in C++/CLI environment Pin
Mark Salsbery6-Dec-08 9:36
Mark Salsbery6-Dec-08 9:36 
GeneralRe: Getting HDD serial No in C++/CLI environment Pin
J_E_D_I6-Dec-08 19:58
J_E_D_I6-Dec-08 19:58 
GeneralRe: Getting HDD serial No in C++/CLI environment Pin
Luc Pattyn7-Dec-08 1:14
sitebuilderLuc Pattyn7-Dec-08 1:14 
GeneralRe: Getting HDD serial No in C++/CLI environment Pin
J_E_D_I7-Dec-08 19:21
J_E_D_I7-Dec-08 19:21 
GeneralRe: Getting HDD serial No in C++/CLI environment Pin
Luc Pattyn7-Dec-08 23:06
sitebuilderLuc Pattyn7-Dec-08 23:06 
QuestionRe: Creating Registry Key Values in C++/CLI environment Pin
J_E_D_I13-Dec-08 7:56
J_E_D_I13-Dec-08 7:56 
GeneralRe: Creating Registry Key Values in C++/CLI environment Pin
Luc Pattyn13-Dec-08 8:26
sitebuilderLuc Pattyn13-Dec-08 8:26 
GeneralRe: Getting HDD serial No in C++/CLI environment Pin
Mark Salsbery7-Dec-08 6:12
Mark Salsbery7-Dec-08 6:12 
As Luc mentioned, the order of the #includes can be a factor.

Another recent post asked about tchar.h and I tested it - it can be
used all by itself and it pulls in any additional header files it needs,
so I wouldn't think that's an issue here..

In your stdafx.h file, you may be missing the Windows versioning macros.
The macros have changed a bit in recent SDK versions, but if you create a dummy
project (MFC or Win32) you can look at the stdafx.h file and see the defaults.
For example, here's a stdafx.h file from one of my projects, using the latest SDK
on VS 2008:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently

#pragma once


#define WIN32_LEAN_AND_MEAN

#include "<code>targetver.h</code>"

#include <stdio.h>
#include <tchar.h>

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN
#endif

// Windows Header Files:
#include <windows.h>

// <code>targetver.h</code>


#pragma once


#ifndef NTDDI_VERSION
#define NTDDI_VERSION NTDDI_WINXPSP2
#endif


#ifndef WINVER
#define WINVER _WIN32_WINNT_WINXP
#endif

#ifndef _WIN32_WINNT
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#endif

#ifndef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0410
#endif

#ifndef _WIN32_IE
#define _WIN32_IE 0x0600
#endif


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Getting HDD serial No in C++/CLI environment Pin
J_E_D_I7-Dec-08 19:24
J_E_D_I7-Dec-08 19:24 
AnswerRe: Getting HDD serial No in C++/CLI environment Pin
adi099016-Apr-11 0:27
adi099016-Apr-11 0:27 
QuestionUnmanged library printing to debug and then killing application Pin
coder2555-Dec-08 18:59
coder2555-Dec-08 18:59 
Questioni need client to server chat Pin
Member 39837645-Dec-08 6:35
Member 39837645-Dec-08 6:35 
AnswerRe: i need client to server chat Pin
Richard Andrew x6413-Dec-08 10:36
professionalRichard Andrew x6413-Dec-08 10:36 
QuestionFatal error C1902 Pin
Manfr3d3-Dec-08 12:51
Manfr3d3-Dec-08 12:51 
AnswerRe: Fatal error C1902 Pin
Manfr3d4-Dec-08 11:32
Manfr3d4-Dec-08 11:32 
QuestionInfragistics ultraGrid Pin
mikobi3-Dec-08 2:44
mikobi3-Dec-08 2:44 
QuestionDestroying controls created by CWinFormControl Pin
astibich230-Nov-08 11:43
astibich230-Nov-08 11:43 
QuestionRe: Destroying controls created by CWinFormControl Pin
led mike1-Dec-08 5:17
led mike1-Dec-08 5:17 
Questionspace in a string ! Pin
sajjy30-Nov-08 10:19
sajjy30-Nov-08 10:19 
AnswerRe: space in a string ! Pin
Mark Salsbery30-Nov-08 14:31
Mark Salsbery30-Nov-08 14:31 
GeneralRe: space in a string ! Pin
led mike2-Dec-08 4:31
led mike2-Dec-08 4:31 
GeneralRe: space in a string ! Pin
Mark Salsbery2-Dec-08 6:16
Mark Salsbery2-Dec-08 6:16 
GeneralRe: space in a string ! Pin
led mike2-Dec-08 6:49
led mike2-Dec-08 6:49 
GeneralRe: space in a string ! Pin
Paul Conrad2-Dec-08 6:57
professionalPaul Conrad2-Dec-08 6:57 
AnswerRe: space in a string ! Pin
Paul Conrad30-Nov-08 18:00
professionalPaul Conrad30-Nov-08 18:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.