COM,MSVC,MFC,ATL,IDL,Very,Simple,Server,Clien
Quick Search for:  in language:    
COM,MSVC,MFC,ATL,IDL,Very,Simple,Server,Clien
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
C/ C++ Stats

 Code: 481,463 lines
 Jobs: 1,069 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for C/ C++.
SQL 'LIKE' clause clone in C
By José Luis Gallego on 10/19


Determing File Version, System Language and Memory Status
By Ixac on 10/19


How to create custom messages
By Xeron on 10/18


DeathBrain
By DeathBrain on 10/18


Click here to see a screenshot of this code!A C++ Tutorial for Complete Beginners #2
By Jared Devall on 10/18

(Screen Shot)

Click here to see a screenshot of this code!_PAGE REPLACEMENT ALGORITHMS (FIFO)_
By ENRICO X on 10/18

(Screen Shot)

extract file from resource and write it to disk
By cpsim on 10/18


Click here to see a screenshot of this code!CurrencyConvert er 2002
By Xeron on 10/17

(Screen Shot)

File Saver/Opener
By Jek on 10/17


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

A Very Simple COM Server and Client in MS VC++ 6.0 without using MFC,ATL or IDL.

Print
Email
 
winzip icon
Submitted on: 1/11/2001 7:53:29 PM
By: Albert Gomez  
Level: Intermediate
User Rating: By 6 Users
Compatibility:Microsoft Visual C++

Users have accessed this code 9818 times.
 
(About the author)
 
     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
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
1/12/2001 6:32:14 PM:Brian G.
Sounds exactly like what I want, 
Haven't tried the code but I will rate 
Execellent.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/17/2001 9:37:58 AM:Carlz E. Francois
Hello! Are you today?
Please help me 
up. Can you help me with this 
assignment?
An online auction 
house.
There will be 3 types users 1) 
buyer, 2) seller, 
3)administrator(optional).The users 
will have different access privilleges. 
A database will keep track of user 
profiles and auction activity. Please I 
hope you will help me. Thank you. My 
e-mail address is 
CarlzEFrancois@hotmail.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/1/2001 6:36:38 AM:Rachel
I'm working on project that user 
selects five different numbers 
integers), that are placed in one 
array, then button 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/22/2001 7:38:34 PM:Liquid
Unable to reference pig or nicepig in 
VB,VFP, or Delphi...  :( 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/18/2001 9:20:56 PM:Huang Duzi
<b><u><font color=red>
Very good 
code.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | C/ C++ Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.