.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Is my DLL an MFC extension DLL?

Posted By:      Posted Date: October 26, 2010    Points: 0   Category :.NET Framework


I have a third parity DLL, and it comes with a .lib and .h file.

With DependencyWalker I can see that this DLL uses MFC71.DLL, but in the .h-file, I can see that the interface only includes basic types in the function signatures. Is there a way to tell if this DLL can be called from a regular DLL, or if the interface of this DLL requires the caller to implement MFC?

(We also have a C++ source code for GNU GCC compiler, and I'm having a hard time trying to link this third parity DLL into this C++ project. I suspect that it's because of the interface. From what I've been reading on MSDN, it is not possible to inlude a MFC extension DLL in a regular C++ project.)


Best Regards,

Andreas Lundgren

View Complete Post

More Related Resource Links

The Decorator Pattern & Extension Methods

The decorator pattern provides a formal way to add new functionality to an existing type, without sub-classing. First question: What is wrong with classical inheritance? In and of itself, nothing is wrong with the good old Is-A relationship. It is very common to derive a new class from an existing base class in order to override a few virtual members, and add a pinch of new functionality.

The Decorator Pattern & Extension Methods

Numerous design patterns exist in the software world today, and ultimately nothing is preventing you from making your own (if people buy into it or not is another question). Furthermore, there is no 'master list' of patterns that all developers agree upon. While this is true, if you pick up any book on the subject, you will find a set of very common patterns most programmers agree are very useful. Many of these patterns were first formalized in the seminal book on the subject, Design Patterns: Elements of Reusable Object-Oriented Software (aka, the Gang of Four [GOF] book; not to be confused with the UK punk band of the same name).

Code spelling checker extension for visual studio 2010

Building a spelling checker for source code as an extension for visual studio 2010.

Team System: Building a Visual Studio Team Explorer Extension


There's no magic behind how the TFS Power Tools were integrated with Team Explorer, and we'll show you how to expose your own custom features inside the Team Explorer window.

Brian A. Randell, Marcel de Vries

MSDN Magazine December 2009

Basic Instincts: Extension Methods


This column discusses one of the new features of Visual Basic 2008-Extension Methods. This powerful new feature was introduced to support LINQ. See what extension methods are, how to apply them yourself, and get some great usage tips.

Adrian Spotty Bowles

MSDN Magazine November 2007

Visual Studio 2005 Extension for Sharepoint Workflow.


Hi All,

I want to develop sequential workflow using visual studio 2005. I have development server with Windows Server 2003 x86 installed.

Could anyone advise will i need to install Sharepoint first to have workflow feature in visual studio.

Also what all extension component i need to install to develop Sequential Workflow for Sharepoint 2007 document library.


Many Thanks


-- Regards Sandeep

Extension "less" url for .cshtml files!



When I deployed my website from webmatrix to my own server everything worked as expected. However, in my website I have defined links dynamicly without the ".cshtml" extension. When I view my site - for some reason the server cannot find the file specified. That is until I add .cshtml to the end of it...

I have installed (from web platform installer 2) all the url "stuff" I could find - am I missing something?


Inside the "Default Browser Switcher" extension

You may have already heard of the recently WoVS extension "Default Browser Switcher" (download from Visual Studio Gallery or from Extension Manager inside VS) that helps in choosing what browser you want to launch from VS while debugging your ASP.NET applications. You can start by reading the original post from Scott Hanselman where he describes some interesting inner workings of VS related to how it handles the launching of the VS default browser. Note this is the default browser to be launched from VS which may or may not be your default system-wide browser. If you're brave enough to survive Scott's post then you're ready to enter some even more obscure details: how to package that into an extension for Visual Studio. We started by defining the set of commands we wanted to support and we ended up with ten commands total. That is a "Set default Browser to X" command multiplied by Internet Explorer, Firefox, Chrome, Safari and Opera and a "View in Browser X" command multiple by the same number of browsers. The first set would go into a VS Toolbar and the second set would go into a sub menu whose parent would be a new "View in Browser" command. To author the UI we used the very handy and friendly VSPackage Builder which allowed us to quickly design our 10 commands and place them where we wanted inside VS:   (Yes, that's a DSL for authoring your own custom UI inside

What registry keys are responsible for file extension association?

I'm trying to associate file extension to start some type of files with my application. Which registry keys I have to modify to be sure, that when user double click at file it opens with my application. And how get delete/modify permisions to key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\<extension>\UserChoice"? This key created after setting default program by "Open with" dialog. I've tried: string ext=".eee"; RegistryKey r = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\"+ext); RegistryPermission f = new RegistryPermission(RegistryPermissionAccess.Write, r.Name); f.Assert(); r.OpenSubKey("UserChoice", true); //at this step "Requested registry access is not allowed." exception occured

Custom markup extension or custom binding class?

Hey experts! I'm doing a project where I've encountered an issue I'd love some feedback on. I've created a custom Markup Extension called MyMarkupExtension, with two properties.  I can use it like below: <cc:DialogBorder Title="{local:MyMarkupExtension MyProperty='property value goes here', AnotherProperty='and another value here'}"> It works, and in 99% of the cases, it fits my needs perfectly.  In 1% of the cases, the values of MyProperty and AnotherProperty can not be set at design time, so I'd need some binding there. <cc:DialogBorder Title="{local:MyMarkupExtension MyProperty={Binding Path='SomePropertyOfTheViewModel'}, AnotherProperty='and another value here'}"> This presents my two questions (yes I did make only one post for 2 questions, bad karma...): 1. the binding inside my markup is not legal, after all, a binding can only be set on a DependencyProperty.  Is there any workaround which I could use for this problem at hand? In case there isnt... 2. I'm thinking about dropping the markup extension and creating a custom binding instead.  For this, I'd have to inherit from bindingbase, and so far I've read online that's one ____ of a nightmare.  Does anyone have some good code / examples on where to start? "The improbable we do, the impossible just takes

Question on Custom Delivery Extension

All, I want to add new File Based report subscriptions option as "Custom CSV Format". I am bit confused about Custom Delivery Extension and Custom Rendering Extension. My question is for this requirement, should I create Custom Delivery Extension or Custom Rendering Extension? Becaue What I see in rsreportserver.config file, the Rendering Extension defined under <Extension></Extension> tag are available for File Based report subscriptions So is there any relationship between them? Please point me to right direction.

Question on Custom Delivery Extension

All, I want to add new File Based report subscriptions option as "Custom CSV Format". I am bit confused about Custom Delivery Extension and Custom Rendering Extension. My question is for this requirement, should I create Custom Delivery Extension or Custom Rendering Extension? Becaue What I see in rsreportserver.config file, the Rendering Extension defined under <Extension></Extension> tag are available for File Based report subscriptions So is there any relationship between them? Please point me to right direction.

Visual Studio Extension: Save UML diagram as image

I am auditing one big legacy application. I use Visual Studio 2010 modeling projects to visualize the design of this legacy application. When I wanted to get my UML diagrams to image files so I can insert them to documents I found no option for it. As it turned out we have to write extension for modeling projects and deploy it as Visual Studio 2010 extension. Here is the installer and source package of my UML.SaveAsImage extension. UML.SaveAsImage.zip VS2010 solution | 48KB UML.SaveAsImage.Install.zip VSIX insaller | 4KB I still cannot believe that we need to write extensions to get our UML diagrams to image files but okay, it's done now and let's say - problem is solved. At least this one. In my work I used code example by Cameron Skinner. He has very good blog posting titled as Save a diagram to Image File. Here are steps how I wrote this extension. 1. Create new Layer Designer Command Extension project As a first thing you should create layer designer command extension project. If you don't have support for modeling projects you should take more powerful edition of Visual Studio 2010. Name it your project as you like and click OK. 2. Add functionality to Command class You can find Command class from your new project. This class is created by default. Here is the modified code from Cameron Ski

Report subscriptions fail due to security extension exception

Hi,     We are using SSRS 2008 with Custom Security extension for all authentication and authorization.     When trying to use report subscription attaching actual reports (not a link to the report), we get the following error. Question:       1. Can we use report subsription (as attachment) with custom authentication?       2. Can we use external email addresses for email subscription? Actual Error: processing!WindowsService_10!1130!07/08/2010-11:35:11:: w WARN: Data source 'Historic_Agreement_Report_Model': Report processing has been aborted. processing!WindowsService_10!1130!07/08/2010-11:35:11:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;  Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.    at Microsoft.ReportingServices.Library.Security.get_AuthorizationExtension()    at Microsoft.ReportingServices.Library.Security.get_CachedAuthorizationExtension()    at Microsoft.ReportingServices.Library.Security.CheckAccess(I

How to show link file extension (lnk) in Explorer

My folders normally shows the file name extension.  But I have a folder full of window links and DOS links. I'm sure that is not the correct termioligy but it is the best I can do. I think I'm talking about .lnk and maybe .pif files. Anyway, the extension do not show in the folder listings. Can I make them show?   Thanks  

Extension Method ForEach for ArrayList class

Hi,I need to create an extension method(ForEach) for arraylist classI have created an extension method for Array class but cannot do that for arraylist.Please help me namespace MyExtension { public static class IEnumerableExtension { public static void ForEach<T>(this IEnumerable<T> list, Action<T> action) { if (action == null) throw new ArgumentNullException("action"); foreach (T item in list) { action(item); } } } } Any Help Shall be appreciatedThanks

Printer Delivery Extension Error

I am trying to get the Printer Delivery Sample to work, and I have made all the changes, created the DLL, and changed the config files. It works if I am logged on to the server as the server admin, but if I try to run it from my workstation, I get this error, yet I am an admin on the SSRS system (I get the "Site Settings" link in the upper corner). SSRS is running under a domain account, and the printers are installed on the server under the same domain account. A subscription delivery error has occurred. (rsDeliveryError) One of the extension parameters is not valid for the following reason: Printer \\server\printer is not currently installed (rsInvalidExtensionParameter) Any thoughts why it works on the server, and not remotely? Thanks Rick 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend