Advertisement

Results for "Author: luis cantero"

2002ASP #150
Replace System Files After Rebooting

When you are creating a sort of Setup program, etc. sometimes you want to replace some system files or delete some other files, however if they are in use by Windows at the time, you can't. You need to update the files after rebooting, you know that message that says "Please wait while windows updates your configuration files", the utility that does this is called Wininit, and here's how to use it! I've included a small example that should work under Win9x/ME/NT/2K/XP.

2002ASP #151
ID3v2/ID3v1 Read and Write Demo

This small app. contains code to read/write ID3v1 and ID3v2 Tags from/to MP3 files. This code is used in one of my commercial applications. Please vote for me if you like it, it took many hours of development, specially the ID3v2 part (see ID3v2.org for specs.)

2002ASP #152
Email with attachments, Progress Bar, Drag & Drop

This program lets you send emails with attachments (Using Winsock API - without an OCX). It features a progress bar, multiple attachments support, etc. The Attachment list supports multiple file Drag & Drop. You can drop files from explorer for example, it is very simple and without APIs, supports multiple recipients separated by commas. (good example on how to use arrays) Latest addition: NOW FASTER! Succesfully tested with netaddress.com, mail.yahoo.com, hotmail.com FOR VB5 USERS: Replace the VB6 "Split" function with any "Convert String to Array" example found on Planet Source Code. (Please do not email me about it, thanks) Last Updated: 11/APR/2002

2002ASP #153
Download Web Site or File using Winsock API

This is a small application that shows how to download a web page (or any file) from a web site using only Winsock API (no OCX, no controls!)! As of today, and as far as I know there are no other examples like this on PSC. It demostrates and explains (advantages and uses of) the GET and POST methods and supports the use of an HTTP Proxy. It downloads Asyncronously so it won't "hang" and you can even set a time-out or cancel the request. One of the many practical uses for it would be: put it on your about box and use it to retrieve a text file on your site that indicates your program's version/update availability. I've commented it and should be easy to understand even for newbees. Please vote for me if you like it ;) if I get enough votes I will post an example on how to transfer files using only Winsock API (Client-Server application).

2002ASP #154
Open default email client/browser to your address

Sometimes in the about box of your program you want to put your email address, and web site address, wouldn't it be great if at one click the default email client would open with your address in it?, or the default web browser to your address?, and a plus!, open any file to its association, all of this with no declarations, no APIs, and with ONE line of code? Sounds impossible? here's how:

2002C #8754
Replace System Files After Rebooting

When you are creating a sort of Setup program, etc. sometimes you want to replace some system files or delete some other files, however if they are in use by Windows at the time, you can't. You need to update the files after rebooting, you know that message that says "Please wait while windows updates your configuration files", the utility that does this is called Wininit, and here's how to use it! I've included a small example that should work under Win9x/ME/NT/2K/XP.

2002C #8755
ID3v2/ID3v1 Read and Write Demo

This small app. contains code to read/write ID3v1 and ID3v2 Tags from/to MP3 files. This code is used in one of my commercial applications. Please vote for me if you like it, it took many hours of development, specially the ID3v2 part (see ID3v2.org for specs.)

2002C #8756
Email with attachments, Progress Bar, Drag & Drop

This program lets you send emails with attachments (Using Winsock API - without an OCX). It features a progress bar, multiple attachments support, etc. The Attachment list supports multiple file Drag & Drop. You can drop files from explorer for example, it is very simple and without APIs, supports multiple recipients separated by commas. (good example on how to use arrays) Latest addition: NOW FASTER! Succesfully tested with netaddress.com, mail.yahoo.com, hotmail.com FOR VB5 USERS: Replace the VB6 "Split" function with any "Convert String to Array" example found on Planet Source Code. (Please do not email me about it, thanks) Last Updated: 11/APR/2002

2002C #8757
Download Web Site or File using Winsock API

This is a small application that shows how to download a web page (or any file) from a web site using only Winsock API (no OCX, no controls!)! As of today, and as far as I know there are no other examples like this on PSC. It demostrates and explains (advantages and uses of) the GET and POST methods and supports the use of an HTTP Proxy. It downloads Asyncronously so it won't "hang" and you can even set a time-out or cancel the request. One of the many practical uses for it would be: put it on your about box and use it to retrieve a text file on your site that indicates your program's version/update availability. I've commented it and should be easy to understand even for newbees. Please vote for me if you like it ;) if I get enough votes I will post an example on how to transfer files using only Winsock API (Client-Server application).

2002C #8758
Open default email client/browser to your address

Sometimes in the about box of your program you want to put your email address, and web site address, wouldn't it be great if at one click the default email client would open with your address in it?, or the default web browser to your address?, and a plus!, open any file to its association, all of this with no declarations, no APIs, and with ONE line of code? Sounds impossible? here's how:

