why ? [modified]
-
In the additional lib's have you specified Wininet.lib? You also need to include the file wininet.h in the file where you are using the API functions. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
You also need to include the file wininet.h in the file where you are using the API functions. --> does it mean i have to include wininet.h in the "upload" funtion?
-
You also need to include the file wininet.h in the file where you are using the API functions. --> does it mean i have to include wininet.h in the "upload" funtion?
-
As it seems, that's not the problem. The errors you get are all link errors, so they originates from not linking wininet.lib
but i need detail solution? can you or anyone help me ? please!
-
but i need detail solution? can you or anyone help me ? please!
If you got VC 6 (as me), do this: 1. Press AltF7 to get to "Project"->"Settings" 2. In the left window (top), select "All Configurations" 3. Click on the "Link" tab 4. Select "Category" Input 5. In the edit line under "Object/Library modules", go to the end of the line. 6. write a space, followed by wininet.lib 7. Click the "OK" button Build (or rebuild) the project.
-
but i need detail solution? can you or anyone help me ? please!
-
but i need detail solution? can you or anyone help me ? please!
stupidmistakez wrote:
but i need detail solution? can you or anyone help me ? please!
Just add the following in your
Stdafx.h
header file#pragma comment(lib, "wininet");
Knock out 't' from can't, You can if you think you can :cool: -
You also need to include the file wininet.h in the file where you are using the API functions. --> does it mean i have to include wininet.h in the "upload" funtion?
No you only need to include the wininet.h file where you are using the API functions at the top where you are including rest of the files Alternatively you can include this wininet.h file in the stdafx.h file if you are using this API at various places in your project Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_
-
but i need detail solution? can you or anyone help me ? please!
Open the Properties dialog of your project and go to Linker --> Input --> Additional Dependencies fiels. Type here "Wininet.lib" (use space as separator, if there are other items). Repeat this for Debug and Release configurations. Then try to build the project. The libraries and headers you need usually are described in the documentation. Hope it helps.
-
stupidmistakez wrote:
but i need detail solution? can you or anyone help me ? please!
Just add the following in your
Stdafx.h
header file#pragma comment(lib, "wininet");
Knock out 't' from can't, You can if you think you can :cool: -
kakan wrote:
Of course. I'm using it all the time, and still I forgot when I wrote my answer
Remember next time :) Knock out 't' from can't, You can if you think you can :cool:
-
kakan wrote:
Of course. I'm using it all the time, and still I forgot when I wrote my answer
Remember next time :) Knock out 't' from can't, You can if you think you can :cool: