C# Paltalk Class (library)

Viewing 15 posts - 16 through 30 (of 48 total)
  • Author
    Posts
  • #191090
    Chike
    Member

    This should never happen though, if you are not in the room it means the window is closed, if you are in the room the count cannot be zero.

    #191089
    TWiZA
    Member

    @Chike wrote:

    This should never happen though, if you are not in the room it means the window is closed, if you are in the room the count cannot be zero.

    ameen

    and yeah NVYE, in general it depends on how you would use the function.
    fun fact, since C# is new to me, I’m still influenced by VB’s sloppiness and C/C++’s rigidity 😀

    #191088
    Chike
    Member

    Errors fall into twocategories, errors that you expect as part of nornal exceution, and errors that signify something went terribly wrong and there is no point continue excecution.
    For the first “if”s should be used. for the second exceptions are apropriate.

    The exceptions code in normal flow of the program doesn’t or ahould not have any overhead but that make their execution when raised very slow, something that is not desireable as part of normal execution, and therefore they are not a substitute for “if”s.

    In fact all of the “if”s in this particular example(getUserNames) fall into the second category and should throw an exception.

    #191087
    AhFox
    Member

    TWiZA … I’ll use your library to make a Video Tutorial … I hope you don’t mind … I will give you full credit toward it.

    #191086
    TWiZA
    Member

    @NVYE wrote:

    TWiZA … I’ll use your library to make a Video Tutorial … I hope you don’t mind … I will give you full credit toward it.

    of course. It would be good if someone shows how to use it or even improve it since I lack time to do it 😉
    Thanks.

    #191085
    AhFox
    Member

    I found a bit time today and created a wrapper around your class. I created an example for sending message to Room or PM. I also recorded the video … somehow the microphone isn’t working correctly … until I fixed the voice I’ll upload the video but here is project.

    http://www.pickmike.com/common/node.aspx?pid=10

    #191084
    TWiZA
    Member

    Yes, nice idea.
    and about this:

    public string[] getAllRoomsAndPms()
    {
    // Confusing static method ... hmm... but okay for now
    TwzPaltalkClass.refreshRooms();
    return TwzPaltalkClass.getRooms();
    }

    refreshRooms() indeed this has no business being outside. You can call it inside getRooms() and make a private static instead of public static.

    #191083
    AhFox
    Member

    sounds good and makes sense … I’ll make the changes on the next version … still trying to figure out how to make xml document to html help document so I can provide the API through website.

    #191082
    antigeek
    Member

    I notice on the newer build get users not working… Given error… Anyone else getting this error?

    #191081
    Chike
    Member

    @antigeek wrote:

    I notice on the newer build get users not working… Given error… Anyone else getting this error?

    Have you realized there is a search feature on the forum or that you can actually debug it yourself or are you just looking for the answer to be fed to you?

    #191080
    antigeek
    Member

    @Chike wrote:

    @antigeek wrote:

    I notice on the newer build get users not working… Given error… Anyone else getting this error?

    Have you realized there is a search feature on the forum or that you can actually debug it yourself or are you just looking for the answer to be fed to you?

    You’ve ask me if I realized if there a search feature yes of course I do… I’m not so good with api… Is all I’m saying I’ve search the forum I seen nothing about it I seen someone asking for grabbing room list but not the userlist

    #191079
    Chike
    Member

    Let me help you searcg then, one word: SysListView32

    #191078
    antigeek
    Member

    Honestly you don’t have to be a dick about it… Since I Figure it out But I figure it out with a little bit of ready on how to use spy++ Thanks for your none help… Have a nice day…

    #191077
    Admin
    Administrator

    Ouch 🙂 can we all just get alone, and you both are correct, its better to do search before asking, but Chike you was kindna rude lol and you always so nice 🙂

    #191076
    antigeek
    Member

    Another thing, If you want to use rich text box to send. You have to change..

    [DllImport("user32.dll")]
    private static extern int SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, string lParam);

    To

    [DllImport("user32.dll", EntryPoint = "SendMessageW")]
    private static extern int SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, string lParam);

    So it will send the Rtb raw code right….

Viewing 15 posts - 16 through 30 (of 48 total)
  • You must be logged in to reply to this topic.