Phil026's Q&A profile
Visual Studio VS97 help system broken
I have visual studio 97 (I know it's old, but it's legit and does most of what I need). I also have msdn97. The help system on both is broken since I installed (and subsequentlly uninstalled) xamp (a php server I was using to test some code). I get the error: Cannot find server or DNS Error Internet Explorer It appears to be looking for pages with this address structure: mk:@ivt:dsmsdn/F1/F2/DB/SB25A.HTM I tried reinstalling MSDN and VS - no change. I'm guessing there are some registry settings that need resetting. Anyone know where to start TIA Adrian Hello Adrian, I am not familiar with MSDN97 so this solution might not work for you but still worth trying. Emp ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Couple new tutorials and samples
We put up a couple new posts today on http://www.xnaspot.com/ . One is a ASCII based non-fixed width font class tutorial and then we posted a couple different Input samples. I did see a unicode version floating around on the microsoft blogs ( http://blogs.msdn.com/garykac/archive/2006/08/30/728521.aspx ) but i couldn't seem to get it working. Anyone else having the same problem He seems to be going about it the right way though. C# > C++ ...Show All
Visual C# Interfaces oversold???
First, I must admit that I am a C# novice and so I probably don’t have as much knowledge and experience on the subject of interface as most of you guys reading this post. After reading a few books on C# and interface design, I still can’t see and understand the real power of interface unless of course, we are talking about interfaces as a powerful concept in OOP ‘only’ and not as a powerful concept in the general sense. When I was first learning OOP I was quite suspicious about the ‘excellent features’ that OOP claims to be able to deliver to the world and I was right. For example, in reality OOP offers very little if any, code reuse. I am now having the same suspicion about interfaces even though I see a lot nice words used to d ...Show All
Windows Live Developer Forums Problems with LifeCam VX 3000 software
I`ve just purchase a LifeCam VX 3000. The software loads okay. I then click on the LifeCam icon on the desktop to start the program. But when the window opens nothing works when I click on them. To close the window I have to shut it down in Task Manager. Sometimes the window will open but all I get is the hour-glass icon which never stops. Again I have to shut it down through Task Mangager. The webcam works fine in Skype but I can`t get the software to initiate. I`ve installed the latest software from the Microsoft website. Thanks I am having exactky the same problems , I have managed to get it to work once or twice and thats it. It DOES work when I use it in Windows Live Messenger, but if that is all i ...Show All
Visual Studio Is it possible to use PrintPreviewControl to see preview of ReportViewer?
Hi, I want to use print preview control to see the preview of the report rendered by RevportViewer control. Is it possible to do so Thanks in advance. Vijay You can generate EMF files from the control and use them in the PrintPreviewControl class. MSDN has a quick sample on using the PrintPreviewControl at http://windowssdk.msdn.microsoft.com/en-us/library/system.windows.forms.printpreviewcontrol.aspx . Instead of calling e.Graphics.DrawString() as that sample does, you would render out each EMF file (for each page of the report). There are some samples the demonstrate how to programmatically get EMF files from the ReportViewer control at www.gotreportviewer.com . Take a look at the "Print fro ...Show All
Windows Forms bind a datagrid to xml (Dataset)
Hi I have a winform application which contains a datagrid. In this grid I want to show the data from a xml-file: Here I put the xml-content in a dataset: private void fnDataReadingFromXMLFile() { string filename = "D:\\VisualStudio Projects\\SMS\\SLSMSTool\\xmlContacts.xml"; //check if the file exists if (File.Exists(filename)) { //clear the DataSet contents this.datasetCustomer.Clear(); MessageBox.Show("Data reading from " + filename + " -file"); this.datasetCustomer.ReadXml(filename); } //if else { MessageBox.Show(filename + " does NOT exist; Please click" + " first the button 'CopyToXML' ", ...Show All
Visual Basic Building a VB / VBA app for Windows 2000 -> Windows XP
I have a VB application which collects data and generates an Excel file with a data table and graph. My development and testing is done with VB Express on a Windows XP system with Office 2003. If I run the application on a Windows 2000 system with Office 2000 I get the following exceptions. Does not support a collection. (Exception from HRESULT: 0x80020011 (DISP_E_NOTACOLLECTION)) Exception: Does not support a collection. (Exception from HRESULT: 0x80020011 (DISP_E_NOTACOLLECTION)) Module: ExcelData:CopyRawData And: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Exception: Attempted to read or write protected memory. This is often an indication that other memory is cor ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX 2 Time Bomb
Almost all MDX2 Ctors are calling the bombing code below: public static unsafe void CheckTimeBomb () { DateTime time1 = new DateTime ( 0x7d6 , 10 , 5 ); if ( DateTime . Compare ( DateTime . Today , time1 ) >= 0 ) { MessageBoxW ( null , & _C@_1PI@LKOFODJP@ $AAT $AAh $AAi $AAs $AA 5 $AAp $AAr $AAe $AA 9 $AAr $AAe $AAl $AAe $AAa $AAs $AAe $AA 5 $AAv $AAe $AAr $AAs $AAi $AAo $AAn $AA 5 $AAo $AAf $AA 5 $AAD $AAi $AAr $AAe@ , & _C@_1DE@JJLLKEIK@ $AAM $AAi $AAc $AAr $AAo $AAs $AAo $AAf $AAt $AA 5 $AAM $AAa $AAn $AAa $AAg $AAe $AAd $AA 5 $AAD $AAi $AAr $AAe $AAc $AAt $AAX $AA $AA@ , 0x2000 ); throw new TimeBombException ( "This pre-release version of DirectX has expired, please upgrade to the latest version f ...Show All
Visual Studio Team System Rolling up efforts
The actual effort (in hrs) should be rolled up from its child and it should be non-editable textbox after it was committed. For example: I have one Feature work item with some 2 tasks linked to the same. Let’s say: Tasks Name Actual Effort (in hrs) Task 1 5 Task 2 4 So the total effort (in hrs) for the particular Feature should be 5 + 4 = 9 hrs. The same should be automatically calculated for the particular feature. As Karthik alluded to in an earlier posting, this is not something that is inherently supported in V1. You could have an add-in as sug ...Show All
.NET Development Control datatable and row events programatically
I want to turn off events on several tables in a datset, which I know I can do using BeginLoadData. The problem is that I want to raise update events on specific rows after I call EndLoadData. Specific example: I have a datatable Data, and a datatable Summary. I update rows in the Data table but do not want events raised regarding the changes in Data until I've also updated Summary. Basically I need transactions, but applied to updates of a dataset. Any ideas I suppose I could lock the individual rows, but then I have to make sure to attempt a lock before accessing a row every time. Hi, One way to do this is to call SetModified for every row that you need to generate the RowUpdated event: foreach ( Dat ...Show All
.NET Development how to link a generic collection in a property of customcontrol, help me pls...
i have created this sample code: <System.Serializable()> Public Class CampiDb Private xitem As String Public Property Item() As String Get Return xitem End Get Set ( ByVal value As String ) xitem = value End Set End Property End Class Public Class ArrayCollection Inherits Collections.ObjectModel.Collection( Of CampiDb) End Class '''''''''''''''''''''''''''''''''''''''''my custom control Public Class CustomControl1 Private _h As New ArrayCollection Public Property ARRAY() As ArrayCollection Get Return _h End Get Set ( ByVal value As ArrayCollection) _h = value End Set End P ...Show All
Windows Forms Display filtered values in combo in VB 2005
Hi, I have a databound combo on form in VB 2005. The datasource of the combo is set to a DATASET which displays all items from LOOKUP table. This works correctly, but the problem is that i want to display limited items only in the combo.............. For example in a Receipt collection form, the combo is data bound..... Datasource:Invoice table Display member: Invoice Ref Value member:Invoice ID Selected value: Receipt collection Invoice ID In this form, all the appropriate values are displayed with the corresponding lookup data in the combo when i navigate thru the records. Now, the combo gets populated with all the Invoice Ref numbers. I want to reduce display of all Invoice numbers.In the combo (when populating), ...Show All
Visual C++ Class error for CustomizeProject
Hello all, With the following class idenified as follows: class CMsappwizAppWiz : public CCustomAppWiz { public : virtual CAppWizStepDlg* Next(CAppWizStepDlg* pDlg); virtual void InitCustomAppWiz(); virtual void ExitCustomAppWiz(); virtual void CustomizeProject(IBuildProject* pProject); }; The compiler gives me the following errors: msappwiz\msappwizaw.h(20) : error C2061: syntax error : identifier 'IBuildProject' .\msappwizAw.cpp(65) : error C2065: 'IBuildProject' : undeclared identifier .\msappwizAw.cpp(65) : error C2065: 'pProject' : undeclared identifier .\msappwizAw.cpp(66) : error C2448: 'CMsappwizAppWiz::CustomizeProject' : function-style initializer appears to be ...Show All
Visual C++ exception when using C++ and COM
I'm a totally newbie when it comes to C++ adn COM so if you have the answer please let me know, even if it's trivial. I'm using the following piece of code: #import "..\libs\BGMXmlLib.tlb" no_namespace #import "..\libs\BGMEngine.dll" no_namespace using namespace std; static CComPtr<IEngine> pIEngine; static CComPtr<_XmlWriter> pXmlWriter; class CCoInitializer { public: CCoInitializer() { HRESULT hr; hr = CoInitialize( NULL ); if (FAILED(hr)) { throw hr; } CComPtr<IUnknown> spUnknown; hr = spUnknown.CoCreateInstance(__uuidof(Engine)); if (FAILED(hr)) { throw hr; } spUnknown.QueryInterface(&pIEngine); spUnknown.R ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Path to becoming a professional game programmer
I'm sure a lot of aspiring game programmers out there are looking for a road map on how to become a pro. (I know I am!). Based on all the great products coming out, and the ones that already exist, it's probably very confusing for someone new to this. I put together a quick "road map" based on my (limited) knowledge to help those rookies get to the finish line. Please feel free to add to, change or comment...especially if you're already in the busniess! Update(11/22/06) - moved some items around and added new categories based on suggestions Beginner - Torque X Create some simple games with TorqueX Game Builder ...can't comment much more on this since I've never used it Begi ...Show All
