vai23's Q&A profile
Visual C++ [VS.NET 2003/C++] Treating enums as ints
I have two C++ projects which both share a source file. The following code: enum MyEnum { kFirstValue, kSecondValue }; MyEnum myEnum = kFirstValue; myEnum += 1; compiles fine in one project. The other project gives the error, "error C2676: binary '+=' : 'MyEnum' does not define this operator or a conversion to a type acceptable to the predefined operator" So for some reason, one project is treating enums ...Show All
SQL Server call report with datas updated
Hello, I use sql reporting services to show reports with url and to create snapshot with his web services. My problem is the following: - i show a report (linked to a database with data source and dataset) with an url like : http://srv/Reportserver/BOURGOGNE/Perso&rs:Format=HTML4.0 &rs:Command=Render&annee=2004&id=0580639E - i change data in the database - when a recall the report with the previous url, the dat ...Show All
Smart Device Development Writing/Reading to an XML file
Can this be done ive used Datasets for windows applications, but when i try to use the same approach it doesn't work for pocket pc smart device applications. Thanks in advance. 'dataset' is indeed not defined, class is called DataSet: Private ds as DataSet VS would correct case for you as you type, but first you need to add references to System.Data.dll and System.Xml.dll. Also please add ‘imports’ statem ...Show All
Windows Live Developer Forums No Message History Available
Hi Folks, I am having a problem with the storage of my Message History. I've enabled the Message History in my MSN Messenger but when I try to view the message history of a contact i am getting an empty document that usually display the message history. When I searched my machine I got the message history in the form of XML but when i tried to open it using some browser it shows nothing but blank page. I am using MSN Messenger Version 7.0 (Bu ...Show All
Windows Forms newbie question on combo box lookups
I have a dataset with two tables Parts and PartCategories. I created a relationship in the schema designer with Parts as the many table. Part Categories is the one table. PartCategories has 2 fields PartCateID and PartCateDesc. Parts has PartCateID as& ...Show All
Visual Studio Express Editions C# Express Edition Installation...
I installed .Net Framework 2.0 first and then when I installed C# 2005 Express Edition (using a CD with C# Installation), I got the following error message. Can anyone please help Error 1308. Source File not found C:\Document and Settings\..\Local Settings\Temp\SIT18204.tmp\eula.1033.txt and another message for the file customtext.1033.DLL in the same folder. Thanks. Hi, Is t ...Show All
Visual Studio 2008 (Pre-release) Problems with Extension syntax
playing with the Linq examples and I am getting a compiler error when trying the extension example. This is not working; public static string CamelCase( this string identifier) The this causes the compiler to indicate a type expected from the demo video this should work. Any idea what I might be missing. Thanks You have to go through an extra step to install support for the IDE. There's a sect ...Show All
Visual Studio Team System Team Foudation Crash after Install
I'm working on a fresh copy of windows server 2003 (no SP1), just installed to test the TFS, installation has been compled without errors, but when we try to connect to the TFS server we get the following two errors in our Eventlog: A crash report is being prepared for Microsoft using the Watson Crash Reporting Mechanism. The prepared report will be queued when ready and may be sent to Microsoft through administrator control. followed by: Eve ...Show All
Visual C++ MFC newbee problems to create worker thread
I am new to MFC. I am just trying understand threading. I tried to create a worker thread, and I get a linker error when I compile the code. in CMFCThreadingDlg.cpp I put... void CMFCThreadingDlg::OnBnClickedBtnStart() { HANDLE hThread; hThread = AfxBeginThread(foo, this ); } static UINT foo(LPVOID lParam) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); return 0; } I have put the foo prototype on ...Show All
Visual C# frequency spectrum analyzer
Hi, I want to sample an audio file and show it on a graph. so, I need to sample the frequencies between 20Hz and 15Khz. How do I do that with DirectX I just need to know how to sample a file, the methods/functions. (without hearing it,just open in on the memory and read it's content to chart like waveform) thx very much. Hi! What do you mean "sample a file" Read and display file on screen or interc ...Show All
.NET Development File Not Exist Though it is exist!!!
In a web method im checking for a file is exist or not , using the path for sFolder = "C:\image\1.jpg if (Directory.Exists(sFolder)) { //Do something } the sFolder is really exist for the specifed but the Directo.Exist return false why This is not relevant to WebServices but to the Directory class implementation: it only returns true for directories (not files), you have to use File.Exists() method if you checking for ...Show All
Visual Basic Hotkey API Question
I need to make a hook which captures the Printscreen key in any combination (eg Alt+PrintScreen). My application will be running from the taskbar, so there will be no focus. After reading an article (found here: http://www.developerfusion.co.uk/show/271/ ), I was even more confused then before, and was wondering if anyone could explain how I would start I am using Visual Basic .NET. Thank you for your interest. Robert Hoath ...Show All
.NET Development VS2005 RC1 Dataset merge bad performance
Hi, We've just migrated from Beta2 to RC1, and we get very bad performance with the (Typed) Dataset's merge function. After analyzing with a profiling tool, we've discovered that the merge function calls the GetRowType many many times more that in the previous (2.0 beta2) version. for example - for a dataset with about 10 tables, one of them with 6000 rows: in Beta2 - GetRowType called 18 times. in Rc1 - almost 20,000 times. in Beta2 - 1-2 secon ...Show All
Windows Forms Bold font in TreeView
I've a problem with using different fonts in treeview. Treeview has set regular font, but some topics in it I want to print with bold one. So I've made: foreach(TreeNode trn in trvEntryPoints.Nodes) { trn.NodeFont = new Font(trvEntryPoints.Font.FontFamily, trvE ...Show All
Visual Basic [vb 2005 expr] Killing a copy-dir process
Hi. In my VB 2005 express application I make a copy of one remote directory (connected as a net unit) to my local hard disk with this line: My .Computer.FileSystem.CopyDirectory("F:\namedir1", "C:\namedir1", True ) This works inside a backgroundworker thread. When I cancel the thread, the copy still goes on, especially if the source-directory is big (some Gb). I want to stop immediately the copy, how can I do this Is there a way to know ...Show All
