Jump to content
ELFORUM - Forumul electronistilor

Cum bag in program Visual C++ cu winsocket my IP adress ?

Recommended Posts

Obtinuta de la un site ce imi arat my external WAN IP adress de la router.

Sau cum extrag adresa mea afisata de exemplu pe http://www.ip-adress.com pentru

a o include in programul cu socketzi scris in Visual C++ ?


Ma gandeam cumva sa salvez automat prin soft cumva acel html apoi il deschid ca

un fisier si extrag randul cu adresa IP externa.



Link to comment
Share on other sites

Raspuns: C#


http://www.c-sharpcorner.com/uploadfile ... s-locally/


Stringul obtinut se pune intr-un fisier text care apoi este citit din Visual C++.


Fisierul executabil din C# trebuie sa fie "autorun" adica sa se lanseze in executie singur.


Asta ar mai fi.


Am gasit ceva la http://msdn.microsoft.com/en-us/library/bb776823.aspx.


Se pare ca poate exista un program sau ce apartine sistemului de operare care

face ca sa poata fi setate unele fisiere executabile care sa ruleze automat

la pornirea calculatorului. Ceva de genul: Sevices ce arata programele ce

ruleaza sau TaskManager ( doar monitorizeaza executabilele ce sunt active ).


Astept solutii !



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines