Guru3D.com Forums

Go Back   Guru3D.com Forums > General > Programming/Html
Programming/Html C++,Visual Basic,HTML,Flash,OpenGL,Modelling,Java.



Reply
 
Thread Tools Display Modes
How to C++ API Call
Old
  (#1)
jaiamai
Newbie
 
jaiamai's Avatar
 
Videocard: (2x) Radeon 5770
Processor: AMD Phenom X2 555 BE
Mainboard:
Memory:
Soundcard:
PSU: 750W
Question How to C++ API Call - 10-04-2014, 19:52 | posts: 4

I don't understand how to work with an API from a website with C++. Something about sending a packet? I can only find online tutorials for the Windows API.

So how do you do it?
   
Reply With Quote
 
Old
  (#2)
mbk1969
Ancient Guru
 
mbk1969's Avatar
 
Videocard: GeForce GTX 970
Processor: I7-4930
Mainboard: Asus p9x79
Memory: G Skill RipjawZ, 16GB
Soundcard: Onboard + FiiO E17
PSU: 1000 W
Default 10-06-2014, 11:48 | posts: 3,509 | Location: Moscow, Russia

What is "API from a website" ?
   
Reply With Quote
Old
  (#3)
johnhendricks
Newbie
 
Videocard: 50
Processor: AMD phemon
Mainboard:
Memory:
Soundcard:
PSU: Simple
Default 12-20-2014, 03:56 | posts: 14

Refer W3shcool for more information and it is best for designing websites.
   
Reply With Quote
Old
  (#4)
SpecChum
Master Guru
 
SpecChum's Avatar
 
Videocard: Unlocked Fury - Acer XR34
Processor: AMD Ryzen 1700 @ 3.9Ghz
Mainboard: ASUS Crosshair VI Hero
Memory: 16Gb G.Skill 3200C14 RGB
Soundcard: ROG SupremeFX->HP200
PSU: EVGA SuperNova G2 850W
Default 12-22-2014, 13:20 | posts: 595 | Location: Doncaster, England

Quote:
Originally Posted by jaiamai View Post
I don't understand how to work with an API from a website with C++. Something about sending a packet? I can only find online tutorials for the Windows API.

So how do you do it?
I don't really follow? If you mean what I think you mean then Google "sockets in C++" or similar.

C++ doesn't even know what a packet is let alone how to send one. You'd need an API. The Berkeley Sockets API is probably the most generic, or WinSock.

Beej's guide was the de-facto learning resource for sockets when I was learning C++ some 15 years ago. No idea if it still is but website is still there tho: http://beej.us/guide/bgnet/
   
Reply With Quote
 
Old
  (#5)
nurvitx
Newbie
 
Videocard: Onboard
Processor: Intel® CoreTM i5-4570
Mainboard:
Memory:
Soundcard:
PSU: Corsair CP-9020015 750W
Default 01-11-2016, 07:58 | posts: 15

API stands for Application Programming Interface and consist by a set of functions exposed by an object [DLL, EXE]. I can't see how a website can expose an API... maybe their can for their backend because that is the place where objects reside for a website, the backend.

You as an user are the front end, and I can't see how you can call an API in this case.
   
Reply With Quote
Old
  (#6)
kevinpham02
Newbie
 
Videocard: 16
Processor: Intel Core i7
Mainboard:
Memory:
Soundcard:
PSU: NA
Default 12-01-2016, 03:17 | posts: 4

Can you give url of that website?
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com
Copyright (c) 2017, All Rights Reserved. The Guru of 3D, the Hardware Guru, and 3D Guru are trademarks owned by Hilbert Hagedoorn.