-
IP Based SEVERLESS Chat..
I figured this would be a seperate thread to my Question..
Here it is, Simple.. Lots to do still. But the core is there..... Two Winsock Controls.. 1 For server level.. 1 for chat..
Best way to test is with a TCP/IP network and two Pc's..
Let Me know...
Enjoy...
Gremmy...
---- Edit ----
Wow 10 Downloads....
get the newer vrtion on a later post....
-
Re: IP Based SEVERLESS Chat..
Okay here is the next part..
The Core has been updated , more reliable... added so far is the private chatting, chat window scroll and wakeup calls.
I have a small problem with the Wake up call... I want to bring the app form to the front of the Z order( IE. Popup in front of everything with out staying on top..), but the API i'm using seems only to do it within the applications forms..
Things i still need to code...
File transfers..
Chat Colors.. I'm using a richtextbox to enable this feature...
and a few things that are in Ver1 that i've already forgotten..
Hope you enjoy this...
Gremmy....
---- Edit -----
New file on later post... (4 Downloads)
-
Re: IP Based SEVERLESS Chat..
Okay Another Update, But still no comments ??? :ehh:
Has the Penut Gallery gone to sleep... :p :rolleyes: :lol:
Someone must have something to say about it... :wave:
Anyways...
Fixes and updates...
1: Small bug in the User list showed only one user, Third forth etc werelogged on but not visible...
2: Primary Chat window scroll ( oops i only had it in the private chats)
3: File transfers are working... Still a little tempremental but comming along (I need comments on this please... )
Still to add
Timer on clients to check if server still online... and server to check if clients still online..
Color text....
And anything you may think of that is needed...
---- EDIT -----
New Version on later post... (15 Downloads..)
-
Re: IP Based SEVERLESS Chat..
I like what you have done Gremmy...
I finally found some time to check it out. A few things I noticed... You can right click anywhere in the the box where the user's are, but if no one has actually been selected, none of the options work. Maybe include on right mouse click to select item as well.
Also, when I tried to use the private message feature, the window popped up, I typed my message, and hit send and got an error. Something to the lines of the host address cannot be found on the local address.(I will go back and get the exact error for ya) It's kind of hard for me though, because I can work and look at it in one office, but have to reply in another.
I think I could use the core of this to create exactly what I was looking for. I will need to create a seperate app for user's, and that app will have to be able to run in the background. I can't remember exactly how I did it... lost a program I had written a while back, but I would like to have it show up in the task bar's system tray.
Of course it would load on user log-in, but it would be invisible to them until we wanted to send a message. When we send a message, there form would become visible to show our message. And then of course have some kind of hide button from there.
Good work so far though Gremmy :)
EDIT Doh just realized I forgot to check the error message. Anyways I found some more things. It is not recognizing more that one workstation for me. Also weird, if I copy the exe from one machine to another...(I kind of moved things around for the user part to where they could only see the chat window), By hitting login, the IP comes up right, but it keeps the old machine name. And the last thing I noticed was that after exiting, there are still 4-6 processes running. Errors come much easier if you try to load the app again. Maybe try to kill all associated processes on exit??
Still like what you've done though, not sure yet whether to just keep the one I've done using NetSend and AD and what not, or try to work with yours some :ehh: :confused:
-
Re: IP Based SEVERLESS Chat..
Buddy,
If you want to work on multiple stations, I recommend ultravnc. You can get it at www.ultravnc.com
It can come in very handy. It has remote viewing and control, a file transfer utility for when you update your program and want to update the test machine, and if working over long distances, it has a chat function. This comes if very handy for testing apps on different machines.
-
Re: IP Based SEVERLESS Chat..
Thanks sotoasty, I'm sure that will come in handy. However, I really can't use anything where I work now, because the machines are on different networks. That's really all I can say. I do use something sort of like this on one of the networks... Called Dameware. One of the best administrative tools out there. :D
-
Re: IP Based SEVERLESS Chat..
Thanks for the report back.. I'm looking into it.. One thing that still quises me is the 4-6 processes... This was written as a single process app... (Multi form's yes) I've even written code to force close and unload all open forms.. Built each set of forms into an array to keep track of them.. and unload it when finished...
You need a setup like mine..;) ;) ;)
My server is literealy next to my PC desk.. I turn and can use it ... :D
I will get back to you on this report...
-
Re: IP Based SEVERLESS Chat..
Hey Gremmy,
A thought just came to me as I was reading the thread, how about
AppActivate. I toyed with it when I was working on my bot that you were helping me with.
I am going to actually have time this weekend to see what you got going.
I bet I find it in there, but hey, it was worth a shot.
Intercepter
-
Re: IP Based SEVERLESS Chat..
Well it's taken some time but here is a update...
Buddy, thanks for your report back.. I looked over it very carefully and tried to sort out each of the problems listed...
I still dont get the 4-6 processes.. But i've double cheched that everything is properly unloaded..
Bugs and additions..
Popup only pops up when a user is selected..
Custom text color's for each user online (Note that color selection is lost if the user goes ofline)
Sometimes users get lost (????) and wont be able to chat with out logging in again.. Added a lost user scavanging feature.. Also included is a Ping feature to test if all users are still online
If the "Server" does not reply to a ping,The first client to notice will take over as the server, and notify all users on its list.. I'm still looking into managing multiple "Server's" for full redundancy...
File sending is a little less tempramental.. still need's a bit of work there..
PVT messages seen to work 100% now...
Wake up call works!!! I think it may just be some systems that don't like it.. Testing on my wife's pc as a third user, She complaned about It poping up all the time (Every time i sent a wake up call). so it works, but in windows 2000 Server it does not popup infront????
the associated error With "host address cannot be found on the local address" should not occur any more, setup a few check to make sure that we are online and sending to a valid user... the error whould happen when the related winsock was not loaded..
Theres alot of redundancy built in to the app.
Give it a go...
Thanks
Gremmy......
------- Edit --------
New version on next post.. (11 Downloads, and no comments :cry: )
-
Re: IP Based SEVERLESS Chat..
Well i've found a bit of time to fiddle some more on this little project..
B**** and additions..
A bug in the file tranfer caused it to cut out if the transfer took more than 30 seconds, The timer is now reset every time data is sent..
A lot of redundancy is built into the file transfer system, and now the transfer core is a lot less tempramental..
Added user modes, at the moment only Hidden user ( user is not added to user list, but still recieves all chats.. This effectivly blocks the users from sending files or privates chat requests..
Multiple file transfers caused a few problems, added a modeless msgbox to the application, now multiple file requests are handled properly..
I picked up a few minour errors during the application unload, (unfortunately always on the compiled copy.) and added a bit more checks for the unloading of forms..
some minor changes in the chat core..
I only hope that those who are downloading this application pop in every now and then to check for the updates.
Have Fun with this..
Gremmy..
----EDIT-----
New file on next Post... (25 Downloads)..
-
Re: IP Based SEVERLESS Chat..
Wow so many downloading the little app but still no comments..
Well Here we go with a nearly completed App..
B**** and Additions:..
Can't remember it there were any bugs, But i doubt it.. :p
Added a System tray Icon, Ability to remove app from the task bar when Minimised.
Fine tuned the Pvt Chats.
Fine tuned the User colors..
Fine tuned the Hidden and Added Ignore..
Any thing more now whould be Purly cosmetic..
Can anyone give some hints and sugestions on usage over multiple Subnets and via Proxy Ports..
Thanks...
Gremmy...
---- Edit ----
New File on later post (315 Downloads..)
-
Re: IP Based SEVERLESS Chat..
Nice app :), got some questions will it work over the internet not just on a home network?, you know anything about getting a program like this working through firewalls and routers?. I ask because im sick of slow messenger file trasferrs. I have some file trasffer code, but i havent tested it over the internet only on a network. Any suggestions before i give it a internet test?.
Rich
-
Re: IP Based SEVERLESS Chat..
Quote:
Originally Posted by Rich2189
Nice app :), got some questions will it work over the internet not just on a home network?, you know anything about getting a program like this working through firewalls and routers?. I ask because im sick of slow messenger file trasferrs. I have some file trasffer code, but i havent tested it over the internet only on a network. Any suggestions before i give it a internet test?.
Rich
I'm looking into exactly the same thing..
My app only works on a single subnet at the moment..
Direct internet connection to Direct internet connection will work the same as a home network.. Only you need to supply the IP address, as DNS will not contain the ISP users current IP addy. And the two users may not be on the same subnet..
It will be a bit slower too, because of the Lag exprianced from moving a datapacket over multiple networks..
Ping times can give you a reasonable idea of this...
My main concern( and problem) is trying to connect Via Proxy and through Firewall's.. (these are not very UDP Packet friendly..)
Routers are not so much of a problem as you simply supply the Target IP address, and the router will foward the packet to the right subnet..
NAT is a different problem all together, Sometimes a NAT IP is static to specific user, somtimes NAT is supplied on a first request first use, or Single NAT IP to Multiple Users..
With firewalls you may need to unblock the Port address used, but some Admin's dont like to do this. So you need to shape your packet to use one of the available open ports on the firewall. This in tern leaves you with the problem of posibaly sending your file to a Inet Explorer, and it has no idea what your talking about.. :(..
Most proxy's accept only one way port requests.. (Client to Inet) and regect and requests comming in via the net.. (Enabeling this can open the system up for Attacks and Hacker ghosting..)
All these problems are what i'm looking at while i'm writing this app.. and i may need to implement a TCP packet system for use oner the net..
Hope this info helps you with your problem
Gremmy..
-
Re: IP Based SEVERLESS Chat..
Yep that was exactly what i was looking for, been trying to find some information on this for months. I gather it is a pretty hard task to acheive. Aparently msn messenger uses some kind of http thingy to send files. Havent been able to find much else out though. A general purpose sender would be brillaint. I suppose you could get some really fast speeds opening two sockets, maybe three (of course you would have to split the file into bits and put it back at the other end) and using a buffer as you suggested in another post. and finally Multithreading :).
Rich
-
Re: IP Based SEVERLESS Chat..
The method that MSN uses is actualy quite simple.. The source uploads like you upload files to Codeguru.. The target downloads files like you download from the net... (Obviously both happen at the same time and the MNS server handles all the nitty gritty of IP addresses)
And there is the reason for the Long delay in sending files.. the data passage is like this..
You - INET - MSN Server - INET - Your Buddy..
I'm working on this app to allow direct connections like this..
You - INET - Your Buddy..
But it's still far from that...
BTW. My next project is a chaching Proxy server. I may put this one aside until i finish the proxy server..
Gremmy.
-
Re: IP Based SEVERLESS Chat..
Thats odd cause i was just thinking about trying to implement something like that in PHP, the person uploads the file then when the other user logs onto the website he will be able to download it. Bit like email i supose, but since its slow ill keep looking into the person to person thing. Whats a chaching Proxy server?
Rich
-
Re: IP Based SEVERLESS Chat..
It's simply a Proxy server that chache's the sites that are requested.. Very usefull for Capped broadband,
for a better explination read this description.. I think it covers everything..
-
Re: IP Based SEVERLESS Chat..
After a long time of on the shelf i've started to further the usability of this application.
Bug Fixes:
Well None, everything has been very stable and no one has reported anything..
Additions:
Remote Sub-Net searching: I've added quite a lot of code to enable two users on seperate subnets to connect. one user needs to enter a ip address or even the subnet address (ie 196.23.0.0) and the proggy will connect, Users on both subnets will now be able to communicate with each other.
Note: As i do not have access to a multi subnet network, I have as yet been unable to fully test the functionability, but prelim tests show that this feature works as expected.. Any and all feedback on this will be greatlly apreciated..
Gremmy..
---- EDIT ----
New download on later post... (13 Downloads) (and lots of feed back - Thanks)
-
Re: IP Based SEVERLESS Chat..
I get an error on this line when running the application.
Code:
Load Icon_Form - Variable not defined.
Edit: That form wasn't included when I opened the project file, so it works now.
When clicking login
Code:
ReDim Preserve Buffer(Tmp_Total + Tmp_Add) - Supscript out of range.
-
Re: IP Based SEVERLESS Chat..
Quote:
Originally Posted by Rich2189
I get an error on this line when running the application.
Code:
ReDim Preserve Buffer(Tmp_Total + Tmp_Add) - Supscript out of range.
The code does have error trapping, I think you may have "Break on all errors" selected in error trapping.. Change it to "Break on Unhandled errors" then it should work ok..
Gremmy...
-
Re: IP Based SEVERLESS Chat..
Where abouts is that option in the IDE?
-
Re: IP Based SEVERLESS Chat..
The option is under Tools - Options - General (tab) - Error trap
Gremmy....
-
Re: IP Based SEVERLESS Chat..
yep works now, though exiting the application seems impossible. Every time I press exit it reloads :).
Reminds me, I need to look into sending data across the internet.
-
Re: IP Based SEVERLESS Chat..
This is a wierd one ... I've DBL checked all the code, I wrap up every thing, Close all open sub forms, even unload the systray icon.
Rich.. if you have the time could you please debug this one for me... Obviously theres something very different on your system...
Gremmy..
-
Re: IP Based SEVERLESS Chat..
I can't seem to recreate the problem, who knows what I managed to do last time. Well at least it all works fine now. Just a small note for the login screen, is there meant to be a space at the preceding of the port number?
I've been looking at sending messages over the internet and it seems you need a dedicated server application on a computer that can accept requests from outside systems. Unless all the users are prepared to adjust there LAN IP filtering.
-
Re: IP Based SEVERLESS Chat..
The space in the port number is a by product of Str([number]), and is actually the place holder for the sign. It has no effect on the application..
The problem here is the ip filtering, most systems will allow a outgoing port request, and let back in the reply, but will block any incomming requests.. This is one of the problems faced with this application...
This is meant to be serverless, so i dont want to write a seperate Server application. I'm trying to change the face of over the net chat applications. No server = No way to stop the chat..
Take MSN for instance.. put the MSN server offline and milions of ppl cannot chat.. but if you go serverless there is no way to stop the chat...
Think about it... Almost everything we work on runs on some or other server.. Land Line Telephones (An exchange), Cell phones (an exchange), Internet (ISP's).
And now look at travel... if you want to visit a friend that stays a few blocks away, you dont travel to the center of town, stop off at a "Library" and look up his address, then travel back along most of the same road to his house..
I feel that internet chat shoud go the same way... If you know the address, why must you allways pass through a server(the Library) to chat to your mate..
Lets look at our analogy again: what happens if the "Library" is closed for some reason, now you cannot visit your mate, even if he is at home. But in reality you know where he stays because you were there before, so you go to his place directly, chat app's need to go the same way: Well atleast thats the way i feel...
Gremmy...
-
Re: IP Based SEVERLESS Chat..
Hope I'm not too late, joining the show. :)
I rather like what I can see so far, but I do not seem to have ntsvc.ocx on my machine and am not able to find it at MSDN as was claimed somewhere.
Could you explain what that thingy is for?
-
Re: IP Based SEVERLESS Chat..
ntsvc.ocx is an ActiveX control that allows a vb 6 Program to run as a service. That way when you start your machine, the program is running even if you are not logged on to the system.
-
Re: IP Based SEVERLESS Chat..
I only use it to put a icon and popup menu in the system tray... (i personally dont like app's that just load themselves as a service) and is freely available for download on www.andreavb.com..
Personal note: It is a vital part of the app, so that we can free up space on the taskbar, Get access to anything in the Chats at any time, and makes it easy to locate.
Gremmy..
-
Re: IP Based SEVERLESS Chat..
Thank you. Got it.
Ok, now I click Login and get an error in the buffer class
In Add_2_Buffer
ReDim Preserve Buffer(Tmp_Total + Tmp_Add) gives the error.
Tmp_Total is 1, Tmp_Add is -2, redimming on a negative value...
Looks great, Gremmy. I'm eager to try it out. :)
-
Re: IP Based SEVERLESS Chat..
Error trapping... See this earlier post
Gremmy...
-
Re: IP Based SEVERLESS Chat..
Quote:
Originally Posted by WoF
Thank you. Got it.
Ok, now I click Login and get an error in the buffer class
In Add_2_Buffer
ReDim Preserve Buffer(Tmp_Total + Tmp_Add) gives the error.
Tmp_Total is 1, Tmp_Add is -2, redimming on a negative value...
Looks great, Gremmy. I'm eager to try it out. :)
Read post 19 and 20 WoF.
Quote:
The space in the port number is a by product of Str([number]), and is actually the place holder for the sign. It has no effect on the application..
The problem here is the ip filtering, most systems will allow a outgoing port request, and let back in the reply, but will block any incomming requests.. This is one of the problems faced with this application...
This is meant to be serverless, so i dont want to write a seperate Server application. I'm trying to change the face of over the net chat applications. No server = No way to stop the chat..
Take MSN for instance.. put the MSN server offline and milions of ppl cannot chat.. but if you go serverless there is no way to stop the chat...
Think about it... Almost everything we work on runs on some or other server.. Land Line Telephones (An exchange), Cell phones (an exchange), Internet (ISP's).
And now look at travel... if you want to visit a friend that stays a few blocks away, you dont travel to the center of town, stop off at a "Library" and look up his address, then travel back along most of the same road to his house..
I feel that internet chat shoud go the same way... If you know the address, why must you allways pass through a server(the Library) to chat to your mate..
Lets look at our analogy again: what happens if the "Library" is closed for some reason, now you cannot visit your mate, even if he is at home. But in reality you know where he stays because you were there before, so you go to his place directly, chat app's need to go the same way: Well atleast thats the way i feel...
Gremmy...
I totally agree with you, this is why I want this file transfer app as hopefully it will be much fast than MSN. IP filtering is indeed the issue, though you can allow only certain IP address which doesnt make your computer insecure if you know the people who your allowing to connect to your router.
-
Re: IP Based SEVERLESS Chat..
Yeah, thanks. I seem to have missed these posts. :rolleyes: Now evwerything is working fine.
I'm testing it within the LAN at the moment.
Good coding, Grem. It will make me understand more about winsock usage. :)
Note: If you ever have to run it on an older Windows-NT, you'd have to replace the richtx32.ocx by the XP one.
-
Re: IP Based SEVERLESS Chat..
Next Version ...
Okay on this one the Remote subnet Protocols are complete...
Bug fixes :...
Buffer class errors will now be a thing of the past.. (re-write of the buffer class)
File transfer replys (ID4) could be sent to wrong ip - corrected..
Known issue's: ...
If a subnet Search is underway, (or login) and you exit, the app form reloads, still considering what to do here..
If any subnet is behind a Nat or IP translator, the file transfers from outside this subnet will fail.. Going to work on code to do transfers via the chat protocols..
I'm going to write a logger version and set it up on my server.. then open up the relevent ports and post the IP so that we can get some real trials going over the internet...
enjoy it..
Gremmy..
(This app is realy starting to get big, and i may spilt it into multiple DLL modules at a later stage. Just to keep it in a managable size ;) )
--------- EDIT --------
New file on later post (7 downloads)
-
Re: IP Based SEVERLESS Chat..
Thanks. I do enjoy this one. :)
What do you mean by manageable? My big app I done has 25 Forms, 16 modules and 2 user controls. I didn't count the lines of code, but it's plenty. Still I find it manageable. ;)
-
Re: IP Based SEVERLESS Chat..
Quote:
Originally Posted by WoF
Thanks. I do enjoy this one. :)
What do you mean by manageable? My big app I done has 25 Forms, 16 modules and 2 user controls. I didn't count the lines of code, but it's plenty. Still I find it manageable. ;)
Hmm try leaving it for 6 months, then come back and try to mod something small...
it takes forever to find it..
-
Re: IP Based SEVERLESS Chat..
Ahhhh got this one working even better... And it has full network logging (for diagnostics)
Also found a wierd bug in the File transfers that i got sorted out thanks to CG members..
Well for those interested i've setup my network to accept Remote connections on the ip "*************" on port 1699 (i will keep the server running 24/7)
This is more for the testing of remote connections... I would appreciate any feed back on this..
Cheers guys...
---- EDIT ----
Last file on later post - (35 downloads)
Server ip removed because unable to accept connetions with my current hardware..
-
Re: IP Based SEVERLESS Chat..
Got a coupla questions:
I run one instance on my second computer (Win NT) then I start the prog in IDE on my main computer. I get an overflow in
Code:
Public Function IP_2_Long(IP As IP_Type) As Long
IP_2_Long = IP.IP(3) Or (IP.IP(2) * &H100) Or (IP.IP(1) * &H10000) Or (IP.IP(0) * &H1000000)
End Function
the IP address is 192.168.55.23
I put an On Error Resume Next in to see if everything else works. Seems to. But I cannot see the other computer in the Users Online window.
And what am I to do to connect to your running server? (or should that happen automatically somehow?)
-
Re: IP Based SEVERLESS Chat..
Thank you Wof .. you just found a problem in the code...
ARRRGGGGG the IDE sucks... any ip that is higher than 127.#.#.# causes a fault in the ide as it returns a value higher than 2gig....
Looks like i'm going to have to do some fancy round-about coding to get the IP addy into a Long Var....
To login onto my server you need to click Subnet and enter the IP in there...
I tried from a friends system with no luck.. so i will be looking into what and why ..
but first the IP to Long needs to be sorted out....
-
Re: IP Based SEVERLESS Chat..
Fine. :) Looking forward to it.
-
Re: IP Based SEVERLESS Chat..
Well this will be the last update for this application...
I'm developing it further in VB.NET, and can be found On this Vb.Net thread
The Ip functions have been fixed to enable Ip's higher than 127.#.#.# and a few other little minors have been fixedup..
Hope you guy's are not too dissapointed..
Ahh and BTW my DSL rougter does not allow me to map incomming packets to the server, so no one can connect to me directly :(
Maybe someone else will take up the challenge to develop further, (please keep us posted if you do)..
Gremmy...
---- Edit ---
New File on later post...(65 Downloads)
-
Re: IP Based SEVERLESS Chat..
Shame. Everybody seems to desert to .NET
Hope I find time to examine this one over easter, Gremmy. I liked the program much.
-
Re: IP Based SEVERLESS Chat..
Okay so i didn't Stop playing around with this proggy.. (acctually I think i played more on the VB6 than the Vb.net Code)..
SO Whats new...
Well lets just say .... SMILIES....
So far there are 10 smilies included (more to come soon) ..
http://i141.photobucket.com/albums/r...ns/Smilies.jpg
Let me know what you think..
Gremmy..
---- EDIT ---
Correction on later post... (3 D/L)
-
Re: IP Based SEVERLESS Chat..
Hello Gremmy, I would like to think more of it, cause I like the program.
Only it does show the same error as I already described before.
I start the program in the IDE, then I start a compiled instance from another PC and get an overflow in this function:
Code:
Public Function IP_2_Long(IP As IP_Type) As Long
IP_2_Long = IP.IP(3) Or (IP.IP(2) * &H100) Or (IP.IP(1) * &H10000) Or (IP.IP(0) * &H1000000)
End Function
Btw.: how do you create the smilies???
-
Re: IP Based SEVERLESS Chat..
Hmm ... I thought i fixed that error last time ....
Ahhh, found it, it's fixed but the updated Bas file was never added to the zip.. Well let me just re-update ALL the files in the Zip...
the code should be
Code:
Public Function IP_2_Long(IP As IP_Type) As Long
If IP.IP(0) < 128 Then
IP_2_Long = IP.IP(3) Or (IP.IP(2) * CLng(&H100)) Or (IP.IP(1) * &H10000) Or (IP.IP(0) * &H1000000)
Else
IP_2_Long = IP.IP(3) Or (IP.IP(2) * CLng(&H100)) Or (IP.IP(1) * &H10000) Or ((IP.IP(0) And &H7F) * &H1000000)
IP_2_Long = IP_2_Long - 2147483647 - 1
End If
End Function
..
And the Smilies.. Well it was so simple i nearly fell off my chair when i figured it out ...
Simple breakdown ...
* Open Word, and add a Gif/BMP/Jpg to the doc.
* Save as a RTF file..
* Open the RTF in Notepad..
* You now have the image coded in RTF format..
Code:
Smilie = "{\nonshppict{\pict\picscalex100\picscaley100\piccropl0\piccropr0\piccropt0\piccropb0\picw423\pich423\picwgoal240\pichgoal240\wmetafile8\bliptag1128540368{\*\blipuid }0100090000030c0300000000a202000000000400000003010800050000000b0200000000050000000c02100010000500000007010400000046000000430f8600ee00000010001000000000001000100000000000280000001000000010000000010001000000000040000000c40e0000c40e0000020000000200000000000000ffffff0007e000001ff800003ffc00007ffe09007ffe0c00ffff0c00ffff0b00ffff0f00ffff1300ffff1300ffff14007ffe16007ffe17003ffc1f001ff82f0007e02700a2020000430fc6008800000010001000000000001000100000000000280000001000000010000000010008000000000040010000c40e0000c40e0000"
'...... etc
Check out Declarations.bas where i've put all the RTF smilies..
Gremmy......
--- Edit ---- Newer file on later post.
-
Re: IP Based SEVERLESS Chat..
Well, seems to be still some problem there.
When I try to compile the exe, which I must, to run it on my second PC, it gives me an error: "Wrong number of dimensisons" in this line:
For SNo = 0 To UBound(Smilie(0))
Edit: in the Private Sub Do_Smilie(StartLoc As Long, Length As Long) which appears two times within the program.
I first thought UBound was used wrong here and changed it to Ubound(Smilie, 0) which should deliver the UBound of the first dimension in the array (being 1, I guess since it is dimmed Smilie(1,9)). With this it compiles, but then giving me a runtime error.
I changed it to UBound(Smilie, 1) which should produce the UBound of the second dimension. Therewith it compiles and runs.
Is that ok, Gremmy? The chat works then as expected.
And if so, I still have no idea as how to use and produce the smilies now...
(Maybe I'm just blind or don't get what is meant. I thought you could now integrate smilies into your messages, but I don't find how???)
-
Re: IP Based SEVERLESS Chat..
Quote:
And if so, I still have no idea as how to use and produce the smilies now...
(Maybe I'm just blind or don't get what is meant. I thought you could now integrate smilies into your messages, but I don't find how???)
I haven't looked at the code, but I think I get the gist of it. The chat box is a RTF textbox.
Code:
{\nonshppict{\pict\picscalex100\picscaley100\piccropl0\piccropr0\piccropt0\piccropb0\picw423\pich423\picwgoal240\pichgoal240\wmetafile8\bliptag1128540368{\*\blipuid }0100090000030c0300000000a202000000000400000003010800050000000b0200000000050000000c02100010000500000007010400000046000000430f8600ee00000010001000000000001000100000000000280000001000000010000000010001000000000040000000c40e0000c40e0000020000000200000000000000ffffff0007e000001ff800003ffc00007ffe09007ffe0c00ffff0c00ffff0b00ffff0f00ffff1300ffff1300ffff14007ffe16007ffe17003ffc1f001ff82f0007e02700a2020000430fc6008800000010001000000000001000100000000000280000001000000010000000010008000000000040010000c40e0000c40e0000"
The above is how a smile : ) is coded into the RTB (he took this from Word). So when someone sends you a message with " : ) " in it, you replace it with the above string and you get a Smilee.
-
Re: IP Based SEVERLESS Chat..
Right. I took a look at the coding, too, and found the mistake. :rolleyes:
That's how the UBound statement works: Ubound(Smilie, 2)
You have to change it in both Do_Smilie subs.
What a fancy coding with that RTF pictures, but curiously I like it. :)
-
1 Attachment(s)
Re: IP Based SEVERLESS Chat..
Well oooops is all i can say ...
Sat and looked at the problems posted and realised that I've lost my mind and put this in the wrong context/Syntax.. Or just plain wrong...:o
WOF.. thanks for finding the error, I've corrected it now.. :thumb:
But this is one of the reasons why i like to have the code posted on an open forum. Other can rip your code appart and find all the stupid things you do... :)
Hopefully this one is correct...
-
Re: IP Based SEVERLESS Chat..
Well done so far, Gremmy, but you are not done yet. There's still some oooops pending. ;)
Ok, it's not too grave. When I send Otto or Dummy, the first letter gets mingled with the colon from the senders name and becomes a smilie. Maybe after the username's colon to write a blank would remedy matters... but I couldn't find the proper place ad hoc. There are so many ":" written...
And even if I really admire the way, the smilies are coded http://www.my-smileys.de/smileys3/nein2.gif, as an afterthought I might have put the images in a ressource file, which would allow to replace them with own images in, cause I never knew how I would transfer one of my favourite smilies in the program.
But anyway it's a very nice program. Well done.