Results for "Author: knoton"
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.
This is a very simple API wrapper in a bas module for playing a wav file within a resource file using the API function sndPlaySound. I tried to figure out how to do this for some time and thought I should share it with you. I belive that for you experienced programmers, out there who are used to work with API, this is simple. But hopefully it will help out someone. I have included the bas module in case the formatting of the code will be to hard to read. I got great help from sotirisdj who had a project who thought me this technique.
Updated: Dec 02 2001, Ver 2.5 updates are functionality to associate MS Access (.mdb) databases with Database viewer/editor, and to Maximaze the application. View/Edit data on databases that can be MS SQL-Server local/lan or remote on internet, or a MS Access database. Get Data by clicking databases/tables/columns/views/stored procedures or perform custom SQL queries. It shows ADO Programming and Some API. In this version I have fixed some bugs from previous releases and improved the functionality. Now you can view the "source" of all stored procedures and views in SQL-Server. Thanks to all who came with feedback/suggestions in previous versions of this application. The project is made with VB 6.0 Service Pack 5 and I used MDAC 2.5. Please help me grow as a programmer and come with feedback/suggestions.
Knoton´s Agenda with Personal Adressbook and a Calendar with alert functions. The application let you create your own Agenda Database (handy if more than one use the PC). It also has a Calendar that on load store todays events and alerts you of them on a set time. You can add new events and edit already existing. You can automaticaly create same event, one time, Mon-Fri, Sat-Sun, Certain day, annualy a number of times you choose. You set Date, Time, Description, Memo and if you want a sound alert you choose (Mp3, wav, midi). It loads default into the systray that on click on the icon shows a menu with all options, It associate the .adr databases with the application so you can open it just by clicking the database. Thanks to Max Raskin for the excellent Associate wrapper. The Projekt is made with VB 6.0 SP 5, ADO 2.5 Any constructive feedback is greatly appreciated.
A Lightweight mediaplayer wich main purpose is to play DivX (.avi) movies. It is made using API for everything except the sliders for seek and sound. It has all the normal functions such as: Play, Pause, Stop, Open, Seek. You can increase/Decrease the movie with 25 % up to 300 and down to 50 % of original size, Or play it fullscreen. You can seek to any point in the movie. You can increase/Decrease the volume from 0-100 %. All functions has hotkeys except seek and open. The hotkeys play, pause, stop, increase/decrease volume even work in fullscreen mode. I managed to make this player due to that I got a piece here and there from you all here on PSC, and I also got great help from www.allapi.net. Thanks to all. Help me grow as a developer and come with feedback, bugreports and so on...
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.
A complete up to four player Yatzee game. It has die animation, Sound... The code should be fine for beginners with some experience with VB Fundamentals programming. Constructive feedbacks are appreciated more than votings. Have fun Knoton
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 :-)
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
A Lightweight mediaplayer wich main purpose is to play DivX (.avi) movies. It is made using API for everything except the sliders for seek and sound. It has all the normal functions such as: Play, Pause, Stop, Open, Seek. You can increase/Decrease the movie with 25 % up to 300 and down to 50 % of original size, Or play it fullscreen. You can seek to any point in the movie. You can increase/Decrease the volume from 0-100 %. All functions has hotkeys except seek and open. The hotkeys play, pause, stop, increase/decrease volume even work in fullscreen mode. I managed to make this player due to that I got a piece here and there from you all here on PSC, and I also got great help from www.allapi.net. Thanks to all. Help me grow as a developer and come with feedback, bugreports and so on...
Knoton´s Agenda with Personal Adressbook and a Calendar with alert functions. The application let you create your own Agenda Database (handy if more than one use the PC). It also has a Calendar that on load store todays events and alerts you of them on a set time. You can add new events and edit already existing. You can automaticaly create same event, one time, Mon-Fri, Sat-Sun, Certain day, annualy a number of times you choose. You set Date, Time, Description, Memo and if you want a sound alert you choose (Mp3, wav, midi). It loads default into the systray that on click on the icon shows a menu with all options, It associate the .adr databases with the application so you can open it just by clicking the database. Thanks to Max Raskin for the excellent Associate wrapper. The Projekt is made with VB 6.0 SP 5, ADO 2.5 Any constructive feedback is greatly appreciated.
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
Updated: Dec 02 2001, Ver 2.5 updates are functionality to associate MS Access (.mdb) databases with Database viewer/editor, and to Maximaze the application. View/Edit data on databases that can be MS SQL-Server local/lan or remote on internet, or a MS Access database. Get Data by clicking databases/tables/columns/views/stored procedures or perform custom SQL queries. It shows ADO Programming and Some API. In this version I have fixed some bugs from previous releases and improved the functionality. Now you can view the "source" of all stored procedures and views in SQL-Server. Thanks to all who came with feedback/suggestions in previous versions of this application. The project is made with VB 6.0 Service Pack 5 and I used MDAC 2.5. Please help me grow as a programmer and come with feedback/suggestions.
This is a very simple API wrapper in a bas module for playing a wav file within a resource file using the API function sndPlaySound. I tried to figure out how to do this for some time and thought I should share it with you. I belive that for you experienced programmers, out there who are used to work with API, this is simple. But hopefully it will help out someone. I have included the bas module in case the formatting of the code will be to hard to read. I got great help from sotirisdj who had a project who thought me this technique.