Sunila16's Q&A profile
Visual C++ 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::Ev ...Show All
Windows Forms Error installing .Net Framework 2.0 from bootstrap
Hello, This is my first post, so be gentle with me. I have created my first VB VS 2005 project. I have successfully published and can run the project on my machine. I am using ClickOnce FullTrust with .Net Framework 2.0. I have the project signed and the prerequiste of the .Net Framework 2.0 to be installed from the vendor's website. However, when I try to run the setup.exe to install the project on another machine I get the following error in the install.log: The following properties have been set: Property: [AdminUser] = true {boolean} Property: [ProcessorArchitecture] = Intel {string} Property: [VersionNT] = 5.0.4 {version} Running checks for package '.NET Framework 2.0', phase BuildList Error: Unable to locate file 'd' require ...Show All
Visual Studio Team System Getting line Context
Hi, I would like to know how can i get all the lines in my code in a list. I'm using the "DoNotHardcodeLocaleSpecificStrings" rule to find all the strings in my code, but it is not good for me. I need to find specific strings and that i can do if i had a way to get all the lines. Is it possible is there any OpCode for that 10X. Idan. I'm not sure I understand. Do you want to get all hardcoded strings within a method For example: public void Foo() { string value = "Hello"; string value1 = "World!"; } In the above, do you want to get a list of strings containing 'Hello' and 'World!' ...Show All
Visual Studio Express Editions More Free Alternatives...
When I run my VC++ Express 2005 Create Project wizard and choose to create a win32 console application, it has four options in the Win 32 Application Wizard: Windows application, Console application, DLL, and Static library. Two of these are normally disabled: windows application and DLL. Something I found online said that you can change the html wizard file and comment out the lines that disable these options--I tried it and it works, but I changed it back because the lines to comment out are within an if statement that checks to see if it is the Express version, and if so, then it disables those two options. Is changing the wizard to enable the windows application and DLL options legal If not, then why is it so easy to do so Also, if i ...Show All
SharePoint Products and Technologies Adding "Person Column" to a list
I may be barking up the wrong tree but thought I would throw it out there. Using MOSS and the BDC, we have the capability to add Business Data as columns in a list. How would I go about creating a "People" type in my BDC that pulls the data from the user profiles in MOSS What I would like to do is have a drop down or search screen for selecting a person from the profile store instead of keying the information into a contact list and then having the information be out of date , etc... It would be much easier to just allow them to select a person and pull the data from there. They would also get the "Presense" pawn next the persons name etc.. which would be very useful. Does this sound possible Has anyone done th ...Show All
Software Development for Windows Vista .DirectX.AudioVideoPlayback question.
Can one get a "handle" on the Active Movie window launched by .DirectX.AudioVideoPlayback when Video.Owner = null i.e. in FullScreen mode. It would be nice to be able to attach an event handler to it so as to be able to close it with the ESC key, otherwise there is no way to close it. ...Show All
.NET Development System.Web.Hosting or IIS gets Object reference not set to an instance of an object
Has anyone seen this error before It seems to be in IIS/ASP, not my web service: It just started happening to me with an existing web service on a new PC: request was: Http://localhost/mydirectory/myservice.asmx wsdl error was: [NullReferenceException: Object reference not set to an instance of an object.] System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name) +1618 System.Web.Security.WindowsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +593 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64 have you been able to solve ...Show All
Visual Studio Tools for Office Multi-threading in VSTO
I have read throught many texts and i am not able to get to a conclusion. I have an excel application. The application queries various tables. After data is obtained through each table it is processes. Doing everything serially takes a lot of time. Is there any way i can put each task on a separate thread. None of the threads will be calling the Excel COM server. The tasks will perform data access/processing operations and once all the threads are done, the MAIN thread will do the writing on the workbook. In other words "Is is possible to do multi threading in VSTO solutions, assuming that threads won't interact with the office object" Thanks1!! Currently, there are no "interop" for ...Show All
Smart Device Development Visual Studio 2005 With WM5
I've just upgraded to a WM5 pocket PC, and basically, do I need the WM5 SDK I mean, in Visual Studio 2005, am I still OK to make programs using the Windows Mobile 2003 wizards and deploy using the Deploy to Windows Mobile 2003 device stuff Or do I need to install the WM5 devkit Even though applications written for Windows Mobile 2003 will work at Windows Mobile 5.0, you are advised to use Windows Mobile 5.0 SDK (and it does bring a lot of new stuff that you shall be grateful for). This article can give you an insight into the world of WM 5.0 : http://www.windowsfordevices.com/articles/AT6478846371.html ...Show All
SQL Server Related Tables in Model Files
I want to create a model file that relates two tables. However, these tables do not have a foreign key relationship in the database. Is there any way to do this I'm hoping to programmatically generate the XML for the smdl file. Here's the XML that is generated when there is a foreign key: < Role ID =" G958db767-3d65-4445-9ccb-5f76c41720fb "> < Name > Linked Problem </ Name > < RelatedRoleID > Gf5496c9e-13b8-4c66-965d-c3a3c9a78cc8 </ RelatedRoleID > < Cardinality > OptionalOne </ Cardinality > < Relation Name =" dbo_Incident_FK_Incident_Problem " RelationEnd =" Target " /> </ Role > Is there any way to change this ...Show All
SQL Server Conversion from vb.net 1.0 to vb.net 2.0 (Crystal Reports Error)
i am facing the crystal reports error when i convert my project from vb.net 1.0 to 2.0. can any one tell me how i remove these errors waiting ........ you havn't said what the errors are. AND this is not the forum for your question. You will be waiting a long time. ...Show All
.NET Development Web services / Hosted Controls catch 22
We have created a Hosted .Net Control that uses web services to talk to an IIS server. Works great; except behind an Microsoft ISA proxy server that expects authentication. The user gets a 407 Proxy Authentication failed. Through exhaustive searches of the internet we have concluded that the answer should be something like: WebProxy proxy = ( WebProxy ) WebRequest .DefaultWebProxy; proxy.Credentials = CredentialCache.DefaultCredentials; webserviceProxy.Proxy = proxy; However, this approach fails because of a CAS security exception System.Net.WebPermission. This seems to be caused by violation of the Intranet_Same_Site_Access or Internet_Same_Site_Access in the internet and “local intranet” sandbox that we are t ...Show All
Visual Studio 2008 (Pre-release) Cost of Binding?
Can anyone comment on the expense for large number (thousands) of data binds Fundamentally, what does it cost me to do a bind I already understand the benefits :-) thanks, Kiel If you're referring to a listview or something similar there is hope. ListView can virtualize the elements so that only those elements that are actually visible get created (and bound). This allows your UI to scale and display thousands of elements without creating thousands of textblocks or what have you. ...Show All
Visual Basic Obtaining latest messages from a Chat server, need help
I am trying to obtian messages from a chat server over UDP. It has to be periodic otherwise messages will get lost. My current code is: Dim udpClient As New Net.Sockets.UdpClient() udpClient.Connect( "ccdc.kick-ass.org" , 1079) Dim RemoteIpEndPoint As New Net.IPEndPoint(System.Net.IPAddress.Any, 1079) Dim receiveBytes As [Byte]() = udpClient.Receive(RemoteIpEndPoint) Dim returnData As String = System.Text.Encoding.ASCII.GetString(receiveBytes) TextBox2.Text = TextBox2.Text + returnData.ToString() udpClient.Close() Exit Sub In a timer control. I have two problems with this: This checks every 500milliseconds, which may tie up an internet connection. It crashes instantly ...Show All
Visual Studio Position dialog based off of toolbar command position
I currently have a command being added to the IDE's toolbar that opens a custom dialog whenever the command is executed. I would like to be able to position the dialog directly below the command button, if possible, but I haven't been able to successfully determine if there is a way to accomplish this. Is anyone familiar with a way to get the location of the command button clicked Our command bar code is based upon the Office command bar code. Unfortunately, they do not support this functionality at this time. The only thing you could do is to use the mouse location to find out where, but that would not work in all situations since the user could use the keyboard. Regards, Craig and Ole ...Show All
