Click here to Skip to main content
15,913,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using externally defined function pointers Pin
erkanina18-Aug-04 0:27
erkanina18-Aug-04 0:27 
GeneralRe: using externally defined function pointers Pin
gamitech19-Aug-04 12:51
gamitech19-Aug-04 12:51 
GeneralC2642 error Pin
Just_a_Learner17-Aug-04 23:16
Just_a_Learner17-Aug-04 23:16 
GeneralRe: C2642 error Pin
Ryan Binns18-Aug-04 0:05
Ryan Binns18-Aug-04 0:05 
GeneralRe: C2642 error Pin
Just_a_Learner18-Aug-04 7:11
Just_a_Learner18-Aug-04 7:11 
GeneralDialogue container Pin
mansour_ahmadian17-Aug-04 22:44
mansour_ahmadian17-Aug-04 22:44 
GeneralRasEnumConnections Problem Pin
Muhammad Asif Khan17-Aug-04 21:27
Muhammad Asif Khan17-Aug-04 21:27 
GeneralRe: RasEnumConnections Problem Pin
Antti Keskinen18-Aug-04 1:24
Antti Keskinen18-Aug-04 1:24 
This error might be caused by the RASCONN structure that you pass to the function.

According to the MSDN documentation, the RASCONN structure has a few extra members (dwFlags and luid) under Windows XP. These members are not supported in Windows 2000 environment. I presume that you are building the application on a Windows XP platform, and as such, the structure gets initialized to support all the features in Windows XP. It compiles under Windows XP properly, but will not run on Windows 2000.

In order to fix this, you need to go to your project's settings and into the compiler settings. In there, add an extra predefinition. For a list of definitions to use when specifying the minimum platform, see this[^] list in MSDN.

To support Windows 2000, you must define WINVER to 0x0500. Now when you compile your code, it produces an executable that runs on Windows 2000 and above.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
QuestionHow to write algorithms of WIN32 API.? Pin
Rajesh_K_Sharma17-Aug-04 19:54
Rajesh_K_Sharma17-Aug-04 19:54 
AnswerRe: How to write algorithms of WIN32 API.? Pin
Antti Keskinen18-Aug-04 1:09
Antti Keskinen18-Aug-04 1:09 
GeneralConverting Buffer image to DC Pin
uus9917-Aug-04 19:38
uus9917-Aug-04 19:38 
Generalreal time Pin
Michae_geffen17-Aug-04 19:26
Michae_geffen17-Aug-04 19:26 
GeneralRe: real time Pin
Ryan Binns17-Aug-04 19:38
Ryan Binns17-Aug-04 19:38 
GeneralRe: real time Pin
Bob Stanneveld18-Aug-04 3:09
Bob Stanneveld18-Aug-04 3:09 
GeneralRe: real time Pin
Ryan Binns18-Aug-04 3:26
Ryan Binns18-Aug-04 3:26 
GeneralRe: real time Pin
Bob Stanneveld18-Aug-04 7:21
Bob Stanneveld18-Aug-04 7:21 
GeneralRe: real time Pin
Michael Dunn17-Aug-04 21:03
sitebuilderMichael Dunn17-Aug-04 21:03 
QuestionHow to Record TV into PVR Pin
gao200417-Aug-04 16:42
gao200417-Aug-04 16:42 
AnswerRe: How to Record TV into PVR Pin
Antti Keskinen18-Aug-04 0:51
Antti Keskinen18-Aug-04 0:51 
GeneralRe: How to Record TV into PVR Pin
gao200418-Aug-04 15:47
gao200418-Aug-04 15:47 
GeneralRe: How to Record TV into PVR Pin
Antti Keskinen18-Aug-04 23:29
Antti Keskinen18-Aug-04 23:29 
AnswerRe: How to Record TV into PVR Pin
Henry miller18-Aug-04 4:16
Henry miller18-Aug-04 4:16 
GeneralRe: How to Record TV into PVR Pin
gao200418-Aug-04 15:49
gao200418-Aug-04 15:49 
GeneralWhich Comes First: The C or The C++ Pin
---Mark---17-Aug-04 16:12
---Mark---17-Aug-04 16:12 
GeneralRe: Which Comes First: The C or The C++ Pin
Nemanja Trifunovic17-Aug-04 16:26
Nemanja Trifunovic17-Aug-04 16:26 

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.