I'm making a project on vc++ express
I want to plot graphs, so using MSChart
evrything goes fine, till i come to point where I've to include
afxdisp.h
by defualt i'm using Project properties as..
use of MFC: standard windows library
clr support: /clr:pure
but i got this error
Visual Studio 8\VC\atlmfc\include\afx.h(24) : fatal error C1189: #error
: Building MFC application with /MDDrinks (CRT dll version) requires
MFC shared dll version. Please #define _AFXDLL or do not use /MDDrinks
so I changed project properties to : use of MFC = MFC shared
but then i got series of errors
WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
E:\Visual Studio 8\VC\atlmfc\include\afxv_w32.h(242) : error C3641:
'DrawState' : invalid calling convention '__stdcall ' for function
compiled with /clr:pure or /clr:safe
E:\Visual Studio 8\VC\atlmfc\include\afxv_w32.h(260) : error C3641:
'DrawStatusText' : invalid calling convention '__stdcall ' for function
compiled with /clr:pure or /clr:safe
E:\Visual Studio 8\VC\PlatformSDK\include\winbase.h(1849) : error
C3641: 'FreeResource' : invalid calling convention '__stdcall ' for
function compiled with /clr:pure or /clr:safe
E:\Visual Studio 8\VC\atlmfc\include\afxv_w32.h(274) : error C3641:
'UnlockResource' : invalid calling convention '__stdcall ' for function
compiled with /clr:pure or /clr:safe
E:\Visual Studio 8\VC\atlmfc\include\atlconv.h(90) : error C3641:
'InterlockedExchangePointer' : invalid calling convention '__stdcall '
for function compiled with /clr:pure or /clr:safe
E:\Visual Studio 8\VC\atlmfc\include\atlconv.h(104) : error C3641:
'ATL::_AtlGetThreadACPFake' : invalid calling convention '__stdcall '
for function compiled with /clr:pure or /clr:safe
so finally i changed CLR support, frm /clr:pure to just /clr
now it compiled successfully but is giving runtime errors, :(
I dont know where I'm going wrong
can someone please help me out.. how to plot XY grahps.. using simple
form application in vc++
right now i'm creating files with both x-axis & y-axis data.. & i want
to plot all those files.. please help
thanks & regards
--
vishal