Sonic1981's Q&A profile
Visual Studio pdf file checks in as ANSI instead of Binary
The problem I ran into is that the sourcesafe 2005 client would not allow me to check a .pdf file in as binary. I tried over and over and could not force it to binary. I then tried running the old 6.0d client and it did allow me to checkin to the same database as binary. What happened in the 2005 client I even tried specifying that *.pdf files were in the "binary" group and it still checks in as ANSI instead of Binary. If I go back to the 6.0d ...Show All
Smart Device Development CreateFileMapping problem.
DWORD err; HANDLE hFile=CreateFile(_T("\\Storage Card\\1.txt"),GENERIC_WRITE | GENERIC_READ,0,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); err=GetLastError(); HANDLE hFileMapping=CreateFileMapping(hFile,NULL,PAGE_READWRITE,0,200,_T("DATAFILE")); err=GetLastError(); If \\Storage Card\\1.txt exists, the code works. But if the file doesn't exist, CreateFileMapping returns 0, and the last GetLastError returns 5. Why H ...Show All
Visual Studio vstemplates and create directory for solution option
Is it possible to disable/clear this option via a .vstemplate property You can control items such as the Browse button via <EnableLocationBrowseButton> but I haven't found anything to control the solution directory check box. Failing that, is it possible to determine the setting of this in a wizard extension Sorry for the delay, I have never tried that myself, so I wanted to gather more information fir ...Show All
.NET Development ADO.NET Concurrency Problem
I am working on a dataset, I did some changes to a table in dataset by some input, while I am doing changes to dataset, other user has changed that table and updated it to datasource. so when I update dataset to datasource it raises Concurrency exeception, now I want to update datasource without taking the same input from the user. How can I do that ...Show All
SQL Server Unable to connect to Analysis Services
Hi, I've just installed SQL Server 2005 Enterprise Edition (trial). I can't connect to Analysis Services via SQL server management studio (on localhost). I have the following error : cannot connect to <server_name\instance> : A connection cannot be made to redirector. Ensure that 'SQL Browser service is running. (Microsoft.AnalysisServices.AdomdClient) When I check the SQL Browser service, the service is running fin ...Show All
Visual Studio Tools for Office How does OWC use a XML formated OLAP cube file?
I want to use Excel OWC(office web component) to show a pivot table on a web page, and the data comes from OLAP. The OLAP server may be offline anytime, or ,there is not an OLAP server at all. So, I can not create a OLAP service and export a cube(*.cub) file. can I query original dataset and calculate it and write it to a XML format file, which is used instead of *.cub file with Excel OWC I want to program "querying" "calcul ...Show All
Visual Basic Keypreview doesn't trap "enter key" keystroke.
In Visual Basic.NET, while I can trap other keystrokes, I can't trap an "enter key" keystroke when the Keypreview command is present in the form_load subroutine. The "enter key" keystroke only executes the object subroutine with focus. Any advice on this would be appreciated. Thank you, Mark try trapping Keys .Return() vs. Keys . Enter () ...Show All
Software Development for Windows Vista Beta 2 problems with any workflow & designer
Hello, I have a Windows Vista CTP December 05 machine on which I had installed the WinFX RTC CTP December, the Windows SDK CTP December, the Orcas VS Extensions CTP December and the WWF Extensions CTP December. All of them worked OK. I'm using the RTM Visual Studio 2005 Team Suite and RTM SQL 2005 Developer Edition. Now I uninstalled them in the reverse order and it seemed that the machine was clean. I could not see the the WinFX ...Show All
Visual C++ Did someone meet same problem while using vs2005??
When I first use vs2005 ,it is strange. #include <iostream> using namespace std; int main() { cout << "Hello World" << endl; } ------ Build started: Project: test_01, Configuration: Debug Win32 ------ Compiling... just.cpp c:\documents and settings\rock\my documents\visual studio 2005\projects\test_01\test_01\just.cpp(1) : fatal error C1083: Cannot open include file: 'iostream': No such file or directory Build l ...Show All
SQL Server semicolon terminator
Can someone define for me what is a statement when it comes to having to use semicolon statement terminator This is absolutely undocumented in BOL. Googling only finds this incoherent article which is far from official documentation. TIA Hi Chad Boyd, This is Bhanu Prakash and i am going to be the new administrator for MSDN Forums. You are amongst top 200 answerers in Forums and we identified you as poten ...Show All
Windows Forms DataGridViewComboBoxColumn Selection Changed
Hi, I would like to handle the Selection Changed event of a ComboBox column inside my datagrid, what would be the best method to do it. I tried the CellValueChanged event but that throws up an error when I am loading the datagrid. Please suggest how to do this. Thanks, Kunal Hi I think Mark has already pointed out that you should use SelectionChangeCommitted event because it insures that user has finished wit ...Show All
Visual Basic BUG: Binding My.Settings property to ToolStripMenuItem.Checked fails
Found a Visual Studio 2005 designer bug today, which prevents you from binding the ToolStripMenuItem.Checked property to an Application Setting. Apologies in advance if someone's already reported this, but I couldn't find any info on the web (though I did find a few posts from confused programmers suffering from its symptoms!) Below is more information and detailed steps to reproduce the bug. Description: If you try to bind to ...Show All
SQL Server Maintenance Plan - Not under Management Folder
Hi, I installed the SQL Server Management Studio Express this morning and am able to attach to my SQL2000 instance runnng on my laptop. I wanted to confirm my database backup schedules but there is no Maintenance plan under the Management Folder in SQL Server Management Studio Express. Can someone please assit me in wotking this out.. Regards.. Peter. Is there a Legacy node (with its o ...Show All
Visual C# Space characters padding in RijndaelManaged decrypted string
I'm a newbie in cryptography. I'm trying to use the RijndaelManaged class to encrypt and decrypt a Unicode string. When I encrypt a Unicode string and then decrypt it, I found the decrypted string has some extra space characters appended. Anybody can tell me why I found the padding characters are actually a sequence of '\0' character. Anybody please explain what it is and how to eliminate it. Thanks very much! ...Show All
Smart Device Development Detect wifi connection
I'm developing a CFv2 application that needs to know whether it's got a wifi or wired connection or not. It's usually going to be transferring large files and therefore needs to ignore GRPS connections. I have it so it detects whether there's any sort of connection but I can't figure out how to tell what type of connection it is. Thanks, Stut Hi, I used this code to detect WiFi I am not sure if it is a good ...Show All
