Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI,

I am new on a c++.

I want a c++ code which will detect the connected hardware and shows the information

I am using turbo c++

I want to develop a code which will detect the square device and want to take the information of a credit card which will be swap using this device .

So can any one give me the sample code for detecting this hardware and read the information of a credit card such as person name, bank a/c no and the credit card no etc

Thanks
Mahesh Nawale
Posted
Comments
Sergey Alexandrovich Kryukov 21-Feb-13 0:54am    
What is a "square device"? I'm afraid this question is too vague and general to be answered in this forum.
—SA
Mahesh Nawale 21-Feb-13 2:24am    
square device is the device by using we can swap the credit card . if u search on google u get the image for it
Sergey Alexandrovich Kryukov 21-Feb-13 2:31am    
Well, thanks for clarification. Never heard of such square...
—SA
enhzflep 21-Feb-13 4:42am    
Well, that's just not gonna happen.

For starters, the device plugs into the _audio jack_ of smart-phones, both android and iphone. It quite possibly communicates with the phone using wifi or bluetooth - I'm not aware of the audio port on either platform being bi-directional. I suspect the audio jack is merely used to provide power and commands to the device, _NOT_ to actually get information back from it.

Second, it's not a supported device for window/mac/linux etc. Clearly, the website states that supported platforms are android and iphoneiOS.

Third it's a payment system, so the security is going to be (hopefully) sealed up tighter than a fish's bum.

Your best bet would be to reverse-engineer the app that comes with it - either the android or iphone version. But again, re-read point #3.
Try Hexrays IDA Pro Advanced for reversing the app, if you must.

Oh, and for the love of god, allah, vishna and all that is holy, take your copy of Turbo C outside and shoot it! That compiler has no valid place this millenium. Get a decent one - i.e Visual Studio or MinGW with Eclipse, Code::Blocks or :gasp: even DevCpp - they're all a zillion lightyears better than TurboC (which was past it's use-by date in about '96 or '97)

Try allocating a GB of memory using TurboC :laugh:

1 solution

I don't think you are in the right forum for this question
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900