WendyB's Q&A profile
Visual C++ /clr Error
// compile with: /clr #ifdef _MANAGED public ref class A { public: static void foobar(); // error C3280 }; #endif I compile the above in Visual Studio C++ 2005 with /clr and get error C3280. The documentation says if the /clr switch is set, it should compile as managed. error C3280: 'OSAPI::Net::Event::foobar' : a member-function of a managed type cannot be compiled as an unmanaged function So, why is a declaration in a compile unit that is built using managed code see this as compiling an unmanaged function Also, when the documentation says function, does the definition of function include method declarations I would say term "function" includes "member method declarations". ...Show All
Windows Forms C# open a new form, and close a form...
Well... i want to do this: open a form and close the form that is open... Example: Form_P f = new Form_P(); f.Show(); this.Close(); But, my program close.. why Thanks, but how do you close the newly opened form Sorry for the silly question but I am a n00b to C#. I have only programmed properly in VB.net and C++ ...Show All
Audio and Video Development LOOKING FOR A TRAIL OF VISTA
I AM LOOKING FOR A TRAIL OF VISTA CAN YOU HELP http://msdn.microsoft.com/windowsvista/downloads/products/getthebeta/default.aspx -Sumedh ...Show All
Windows Forms Editing tables without Primary Key
Hello everyone. I am trying to work with a database in C# 2005 Express. One of the tables in that database doesn't have a Primary Key. However, it has a unique Foreign Key associated with each row. How can I select any particular row for editing on that table Its easy to select and edit tables which have a Primary Key by writing something like: dataset.TableNameRow row = dataset.TableName.FindBy(PrimaryKey); row.BeginEdit(); . . . row.EndEdit(); But how can I select and edit a row from a table which doesn't have a Primary Key Thanks in advance, Ashish i dont think you can actually access a row with no pk if u can't reference it.. if it is in a dgv maybe then but i havent tried it is good practice to keep an index or sum ...Show All
Silverlight (formerly WPF/E) Inkable surface in WPF/E?
Do you have any plans to have some support for ink capture/display in WPF/E Thanks, Julien We do not have any current plans to add an inkable canvas. If we get enough feedback we will investigate this, but something like this doesn't easily work cross platform. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Basic XML in Treeview
OK , I have looked and still can't find the right stuff. SO I am working on this project, that takes an XML record and displays only the parent node in the treeview. That part I got but where my problem is when you click on the parent node it is supposed to navigate to a web page related to the node. Also by hoveing over the node I am supposed to have a tooltip description appear.My XML is as follows.... <title>Herbs</title> <link>C:\Documents and Settings\HP_Owner\My Documents\Dominion\Content\Database\herbs.html</link> <description>a book on herbs</description> In the tree view only the <title> wil;l display, when I hover over the node it should display the <description> and ...Show All
Windows Forms Modifying BidingSource
I wonder if I can modify the bindingsource to dispaly specific field from a table rather than displaying the whole table. Here is what I am talking about. I am using a commercial grid to display my data. I don't have any problem to display the whole table to the grid. For instance, the following code displays a whole table to the grid. grid1.SetDataBinding(table1BindingSource); Now, I only want to display the FirstName and the LastName I have the following in my form table1BindingSource and db1DataSet From db1DataSet, I can see the following by intellicense; my table names Tabl1 from intellicense I can see Table1.FirstNameColumn and Table1.LastNameColumn; My question, how can I use table1BindingSource and db1DataSet to ...Show All
Visual C++ How to use a DLL in VC 6.0 created in VB 6.0
Hello Everybody, i want to register and use a dll which has been created in VC 6.0 and use one of its function. i don't know the syntax to use it. Pls help me. Thanks and Regards Munish Gupta How to use a DLL in VC 6.0 created in VB 6.0 i want to register and use a dll which has been created in VC 6.0 and use one of its function. These two are contradictory. Please state your problem without ambiguities. ...Show All
SQL Server SQL 2005 Developer edition fails with fatal error
Hi, I created one Installation file with below settings [Options] USERNAME=Developer COMPANYNAME=Worldspan INSTALLSQLDIR="C:\SQL Server\" INSTALLSQLSHAREDDIR="C:\SQL Server\" INSTALLSQLDATADIR="C:\SQL Server\" INSTALLASDATADIR="C:\SQL Server\" ADDLOCAL=SQL_Engine,SQL_Data_Files,SQL_FullText,Notification_Services,NS_Engine,NS_Client,SQL_DTS,Client_Components,Connectivity,SQL_Tools90,Tools_Legacy,SQL_Documentation,SQL_BooksOnline,SQL_AdventureWorksSamples,SQL_Samples SAMPLEDATABASESERVER=".\LOCALDEV2005" INSTANCENAME=LOCALDEV2005 SQLBROWSERACCOUNT="NT AUTHORITY\SYSTEM" SQLACCOUNT="NT AUTHORITY\SYSTEM" AGTACCOUNT="NT AUTHORITY\SYSTEM" SQLBROWSERAUTOSTART=1 S ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Custom soundtracks
I've only had XNA Game Studio Express since yesterday, but I've been having a lot of fun with it. I've started working on a game which is coming along nicely, but one thing irks me - I can't figure out how to have music playing that stops when a user chooses a custom soundtrack instead. At the moment, when a user chooses their own track is starts playing fine, but the game soundtrack continues to play in the background. I'm sure I've missed something simple, but I can't for the life of me figure it out. Any hints would be much appreciated. Eli Tayrien - MSFT wrote: You can specify the category on a Sound in the properties dialog in the Microsoft Cross-Platform Audio Creation Tool. Categories are us ...Show All
Visual Studio 2008 (Pre-release) BAML->XAML
Hi all! I know you don't like people using BAML, but I've got a bit of a problem: I have a program that I've written, and have lost the source code for. Luckily, I have the compiled executable. So, I have been able to extract the BAML file, but I'd really like it in XAML for easy editing. I know about loading BAML with Application.LoadCompenent, but that doesn't help when you need to 'decompile' BAML in to XAML. I've been told this was possible in earlier versions of WPF, but has been removed ever since Parser.LoadBaml was removed. Is there any way to retrieve the XAML source Karl After you have done Application.LoadCompenent to retrive an object instance from BAML, you should be able to use XamlW ...Show All
Windows Forms How to use an IF statement to filter values in a DataSet column?
Hi, I'm new to C# and I'm currently stuck at using an IF statement to filter certain values within a dataset. A DataView isn't an option since I'm trying to loop through the entire record set. Specifically, I'm trying see if the object "Type" equals to "Outage" or "TR Outage". I'm getting compile time errors saying that it cannot implicitly convert object to bool and another one that cannot use operand ||. Here's the code I have (problem highlight in bold). I appreciate any help I can get. bool theFlag = false; foreach (DataRow TheDataRow in TheData.Tables["outageRecord"].Rows) { if ( (bool)TheDataRow["type"] = "Outage" || TheDataRow["type"] = &quo ...Show All
.NET Development different output of tlbexp on different computers
Hi all, I have a C# class library, which has a COM interface. The "register for COM interop" checkbox in the project settings is checked. On the one computer, the typelib contains the entry [id(0x60020000), propget] HRESULT id([out, retval] Siemens_SiplacePro_SPI_ComponentModel_Business_Types_CameraType* pRetVal); and on the other computer contains the entry [id(0x60020000), propget] HRESULT ID([out, retval] Siemens_SiplacePro_SPI_ComponentModel_Business_Types_CameraType* pRetVal); How comes that this property in the typelib is uppercase on one computer and lowercase on the other Both computers have the same OS installed with same language settings and same edition of VS2005. I could ...Show All
Visual Studio Dissable rename in solution explorer's context menu
Hi All, I'm having problems hiding the rename button in the context menu of the solution explorer. Using the MPF I have a node that inherits from HierarchyNode and I've overridden the QueryStatusOnNode method as shown below. When I do the same this for the delete command the delete command dissapears as expected. As well when I place a breakpoint in the Rename block it never stops. Any ideas public class WebServiceNode : HierarchyNode { ... protected override int QueryStatusOnNode( Guid guidCmdGroup, uint cmd, IntPtr pCmdText, ref QueryStatusResult result) { if (guidCmdGroup == pkg. VsMenus .guidStandardCommandSet97) { switch (( VsCommands )cmd) { case VsCommands .Delete: ...Show All
Windows Forms Help! Renew Self-Generated Certificate???
Help guys! The self-generated certificate that I use to sign my ClickOnce-deployed application has expired. I've gone into certmgr.msc, right-clicked on the certificate and selected "All Tasks|Renew Certificate with Same Key", and get this error: --------------------------- The wizard cannot be started because it failed to contact the active directory. --------------------------- ... which is correct - my PC has never been part of an active directory domain. This is a personal hobby project at home! How do I renew this key Am I screwed If I create a new key, none of my users will be able to update, will they I wouldn't hold your breath. See previous topic on the forums at: http:// ...Show All
