Welcome Guest ( Log In | Register )

> Getting started with the SDK
DJMatty
post Aug 14 2006, 08:08 AM
Post #1


Member
**

Group: Members
Posts: 11
Joined: 14-August 06
Member No.: 124



Hi

I've just started to play with the AMIP SDK and I'm having problems getting it to do anything.

I have AMIP running in winamp, its changing my Messenger np message, and also creating a file, so it's running ok. I can also telnet to port 60333 on my pc and that gets connected, but doesn't do much else when I type stuff.

However when I use the SDK the ac_init_client returns 1, but the ac_eval returns 3 (CONNECTIONFAILED).

Here is the code i am using, this was built using VS2005, it's simple console app.

CODE
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include "ac.h"

#pragma comment(lib, "ac.lib")


int _tmain(int argc, _TCHAR* argv[])
{
    int err = ac_init_client("127.0.0.1", 60333, 1000, 5, 1);

    if(err == 1)
    {
        char np[2048];

        err = ac_eval("var_name",np);

        if(err == AC_ERR_NOERROR)
        {
            printf("Now playing %s\n", np);
        }
        else
        {
            printf("Error: %d\n", err);
        }
    }

    ac_uninit();

    _getch();

    return 0;
}


Can anyone see anything obviously wrong? Do I need a specific version of AMIP to work with the SDK? (I'm using 2.53 beta at present)

I've also downloaded the java sdk and tried the example bat file, that also throws a ConnectionFailedException so I'm guessing it's not to do with my code but how I've got AMIP set up or how the SDK is set up... can anyone point me in the right direction?

Thanks

Matt
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Serge
post Aug 14 2006, 10:39 AM
Post #2


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Please check that you have latest AMIP beta running, the file date (amip.dll or gen_irc.dll) should be 2006-07-24.

Also get some tool like netstat and check that it's AMIP lisening on port 60333, not some other application.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
DJMatty
post Aug 14 2006, 04:34 PM
Post #3


Member
**

Group: Members
Posts: 11
Joined: 14-August 06
Member No.: 124



Hi Serge

I only have the gen_irc.dll in my plugins folder, it's date is 17-04-2006 and version is '2.5.3.0'.

I've used the TCPView tool from sysinternals, I can see winamp.exe listening on 60333, and when I telnet to it I can see the connection is created, however when I run my app, nothing is connected when I execute ac_init_client, and nothing is connected when i execute ac_eval... ac_eval returns immediately with an error.

I'll re-download the beta and try that.

Thanks

Matt

QUOTE(Serge @ Aug 14 2006, 11:39 AM) *

Please check that you have latest AMIP beta running, the file date (amip.dll or gen_irc.dll) should be 2006-07-24.

Also get some tool like netstat and check that it's AMIP lisening on port 60333, not some other application.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: