API interchangable?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

API interchangable?

 
0
  #1
Apr 2nd, 2009
If I were to work on say an Instant Messenger project, and wrote the gui and event handling using wxWdigets, could I then use the windows API and use winsock to connect the two computers? Basically are API's interchangble in source code?
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,461
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1476
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: API interchangable?

 
0
  #2
Apr 2nd, 2009
Try it and find out for yourself.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

Re: API interchangable?

 
0
  #3
Apr 2nd, 2009
well thats not very helpful =(. I am just looking for a simple idea if anyone can give me one. Nothing super in depth
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,461
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1476
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: API interchangable?

 
0
  #4
Apr 2nd, 2009
Originally Posted by clutchkiller View Post
well thats not very helpful =(. I am just looking for a simple idea if anyone can give me one. Nothing super in depth
The best way to learn how something works is to try it out yourself and test it on your own computer with your own code. If you want to every program professionally then you will have to learn how to do your own experiments to see what works and what doesn't.

If you want a simple answer then: yes you can probably mix the two, and no they are not interchangeable.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 181
Reputation: adam1122 is an unknown quantity at this point 
Solved Threads: 28
adam1122 adam1122 is offline Offline
Junior Poster

Re: API interchangable?

 
0
  #5
Apr 2nd, 2009
I know this isn't what you are asking but may I suggest you use something a little more portable than winsock. That would be Boost asio. There are good examples of an echo client/server here: http://www.boost.org/doc/libs/1_37_0.../examples.html

There are other options too, if you look around.

I suppose it doesn't hurt to learn the Windows API and Winsock for experience and to see another way of doing things, but someone would have to pay me very well to even think about using them.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 139
Reputation: thoughtcoder is on a distinguished road 
Solved Threads: 12
thoughtcoder thoughtcoder is offline Offline
Junior Poster

Re: API interchangable?

 
0
  #6
Apr 2nd, 2009
You could just look at the APIs and see for yourself.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,461
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1476
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: API interchangable?

 
0
  #7
Apr 2nd, 2009
Originally Posted by thoughtcoder View Post
You could just look at the APIs and see for yourself.
I suggested that too be apparently he is too lazy to do it.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 181
Reputation: adam1122 is an unknown quantity at this point 
Solved Threads: 28
adam1122 adam1122 is offline Offline
Junior Poster

Re: API interchangable?

 
0
  #8
Apr 2nd, 2009
Originally Posted by Ancient Dragon View Post
I suggested that too be apparently he is too lazy to do it.
Isn't that what "they" say about programmers: we're lazy?
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 111
Reputation: clutchkiller is an unknown quantity at this point 
Solved Threads: 1
clutchkiller's Avatar
clutchkiller clutchkiller is offline Offline
Junior Poster

Re: API interchangable?

 
0
  #9
Apr 2nd, 2009
lazy? Not at all, I know many different api's have functionality that allows you to do the same thing as winsock, but I am more familiar with winsock then other api's similar functions. Perhapes if you read my original SIMPLE question, these subtle insults would not be needed.
Last edited by clutchkiller; Apr 2nd, 2009 at 8:26 pm.
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,461
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1476
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: API interchangable?

 
0
  #10
Apr 2nd, 2009
Originally Posted by adam1122 View Post
Isn't that what "they" say about programmers: we're lazy?
I've been called a lot of things in my life, but "lazy" isn't one of them. I would have taken only about an hour or less to find out the answer to that op's question, but he messed around for several hours trying to get someone else to do it for him.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC