-
- Visual C#
by Matthew Kane
- 7211 Replies
- Matthew Kane Views
- Last post
-
error in c# 2.0 specification
- The C# 2.0 Specification says (in 23.1.6): "Although the ordering of members within a type is not significant to C# code...". However, the C# 1.2 Specification says (in 10.4.5): "Thus, when a class is initialized, all static fields in that class are first initialized to their default values, and then the static field initializers are executed in textual order. Likewise, when an instance of a class is created, all instance fields in that instance are first initialized to their default values, and then the instance field initializers are executed in textual order." (emphasis added). Therefore, the fact that "the ordering of members within a type declared in multiple parts is undefined" (C# 2.0 Specification, ibid) is significant to C# code in that the order of initialization of fields declared in separate pieces of a partial class is undefined.
-
- IE Development
by Colin Bowern
- 2881 Replies
- Colin Bowern Views
- Last post
-
invalidcastexception when running pipelines through unit tests
- When running pipelines through a unit test we receive a random InvalidCastException coming from the MtsHelper
Test method ShoppingCartTest.UpdateTest1 threw exception: System.InvalidCastException: CoCreateInstance returned an unexpected type: expected Microsoft.CommerceServer.Internal.Orders.MtsHelper, received Microsoft.CommerceServer.Interop.PooledPipelineClass..
at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj)
at Microsoft.CommerceServer.Runtime.Orders.BasketGroupLoader.Load(String storedProcName, ListDictionary sqlParameters)
at Microsoft.CommerceServer.Runtime.Orders.OrderContext.GetBasket(Guid userId)
at CommerceServer.ShoppingCartSystem.Retrieve(Guid basketId)
at ShoppingCart.get_Basket()
at ShoppingCartTest.UpdateTest1()
When running under the normal web context everything is fine. When we re-run the test the problem goes away most of the time. I was someone could point out why the CreateInstance member would return an incorrect type
Cheers,
Colin
-
- Windows Forms
by Gabriel Vila
- 12743 Replies
- Gabriel Vila Views
- Last post
-
create the drop-down list of controls in a properties window like vs
-
I have create a windows forms designer using the MSDN sample: DesginerHost.
In this designer I have a PropertyGrid control working fine. Now i need to add a Drop-Down List for contains the names of all the controls that i put in the desginer, so like VS Designer, when i select a control from the drop-down list, the designer show me this control selected and its properties in the PropertyGrid. I have tried to implement that, but I have some problems.
Does someone have an example or same advise of how can i implement this
Thank,
Gabriel
-
- Visual Studio
by paddyoc
- 16716 Replies
- paddyoc Views
- Last post
-
security bypass(vst 2003)
- In the older discussion group I found a post relating to the warning messages generated on the "Users" tube re: unsafe macro's etc.
Albert posted :
"Simply add the following keys to your runtime packing (the package wizard
does have provision for adding regs keys).
ROOT:Local Machine
Key: SOFTWARE\Microsoft\Jet\4.0\Engines
Name:SandBoxMode
Value:#00000002
ROOT:Local Machine
Key: Software\Microsoft\Office\11.0\Access\Security
Name:Level
Value:#00000001
If you add both tof the above, then you get no security prompts at
all...even if the later jet sp8 is NOT installed. It is clean...and no
prompts....
--
Albert D. Kallal (Access MVP) "
Knowing the dangers of the registry and being "thick", I have the following questions:
For the "Engines" entry, do I include the "#" symbol in the wizard field and willl the entry be ADDED to the "users" registry if they don't have Office (Jet) on their machine
and
Will the "Security" entry be ADDED to the "users" registry if they don't have Office on their machine The "#" question applies here as well.
Note: posted on the original thread but as it was pretty old, not sure if Albert would see it.
As I don't have a "test bed" machine, I sure don't want to mess up a "users" machine!
Sure would appreciate any advice, Thanks
-
- Game Technologies
by frankhevans
- 6072 Replies
- frankhevans Views
- Last post
-
transformations on mesh primitives.
- QUESTION:
Is there a way to create a Direct3D primitive that is NOT centered around the origin
DETAILS:
One creates a mesh primitive as follows:
Mesh aMesh = Mesh.Box(device, width, height, depth);
The resulting mesh is created around its own origin, in its own coordinate system. I would like for the mesh to be defined with an offset from the origin, and with a specified rotation.
1. I can transform the worldview when rendering, but I want a collection of primitives which share a coordinate system, and I only want to execute a single transformation.
2. I can iterate through the VertexBuffer and translate/rotate the vertices. For example:
======================================for (int vertIndex = 0; vertIndex < vertices.Length; vertIndex++)
{
CustomVertex.PositionNormalTextured aVertex =
(CustomVertex.PositionNormalTextured)vertices.GetValue(vertIndex);
newVertices[vertIndex] =
new CustomVertex.PositionNormalTextured(aVertex.X + offset.X,
aVertex.Y + offset.Y,
aVertex.Z + offset.Z,
1,1,1, 0,1);
}
aMesh.SetVertexBufferData((CustomVertex.PositionNormalTextured[])newVertices,Microsoft.DirectX.Direct3D.LockFlags.None);=====================================
And if that is the only way, then that is what I will do. But it feels like I am doing things the hard way.
Help appreciated. Thanks in advance...
-
- SharePoint Products
by Mohammad Akif
- 1888 Replies
- Mohammad Akif Views
- Last post
-
financial services architect forum
- Hello,
We held a Financial Services Architect forum in Canada recently where we disscussed a number of topics related to the financial industry, you can read a detailed 3 part report on the forum at http://blogs.msdn.com/mohammadakif , I am keen to know what architects working for the financial industry in other parts of the world have on their minds and suggestions for potential topics of discussions in these topics, some of the topics we covered in the session are as follows:
1) Microsoft’s commitment to Interoperability, Software Architecture, Integration and Enterprise Class Computing – Mark and Randy, Directors at Microsoft Canada
2) Role of architecture in a modern progressive organization –VP of Enterprise Architecture at RBC
3) J2EE and .NET interoperability – Chief Technology Officer of JNBridge (http://www.jnbridge.com)
4) Justifying the value of Services Oriented Architecture – Mohammad Akif, Microsoft
5) SOA governance, managing J2EE and .NET service – Founding architect of Amberpoint (http://www.amberpoint.com)
6) Identity Management and Federation panel discussion – Enterprise Architect from Bank of Nova Scotia, System Designer from Manulife Insurance and a partner at ObjectSharp along with a large group of enterprise and solution architects.
7) Data Center Virtualization panel discussion – Enterprise Architect from Royal Bank of Canada and Bruce Cowper from Microsoft Canada along with a group of infrastructure architects
8) Windows Vista and Office 12, Jerome Carron from Microsoft
Best regards,
Mohammad
-
- Audio and Video
by Gerson Rolim
- 1166 Replies
- Gerson Rolim Views
- Last post
-
subtitle feature in wma and windows media player
- Hi,
I am developing an audio and ;video on demand portal based on WMA & WMV ;and need to be able to add ;subtitles to ;my content ;in WMP 9/10.
Do you have any tip or sample code to help me in this subject
Any help will be really appreciated.
Thanks in advance,
Gerson
-
- Visual Basic
by PiRatCollective
- 8556 Replies
- PiRatCollective Views
- Last post
-
system error &h80131c25&
- Anybody know what System Error &H80131c25& is
got it while debugging a VB 2005 program that I created.
-
- Microsoft ISV
by JorgeFF
- 1294 Replies
- JorgeFF Views
- Last post
-
dbgrid not working in vba
- I'm working on a machine with Windows XP SP2 and MS Word 2003 SP 2. There's NO Visual Basic installed.
I open Word, then VBA, open a form, and try to create a DBGrid control. I get a Microsoft Visual Basic error message (in Spanish): "No se puede crear el control porque carece de la licencia adecuada."
In English, it is something like: "Cannot create the control because you do not have the proper license."
I have no .lic file referring to DBGrid in my system. (I don't know if I need one).
The 3 DBGrid files (DBGrid32.ocx, DBGrid32.oca, and DBGrid32.dep) are in c:\Windows\System32.
I have registered DBGrid32.ocx using Regsvr32, and I was successful, according to the message I got.
However, the problem persists. Can anybody please tell me what's going wrong, and how to solve it
Thank you very much, Jorge.
PS: The same thing happens when I try to create an MSFlexGrid control.
-
- Visual FoxPro
by Aleniko29139
- 793 Replies
- Aleniko29139 Views
- Last post
-
copy classes or subclass from a classlib
- I am obviously still learning and making changes in my original classes in my first application.
I have a second application which I am developing now. The second application will need to use classes similar to the first application, but some classes will require ; minor and others major changes.
I am not sure if I should copy the classlib and modify it for the second application, or sub-class from the first class lib. Also, is there an easy way to copy individual classes from one classlib to another
Please keep in mind that the first classlib will be modified heavily in the future.
Any ideas for a strategy would be greatly apreciated.
-
- Smart Devicet
by Jose Giltano
- 7432 Replies
- Jose Giltano Views
- Last post
-
wm5.0 w/ msfp image clarification
- Does the WM5.0 w/ MSFP image that was provided with Device Emulator 1.0 provide the security issues that are being discussed in this blog post:
http://blogs.msdn.com/windowsmobile/archive/2005/12/17/security_model_faq.aspx
The issue I am having is I am attempting to test an ActiveSync CeRapiInvoke call to an unsigned DLL on the device. It fails on WM5.0 w/ Phone devices but on the Emulator the calls goes thru.
ALL the DLL does is make a call to KernelIoControl to get the unique device identifier, which I am told is supposed to be blocked on the new security model. But when I test this on the emulator image, it goes thru and returns back to me a value. Thanks in advance.
-
- .NET Development
by l33t
- 13098 Replies
- l33t Views
- Last post
-
wmi redist
- is their a redist version of WMI, i have a bootstrapper setup to install framework and i want to do it with WMI as well, but i want the componets to be included in my package for a CD, or for one convienient download in a self extracting zip.
-
- Windows Vista
by SengHo
- 6718 Replies
- SengHo Views
- Last post
-
need sample of sequential workflow in asp.net
- Hi, Can anyone point me to working samples of asp.net app that is using a sequential workflow. Most of the asp.net samples I downloaded are using statemachines. I have a few statemachine web sample apps that I have used as a starting point but replaced the statemachine with the sequential workflow. I want to see from the sequential sample if I am missing anything and also use it as a guide. Hopefully someone can point me to a working sample app this way I don't have to post back and forth trying to explain my code.
There currently are no errors generated by my app and the PersistenceService seems to be working because the PersistenceService database does contain the workflow data but the workflow is not flowing. I have put break points in all the backend codes and functions and they aren't getting triggered. The only code that are executing are the codes that are in the workflow eventhandlers. Also I have the workflow and all the related objects in a separate project and have been able to successfully referenced, executed and it flowing correctly from a Windows form but calling that exact same class from web form it doesn't flow. If the problems is with my workflow object persisting then it should at least execute the first activity during the initial creation of the workflow but it is not even doing that.
-
- Visual C++
by eldiener
- 5780 Replies
- eldiener Views
- Last post
-
syntax for calling down the hierarchy for virtual property or event of clr class
- I have three CLR classes, let's call them Base, Derived, and MostDerived,
with Derived derived from Base and MostDerived derived from Derived.
The Base class has a virtual property and a virtual event.
The Derived class does nothing with this property and event
but the MostDerived class overrides each, and attempts merely
to call down the hierarchy:
------------------------------------------------------------------
------------------------------------------------------------------
ref class Base
{
public:
// Constructor, destructor, member functions etc.
virtual property int AProperty
{
int get() { return dAProperty; }
void set(int value) { dAProperty = value; }
}
virtual event System::EventHandler ^ AnEvent
{
public:
void add(System::EventHandler ^ ev) { dAnEvent += ev; }
void remove(System::EventHandler ^ ev) { dAnEvent -= ev; }
protected:
void raise(System::Object ^ sender,System::EventArgs ^ args)
{
if (dAnEvent)
{
dAnEvent(sender,args);
}
}
}
private:
int dAProperty;
System::EventHandler ^ dAnEvent;
};
---------------------------------------------------
ref class Derived : public Base
{
public:
// Constructor, destructor, member functions etc.
};
---------------------------------------------------
ref class MostDerived : public Derived
{
public:
// Constructor, destructor, member functions etc.
virtual property int AProperty
{
// int get() override { return Derived::AProperty::get(); } // (1) does not work, recursive
int get() override { return Derived::AProperty; } // (2) works properly
// void set(int value) override { Derived::AProperty::set(value); } // (1) does not work, recursive
void set(int value) override { Derived::AProperty = value; } // (2) works properly
}
virtual event System::EventHandler ^ AnEvent
{
public:
// void add(System::EventHandler ^ ev) override { Derived::AnEvent::add(ev); ) } // (1) does not work, recursive
void add(System::EventHandler ^ ev) override { Derived::AnEvent += ev; } // (2) works properly
// void remove(System::EventHandler ^ ev) override { Derived::AnEvent::remove(ev); } // (1) does not work, recursive
void remove(System::EventHandler ^ ev) override { Derived::AnEvent -= ev; } // (2) works properly
}
};
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
The syntax for calling down the hierarchy, number (1) in each of the examples for
the MostDerived class, which is most natural in C++ reusing the exact same signature,
produces a recursive call rather than calling down to the base class implementation
inherited by Derived. Only the alternative syntax (2) works in each case, although
it is distinctively odd to chain down in this way and took me a while to discover
it both for a property and an event.
Note that if the immediate base is the implementor of the property or event, both
syntaxes work properly.
Is this a bug in C++/CLI or is it "just the way C++/CLI works" Clearly in
standard C++ it is a bug since calling down the hierarchy as in the various (1)
above should find the Base class's implementation as inherited by the Derived
class.
If this is a bug I will report it to Microsoft, with the workarounds which do work,
while if this is "just the way C++/CLI works" of course I will not bother but just
mark it down in my memory as just another way in which C++/CLI is different from
the C++ standard.
-
- VS Team System
by brian_j
- 15574 Replies
- brian_j Views
- Last post
-
reporting on plain text fields in work items
- Hello. I am relatively new to the TFS game, but my company is jumping in with both feet, so I am trying to get up speed. Anyway....I've modifed both the Task and Bug work items to include a Release Notes field (type is PlainText), and I'd like to create a report that pulls the release notes for a particular iteration. I have discovered that PlainText fields cannot be put into the data warehouse, so I am wondering if there is a solution to reporting on long text fields outside of simply writing a query for a report that spans the various TFS databases.