Error C2065: 'RegExp' : undeclared identifier [url removed, login to view] 168

Closed

void CompleteTest(TCHAR* codigopostalrequired, TCHAR* cnaerequired, TCHAR* coso)

{

wstring cp = codigopostalrequired;

wstring cnae = cnaerequired;

wstring cos = coso;

string data2 = "";

data2 += (char *)_bstr_t(cp.c_str());

data2 += "+";

data2 += (char *)_bstr_t(cnae.c_str());

data2 += "+";

data2 += (char *)_bstr_t(cos.c_str());

cout < ";

cout << data2;

wstring urlHead (L"[url removed, login to view] /servlet/app/portal/ENTP/prod/LISTA_EMPRESAS/razonsocial/");

wstring urlTail ([url removed, login to view](), [url removed, login to view]());

wstring url = urlHead + urlTail;

WinHttpClient getClient(url);

if (![url removed, login to view]())

{

return;

}

[url removed, login to view](L"[url removed, login to view]");

wstring resp = [url removed, login to view]();

RegExp re;

[url removed, login to view]( TRUE );

[url removed, login to view]( _T("\\/nif/(\\d+)") );

[url removed, login to view]( nif);

I need the help from VC++ expertise focusing on REGEXP utility class.

I attach the code. I need to simulate 2 steps

This sample should work with a person name , MR. CAMILO JARDI MARTI

1-. First step. Form submit

[url removed, login to view]+marti+jardi

I look inside the HTML response code from the submit and I search the first coincidence with

/servlet/app/portal/ENTP/prod/ETIQUETA_EMPRESA/nif/

With REGEXP I extract the code below MDQwODY4OTMxUg==

2-. Second step

With the extracted code MDQwODY4OTMxUg== now I need to proceed the second form submit.

http://www.einforma.com/servlet/app/portal/ENTP/prod/ETIQUETA_EMPRESA/nif/MDQwODY4OTMxUg==

Then I obtain this HTML code.

Denominación: CAMILO JARDI MARTI

Domicilio Social: AVENIDA A...

Localidad: 25005 LLEIDA ( Lérida )

Forma Jurídica: Empresario individual

NIF: 4086...

Actividad Informa: Instalaciones eléctricas en general. Instalaciones de redes telegráficas, telefónicas, telefonía sin hilos y televisión.

CNAE 2009: 4321 Instalaciones eléctricas

Fecha último dato: 18 de Enero de 2013

THE PROGRAM SHOULD save complete HTML response into [url removed, login to view] and create [url removed, login to view] where I save only parsed 4 chars: That means

the first 4 chars from nif : NIF: 4086... so i only save 4086 into [url removed, login to view]

Thats it!

Skills: C Programming, C++ Programming, Java

See more: error c2065, error c2065 regexp undeclared identifier, c2065 exec undeclared identifier, error c2065 undeclared identifier, string cpp, cpp string, undeclared identifier exec, sin cos, mr y, instalaciones, informa, cpp, cos, general error 2013, undeclared, test web portal, web scraping sample, html code error, app portal, line portal, response code error, error txt, end scraping, forma

Project ID: #4317761

2 freelancers are bidding on average $8/hour for this job

lbguilherme

Let's talk.

$8 USD / hour
(1 Review)
1.9
Rubens1

Hi, can do the job. Details - pm.

$7 USD / hour
(0 Reviews)
0.0