Click here to Skip to main content
15,944,390 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200929-Apr-08 1:24
MrFloyd200929-Apr-08 1:24 
GeneralRe: How To Connect Serial Port in MFC? Pin
CPallini29-Apr-08 1:33
mveCPallini29-Apr-08 1:33 
GeneralRe: How To Connect Serial Port in MFC? Pin
MrFloyd200929-Apr-08 1:56
MrFloyd200929-Apr-08 1:56 
GeneralRe: How To Connect Serial Port in MFC? Pin
CPallini29-Apr-08 1:58
mveCPallini29-Apr-08 1:58 
AnswerRe: How To Connect Serial Port in MFC? Pin
Hamid_RT29-Apr-08 4:09
Hamid_RT29-Apr-08 4:09 
GeneralRetrieve Win32 Process Memory Map Pin
edfgreen28-Apr-08 8:19
edfgreen28-Apr-08 8:19 
GeneralRe: Retrieve Win32 Process Memory Map Pin
Saurabh.Garg28-Apr-08 14:58
Saurabh.Garg28-Apr-08 14:58 
GeneralRe: Retrieve Win32 Process Memory Map Pin
Stephen Hewitt28-Apr-08 15:18
Stephen Hewitt28-Apr-08 15:18 
Perhaps something like this is what you're after:
// VanillaConsole.cpp : Defines the entry point for the console application.
//
 
#include "stdafx.h"
#include <iostream>
#include <windows.h>
using namespace std;
 
int main()
{
	SYSTEM_INFO si;
	GetSystemInfo(&si);
 
	char *pMin = (char*)si.lpMinimumApplicationAddress;
	char *pMax = (char*)si.lpMaximumApplicationAddress;
	for (char* pAddress = pMin; pAddress<pMax; /*Empty*/)
	{
		MEMORY_BASIC_INFORMATION mbi;
		DWORD res = VirtualQuery(pAddress, &mbi, sizeof(mbi));
		if (res != sizeof(mbi))
		{
			cerr << "VirtualQuery failed!" << endl;
			return -1;
		}
 
		if (mbi.State == MEM_COMMIT)
		{
			DWORD base = (DWORD)mbi.BaseAddress;
			cout << hex << showbase << base << " - " << base + mbi.RegionSize-1 << endl;
		}
 
		pAddress += mbi.RegionSize;
	}
 
	return 0;
}


Steve

GeneralRe: Retrieve Win32 Process Memory Map Pin
edfgreen28-Apr-08 19:11
edfgreen28-Apr-08 19:11 
QuestionC++ image compression LZW algorithm??? Pin
dev_buzz28-Apr-08 6:59
dev_buzz28-Apr-08 6:59 
GeneralRe: C++ image compression LZW algorithm??? Pin
David Crow28-Apr-08 7:01
David Crow28-Apr-08 7:01 
GeneralRe: C++ image compression LZW algorithm??? Pin
Maximilien28-Apr-08 9:02
Maximilien28-Apr-08 9:02 
GeneralRe: C++ image compression LZW algorithm??? Pin
Hamid_RT29-Apr-08 1:59
Hamid_RT29-Apr-08 1:59 
Questionunexpected behaviour of 'atof' and 'strtod' Pin
Member 361100228-Apr-08 6:03
Member 361100228-Apr-08 6:03 
GeneralRe: unexpected behaviour of 'atof' and 'strtod' Pin
David Crow28-Apr-08 6:13
David Crow28-Apr-08 6:13 
GeneralRe: unexpected behaviour of 'atof' and 'strtod' Pin
cagespear28-Apr-08 8:09
cagespear28-Apr-08 8:09 
GeneralRe: unexpected behaviour of 'atof' and 'strtod' Pin
David Crow28-Apr-08 8:12
David Crow28-Apr-08 8:12 
AnswerRe: unexpected behaviour of 'atof' and 'strtod' Pin
Michael Dunn28-Apr-08 15:03
sitebuilderMichael Dunn28-Apr-08 15:03 
GeneralRe: unexpected behaviour of 'atof' and 'strtod' Pin
Saurabh.Garg28-Apr-08 15:54
Saurabh.Garg28-Apr-08 15:54 
AnswerRe: unexpected behaviour of 'atof' and 'strtod' Pin
Ozer Karaagac28-Apr-08 16:03
professionalOzer Karaagac28-Apr-08 16:03 
QuestionHow to get rid of this ERROR Pin
pl_kode28-Apr-08 3:38
pl_kode28-Apr-08 3:38 
GeneralRe: How to get rid of this ERROR Pin
CPallini28-Apr-08 3:43
mveCPallini28-Apr-08 3:43 
GeneralRe: How to get rid of this ERROR Pin
pl_kode28-Apr-08 3:52
pl_kode28-Apr-08 3:52 
GeneralRe: How to get rid of this ERROR Pin
pl_kode28-Apr-08 4:17
pl_kode28-Apr-08 4:17 
QuestionRe: How to get rid of this ERROR Pin
Rajkumar R28-Apr-08 4:46
Rajkumar R28-Apr-08 4:46 

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.