Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 5:51
Schehaider_Aymen8-Jun-10 5:51 
GeneralRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 5:57
Aescleal8-Jun-10 5:57 
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 6:02
Schehaider_Aymen8-Jun-10 6:02 
GeneralRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 7:06
Aescleal8-Jun-10 7:06 
GeneralRe: CEdit And OnKeyDown [modified] Pin
Schehaider_Aymen8-Jun-10 7:26
Schehaider_Aymen8-Jun-10 7:26 
GeneralRe: CEdit And OnKeyDown Pin
Schehaider_Aymen8-Jun-10 6:22
Schehaider_Aymen8-Jun-10 6:22 
GeneralRe: CEdit And OnKeyDown Pin
Aescleal8-Jun-10 7:07
Aescleal8-Jun-10 7:07 
QuestionVS2010 - version and copyright and GetAdapters Pin
Ed SHaw8-Jun-10 1:21
Ed SHaw8-Jun-10 1:21 
I used to get the version and copyright from the resource files using the following

char ThisProgramsName[256]="";
GetModuleFileName(AfxGetInstanceHandle(),ThisProgramsName,256);
DWORD dwHandle = 0;
DWORD dwSize = GetFileVersionInfoSize( ThisProgramsName,&dwHandle );
if(dwSize!=0L) {
UINT uVerInfoSize;
char *lpVerInfo = new char[dwSize];
GetFileVersionInfo(ThisProgramsName, dwHandle, dwSize,lpVerInfo );

The libraries have all changed in VS2010. What do I need to link to satisfy these calls, or has the method of retrieving this information changed.

Same question for GetAdapters

This is the old code

PIP_ADAPTER_INFO pAdapterInfo;
PIP_ADAPTER_INFO pAdapter = NULL;
DWORD dwRetVal = 0;
UINT i;
unsigned long LowestHexIP, PossibleIP;
char MacByte[4], MacID[16], LowestMacID[16];

ULONG ulOutBufLen = sizeof(IP_ADAPTER_INFO);
pAdapterInfo = (IP_ADAPTER_INFO *) MALLOC (sizeof(IP_ADAPTER_INFO));
// Make an initial call to GetAdaptersInfo to get
// the necessary size into the ulOutBufLen variable
if (GetAdaptersInfo (pAdapterInfo, &ulOutBufLen) == ERROR_BUFFER_OVERFLOW) {
FREE (pAdapterInfo);
pAdapterInfo = (IP_ADAPTER_INFO *) MALLOC (ulOutBufLen);
}

ES
AnswerRe: VS2010 - version and copyright and GetAdapters Pin
Richard MacCutchan8-Jun-10 3:49
mveRichard MacCutchan8-Jun-10 3:49 
GeneralRe: VS2010 - version and copyright and GetAdapters Pin
Ed SHaw8-Jun-10 7:12
Ed SHaw8-Jun-10 7:12 
GeneralRe: VS2010 - version and copyright and GetAdapters Pin
Richard MacCutchan8-Jun-10 9:17
mveRichard MacCutchan8-Jun-10 9:17 
QuestionRe: VS2010 - version and copyright and GetAdapters Pin
David Crow8-Jun-10 7:32
David Crow8-Jun-10 7:32 
AnswerRe: VS2010 - version and copyright and GetAdapters Pin
Ed SHaw8-Jun-10 8:07
Ed SHaw8-Jun-10 8:07 
Questioncatching access violation Pin
Sakhalean8-Jun-10 0:55
Sakhalean8-Jun-10 0:55 
AnswerRe: catching access violation Pin
Cedric Moonen8-Jun-10 1:12
Cedric Moonen8-Jun-10 1:12 
AnswerRe: catching access violation Pin
Jackson20108-Jun-10 3:14
Jackson20108-Jun-10 3:14 
AnswerRe: catching access violation Pin
Niklas L8-Jun-10 5:49
Niklas L8-Jun-10 5:49 
QuestionGetUserName returns "SYSTEM" Pin
gothic_coder8-Jun-10 0:52
gothic_coder8-Jun-10 0:52 
AnswerRe: GetUserName returns "SYSTEM" Pin
kakan8-Jun-10 1:31
professionalkakan8-Jun-10 1:31 
QuestionRe: GetUserName returns "SYSTEM" Pin
David Crow8-Jun-10 2:52
David Crow8-Jun-10 2:52 
AnswerRe: GetUserName returns "SYSTEM" Pin
Anshul R8-Jun-10 20:15
Anshul R8-Jun-10 20:15 
GeneralRe: GetUserName returns "SYSTEM" Pin
gothic_coder8-Jun-10 23:02
gothic_coder8-Jun-10 23:02 
QuestionUAC and protected folder Pin
Russell'7-Jun-10 23:35
Russell'7-Jun-10 23:35 
AnswerRe: UAC and protected folder Pin
ShilpiP8-Jun-10 1:18
ShilpiP8-Jun-10 1:18 
AnswerRe: UAC and protected folder Pin
KarstenK8-Jun-10 2:12
mveKarstenK8-Jun-10 2:12 

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.