Click here to Skip to main content
15,898,134 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionCheckbox and Listbox question Pin
monsieur_jj21-May-08 22:32
monsieur_jj21-May-08 22:32 
AnswerRe: Checkbox and Listbox question Pin
monsieur_jj22-May-08 16:24
monsieur_jj22-May-08 16:24 
GeneralRe: Checkbox and Listbox question Pin
Stuart Dootson22-May-08 22:22
professionalStuart Dootson22-May-08 22:22 
GeneralRe: Checkbox and Listbox question Pin
monsieur_jj25-May-08 16:39
monsieur_jj25-May-08 16:39 
GeneralRe: Checkbox and Listbox question Pin
Stuart Dootson26-May-08 12:30
professionalStuart Dootson26-May-08 12:30 
QuestionCButton question Pin
monsieur_jj20-May-08 19:43
monsieur_jj20-May-08 19:43 
AnswerRe: CButton question Pin
Stuart Dootson20-May-08 20:27
professionalStuart Dootson20-May-08 20:27 
GeneralRe: CButton question Pin
monsieur_jj21-May-08 15:43
monsieur_jj21-May-08 15:43 
Now i am having trouble with this:
BufferSize = TOTALBYTES;
		PPERF_DATA_BLOCK PerfData = (PPERF_DATA_BLOCK) malloc( BufferSize );
		Size = BufferSize;

		dwRet = RegQueryValueEx(Regentry, _T("DownloadPath"), NULL, &Type, reinterpret_cast<LPBYTE>(DownloadPath), &Size);
		while( dwRet == ERROR_MORE_DATA )
		{
        // Get a buffer that is big enough.

        BufferSize += BYTEINCREMENT;
        PerfData = (PPERF_DATA_BLOCK) realloc( PerfData, BufferSize );
        Size = BufferSize;
		dwRet = RegQueryValueEx(Regentry, _T("DownloadPath"), NULL, &Type, reinterpret_cast<LPBYTE>(DownloadPath), &Size);
		}
		if( dwRet == ERROR_SUCCESS )
		{
			Path = DownloadPath;
		}
		else if ( dwRet == ERROR_FILE_NOT_FOUND )
		{
			if (RegSetValueEx(Regentry,      // subkey handle 
				   _T("DownloadPath"),  // value name 
				   0,                 // must be zero 
				   REG_SZ,         // value type 
				  (LPBYTE) &dwData,          // pointer to value data 
				  (DWORD) (lstrlen(Path.c_str())+1)*sizeof(TCHAR))) // data size
		   {
			  printf("Could not set the DownloadPath."); 
			  RegCloseKey(Regentry); 
			  return 0;
		   }
		}
		else
		{
		printf("Could not set the DownloadPath."); 
			  RegCloseKey(Regentry); 
			  return 0;
		}

I am getting 'PPERF_DATA_BLOCK' : undeclared identifier, what can I do for that? What do I need to include?

These are my headers:
#include <atlapp.h>
#include <atlframe.h>
#include <atlctrls.h>
#include <atldlgs.h>
#include <atlctrlw.h>
#include <atlwin.h>
#include <iostream>
#include <atlmisc.h>
#include <malloc.h>
#include <stdio.h>
#include <windows.h>
#include <stdlib.h>
#include <string.h>

GeneralRe: CButton question Pin
Stuart Dootson21-May-08 20:53
professionalStuart Dootson21-May-08 20:53 
GeneralRe: CButton question Pin
monsieur_jj21-May-08 22:25
monsieur_jj21-May-08 22:25 
QuestionAbout DLL files and Comm control Pin
savitri19-May-08 23:10
savitri19-May-08 23:10 
AnswerRe: About DLL files and Comm control Pin
Cedric Moonen19-May-08 23:24
Cedric Moonen19-May-08 23:24 
GeneralRe: About DLL files and Comm control Pin
savitri20-May-08 0:15
savitri20-May-08 0:15 
GeneralRe: About DLL files and Comm control Pin
Cedric Moonen20-May-08 0:54
Cedric Moonen20-May-08 0:54 
GeneralRe: About DLL files and Comm control Pin
ShilpiP20-May-08 1:15
ShilpiP20-May-08 1:15 
AnswerRe: About DLL files and Comm control Pin
kuttiam22-May-08 19:35
kuttiam22-May-08 19:35 
QuestionHow to get the html text box value. Pin
Member 462021617-May-08 3:12
Member 462021617-May-08 3:12 
AnswerRe: How to get the html text box value. Pin
CPallini19-May-08 23:44
mveCPallini19-May-08 23:44 
Questionboost compiles slow? Pin
followait17-May-08 0:38
followait17-May-08 0:38 
AnswerRe: boost compiles slow? Pin
Stuart Dootson17-May-08 12:18
professionalStuart Dootson17-May-08 12:18 
GeneralRe: boost compiles slow? Pin
followait17-May-08 17:17
followait17-May-08 17:17 
GeneralRe: boost compiles slow? Pin
Stephen Hewitt20-May-08 18:40
Stephen Hewitt20-May-08 18:40 
GeneralRe: boost compiles slow? Pin
followait20-May-08 19:04
followait20-May-08 19:04 
GeneralRe: boost compiles slow? Pin
Stephen Hewitt20-May-08 19:09
Stephen Hewitt20-May-08 19:09 
GeneralRe: boost compiles slow? Pin
Stuart Dootson20-May-08 19:23
professionalStuart Dootson20-May-08 19:23 

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.