Click here to Skip to main content
15,922,533 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionString problem Pin
david bagaturia1-Oct-07 22:19
david bagaturia1-Oct-07 22:19 
AnswerRe: String problem Pin
Jonas Larsson2-Oct-07 0:49
Jonas Larsson2-Oct-07 0:49 
GeneralRe: String problem Pin
david bagaturia2-Oct-07 3:38
david bagaturia2-Oct-07 3:38 
GeneralRe: String problem Pin
Stephen Hewitt2-Oct-07 4:43
Stephen Hewitt2-Oct-07 4:43 
GeneralRe: String problem Pin
Jonas Larsson2-Oct-07 21:58
Jonas Larsson2-Oct-07 21:58 
GeneralRe: String problem Pin
david bagaturia3-Oct-07 0:03
david bagaturia3-Oct-07 0:03 
AnswerRe: String problem Pin
John R. Shaw6-Oct-07 1:04
John R. Shaw6-Oct-07 1:04 
Questionwhere is the mistake here? Pin
rindam1-Oct-07 3:02
rindam1-Oct-07 3:02 
TCHAR buffer [16384];
DWORD bufferSize = sizeof(buffer)/sizeof(buffer[0]);
BOOL bRes = InternetGetCookie(("http://www.codeproject.com"), NULL, (LPWSTR)buffer, &bufferSize);
DWORD ret;
if(bRes==FALSE)
{
ret = ::GetLastError();
CString str;
str.Format(_T("%d"),ret);
MessageBox(NULL,str,NULL,MB_OK);
MessageBox(NULL,_T("no items1"),NULL,MB_OK);
if (ret == ERROR_NO_MORE_ITEMS)
MessageBox(NULL,_T("no items"),NULL,MB_OK);
else if(ret == ERROR_INSUFFICIENT_BUFFER)
MessageBox(NULL,_T("insufficient buffer"),NULL,MB_OK);
else if(ret == ERROR_INVALID_PARAMETER)
MessageBox(NULL,_T("invalid parameters"),NULL,MB_OK);
}
else
{

MessageBox(NULL,buffer,NULL,MB_OK);
}

This code is displaying garbage value for buffer.But I need the cookie value.what to do?
AnswerRe: where is the mistake here? Pin
led mike1-Oct-07 4:54
led mike1-Oct-07 4:54 
QuestionHow to print the cookie value Pin
rindam1-Oct-07 0:52
rindam1-Oct-07 0:52 
AnswerRe: reading cookie vakue in vc++ Pin
david bagaturia1-Oct-07 22:36
david bagaturia1-Oct-07 22:36 
QuestionInternetGetCookie returning false always,plz help me to read cookie value from VC++ Pin
rindam30-Sep-07 19:07
rindam30-Sep-07 19:07 
AnswerRe: InternetGetCookie returning false always,plz help me to read cookie value from VC++ Pin
Stuart Dootson30-Sep-07 20:49
professionalStuart Dootson30-Sep-07 20:49 
GeneralRe: InternetGetCookie returning false always,plz help me to read cookie value from VC++ Pin
rindam30-Sep-07 21:26
rindam30-Sep-07 21:26 
GeneralRe: InternetGetCookie returning false always,plz help me to read cookie value from VC++ Pin
rindam30-Sep-07 23:52
rindam30-Sep-07 23:52 
GeneralRe: InternetGetCookie returning false always,plz help me to read cookie value from VC++ Pin
Stuart Dootson1-Oct-07 4:28
professionalStuart Dootson1-Oct-07 4:28 
Questionbitwise operators for std string? Pin
mellib30-Sep-07 9:45
mellib30-Sep-07 9:45 
AnswerRe: bitwise operators for std string? Pin
Stuart Dootson30-Sep-07 20:38
professionalStuart Dootson30-Sep-07 20:38 
QuestionHow to read cookie for particular site from VC++ Pin
rindam28-Sep-07 21:47
rindam28-Sep-07 21:47 
Questionhow to detect whether is a user is logged in or not from IE Toolbar Pin
rindam27-Sep-07 23:45
rindam27-Sep-07 23:45 
QuestionNeed a solution for Err: _DllMain@12 already defined in MainHook.obj Pin
Rahul Vaishnav27-Sep-07 0:52
Rahul Vaishnav27-Sep-07 0:52 
AnswerRe: Need a solution for Err: _DllMain@12 already defined in MainHook.obj Pin
Stuart Dootson27-Sep-07 1:34
professionalStuart Dootson27-Sep-07 1:34 
AnswerRe: refershing a selected node in MMC SnapIn on pressing F5 Pin
Rahul Vaishnav25-Sep-07 21:24
Rahul Vaishnav25-Sep-07 21:24 
GeneralRe: refershing a selected node in MMC SnapIn on pressing F5 Pin
Thanks for all the fish26-Sep-07 20:12
Thanks for all the fish26-Sep-07 20:12 
QuestionDoes this ATL Code Leak memory? Pin
Killer319-Sep-07 18:40
Killer319-Sep-07 18: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.