473,324 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Can I change the PropSheetHost SDK sample project from .exe to dll

Hi,
I have found a C++ SDK sample file under the directory, microsoft platform
sdk>Samples>NetDS>ActiveDirectory>PropSheetHost. I'm using MMCLIB downloaded
form sourceforge, a C# program that uses the C++ shimm libraries to build a
snapin for Active Directory.

My question is, I changed the SDK PropSheetHost so it outputs a dll
(dynamic) instead of generating a .exe application file, is this OK to do?
So far, it generates the dll no problem.

My other question is, Do I need to add more code to it to make it an
exported dll that I can use pinvok to call from the C# code snapin that I'll
be writing using the MMCLIB? Or do I use the interop, which I will need to
create a RCW I guess? In the main() of the PropSheetHost, it has CoInitilize
at the begining, and CoUnInitlize at the end, but it also generates a .exe
file and runs independently, that's got me confused.

Thanks.
--
Thanks.
May 16 '06 #1
0 1076

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: james | last post by:
I know this has been asked a million times, but I have read all the MS links to installing the .Net framework with a setup project and I still cannot figure it out. First of all the docs keep...
0
by: Rob Richardson | last post by:
Greetings! I want to learn how to write custom editors for components. Microsoft provides the FlashTaskBar sample files to illustrate the technique. Notice that I did not say "sample...
1
by: Rog | last post by:
Hello, Yesterday I downloaded IEwebcontrols.exe and TreeviewControl.msi from http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnaspp/html/aspnet-...
1
by: Rich | last post by:
Hello, I downloaded a sample asp.net app (in C#). When I try to run it I get the following error message" "Error while trying to run project: Unable to start debugging on the web server. ...
4
by: Just D. | last post by:
How can we change the property of one subdirectory of the Virtual Directory? One of the directories should be granted "Write". Should we delete this Virtual Directory to recreate it with the...
3
by: steve | last post by:
Hi All How can I get the datagridview to redraw after changing the rowtemplate.height at runtime ( it is databound to a datatable) I have tried datagridview1.refresh etc to no avail (The row...
12
by: docschnipp | last post by:
I have moved a project from VS2003 to VS2005 and now all references point to ..NET2.0 libs. How can I change this back to 1.1, but still use VS2005? I need this for compatibility reasons. ...
1
by: akira32.comp.lang.c++ | last post by:
How do I run this project(http://www.acm.org/tog/resources/SPD/spd3_14.zip)? By which software? I use VC++.Net 2005 now,Could I transform it to .Net's Project? The SPD distribution contains the...
4
by: Michael | last post by:
I have a repeater web control. Currently I want to change some row's color based on defined condition. Is there any code sample demonstrating how to accomplish it? Thanks.
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.