Results for "Author: knoton"
This is an example on how to use ADO without ADO controls. I use the typical phonebook example... It is a complete application I use myself. You can store your friends, bussines associates name, adress, company, telephone, email, webpage, info, photo and more.... If there are several people using the same computer they could all have their own adress registers... you can create as many as you want and call them what ever you want. You can backup your database to any location you want. You can restore your backup. You can choose if you want to be in read only mode or in editable mode. When you are in editable mode you can Add a new post, edit a post or delete a post. You can send a email to current person or open his/her webpage. You can search for post using several search criterias such as: LastName, FirstName, Company, Adress, Telephone, Cellular, City, Country. The project is made with VB 6.0, Service Pack 5 and MDAC 2.5. If you dont have MDAC 2.5 you can get it at Microsoft webpage. Comments and constructive Feedbacks are always welcomed.
Have you ever wished your medias such as CD-rom, Floppy, Hard drive partition was better organized ? My Media Organizer scans your media and returns information about the files. The result of the scan can be saved in an Access Database (MS Access does not need to be installed) You can select what formats to scan for from listboxes that lists the most common formats of Videos, Audio, Picture, Documents, Web and Executables. You can also add your own defined formats. Or choose to scan for all formats/files. You select on what drive your media is. It can be a Floppy, CD-Rom, HD partition, or mapped drive. When you open the program, it lists all current medias on that database,It shows info such as: MediaId - Identification no to track the media MediaType - CD-Rom, Floppy, Hard Drive MediaInfo - Info, for ex collection of mp3. You select a media for a list of files. You select a file for additional info such as: MediaId, Mediatype, MediaInfo. Filename, Path, FileSize If the selected file is able to run you can run it. for ex mp3 in default player. The database is searchable in several ways. Search for .mp3 and you will get a list of all mp3 on a media or on all medias. The search function supports wildcards If something changes about the media you can do a rescan of it. You can delete all medias or a specific media. You can backup the database and restore it. The projekt is made with VB 6.0 SP 5, MDAC 2.5. Please come with constructive feedbacks and bugreports.
Calulate and validate Checksums in .SFV files using the CRC32 Algorithm. All credits should go to Fredrik Qvarfort for providing the very fast solution to calculate CRC32 checksums with the help of Pre-compiled ASM. I just modified it a bit to let it calculate chunks of the file instead of the whole file, the rest is just a simple GUI for validating and creating .sfv files. I made this application when I got very tired of the commercial, slow and crappy SFV application I got. Just wanna share it with you to se an example of Fredrik Qvarfort great CRC32 alghoritm :-) It is poorly documented that is why I put it as intermediate code experience level.... otherwise it should be fine for beginners with some experience.
CMDServer is a Server that you can connect with CMDClient to perform Remote Execution, Remote Termination of processes and most tasks in the Command Interpreter. CMDServer can only run on NT Systems (NT,Win2K,XP) Due to the user validation the server does on remote connection attempts, the server must run on a machine there the loggedin user has adminstrative rights. Use CMDClient from any computer that can reach CMDServer to perform all Commands available from the commandprompt and those listed below CONNECT IP/Host[:Port] (Connect to CMDServer on Port = 512) EXIT (Close connection) REXIT (Close down cmdServer) CMDHELP (Show this help) GETRUNAPP (Show running apps) REXEC [FullPath/]Filename.ext [parameters] (Execute remote application) RTERM HWND (Close running app) CLS (Clear Screen) When a user want to make a remote connection to the server the user will be prompt for Username and password, the user most have administrator rights on the server. OBSERVE that if you remotly start an application via cmd the server will not return until the application is terminated. Use REXEC instead This is a stripdown version of what I am currently developing for my work that is running as a NT Service among other things... Huge credit goes to Mattias Sjögren for the command interpreter part, I also has got big help from www.allapi.com, the people here on PSC. Thank you all :-) constructive feedback is always welcome. It helps me grow as a developer :-)
Now updated with the possiblity to register/unregister typelibs (*.tlb) it can now also handle long filenames, thanks Vlad :-) I got tired of using regsvr32 the old way, so I integrated it to the shell. Makes life easier to register/unregister an .dll or .ocx file with just an click. I can´t figure out why I have not thought about it before :-))) What you need to do is to create your own .reg file putting in below info using notepad and naming the file to regsvr32.reg Or you can download my already made .reg file
Knotons Installmaker It consist of three parts KInstaller (makes the setup packages) KSetup (Installs the setup packages) KUninstall (Uninstall what has been installed) The main reason I have built this installmaker is because I was in need of an setup for easy distribution of a major update at work. didnt feel like spend a lot of $ on a professional one. I also built it because it was great fun and to see if I was able to :-) As far as I can tell it works well for the purpose it was built. It has great potential to be extended, feel free to do so and please share any extensions. Credits Goes to a lot of people, to many for me to remember. I gained the knowledge howto build it from various places and programmers. www.planet-source-code.com www.allapi.net and more..... Thank you all, open source is the best source for knowledge :-) How it works First you must compile all three parts into the same directory. You choose File/New in Kinstaller and gives your project the same name as the application you are building a setup for. That name is later being used at various places, for example the descriptive name in the add or remove programs applet... You add Files by choosing Action/Add files You change Destination by choose the destination in the Environ Path Variables combo, it then adds to the textbox there you can add any trailing folders manually. after that check all files that should have that destination and click Action/Change destination. Repeat until all files have the correct destination. You add Links (shortcuts) by choosing the link in the Links combo and it then adds it to the textbox there you manually could enter any trailing folders. After that check all files that should have that link and click Action/Set link Note that environ paths and links are casesensitive, DO NOT CHANGE IT. You can mark files as shared by checking them and click Action/Mark files as shared. This means your files wont be deleted during uninstall. You can specify if the one installing must be admin by checking the checkbox User must be admin You can specify if the one installing are allowed to choose his installationpath by checking the checkbox Allow user to choose %InstallationPath% You can also delete files, links, undo shared files.. Finally you are set to make the setup for your application Click Action/Create cabinet The cabinet will be made and Ksetup will be copied along with it with the name of your application the cabinet and the renamed Ksetup file is the ones you distribute. system directories for installation %System32% = Windows directory/System32 %InstallationPath% = Program files\ name of your application, or userspecified if allowed %CommonProgramFiles% = Program files\Common Files %ProgramFiles% = Program files %WinDir% = Windows directory Special folders directories for links/shortcuts %Programs% = Start\Programs (for current user) %AllUsersPrograms% = Start\Programs (for all users) %AllUsersStartUp% = Start\Programs\Startup (For all users) %AllUsersDesktop% = Desktop (For all users) %Desktop% = Desktop (For current user) %SendTo% = Shell\SendTo (For current user) %StartUp% = Start\Programs\Startup (for current user) %QuickLaunch% = Puts a quicklaunch link next to the startbutton Note that you only can add trailing folders to Programs/AllusersPrograms. Hope you will enjoy it. Let me know what you think, Feedback is what makes me a better programmer.
KEdit is an example texteditor I made to learn how to make windowsprogram without using any VBforms or controls, all is made with pure API like the style a C or C++ programmer would have done it. With messageloop and wndproc to handle messages. This application is quite useless but learning how to do it was really fun :-)
Updated 2004-04-09: TCP-Communication is my attempt to make a framework to run a TCP-Server without any protocol. It consists of 2 components TCPServer.dll and TCPClient.dll. I am a believer to make things that do one thing and that thing very well. TCP-Communication is an exellent framework to make chatservers for ex. The components are very easy to use and the developer using them mostly need to add the appropiate protocol for the TCP-Socket application being made. I have been working with it on and off for quite som time now, and from time to time it didn´t respond fast enough for me to approve it. But then I saw Emiliano Scavuzzo´s CSocketMaster using a implementation of Paul caton´s WinSubHook. I tried it out and it worked like a charm :-) However I must say I cannot explain why winsubhook works so much better than the ordinary subclassing I used. Anyone care to explain to me ? :-) The TCP Components are very influenced by some authors and due credit and a big thanks for teaching me about Socket programming goes to following authors. Coding Genius Edwin Vermeer Trevor Herselman Emiliano Scavuzzo for influencing me to use Paul catons WinsubHook Other authors on www.planet-Source-code.com/vb www.allapi.net And a big thanks to Paul Caton for providing me with the winsubhook that are giving me so much better response than the common subclassing techniques. Only one problem, I cant explain why my TCP-framework respons so much better with his solution than the common solution. If anyone could try to explain this to me I would be grateful :-) Note that the TCP-Components are not needed to be compiled You could integrate them directly into your project. For an example look at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=52538&lngWId=1 The demo projects are not to be rated, they are a mess and not much energy is used on developing them. They could be buggy. They are just included to give you an idea on how to use the TCP-components. Help me grow as a developer and give me constructive feedback :-)
Shows how to Terminate processes with priviliges. The purpose of this application is to guard choosen applications from going down. The Watch Guard checks each X seconds that the choosen application is responding. If it is not responding it has either been shutdown, crashed or has frozen. First the watch Guard attempts to do a clean shutdown, incase the choosen application has some savings of settings during shutdown, After that it terminate the process to be on the safe side. Finally it starts up the application again. It logs when the applications starts up and goes down. The timeout for response is variable through settings It is mainly for System Administrators who has applications running on machines that absolutely is not allowed to be down for a longer period of time. But it could benefit anyone who wish to guard a choosen application from going down. Help me grow as a programmer, Constructive Feedback are greatly appreciated :-)
A live internet Radio that rests in your systray. It is very low on CPU and Memory. It gets it´s channels from a ini file you can edit and put your own channels in. Observe that the channels that are in the included ini file is swedish broadband musicradio channels. I made this for my lovely wife Ann since we dont have a radio in the kitchen and she loves to listen to radio while cooking and cleaning. We got a computer in the kitchen though :-) This InternetRadio is very straightforward, doesn´t have any fancy features, It does one thing well and that is playing Internet radio. No graphical editor is included to edit the channels in the ini file, you need to edit it yourselve. I am sorry but I have not commented the code, it is very few lines of code and I did not plan to show others it. The only reason I am putting it up here is because it has become popular amongs my friends so I decided to share it.
KFTP is a DotNet class which main use is to give developers a easy to use component for FTPclient functionality. KFTP is a wrapper around Windows Win32 API for Internet (WinInet), therefor it could only be used on windows. It is made using MS Visual Basic 2003 If you are using a earlier version, you can always create a new Class library project. Name it KFTP and add the file KFTP.vb to it. To use it you need to compile the KFTP.dll first and add it to your project. Alternative you add KTP.vb directly to your project. If you want to test it you can use my very simple testprogram, KFTPClientTest. With it you can connect to a FTPServer and browse directories and files, Download files as well as upload files. Note that the example is set to Active connectionmode. If you cant use active you need to change the connectionmode manually in the testcode to Passive. Please dont give feedback on the testproject, it is only a testproject and not much effort is put into it. But I will really appreciate constructive feedback on the KFTP class. Note that I am rather new at using the dotnet framework for developing applications. So I have no idea if it is made the best way possible. Please let me know my common beginners mistakes. Hope you will enjoy it
Shows how to Terminate processes with priviliges. The purpose of this application is to guard choosen applications from going down. The Watch Guard checks each X seconds that the choosen application is responding. If it is not responding it has either been shutdown, crashed or has frozen. First the watch Guard attempts to do a clean shutdown, incase the choosen application has some savings of settings during shutdown, After that it terminate the process to be on the safe side. Finally it starts up the application again. It logs when the applications starts up and goes down. The timeout for response is variable through settings It is mainly for System Administrators who has applications running on machines that absolutely is not allowed to be down for a longer period of time. But it could benefit anyone who wish to guard a choosen application from going down. Help me grow as a programmer, Constructive Feedback are greatly appreciated :-)
KEdit is an example texteditor I made to learn how to make windowsprogram without using any VBforms or controls, all is made with pure API like the style a C or C++ programmer would have done it. With messageloop and wndproc to handle messages. This application is quite useless but learning how to do it was really fun :-)
Now updated with the possiblity to register/unregister typelibs (*.tlb) it can now also handle long filenames, thanks Vlad :-) I got tired of using regsvr32 the old way, so I integrated it to the shell. Makes life easier to register/unregister an .dll or .ocx file with just an click. I can´t figure out why I have not thought about it before :-))) What you need to do is to create your own .reg file putting in below info using notepad and naming the file to regsvr32.reg Or you can download my already made .reg file
A live internet Radio that rests in your systray. It is very low on CPU and Memory. It gets it´s channels from a ini file you can edit and put your own channels in. Observe that the channels that are in the included ini file is swedish broadband musicradio channels. I made this for my lovely wife Ann since we dont have a radio in the kitchen and she loves to listen to radio while cooking and cleaning. We got a computer in the kitchen though :-) This InternetRadio is very straightforward, doesn´t have any fancy features, It does one thing well and that is playing Internet radio. No graphical editor is included to edit the channels in the ini file, you need to edit it yourselve. I am sorry but I have not commented the code, it is very few lines of code and I did not plan to show others it. The only reason I am putting it up here is because it has become popular amongs my friends so I decided to share it.
Updated 2004-04-09: TCP-Communication is my attempt to make a framework to run a TCP-Server without any protocol. It consists of 2 components TCPServer.dll and TCPClient.dll. I am a believer to make things that do one thing and that thing very well. TCP-Communication is an exellent framework to make chatservers for ex. The components are very easy to use and the developer using them mostly need to add the appropiate protocol for the TCP-Socket application being made. I have been working with it on and off for quite som time now, and from time to time it didn´t respond fast enough for me to approve it. But then I saw Emiliano Scavuzzo´s CSocketMaster using a implementation of Paul caton´s WinSubHook. I tried it out and it worked like a charm :-) However I must say I cannot explain why winsubhook works so much better than the ordinary subclassing I used. Anyone care to explain to me ? :-) The TCP Components are very influenced by some authors and due credit and a big thanks for teaching me about Socket programming goes to following authors. Coding Genius Edwin Vermeer Trevor Herselman Emiliano Scavuzzo for influencing me to use Paul catons WinsubHook Other authors on www.planet-Source-code.com/vb www.allapi.net And a big thanks to Paul Caton for providing me with the winsubhook that are giving me so much better response than the common subclassing techniques. Only one problem, I cant explain why my TCP-framework respons so much better with his solution than the common solution. If anyone could try to explain this to me I would be grateful :-) Note that the TCP-Components are not needed to be compiled You could integrate them directly into your project. For an example look at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=52538&lngWId=1 The demo projects are not to be rated, they are a mess and not much energy is used on developing them. They could be buggy. They are just included to give you an idea on how to use the TCP-components. Help me grow as a developer and give me constructive feedback :-)
Knotons Installmaker It consist of three parts KInstaller (makes the setup packages) KSetup (Installs the setup packages) KUninstall (Uninstall what has been installed) The main reason I have built this installmaker is because I was in need of an setup for easy distribution of a major update at work. didnt feel like spend a lot of $ on a professional one. I also built it because it was great fun and to see if I was able to :-) As far as I can tell it works well for the purpose it was built. It has great potential to be extended, feel free to do so and please share any extensions. Credits Goes to a lot of people, to many for me to remember. I gained the knowledge howto build it from various places and programmers. www.planet-source-code.com www.allapi.net and more..... Thank you all, open source is the best source for knowledge :-) How it works First you must compile all three parts into the same directory. You choose File/New in Kinstaller and gives your project the same name as the application you are building a setup for. That name is later being used at various places, for example the descriptive name in the add or remove programs applet... You add Files by choosing Action/Add files You change Destination by choose the destination in the Environ Path Variables combo, it then adds to the textbox there you can add any trailing folders manually. after that check all files that should have that destination and click Action/Change destination. Repeat until all files have the correct destination. You add Links (shortcuts) by choosing the link in the Links combo and it then adds it to the textbox there you manually could enter any trailing folders. After that check all files that should have that link and click Action/Set link Note that environ paths and links are casesensitive, DO NOT CHANGE IT. You can mark files as shared by checking them and click Action/Mark files as shared. This means your files wont be deleted during uninstall. You can specify if the one installing must be admin by checking the checkbox User must be admin You can specify if the one installing are allowed to choose his installationpath by checking the checkbox Allow user to choose %InstallationPath% You can also delete files, links, undo shared files.. Finally you are set to make the setup for your application Click Action/Create cabinet The cabinet will be made and Ksetup will be copied along with it with the name of your application the cabinet and the renamed Ksetup file is the ones you distribute. system directories for installation %System32% = Windows directory/System32 %InstallationPath% = Program files\ name of your application, or userspecified if allowed %CommonProgramFiles% = Program files\Common Files %ProgramFiles% = Program files %WinDir% = Windows directory Special folders directories for links/shortcuts %Programs% = Start\Programs (for current user) %AllUsersPrograms% = Start\Programs (for all users) %AllUsersStartUp% = Start\Programs\Startup (For all users) %AllUsersDesktop% = Desktop (For all users) %Desktop% = Desktop (For current user) %SendTo% = Shell\SendTo (For current user) %StartUp% = Start\Programs\Startup (for current user) %QuickLaunch% = Puts a quicklaunch link next to the startbutton Note that you only can add trailing folders to Programs/AllusersPrograms. Hope you will enjoy it. Let me know what you think, Feedback is what makes me a better programmer.
Thirteen Out is a patience I made to figure out how to draw 3 cards from a number of cards in a deck and in the end of the deck put the last 1-2 cards in the beginning of the deck. The card values are hold in an array and when you throw one card away I needed to figure out how to rearrange the array. So basically it is a projekt to figure out the algorithm of moving arrays irregular and still keep track of the correct value. Although it is a fully functional patience it still need some finishing touches.. Enjoy it Knoton
Have you ever wished your medias such as CD-rom, Floppy, Hard drive partition was better organized ? My Media Organizer scans your media and returns information about the files. The result of the scan can be saved in an Access Database (MS Access does not need to be installed) You can select what formats to scan for from listboxes that lists the most common formats of Videos, Audio, Picture, Documents, Web and Executables. You can also add your own defined formats. Or choose to scan for all formats/files. You select on what drive your media is. It can be a Floppy, CD-Rom, HD partition, or mapped drive. When you open the program, it lists all current medias on that database,It shows info such as: MediaId - Identification no to track the media MediaType - CD-Rom, Floppy, Hard Drive MediaInfo - Info, for ex collection of mp3. You select a media for a list of files. You select a file for additional info such as: MediaId, Mediatype, MediaInfo. Filename, Path, FileSize If the selected file is able to run you can run it. for ex mp3 in default player. The database is searchable in several ways. Search for .mp3 and you will get a list of all mp3 on a media or on all medias. The search function supports wildcards If something changes about the media you can do a rescan of it. You can delete all medias or a specific media. You can backup the database and restore it. The projekt is made with VB 6.0 SP 5, MDAC 2.5. Please come with constructive feedbacks and bugreports.
This is an example on how to use ADO without ADO controls. I use the typical phonebook example... It is a complete application I use myself. You can store your friends, bussines associates name, adress, company, telephone, email, webpage, info, photo and more.... If there are several people using the same computer they could all have their own adress registers... you can create as many as you want and call them what ever you want. You can backup your database to any location you want. You can restore your backup. You can choose if you want to be in read only mode or in editable mode. When you are in editable mode you can Add a new post, edit a post or delete a post. You can send a email to current person or open his/her webpage. You can search for post using several search criterias such as: LastName, FirstName, Company, Adress, Telephone, Cellular, City, Country. The project is made with VB 6.0, Service Pack 5 and MDAC 2.5. If you dont have MDAC 2.5 you can get it at Microsoft webpage. Comments and constructive Feedbacks are always welcomed.