Do anyone knows how to write a simple application linking a pc to a mobile phone(nokia[3315],alcatel[311,331]) using visual c++. If anyone knows about it or has any relevant information(source codes) about it please do reply as soon as possible.

Thanks!!!!

Dani AI

Generated

— practical roadmap for linking a PC to older phones like Nokia[3315] or alcatel[311,331], and how to approach it from Visual C++.

There are two realistic routes: use an off‑the‑shelf sync package or write your own app that talks to the phone. is right that retail sync tools + the correct cable will work quickly for users. is right to check the manufacturer for developer resources if you need programmatic access.

Recommended steps

  1. Identify how the phone connects: proprietary data cable, IrDA (infrared), or a vendor driver that exposes a virtual COM port.
  2. Install the phone’s PC drivers or PC‑suite so Windows sees the device (often as a COM port or IrCOMM). Test the link first with a terminal (HyperTerminal/PuTTY): open the COM port and send AT — a response like OK means a modem/AT interface is available.
  3. If AT works you can control SMS and basic modem features. If it does not, the phone may require a vendor protocol or OBEX for file transfer; then hunt for the vendor SDK.

Minimal Visual C++ approach (Win32 serial)
Try opening the COM port and talking over it. Example (skeleton):

HANDLE h = CreateFile("\\\\.\\COM3", GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0);
DCB dcb = {0}; dcb.DCBlength = sizeof(dcb);
GetCommState(h, &dcb);
dcb.BaudRate = CBR_115200; dcb.ByteSize = 8; dcb.Parity = NOPARITY; dcb.StopBits = ONESTOPBIT;
SetCommState(h, &dcb);
DWORD written; WriteFile(h, "AT\r", 3, &written, NULL);

Troubleshooting and tips

  • Confirm correct COM number, baud, and flow control.
  • Disable vendor PC‑suite while testing (it may hold the port).
  • If needing contacts/calendar, prefer an official SDK or SyncML/OBEX rather than low‑level hacks.
    Start by proving the physical link with a terminal program; that determines whether to proceed with raw serial/AT commands or to search for the manufacturer SDK.

Recommended Answers

All 2 Replies

Lets see....... i know for a fact u can buy software to do this. I've seen software at bestbuy. Sometimes, they don't carry the right software for ur phone so you'll have to check ebay or something. what u need is a data cable and the sync software. prices can be kinda high sometimes, but if ur lucky u'll find a cheap one. so far, the ones i've seen range from $50 - $100. GOOD LUCK! :lol:

id check out the menufactures sites for development kits

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.