Error C2065: 'RegExp' : undeclared identifier Test2.cpp line 168

This project received 2 bids from talented freelancers with an average bid price of $8 USD / hour.

Get free quotes for a project like this
Employer working
Project Budget
Total Bids
Project Description

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]())
[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

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.

Then I obtain this HTML code.

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!

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online