Click here to Skip to main content
12,820,296 members (30,764 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++

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

Mahesh Nawale
Posted 20-Feb-13 19:50pm
What is a "square device"? I'm afraid this question is too vague and general to be answered in this forum.
maheshnawale 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
Well, thanks for clarification. Never heard of such square...
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170308.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100