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

Managed C++/CLI

 
GeneralRe: Display current time in Label control Pin
Luc Pattyn26-Mar-10 6:44
sitebuilderLuc Pattyn26-Mar-10 6:44 
GeneralRe: Display current time in Label control Pin
Lucidation26-Mar-10 7:07
Lucidation26-Mar-10 7:07 
GeneralRe: Display current time in Label control Pin
Ghydo26-Mar-10 7:37
Ghydo26-Mar-10 7:37 
GeneralRe: Display current time in Label control Pin
Lucidation26-Mar-10 7:44
Lucidation26-Mar-10 7:44 
QuestionChange text color Pin
jashimu25-Mar-10 4:14
jashimu25-Mar-10 4:14 
AnswerRe: Change text color Pin
Andreoli Carlo25-Mar-10 6:01
professionalAndreoli Carlo25-Mar-10 6:01 
AnswerRe: Change text color Pin
Richard MacCutchan25-Mar-10 6:01
mveRichard MacCutchan25-Mar-10 6:01 
QuestionWindows XP Problems since updating from VS2005 to VS2008 Pin
Joschwenk66623-Mar-10 11:07
Joschwenk66623-Mar-10 11:07 
Sorry, wrong Forum, please delete this Thread


Hallo,

I upgraded from Visual Studio 2005 to Visual Studio 2008, and converted my Project from from VS2005 to VS2008.

But now I get an Error in the following lines:

// Get the current font
LOGFONT lFont;
NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof(NONCLIENTMETRICS);
VERIFY(SystemParametersInfo(SPI_GETNONCLIENTMETRICS,
    sizeof(NONCLIENTMETRICS), &ncm, 0));
lFont = ncm.lfMessageFont;


SystemParametersInfo() returns false, and there are the following Values in ncm after executing the SystemParametersInfo() Function:



When I open my Project in Windows 7, it works without problem. In XP I get an access exeption in msvcr90d.dll when I ignore the failed execution of SystemParametersInfo.


Can someone help me?

Thank you!
AnswerRe: Windows XP Problems since updating from VS2005 to VS2008 Pin
T210224-Mar-10 19:18
T210224-Mar-10 19:18 
QuestionProblem : Converting a System::String^ to char[512] Pin
vidasco18-Mar-10 1:07
vidasco18-Mar-10 1:07 
AnswerRe: Problem : Converting a System::String^ to char[512] Pin
Andreoli Carlo18-Mar-10 1:21
professionalAndreoli Carlo18-Mar-10 1:21 
AnswerRe: Problem : Converting a System::String^ to char[512] Pin
Richard MacCutchan18-Mar-10 3:20
mveRichard MacCutchan18-Mar-10 3:20 
Questionextend class and casting Pin
Andreoli Carlo18-Mar-10 0:20
professionalAndreoli Carlo18-Mar-10 0:20 
AnswerRe: extend class and casting Pin
teejayem18-Mar-10 8:15
teejayem18-Mar-10 8:15 
GeneralRe: extend class and casting Pin
Andreoli Carlo18-Mar-10 22:05
professionalAndreoli Carlo18-Mar-10 22:05 
QuestionConvert CString array to System::String Pin
Anu_Bala16-Mar-10 18:14
Anu_Bala16-Mar-10 18:14 
AnswerRe: Convert CString array to System::String Pin
Richard MacCutchan16-Mar-10 22:20
mveRichard MacCutchan16-Mar-10 22:20 
AnswerRe: Convert CString array to System::String Pin
teejayem17-Mar-10 2:08
teejayem17-Mar-10 2:08 
AnswerRe: Convert CString array to System::String Pin
T210228-Mar-10 22:07
T210228-Mar-10 22:07 
AnswerRe: Convert CString array to System::String Pin
@Intersect☺™15-Apr-10 0:58
professional@Intersect☺™15-Apr-10 0:58 
Questioncalling a winapi function from managed code Pin
david sturzenegger15-Mar-10 6:04
david sturzenegger15-Mar-10 6:04 
AnswerRe: calling a winapi function from managed code Pin
Ghydo19-Mar-10 7:34
Ghydo19-Mar-10 7:34 
QuestionSome help needed with class and this pointer Pin
nah133712-Mar-10 13:06
nah133712-Mar-10 13:06 
AnswerRe: Some help needed with class and this pointer Pin
Garth J Lancaster12-Mar-10 15:14
professionalGarth J Lancaster12-Mar-10 15:14 
GeneralRe: Some help needed with class and this pointer Pin
nah133712-Mar-10 20:57
nah133712-Mar-10 20:57 

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.