Results for "Volume: 2002C"
A Very Simple COM Server and Client in MSVC++ 6.0 without using MFC,ATL or IDL. This very simple com server is something I had been looking for to help me understand the insides of the "black box" that is COM as presented in MFC and ATL. As a developer learning COM, I was unable to find an extremely simple, clear implementation of COM without having to also deal with ATL, MFC or the IDL (not that they are difficult to understand, but just additional overhead). I hope this will be useful to others who want to understand some of the insides not usually seen when using the AppWizards. The Server is implemented as an empty win32 simple dll project with no original files or text created by Visual Studio, other than the Stdafx.h and Stdafx.cpp files. The client was created as an empty simple win32 console application, including no generated code from Visual Studio. The Globally Unique Identifiers were created using Guidgen.exe included with Visual Studio. After downloading the code, unzip and open the file Pig.dsw in MS Visual C++. Both Pig and Pig Client should open. Compile Pig first, then register the dll using regsvr32.exe. (inside the directory containing Pig.dll, run regsvr32 using the command "regsvr32 Pig.dll"). After successful registration, compile and run PigClient. You should get a messagebox indicating the server was accessed successfully. Albert
This example will show you how easy it is to draw objects using openGL. It draws a giant pyramid and you can walk around inside this foggy temple. Not much to it but it is really cool to learn from. If there are any probs email me.
ICQ-Pager is a complete GUI-application which lets you send a message to the ICQ-Pager. The downloadable zip-file includes the complete project for MS Visual C++. The subfolder 'Release' contains the compiled and 'ready to run' exe-file. The sourcefiles are fully documentated, so this is a good start if you want to learn something about basic GUI- and winsock-coding. The code does not use the MFC, just standard WIN-API.
This is a game based on Game of BRICKS. Written in C++ ,this is very good if you a begginer to writing games.
This class encapsulate QueryPerfomanceXXX API functions to mesure small time intervals. You can use this class to mesure how much time your code take. This function can mesure time intervals near 0.1 ms , 10 times better then timeGetTime() API or GetTickCount() that have an error of 50ms. Example: Dim m_performance As CPerformance Dim i As integer Set m_performance = new CPerformance m_performance.StartCounter() 'Do something For i = 1 to 1000 next i m_performance.StopCounter() Debug.print m_performance.TimeElapsed() 'Time in ms (1/1000) s 'this is a float number 'ex: 1.54 ms
Generic sort class. Works with any in memory structure and will sort in any order. Does this by exposing two simple to code events: isLess and SwapItems.
Takes a roman number and convert into decimal.
I am making a game that needs the ability to play multiple sounds at one time. After asking around at many fourums, everyone said "you will need to use DirectX" So I downloaded the SDK, and found it kind of confusing, and i dont like to use multiple classes for one purpose, so i took the examples from the SDK and shrunk them down into one easy-to-use class. This class allows you to load up a WAVE, alter the panning, frequency and volume.. and finally play it. If you need to run 2 wavs at the same time, load up another class and bam, your ready to go. It basically takes 3 lines of code to play a sound in DirectX7 with this class! have fun!
Just a skeleton to look out when building yours. So you can remember how each part goes into the window skeleton using the platform SDK. My friend asked for this.
Heres a little Winsock IP Chat. Using a rich control. A Perfect example if you dont know how to use winsock.h
This code will open a DAT file in the c:\windows\history folder and pull out all sites visited
Class module for resizing/repositioning controls on a form. See source code for details.
Allows you to backup a source file and have the destination file name be the current date. Great for database backups!
A class for creating Windows, Buttons, Edit boxes, and Multiline Edit boxes. It is very simple to use, and later I will add more types(Listbox, static(label), frame, etc). I included project files for Brland C++ Builder 5, and MS Visual C++ 6.
This very simple routine avoid checking if a correct path already exist before using it and, if not, create it exactly as you want. Imagine you wont to write a log file in a path defined as: C:\Myapplic\Services\logs\LOG.TXT you must check before if the directory Myapplic exist and then check all other subdirectory (Service,logs) before opening the file For Output. Probably you will use a lot of Error Resume Next, Mkdir(...), Error GoTo 0, dir(....) and so. Instead you can use this routine as described below: Myfile="C:\Myapplic\Services\logs\LOG.TXT" Call CheckDir(Myfile) nf=FreeFile() Open Myfile For Output As #nf . . . Close #nf and including the following .bas module: Public Sub CheckDir(file) Ix = 4 'Initial index KSlash = InStr(1, file, "\", 1) 'Search for first "\" For Cnt = 1 To Len(file) 'Run until discover 'other directories KSlash = InStr((KSlash + 1), file, "\", 1) If KSlash = 0 Then Exit For 'Last slash dir1 = Left(file, (KSlash - 1)) cdir1 = Mid(dir1, Ix) Ix = Ix + Len(cdir1) + 1 hh = Dir(dir1, vbDirectory) 'If Directory doesn't exist, create it If StrComp(hh, cdir1, 1) 0 Then MkDir (dir1) End If Next Cnt End Sub
An *unfinished* (but well-working* RPG, that is a GREAT learning tool for aspiring game programmers who do not know a lot about C++. The game also has a pretty cool battle system.
it is a simple calculator - it shows the basics of c++ - please vote for me
This is a reasonably simple piece of code to generate a random hitec phrase. Its something I made just for the practice, but has a nice demonstration of switches and random number generation. Also now generates a logfile and reports on the size of that logfile. (I plan to infect Bill Gates PC with this a sa virus and make it pop up random phrases every 7.65 minutes. MWA HA HA HA HA!!!!)
this code is for the person who is dumbfounded about arrays. In the example charactor arrays are fully explained in detail. This is a must download for a beginner. Web: http://neo.8op.com/~fatal/
This class was developed to assist me in creating an assembler. I found that by making my own class to deal with strings I could better understand what whas happening.