Käynnissä

MICROSOFT VC ++ CONVERTING T_CHAR . ONLY 5 MINUTES WORK! Solve sending argv[1] to function

Visual Studio 2008 VC++ code.

I WANT TO DETECT AND SOLVE POINTER / CONVERSTION TYPES ERRORS:

If you are MS VC ++ programmer sure you know how to manipulate and convert my vars retrieved in argv[1} and argv{2]

MILESTONE 100% when you can show me 2 screenshot

1-. [url removed, login to view]: [url removed, login to view] 28001 432

2-. output file [url removed, login to view]

Take a look to the code:

void CompleteTest(TCHAR* codigopostalrequired, TCHAR* cnaerequired)

{

wstring cp = codigopostalrequired;

wstring cnae = L"432"; // must be : cnae = cnaerequired

string data2 = "";

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

data2 += "&cnae=";

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

cout < ";

cout << data2;

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

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]");

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

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

string data = "tipodir=P&tipoent=F&sw_portal=N&idioma=I&origen=../eng/[url removed, login to view]";

[url removed, login to view]((BYTE *)data.c_str(), [url removed, login to view]());

wchar_t szHeaders[MAX_PATH * 10] = L"";

if (![url removed, login to view](L"POST", true))

{

return;

}

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

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

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

{

return;

}

wstring cosa2;

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

}

int _tmain(int argc, TCHAR *argv[])

{

_tcout << _T("There are ") << argc << _T(" arguments:") << std::endl;

for (int i=0; i<argc; i++)

_tcout << i << _T(" ") << argv[i] << std::endl;

cout << "\n\argv2=";

_tcout << argv[2];

const wchar_t *str = argv[i].c_str();

CompleteTest(argv[1], argv[2]);

}

.

Best regs

Taidot: C++ -ohjelmointi

Näytä lisää: winhttpclient, winhttpclient post, string cplusplus, programming data types, pointer programming, only $5, microsoft programmer, int size c, int i, how to string, how to be best php programmer, file converstion, data str, c programming pointer, c programming char, cplusplus string, convert a 3d file, char in c programming, char c programming, p 3d, microsoft visual, microsoft programming, VC++, studio l, str

About the Employer:
( 0 reviews ) lima, Peru

Projektin tunnus: #4288156

4 freelanceria on tarjonnut keskimäärin 6 $/tunti tähän työhön

spcinc

Dear sir! I can do it. I have time to work for you.

$8 USD / tunti
(6 arvostelua)
5.3
vano101

I'm expert in C++ and Visual Studio. Usually I charge 18$ per hour but I'll do discount for this simple task.

$6 USD / tunti
(18 arvostelua)
4.0
xxz

I have already fix it.

$5 USD / tunti
(2 arvostelua)
2.0
pinkbirdvw

Fixed. Sample data attached

$8 USD / tunti
(0 arvostelua)
0.0
mchampika

Compiled. What do you want to do ?

$4 USD / tunti
(0 arvostelua)
0.0