|
-
Mar 15th, 2000, 09:11 AM
#1
Thread Starter
New Member
I have a few questions:
Q.1: How do you transfer a picturebox/listbox/filebox through winsock? I tried transfering them as strings but it didn't work as I planned.
Q.2: How do you e-mail someone without logging onto a POP server, but using your own computer as an e-mail server and sending an e-mail through your own computer?
Q.3: Part of the program I am writing requires an option of closing a PROCESS (e.g. Kernel32.DLL) for security reasons. How do you do this? I know how to close a task or application, but I'm not quite sure with a process. Thanks.
Q.4: Do any of you know how to/have/know of a way (or a program) that combines an OCX, or DLL into your program(e.g. the VB runtime module)? Thanks.
If you know the answers to any of my questions, please reply. Thanks. An example would be helpful.
-
Mar 15th, 2000, 09:18 AM
#2
New Member
For Q.4
For Q.4, I think there is software called Fusion from BitArts (http://www.bit-arts.com/) that can combine DLL's and OCX's into you EXE file. I'm not aware of any Freeware/Shareware that does this. Also, for Q.1, I have had the same trouble as you, I hope someone has the solution.
ty2
-
Mar 15th, 2000, 09:29 AM
#3
New Member
Question 1
I'm not sure about the code, but you could save the picturebox at one end (using savepicture) and transfer the file, but I am not sure how to do this. I think it would be better to transfer it directly (from picturebox to picturebox) but I'm not sure how.
-
Mar 15th, 2000, 09:35 AM
#4
Hyperactive Member
Q.1: How do you transfer a picturebox/listbox/filebox through winsock? I tried transfering them as strings but it didn't work as I planned.
Are you talking about transfering the actual object itself? or its contents? If you mean the object... forget it!!! It wont work.
What you CAN do is to send a pre-formatted string that contains the contents of what you want the end result to be and have a procedure on the other end that deals with it.
ie :
"PB|filename|..." (For a Picture Box)
"LB|selected|NumItems|item1|item2|..." (For a list box)
"FB|path|selected|..." (For a file box)
Q.2: How do you e-mail someone without logging onto a POP server, but using your own computer as an e-mail server and sending an e-mail through your own computer?
How do you think your computer logs onto email? If you want to use your own computer as a server it needs to at some time connect to the mail delivery system and this is usually through (P)ost (O)ffice (P)rotocol. Otherwise you would be using an internal system... Check how your computer connects to email and use that.
Q.3: Part of the program I am writing requires an option of closing a PROCESS (e.g. Kernel32.DLL) for security reasons. How do you do this? I know how to close a task or application, but I'm not quite sure with a process. Thanks.
I wouldn't be too quick to touch processes... ESPECIALLY like Kernel32.DLL because it will cause the rest of your operating systems to become unstable. But if necessary have a read of the Win32API with the API reader that comes with VB and see if you can find a call that does it for you
Q.4: Do any of you know how to/have/know of a way (or a program) that combines an OCX, or DLL into your program(e.g. the VB runtime module)? Thanks.
YOU CANT. Thats the problem with VB. You MUST include with distributions (or hope they have) all .exe, .dll, .ocx and anything else that is needed.
Unfortunately examples for what you have are not that easy as most of them would basically be writing it for you.... and where do we learn if people do that ;-)
-
Mar 15th, 2000, 10:29 PM
#5
New Member
Question 1
Gen-X, I'm not sure what you meant about the Pre-formatted string, but a while back I tried transferring a listbox's contents through winsock but when I received it and displayed it, it was all on one line (because I recieved it in string format). How do you convert the string into a lsitbox again?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|