Click here to Skip to main content
15,900,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSetting a radio button as the default choice Pin
Jay Hova17-Jun-03 9:41
Jay Hova17-Jun-03 9:41 
GeneralRe: Setting a radio button as the default choice Pin
valikac17-Jun-03 10:02
valikac17-Jun-03 10:02 
GeneralRe: Setting a radio button as the default choice Pin
David Crow17-Jun-03 10:51
David Crow17-Jun-03 10:51 
GeneralRe: Setting a radio button as the default choice Pin
Ryan Binns17-Jun-03 16:18
Ryan Binns17-Jun-03 16:18 
GeneralRe: Setting a radio button as the default choice Pin
Jay Hova18-Jun-03 4:16
Jay Hova18-Jun-03 4:16 
QuestionHow do you create new object using <vector>? Pin
kleft17-Jun-03 9:06
kleft17-Jun-03 9:06 
AnswerRe: How do you create new object using ? Pin
AlexO17-Jun-03 9:14
AlexO17-Jun-03 9:14 
Generalusing SP_DRVINFO_DATA_V2 instead of SP_DRVINFO_DATA_V1 Pin
tessierjf17-Jun-03 8:28
tessierjf17-Jun-03 8:28 
Hi!

I'm developing on a Win2k platform and I need to use the SP_DRVINFO_DATA to be defined as SP_DRVINFO_DATA_V2 instead of SP_DRVINFO_DATA_V1. As stated in MSDN:

"If your component will be used only on Windows 2000 and later, do not define the identifier. If the identifier is not defined, SP_DRVINFO_DATA_V2 is used."

Here's the define they're talking about: #define USE_SP_DRVINFO_DATA_V1 1

Obviously, I didn't defined this but SP_DRVINFO_DATA is still defined as SP_DRVINFO_DATA_V1.

Then, I went to the setupAPI.h file to see what was going on:

#if USE_SP_DRVINFO_DATA_V1 || (_SETUPAPI_VER < 0x0500)
...
typedef SP_DRVINFO_DATA_V1 SP_DRVINFO_DATA;
#else
***
typedef SP_DRVINFO_DATA_V2 SP_DRVINFO_DATA;

Since I didn't define the first condition, it's obvisous that the _SETUPAPI_VER is < than 0x0500. _SETUPAPI_VER is actually defined as (in my environment)

#if defined(_WIN32_WINNT) && (!defined(_WIN32_WINDOWS) || (_WIN32_WINNT < _WIN32_WINDOWS))
#define _SETUPAPI_VER _WIN32_WINNT // SetupAPI version follows Windows NT version

_WIN32_WINNT as a value of 0x0400. If I change this value (to 0x0500 for instance)or if I don't define it at all, some other stuff break in my code (error LNK2001: unresolved external symbol _CLSID_DOMDocument40)

Anyone has an idea how I could fix this conflict? Thanks in advance!

Jean-Francois !
Generalstoring data in Memory and accessing it for playback Pin
johnstonsk17-Jun-03 7:58
johnstonsk17-Jun-03 7:58 
GeneralRe: storing data in Memory and accessing it for playback Pin
AlexO17-Jun-03 8:39
AlexO17-Jun-03 8:39 
GeneralRe: storing data in Memory and accessing it for playback Pin
AlexO17-Jun-03 8:47
AlexO17-Jun-03 8:47 
GeneralRe: storing data in Memory and accessing it for playback Pin
johnstonsk17-Jun-03 8:47
johnstonsk17-Jun-03 8:47 
GeneralActiveX control stock property issue. Pin
Marion2817-Jun-03 7:30
Marion2817-Jun-03 7:30 
GeneralFunction to pass an CArray or Structure.. Pin
RobJones17-Jun-03 6:58
RobJones17-Jun-03 6:58 
GeneralRe: Function to pass an CArray or Structure.. Pin
basementman17-Jun-03 7:05
basementman17-Jun-03 7:05 
GeneralRe: Function to pass an CArray or Structure.. Pin
RobJones17-Jun-03 7:12
RobJones17-Jun-03 7:12 
GeneralRe: Function to pass an CArray or Structure.. Pin
peterchen17-Jun-03 7:12
peterchen17-Jun-03 7:12 
Generalnon-blocking mode in sockets Pin
User 988517-Jun-03 6:33
User 988517-Jun-03 6:33 
GeneralRe: non-blocking mode in sockets Pin
David Crow17-Jun-03 6:51
David Crow17-Jun-03 6:51 
GeneralRe: non-blocking mode in sockets Pin
User 988517-Jun-03 7:04
User 988517-Jun-03 7:04 
GeneralRe: non-blocking mode in sockets Pin
valikac17-Jun-03 7:46
valikac17-Jun-03 7:46 
GeneralRe: non-blocking mode in sockets Pin
User 988517-Jun-03 7:59
User 988517-Jun-03 7:59 
GeneralRe: non-blocking mode in sockets Pin
valikac17-Jun-03 8:09
valikac17-Jun-03 8:09 
GeneralFile associations Pin
Rage17-Jun-03 6:09
professionalRage17-Jun-03 6:09 
GeneralVC++ crashes... Pin
Rage17-Jun-03 5:51
professionalRage17-Jun-03 5:51 

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.