Click here to Skip to main content
15,910,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Threads? Pin
David Crow30-Nov-05 3:08
David Crow30-Nov-05 3:08 
GeneralRe: Threads? Pin
Lord Kixdemp2-Dec-05 20:23
Lord Kixdemp2-Dec-05 20:23 
QuestionHow to change the interval between two icons in a List control in MFC Pin
zhonglin.liang29-Nov-05 13:03
zhonglin.liang29-Nov-05 13:03 
AnswerRe: How to change the interval between two icons in a List control in MFC Pin
Gavin Taylor29-Nov-05 19:08
professionalGavin Taylor29-Nov-05 19:08 
QuestionWMP 10 SDK Plugin Wizard in VS 2005 Pin
myst4ever29-Nov-05 13:00
myst4ever29-Nov-05 13:00 
QuestionNeed help Pin
stevey82029-Nov-05 12:51
stevey82029-Nov-05 12:51 
AnswerRe: Need help Pin
Curtis Schlak.29-Nov-05 13:24
Curtis Schlak.29-Nov-05 13:24 
QuestionUsing tlhelp32.h functions in MFC app Pin
ADent4229-Nov-05 12:34
ADent4229-Nov-05 12:34 
Its an MPC application that I've attempted to #include <tlhelp32.h>

Then I basically I want to run this little chunk of code

BOOL ProcessRunning(char* procname)
{
HANDLE hProcessSnap;
HANDLE hProcess;
::PROCESSENTRY32 pe32;
DWORD dwPriorityClass;

// Take a snapshot of all processes in the system.
hProcessSnap = ::CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
if( hProcessSnap == INVALID_HANDLE_VALUE )
{
return( FALSE );
}

// Set the size of the structure before using it.
pe32.dwSize = sizeof( PROCESSENTRY32 );

// Retrieve information about the first process,
// and exit if unsuccessful
if( !::Process32First( hProcessSnap, &pe32 ) )
{
::CloseHandle( hProcessSnap ); // Must clean up the snapshot object!
return( FALSE );
}

// Now walk the snapshot of processes, and
// check each one
do
{
if(strstr(pe32.szExeFile, procname) != NULL){
return( TRUE );
}

} while( ::Process32Next( hProcessSnap, &pe32 ) );

::CloseHandle( hProcessSnap );
return( TRUE );
}

I get the error: "error C2065: 'PROCESSENTRY32' : undeclared identifier" amoung others. I believe this is related to name spaces but what should the name space be and how to I use it? Thanks!
AnswerRe: Using tlhelp32.h functions in MFC app Pin
Sheng Jiang 蒋晟29-Nov-05 12:49
Sheng Jiang 蒋晟29-Nov-05 12:49 
QuestionRe: Using tlhelp32.h functions in MFC app Pin
ADent4229-Nov-05 17:42
ADent4229-Nov-05 17:42 
AnswerRe: Using tlhelp32.h functions in MFC app Pin
Sheng Jiang 蒋晟29-Nov-05 17:49
Sheng Jiang 蒋晟29-Nov-05 17:49 
GeneralRe: Using tlhelp32.h functions in MFC app Pin
ADent4229-Nov-05 17:55
ADent4229-Nov-05 17:55 
QuestionCombobox with DataSource with static value Pin
GoodQuestion29-Nov-05 12:29
GoodQuestion29-Nov-05 12:29 
QuestionProblem implementing radio buttons in VS.NET 2003 Pin
ralawrence29-Nov-05 10:34
ralawrence29-Nov-05 10:34 
AnswerRe: Problem implementing radio buttons in VS.NET 2003 Pin
David Crow29-Nov-05 10:48
David Crow29-Nov-05 10:48 
GeneralRe: Problem implementing radio buttons in VS.NET 2003 Pin
ralawrence29-Nov-05 11:02
ralawrence29-Nov-05 11:02 
GeneralRe: Problem implementing radio buttons in VS.NET 2003 Pin
Shog929-Nov-05 11:27
sitebuilderShog929-Nov-05 11:27 
GeneralRe: Problem implementing radio buttons in VS.NET 2003 Pin
ralawrence29-Nov-05 11:40
ralawrence29-Nov-05 11:40 
GeneralRe: Problem implementing radio buttons in VS.NET 2003 Pin
Shog929-Nov-05 12:17
sitebuilderShog929-Nov-05 12:17 
GeneralRe: Problem implementing radio buttons in VS.NET 2003 Pin
David Crow30-Nov-05 2:19
David Crow30-Nov-05 2:19 
GeneralRe: Problem implementing radio buttons in VS.NET 2003 Pin
ralawrence30-Nov-05 7:09
ralawrence30-Nov-05 7:09 
Questionsplitter thickness Pin
Alex_Y29-Nov-05 9:55
Alex_Y29-Nov-05 9:55 
AnswerRe: splitter thickness Pin
Shog929-Nov-05 11:30
sitebuilderShog929-Nov-05 11:30 
GeneralRe: splitter thickness Pin
Alex_Y29-Nov-05 15:02
Alex_Y29-Nov-05 15:02 
QuestionMultimedia Timers - recommendations Pin
ddmcr29-Nov-05 9:00
ddmcr29-Nov-05 9:00 

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.