Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSpProtocol_CreateIP failing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSpProtocol_CreateIP failing



Ryan,

Here's my call from within a C++ build of my game "Classic Cribbage"...


theError = NSpInitialize(0, 0, 1024, 'NtCb', 0);


Notice that I am able to supply the game ID as a four byte character code.
But this is in a C++ program, and I know that some calling conventions are
different for Pascal... Perhaps you could just try this anyway?

Let me know how it works out.


Randy


On 7/5/04 9:04 AM, space aliens overheard Ryan Joseph say:

> After you mentioned it I do use a questionable inGameID<> with
> NSpInitialize. In the NetSprocket.p interface the inGameID is NSpGameID
> -> SInt32. You mentioned this parameter is a four byte code, but in
> pascal a four byte code is always a UInt32(<>UNSIGNEDLONG), while<>
> Sint32 is <>LONGINT. Anyways If I casted inGameID('aaaa') the compiler
> would accept it. Normally if the type was UInt32 the compiler would
> directly accept 'aaaa';
>
> <>Is this casting doing something I don't want?
>
> And I should mention before I tried the casting I just used "1" as I did
> not know it wanted a four byte code.
_______________________________________________
openplay-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/openplay-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: NSpProtocol_CreateIP failing (From: Ryan Joseph <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.