- This topic has 47 replies, 10 voices, and was last updated 11 years ago by String.
-
AuthorPosts
-
January 1, 2013 at 11:21 pm #191090ChikeMember
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.
January 2, 2013 at 8:16 am #191089TWiZAMember@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 😀January 2, 2013 at 8:39 pm #191088ChikeMemberErrors 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.
January 4, 2013 at 12:46 am #191087AhFoxMemberTWiZA … I’ll use your library to make a Video Tutorial … I hope you don’t mind … I will give you full credit toward it.
January 4, 2013 at 2:18 pm #191086TWiZAMember@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.January 7, 2013 at 3:11 am #191085AhFoxMemberI 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.
January 7, 2013 at 8:22 am #191084TWiZAMemberYes, 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.
January 8, 2013 at 5:31 pm #191083AhFoxMembersounds 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.
April 19, 2013 at 7:20 pm #191082antigeekMemberI notice on the newer build get users not working… Given error… Anyone else getting this error?
April 19, 2013 at 10:08 pm #191081ChikeMember@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?
April 20, 2013 at 5:30 pm #191080antigeekMember@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
April 20, 2013 at 10:16 pm #191079ChikeMemberLet me help you searcg then, one word: SysListView32
April 20, 2013 at 11:10 pm #191078antigeekMemberHonestly 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…
April 22, 2013 at 7:53 pm #191077AdminAdministratorOuch 🙂 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 🙂
April 22, 2013 at 7:56 pm #191076antigeekMemberAnother 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….
-
AuthorPosts
Related
- You must be logged in to reply to this topic.