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

C / C++ / MFC

 
GeneralRe: Using CWnd windows and controls Pin
Mark Salsbery8-Apr-08 13:39
Mark Salsbery8-Apr-08 13:39 
GeneralRe: Using CWnd windows and controls Pin
42888-Apr-08 13:50
42888-Apr-08 13:50 
GeneralRe: Using CWnd windows and controls Pin
Mark Salsbery8-Apr-08 18:15
Mark Salsbery8-Apr-08 18:15 
GeneralRe: Using CWnd windows and controls Pin
42889-Apr-08 0:44
42889-Apr-08 0:44 
GeneralRe: Using CWnd windows and controls Pin
Mark Salsbery9-Apr-08 4:58
Mark Salsbery9-Apr-08 4:58 
GeneralRe: Using CWnd windows and controls Pin
42889-Apr-08 11:35
42889-Apr-08 11:35 
GeneralRe: Using CWnd windows and controls Pin
Nelek9-Apr-08 21:44
protectorNelek9-Apr-08 21:44 
Generalcan't seem to set list box items on web pages Pin
Tom Paronis8-Apr-08 12:55
Tom Paronis8-Apr-08 12:55 
Hello. I'm engaged in some data scraping off a web page and need to set some list box items. I'm having no trouble setting some integers but setting character values is a pain in the butt. Here is a snippet of my code:

if ( strTag == "tradeYear" )
{
CString strYear = m_strSystemDate.Mid(0,4);
strTag = "value";
bstr = strTag.AllocSysString();
VariantInit( &vVariant2 );
vVariant2.vt = VT_UINT;
vVariant2.intVal = atoi( strYear );
pElem->setAttribute(bstr, vVariant2);
SysFreeString( bstr );
nCheckInputs++;
}
if ( strTag == "venueChoice" )
{
if ( bFuturesData == true )
{
strTag = "value";
bstr = strTag.AllocSysString();
VariantInit( &vVariant2 );
CString strVenue = "Electronic";
BSTR bstrVenue = strVenue.AllocSysString();
vVariant2.vt = VT_BSTR;
vVariant2.bstrVal = bstrVenue;
pElem->setAttribute(bstr, vVariant2);
SysFreeString( bstr );
SysFreeString( bstrVenue );
nCheckInputs++;
}
}

The first block, tradeYear, works just fine and sets the desired value but the second doesn't cahnge the value of the box? If anybody could tell me what I'm doing wrong that would be great. Thank you.

Tom Paronis
GeneralBASE CONVERTER Pin
jayyaj8-Apr-08 11:46
jayyaj8-Apr-08 11:46 
GeneralRe: BASE CONVERTER Pin
Mark Salsbery8-Apr-08 12:16
Mark Salsbery8-Apr-08 12:16 
GeneralRe: BASE CONVERTER Pin
El Corazon8-Apr-08 13:40
El Corazon8-Apr-08 13:40 
GeneralRe: BASE CONVERTER Pin
Mark Salsbery8-Apr-08 13:44
Mark Salsbery8-Apr-08 13:44 
GeneralRe: BASE CONVERTER Pin
Eytukan12-Apr-08 18:07
Eytukan12-Apr-08 18:07 
GeneralRe: BASE CONVERTER Pin
Jeremy Falcon8-Apr-08 13:44
professionalJeremy Falcon8-Apr-08 13:44 
GeneralRe: BASE CONVERTER Pin
CPallini8-Apr-08 20:57
mveCPallini8-Apr-08 20:57 
GeneralRe: BASE CONVERTER Pin
Nelek9-Apr-08 21:38
protectorNelek9-Apr-08 21:38 
GeneralRe: BASE CONVERTER Pin
Eytukan12-Apr-08 18:06
Eytukan12-Apr-08 18:06 
GeneralRe: BASE CONVERTER Pin
Gary R. Wheeler8-Apr-08 12:43
Gary R. Wheeler8-Apr-08 12:43 
GeneralRe: BASE CONVERTER Pin
Christian Graus8-Apr-08 13:08
protectorChristian Graus8-Apr-08 13:08 
GeneralRe: BASE CONVERTER Pin
CPallini8-Apr-08 21:09
mveCPallini8-Apr-08 21:09 
GeneralRe: BASE CONVERTER Pin
Eytukan12-Apr-08 18:04
Eytukan12-Apr-08 18:04 
JokeRe: BASE CONVERTER Pin
Jeremy Falcon8-Apr-08 13:17
professionalJeremy Falcon8-Apr-08 13:17 
GeneralRe: BASE CONVERTER Pin
Mark Salsbery8-Apr-08 13:18
Mark Salsbery8-Apr-08 13:18 
GeneralRe: BASE CONVERTER Pin
Jeremy Falcon8-Apr-08 13:22
professionalJeremy Falcon8-Apr-08 13:22 
GeneralRe: BASE CONVERTER Pin
El Corazon8-Apr-08 13:26
El Corazon8-Apr-08 13:26 

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.