Re: Custom Resource Type problems

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Shon Shah [MSFT] (shonsh_at_online.microsoft.com)
Date: 02/11/05


Date: Fri, 11 Feb 2005 10:44:23 -0800

Ryan,

Can you please ensure that you are using the latest platform SDK and the
CResTyp.awx that ships with it (the one that has Feb 2003 timestamp)? The
one that ships with VC6 is ancient one and should NOT be used.

Can you please ensure that resource DLL and extension DLL do not have a
dependency on a missing DLL? i.e. are you able to load the resource DLL on
the node and extension DLL on node as well as client using depends.exe
without any issues?

The samples and the code generated using wizard that ships with latest
platform SDK should build without any errors in VC6. The compiler errors
mentioned might indicate that the SDK include paths are not correctly setup
in VC6.

I quickly used the wizard that ships with latest platform SDK to generate
code for a resource and extension DLL with following settings (can be found
in settings.txt), built it using VS .NET 2003 and was able to create the
resource type and the resource without any issue on W2K3 cluster.

=====
A Resource DLL project and a Cluster Administrator Extension DLL project
will be generated for the "Ryan" resource type.

The following options have been chosen:
- Controls an application: "%windir%\\notepad.exe"
- Extend Cluster Configuration Setup Wizard.
- Extend context menus for resource type "Ryan".

The following properties are used with this resource type:
test1 - type SZ
test2 - type DWORD Default=0 Range=(0,4294967295) (Required)
=====

Hope this helps.

-- 
Regards,
Shon Shah
Software Design Engineer/Test
Microsoft Cluster Server
This posting is provided "AS IS" with no warranties, and confers no rights. 
Use of included script samples, if any, are subject to the terms specified 
at http://www.microsoft.com/info/cpyright.htm
Please do not send email directly to this alias. This alias is for newsgroup 
purposes only.
<ryan.rounkles@gmail.com> wrote in message 
news:1107973873.187834.68230@f14g2000cwb.googlegroups.com...
>I have implemented a custom resource type and admin extension, using
> the cluster resource wizard in VS6. I then import the project into
> VS.NET 2003 (customer requires all code be compiled with VS.NET 2002 or
> 2003), write code, compiles fine. When I install the resource and
> extension, everything appears fine (name shows up correctly in the list
> of resource types), but any attempt to create the resource fails with
> the message
>
> "An error occurred attempting to read properties for the '%name%'
> resource:
> The instruction at "0x
> Error ID: -1073741819 (c0000005)."
>
> I've googled this, no help. Some comments in a microsoft webcast were
> pertinent, but didn't fix the problem. If I create the resource from
> the commandline (cluster.exe) that succeeds, but then attempts to set
> the private properties (through GUI or cmd line) fail with the message:
>
> "An error occured attempting to add pages from the
> '{REALLY_LONG_GUUID}'extension DLL:
>
> Unspecified error
>
> Error ID: -2147467259 (80004005)."
>
> This has me completely befuddled. To make matters worse, the code
> generated from the cluster resource wizard in VS6 won't even compile
> under VS6, not even the examples provided by microsoft (errors with
> undefined constants and functions). Any and all help is greatly
> appreciated.
> 


Relevant Pages

  • Re: internationalisation
    ... So, for dialogs, we keep all of a projects dialogs in the exe rather than ... separate copies in each language dll. ... It shows you how to build dialogs without resource files. ...
    (microsoft.public.vc.mfc)
  • Re: ? Segregating a Dialogs Code (Particularly Resources)
    ... I typically put all of the common code in a single Dll, ... the projects that need access to the common code. ... Now the problem with my solution is that if one control, ... both resource files and drag the resources over to the new project. ...
    (microsoft.public.vc.mfc)
  • Re: multi-process singleton DLL
    ... creates an IPC server and manages the DLL resource. ... They both interface using this DLL I wrote to take care ... communicate with the IPC server, ... could bind to the protocol driver, the other would get "The requested ...
    (microsoft.public.vc.language)
  • Re: How to write a program with multi-language support but not needed to define "UNICOE"?
    ... Put each resource file with different langauge in different dll. ... standpoint of providing UI in multiple languages, ...
    (microsoft.public.vc.mfc)
  • Re: resource dll questions
    ... The root cause was that the dll was probably not ... Wonder why the nmake command line options failed. ... > If the resource DLL is not in the cluster directory and you do not specify ... > the full path while creating the resource type, ...
    (microsoft.public.windows.server.clustering)