Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error executing bscmake.exe!!! Please help. Pin
Hoornet9317-Mar-05 3:36
Hoornet9317-Mar-05 3:36 
GeneralWebBrower's problem Pin
Anonymous13-Mar-05 21:56
Anonymous13-Mar-05 21:56 
Generalc++ query Pin
Anonymous13-Mar-05 21:41
Anonymous13-Mar-05 21:41 
GeneralRe: c++ query Pin
Cedric Moonen13-Mar-05 21:56
Cedric Moonen13-Mar-05 21:56 
GeneralRe: c++ query Pin
Anonymous13-Mar-05 22:35
Anonymous13-Mar-05 22:35 
GeneralRe: c++ query Pin
S. Senthil Kumar13-Mar-05 23:21
S. Senthil Kumar13-Mar-05 23:21 
GeneralRe: c++ query Pin
TheGreatAndPowerfulOz14-Mar-05 4:10
TheGreatAndPowerfulOz14-Mar-05 4:10 
Generaldelphi convert Pin
mohsen nourian13-Mar-05 21:38
mohsen nourian13-Mar-05 21:38 
hi every body
i have problem with this code :
////////////////////////////////
///code in delphi
function doGetStat(aCallBackStatsParser:dfCallBackStatsParser; var strError:string):boolean;
var startTime : DWORD;
begin
result := true;
if SysHandle=0 then exit;
startTime := GetTickCount;

repeat
if abs(GetTickCount - startTime) > 1000 then break;

// Have driver fill Stats buffer with information
if not DeviceIoControl(SysHandle, IOCTL_FILEMON_GETSTATS,
nil, 0, @Stats, sizeof(Stats),
StatsLen, nil) then begin
strError := 'Couldn''t access device driver. errorCode ='
+IntToStr(GetLastError);
result := false;
exit;
end;

if StatsLen=0 then break;
if assigned(aCallBackStatsParser) then aCallBackStatsParser;

until false;


end;
//////////////////////////////////////
// Code in VC
BOOL CDriverApp::doGetStatvoid(*aCallBackStatsParser)(void) , CString *strError)
{
DWORD startTime ;

result = TRUE;
if (SysHandle==0 ) return FALSE ;

startTime= GetTickCount() ;

while(TRUE)
{
if( abs(GetTickCount() - startTime) > 1000 ) break ;

// Have driver fill Stats buffer with information
if (! DeviceIoControl(SysHandle, IOCTL_FILEMON_GETSTATS,
NULL, 0, &Stats, sizeof(Stats),
&StatsLen, NULL) )
{
strError->Format("Couldnt access device driver.\n errorCode = %d" ,GetLastError()) ;
result = FALSE ;
return FALSE ;
}

if(GetLastError()== ERROR_INSUFFICIENT_BUFFER)
strError->Format("small buffer") ;

if ( StatsLen == 0 ) { return result ;}

if (aCallBackStatsParser!= NULL) (*aCallBackStatsParser)() ;
}

return TRUE ;
}
///////////////////////////////////////////



it is working in delphi but not in VC
why ??

QuestionHow "add text to a graphics such us rectangle " Pin
Anonymous13-Mar-05 21:13
Anonymous13-Mar-05 21:13 
General.net setup project Pin
ThinkingPrometheus13-Mar-05 21:03
ThinkingPrometheus13-Mar-05 21:03 
GeneralLoki library Pin
Bob Stanneveld13-Mar-05 20:55
Bob Stanneveld13-Mar-05 20:55 
GeneralDatabase connection without DSN Pin
Renjith Ramachandran13-Mar-05 18:31
Renjith Ramachandran13-Mar-05 18:31 
GeneralRe: Database connection without DSN Pin
David Crow14-Mar-05 3:12
David Crow14-Mar-05 3:12 
Generalthe use of register variable in c and cpp program Pin
phijophlip13-Mar-05 17:09
phijophlip13-Mar-05 17:09 
GeneralRe: the use of register variable in c and cpp program Pin
PJ Arends13-Mar-05 18:56
professionalPJ Arends13-Mar-05 18:56 
GeneralRe: the use of register variable in c and cpp program Pin
normanS13-Mar-05 22:44
normanS13-Mar-05 22:44 
QuestionHow do I communicate with parallel port Pin
13-Mar-05 16:15
suss13-Mar-05 16:15 
AnswerRe: How do I communicate with parallel port Pin
Nickmatic13-Mar-05 16:35
Nickmatic13-Mar-05 16:35 
GeneralRe: How do I communicate with parallel port Pin
Member 176156313-Mar-05 16:46
Member 176156313-Mar-05 16:46 
GeneralRe: How do I communicate with parallel port Pin
Nickmatic13-Mar-05 17:49
Nickmatic13-Mar-05 17:49 
AnswerRe: How do I communicate with parallel port Pin
Indivara13-Mar-05 16:53
professionalIndivara13-Mar-05 16:53 
AnswerRe: How do I communicate with parallel port Pin
namaskaaram13-Mar-05 17:02
namaskaaram13-Mar-05 17:02 
AnswerRe: How do I communicate with parallel port Pin
MADCOWIE4-Apr-05 17:26
MADCOWIE4-Apr-05 17:26 
GeneralSome stupid question.. Pin
Romashki13-Mar-05 12:03
Romashki13-Mar-05 12:03 
GeneralRe: Some stupid question.. Pin
JohnCz13-Mar-05 13:22
JohnCz13-Mar-05 13:22 

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.