api

Connecting and Fetching a record form sequel server 2005.

I have a windows application in visual C++. I am not using MFC, in this application I have connect to SQL server 2005 and fetch records form a database file. Can any one guide me how this can done. Thanks in advance. ...

Fedex Label Certification - Test Case# 22

Hi, I am trying to generate the label for Test Case# 22 which should return the Service Code 810 but I get 800. The description says - Home Delivery, Evening, AutoPOD, Prepaid. ProcessShipmentRequest request = new ProcessShipmentRequest(); request.RequestedShipment.ServiceType = ServiceType.GROUND_HOME_DELIVERY; request.RequestedShipme...

Does iPhone provide any API for inserting menu selections into e-mail, SMS and Addressbook context menus?

The Blackberry APIs allow one to insert custom menu items (and corresponding event handlers) into their standard email, SMS and Address book context menus. Is there any supported way to do this with iPhone APIs? Thanks. ...

Does iPhone have a clipboard API?

Does iPhone have a clipboard API? It seems one can call an API function to set text to the pasteboard which will be accessible by other apps., but can someone verify that this is correct? Thanks. ...

PHP: Problems with Facebook Connect authentification

I would like to develop an external website using Facebook Connect instead of an own login and registration process. On the first page (index.php) I have the following code for the login button: <fb:login-button v="2" size="large" autologoutlink="false" onlogin="window.location='/index.php'">Connect with Facebook</fb:login-button> Fo...

getting google translate api for iphone

hi, i want to use google translate api from the iphone. what i found is : http://code.google.com/p/gdata-objectivec-client/ but in the list i can not see the translate api. where i can found the library ? thanks. ...

TDD: Does it get in the way of good API design?

I've never written TDD code, but I've seen a decent amount of discussion about it here on SO. My biggest concern with it is that it seems like general good API design (for flexibility, ease of use, simplicity of interface, and performance) takes a back seat sometimes to making code mockable, ultra-modular beyond what is necessary for an...

good american 2-way sms gateway

Hi, Can anyone recommended a 2-way SMS gateway that would allow me to run on a script on every incoming SMS? I'm interested in getting an american VMN (virtual number). The obvious choice (I think) would be clickatell, but I don't think they offer american VMN's. Thanks. ...

How do I get/set Domino read status of messages via Domino COM Object?

I have an application that interacts with Domino via the Domino COM object. I can send, find, delete messages without problem but getting/setting the unread status does not work. The Domino COM object has method to get the read status but it always come back as read. Anyone have a workaround that works? I've had no success with anything ...

Returning neighborhood based on address with Google geocoder/API

Is there any way to effectively/accurately pull out a neighborhood within a city based on a passed in address, zip, city, state to the Google Geocoder? Whenever I try to do it via HTTP (ideal solution) It returns the following info <kml> − <Response> <name>anthonys cookies san francisco California</name> − <Status> <code>200</code> <re...

Discovery mechanics API for Java-based app

Hi! I currently participate in a project where we/the applicaition need to be able to discover other instances of the application with the same application name running on a LAN (henceforth called Node). Prerequisites: All Nodes know their own IP address and TCP port number All Nodes have a name All Nodes have access to the LAN What I...

Google Earth API vs Google Earth COM API

Hello, I want to use Google Earth in a desktop application. My question is which one of these two APIs provided by google do you think has more functionality and/or best support? Thank you very much ...

Something to use for graphing numbers

Is there some sort of application/API with which I can graph sets of numbers(line graph)? I will be interfacing with an external device which will provide me with some readings(via a custom format through a /dev/cua file) at a rate of about 1000 readings per second. I want to be able to graph this as a line graph. So I will need to be...

How would you like an API to expose error handling?

This title begs for more explanation. Basically, I'm rolling an API that wraps a web service in a nice heirarchical model. This model exposes things in the form: var obj = MyRemoteResource.GetForId(1234, SourceEnum.ThatSource); ApiConsumerMethod(obj.SomeProperty); //SomeProperty is lazily loaded, and often exposes such lazily loaded ...

Java Sound API - Distinguish multiple equal USB sound cards

I'm using 4 USB sound cards (ASUS Xonar U1). I want to send to each one of them a different sound (the same text narrated in different languages). For now, what I do to get the sound mixers that I'm interested in, is something like this: Info[] mixerInfo = AudioSystem.getMixerInfo(); int count = 0; for (Info i : mixerInfo) { System....

what is the use of Long.reverse(long ) method?

I found one method in Long class public static long reverse(long i) {..} What is the use of this method? ...

Uniformly handling error codes in an unmanaged API

I'm writing a wrapper around a fairly large unmanaged API. Almost every imported method returns a common error code when it fails. For now, I'm doing this: ErrorCode result = Api.Method(); if (result != ErrorCode.SUCCESS) { throw Helper.ErrorToException(result); } This works fine. The problem is, I have so many unmanaged method ca...

How to Get FedEx & UPS Zone numbers if I know the from and to Zip Codes?

Other than studying and working with their full APIs... Is there an easy way to get the shipping zone number from FedEx and UPS if I know the "from" and "to" zip codes? For example, is there a simple web service that I can use? ...

Looking for blogging 'service' API

Hello. In my quest to build a site that has blogging capabilities, I am searching a blogging service. Please note that I am not interested in installing something like wordpress in-premise. I am looking for a service which will provide me with APIs to read and write blogs and be responsible for persistence and performance. Needless to sa...

Dynamically loading registry function on Windows 7?

I am dynamically loading several registry API's from the library Advapi32.dll. Under Windows XP and Vista everything is OK. Under Windows 7 I keep getting the error The parameter is incorrect and in some cases (like RegCloseKey) my application crashes. The code I am using is the usual: // RegCreateKeyEx typedef LONG (WINAPI *MyRegCreat...