Click here to Skip to main content
15,908,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Structures and Classes giving me problems. This program simply calculates volume of a CBox class. Pin
Luc Pattyn14-Feb-10 12:22
sitebuilderLuc Pattyn14-Feb-10 12:22 
GeneralRe: Structures and Classes giving me problems. This program simply calculates volume of a CBox class. Pin
rbwest8614-Feb-10 15:46
rbwest8614-Feb-10 15:46 
QuestionHow to implement XP style UI by VS2008? Pin
armecos13-Feb-10 17:03
armecos13-Feb-10 17:03 
AnswerRe: How to implement XP style UI by VS2008? Pin
«_Superman_»13-Feb-10 17:47
professional«_Superman_»13-Feb-10 17:47 
GeneralRe: How to implement XP style UI by VS2008? Pin
armecos14-Feb-10 23:44
armecos14-Feb-10 23:44 
QuestionRemote connection to SQL server in VC++ Pin
burslem200113-Feb-10 8:36
burslem200113-Feb-10 8:36 
AnswerRe: Remote connection to SQL server in VC++ Pin
Alexey Malyshev14-Feb-10 11:11
Alexey Malyshev14-Feb-10 11:11 
Questionwininet.dll magic Pin
naro2413-Feb-10 7:03
naro2413-Feb-10 7:03 
Hi everyone.
I've got a code snippet which looks like this

CInternetSession session(_T("MyAgent"));
CHttpConnection *pConn = NULL;
pConn = session.GetHttpConnection(_T("www.google.com"),
(INTERNET_PORT)INTERNET_DEFAULT_HTTP_PORT); // function in wininet.dll
......
delete pConn;

The last delete operator works fine. The problem is that it shouldn't, because the exe from which I call wininet.dll function is linked with CRT statically, so the delete operator should look for pConn in it's CRT's run time heap and shouldn't find it. Please share any ideas.

Thanks in advance.
AnswerRe: wininet.dll magic Pin
Chris Losinger13-Feb-10 17:52
professionalChris Losinger13-Feb-10 17:52 
GeneralRe: wininet.dll magic Pin
naro2415-Feb-10 11:32
naro2415-Feb-10 11:32 
GeneralRe: wininet.dll magic Pin
Chris Losinger15-Feb-10 11:36
professionalChris Losinger15-Feb-10 11:36 
GeneralRe: wininet.dll magic Pin
naro2415-Feb-10 23:33
naro2415-Feb-10 23:33 
AnswerRe: wininet.dll magic Pin
Richard MacCutchan13-Feb-10 21:45
mveRichard MacCutchan13-Feb-10 21:45 
GeneralRe: wininet.dll magic Pin
naro2415-Feb-10 11:35
naro2415-Feb-10 11:35 
GeneralRe: wininet.dll magic Pin
Richard MacCutchan15-Feb-10 11:58
mveRichard MacCutchan15-Feb-10 11:58 
GeneralRe: wininet.dll magic Pin
naro2415-Feb-10 23:30
naro2415-Feb-10 23:30 
GeneralRe: wininet.dll magic Pin
Richard MacCutchan16-Feb-10 0:05
mveRichard MacCutchan16-Feb-10 0:05 
GeneralRe: wininet.dll magic Pin
naro2416-Feb-10 1:37
naro2416-Feb-10 1:37 
GeneralRe: wininet.dll magic Pin
Richard MacCutchan16-Feb-10 2:30
mveRichard MacCutchan16-Feb-10 2:30 
QuestionMessage Removed Pin
13-Feb-10 6:19
Vivek Vijayan13-Feb-10 6:19 
AnswerRe: Sending SMS using a device application in C#/VB.NET 2005 Pin
Peter Weyzen13-Feb-10 9:07
Peter Weyzen13-Feb-10 9:07 
QuestionLinker Errors... Pin
ashwath197913-Feb-10 1:38
ashwath197913-Feb-10 1:38 
AnswerRe: Linker Errors... Pin
Saurabh.Garg13-Feb-10 5:07
Saurabh.Garg13-Feb-10 5:07 
AnswerRe: Linker Errors... Pin
Chris Losinger13-Feb-10 5:08
professionalChris Losinger13-Feb-10 5:08 
AnswerRe: Linker Errors... Pin
carlecomm7-Mar-10 14:40
carlecomm7-Mar-10 14:40 

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.