2002VB #17358
Replace System Files After Rebooting

When you are creating a sort of Setup program, etc. sometimes you want to replace some system files or delete some other files, however if they are in use by Windows at the time, you can't. You need to update the files after rebooting, you know that message that says "Please wait while windows updates your configuration files", the utility that does this is called Wininit, and here's how to use it! I've included a small example that should work under Win9x/ME/NT/2K/XP.

2002VB #17359
ID3v2/ID3v1 Read and Write Demo

This small app. contains code to read/write ID3v1 and ID3v2 Tags from/to MP3 files. This code is used in one of my commercial applications. Please vote for me if you like it, it took many hours of development, specially the ID3v2 part (see ID3v2.org for specs.)

2002VB #17360
Email with attachments, Progress Bar, Drag & Drop

This program lets you send emails with attachments (Using Winsock API - without an OCX). It features a progress bar, multiple attachments support, etc. The Attachment list supports multiple file Drag & Drop. You can drop files from explorer for example, it is very simple and without APIs, supports multiple recipients separated by commas. (good example on how to use arrays) Latest addition: NOW FASTER! Succesfully tested with netaddress.com, mail.yahoo.com, hotmail.com FOR VB5 USERS: Replace the VB6 "Split" function with any "Convert String to Array" example found on Planet Source Code. (Please do not email me about it, thanks) Last Updated: 11/APR/2002

2002VB #17361
Download Web Site or File using Winsock API

This is a small application that shows how to download a web page (or any file) from a web site using only Winsock API (no OCX, no controls!)! As of today, and as far as I know there are no other examples like this on PSC. It demostrates and explains (advantages and uses of) the GET and POST methods and supports the use of an HTTP Proxy. It downloads Asyncronously so it won't "hang" and you can even set a time-out or cancel the request. One of the many practical uses for it would be: put it on your about box and use it to retrieve a text file on your site that indicates your program's version/update availability. I've commented it and should be easy to understand even for newbees. Please vote for me if you like it ;) if I get enough votes I will post an example on how to transfer files using only Winsock API (Client-Server application).

2002VB #17362
Open default email client/browser to your address

Sometimes in the about box of your program you want to put your email address, and web site address, wouldn't it be great if at one click the default email client would open with your address in it?, or the default web browser to your address?, and a plus!, open any file to its association, all of this with no declarations, no APIs, and with ONE line of code? Sounds impossible? here's how:

ASP_Volume2 #26060
Change order of letters in a word

This code is just for fun, it demostrates an interesting phenomenon and some ways to manipulate strings, and arrays. According to research at an English university, it doesn't matter in which order the letters in a word are, the only important thing is that the first and last letters are in the right place. The rest can be a total mess and you can still read it without a problem. This is because we do not read every letter by itself but the word as a whole. This works with nearly every language. IMPORTANT: A similar program was posted a little before mine, but I posted mine without knowledge of that, and without seeing any portion of the code. This program (and I'm sure the other one too) was inspired in an email that got forwarded around the world a few days ago. The main difference between my program and the other one is that this one uses a byte array and totally randomizes the order of the words, the other program merely reverses the order of the letters. Thank you.

ASP_Volume2 #30519
Open default email client/browser to your address

Sometimes in the about box of your program you want to put your email address, and web site address, wouldn't it be great if at one click the default email client would open with your address in it?, or the default web browser to your address?, and a plus!, open any file to its association, all of this with no declarations, no APIs, and with ONE line of code? Sounds impossible? here's how:

ASP_Volume2 #30521
Trim non alphanumeric characters FAST

It will erase any non-alphanumeric characters from a string rapidly. Usefull if you want to check strings for non-valid characters. Strings such as email or web addresses, you can even make so that only numbers can be entered in, for example, a text box.

ASP_Volume2 #30533
Replace System Files After Rebooting

When you are creating a sort of Setup program, etc. sometimes you want to replace some system files or delete some other files, however if they are in use by Windows at the time, you can't. You need to update the files after rebooting, you know that message that says "Please wait while windows updates your configuration files", the utility that does this is called Wininit, and here's how to use it! I've included a small example that should work under Win9x/ME/NT/2K/XP.

ASP_Volume2 #33179
ActiveX EXE Multithreading

This is a list of issues that I had while implementing this technology in one of my programs and how to solve them. This information took me many days to collect and should save you about a week's worth of testing. To understand this you need Srideep Prasad's turorial on "Multithreading" (txtCodeId=24672), also available at PSC. I've tried all multithreading methods listed on PSC and I found this method to be the best.

Languages
Top Categories
Global Discovery