Software Development Network Logo
  • Windows Vista
  • Game Technologies
  • Visual Basic
  • Visual Studio
  • Windows Forms
  • VS Team System
  • .NET Development
  • VS Express Editions
  • Smart Device
  • Visual C++
  • Visual J#
  • Architecture
  • Microsoft ISV
  • Visual C#
  • Windows Live

Software Development Network >> Pawel H's Q&A profile

Pawel H

Member List

Jim McKay
j!
Andowen
BGood
dalenewman
Madhu Sudhan
bozworthy
SHutch
Rob McCabe
larowe324
Kris D
zmax1234
JG_WPB
StockTrader
QuantaCat
eastlands
GuntherM1466
AravindManohar
m_vspg
dpeeth
Only Title

Pawel H's Q&A profile

  • SQL Server Client Failover Problems

    Hi, I encountered 2 problems when my application reconnects to the mirror database after the principle database is not available. My Connection String: Data Source=ServerA;Failover Partner=ServerB;Initial Catalog=TestFailover;Persist Security Info=True;User ID=sa;Connect Timeout=45 Firstly, the following exception will be prompted when failover occurs: A transport-level error has ocurred when received results from the server. The specified network name is no longer available Q1: Is it normal to have this exception Otherwise, how can I avoid this exception Secondly, I tried to capture the exception and retry the op ...Show All

  • Visual Studio Tools for Office Automating Office using C++: Closing a Word Document using Word::Document::Close()

    OK, I am trying to write an event handler that will close a new document in word when it is called by MsWord.  The problem is that when I try to call newDoc->Close(), I get the following error: .\MSWordEmbedControl.cpp(92) : error C2385: ambiguous access of 'Close' could be the 'Close' in base 'Microsoft::Office::Interop::Word::_Document' or could be the 'Close' in base 'Microsoft::Office::Interop::Word::DocumentEvents2_Event' If I specifically call this->Word::_Document->Close() it then tells me it will fail at runtime. How am I supposed to close a document My Word object is instantiated as follows: Usin ...Show All

  • Visual Studio ReportViewer Works in Dev, Crashes in Prod

    How does the precompiling the rdlcs work in asp.net 2.0  The reports all work in dev env when we do a 'copy site to remote'. They don't work when deployed in a precompiled mode.. What am I missing The reportviewer redist has been run on the target  box Here are the the exception that was thrown.. Any thoughts I see one line in the rdlcs when they are deployed   'This is a marker file generated by the precompilation tool, and should not be deleted!' What happens to them and why Thanks Microsoft.Reporting.WebForms.LocalProcessingException Message An error occurred during local report processing. Target ...Show All

  • Visual C# Control Panel

    I have just recently started using Visual Studio .NET 2005 RC1 to continue programming something I started with Visual Studio .NET 2003.  In my app (C#) I have a panel on the side that contains buttons and various other objects.  The buttons I used in .NET 2003 were added by using the panel collection property.  You may have noticed that it is not in .NET 2005.  How would I go about adding these panel buttons in Visual Studio Thanks in advance Perhaps an picture of what I am trying to do would help. http://tnsgo.com:85/controlpanel.JPG ...Show All

  • Windows Forms Delete multiple directory in file system

    Is there any way we can delete multiple directory at the same time without cleaning the children I have over 200 folders on the project and I don't really want go one by one to delete the content inside the folder before deleting the folder itself. When I'm trying to delete it is saying: Cannot delete folder, folder is not empty or it might contain excluded files, which are not shown. I can't beleive I will need to do one by one.... please help. thanks. I'm more talking about the visual studio 2005 side (Sorry for the ambiguty). I have a big project on visual studio 2005 setup and deployment. Ho ...Show All

  • Visual Basic Pipe Buffer

    Hi All:  Is there a buffer in vb2005 that can write to and read to. After a record is read, it will be removed from the buffer, like a pipe   Thanks. Hi, There's several things within the .net framework that you can use like that, depending on your intent. You use an arraylist, a collection, any number of things. If you want to put things in and get them out in the same order, have a look at the queue class (System.Collections.Queue). If you want get them out in reverse order, the Stack class would be better. Also, make sure you check out the generic versions of the classes (Syst ...Show All

  • .NET Development SQL Express Connection Problem - Please Help

    I get the following exception from SQL EXPRESS An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) from the following three lines of code: Dim SQLConn As SqlConnection = New SqlConnection() SQLConn.ConnectionString = "server=local;database= ; user id=sa; password=;" SQLConn.Open() I am running this on a single XP Pro system. The SQL ...Show All

  • .NET Development Q: How to: ControlParameter referencing across ContentPlaceHolders

    VS 2005 Beta 2, ASP.NET Master Pages, SqlDataSources Master/detail views using linked GridView/DetailView DetailView's SqlDataSource SelectParameters ControlParameter is linked to the GridView that provides the master data.  ControlId is set with the designer.   This works great when the SqlDataSource control for the detail view is in the same content control as the GridView control, but fails when the GridView is moved to a different content control area on the same master page.   That is, the Master page has two content placeholders: cphMain and cphFull.  The child page(s) provide the content for one or both placeh ...Show All

  • Software Development for Windows Vista Uint16 and Unicode incompatibility?

    Another issue that I have run across which I have "fixed" is the following: was:     int l2 = wcslen(inputedString); and generated      error C2664: 'wcslen' : cannot convert parameter 1 from 'Uint16 *' to 'const wchar_t *' is now, is this the correct way to handle this or is there a better way.     int l2 = wcslen(reinterpret_cast<wchar_t*>(inputedString)); I found the following information in the error help and was wondering if this is bug will be fixed in future versions. "A bug in the midl compiler results in a wchar_t type being emitted as an unsigned short in the type libr ...Show All

  • Windows Forms Icons on toolbar is disappeared

    Hi, Icons on toolbar is disappeared on some computers. How can I solve it Thank's Alexei Are you using .NET 1.1 That's a known bug, see http://forums.microsoft.com/msdn/ShowPost.aspx PostID=8021  for a workaround ...Show All

  • SQL Server Differences between MSDE and SSE2005

    Good Afternoon, Everyone. I know SSE2005 is built on Sql Server 2005 and MSDE was built on Sql Server 2000 so let's not start a thread discussing that. My question is more about the concurrency governor found in MSDE. I've heard people talking about the concurrency governor in MSDE being removed in SSE2005. Instead, performance is limited by the server configuration; one CPU, 1 GB RAM, and a maximum 4GB database. Can anyone confirm this What happens if the server has 2GB of RAM and/or dual processors Will SSE only utilize 1 GB and/or one of the processors Thanks for the help, Scott You assumptio ...Show All

  • Visual Studio Express Editions uninstalling C#2005

    when i try to install the new Beta2 express edition the installer complains that an old version of c#2005 is installed in my system. however, i can't uninstall it no matter how i try. i even deleted the entire visual studio 8 directory inside C:\Program Files. everytime i tried uninstalling it i got a complaint about not being able to find the correct order of files. what anyways, is there any way to manually uninstall it (maybe by deleting some registry entries, or whatever) thanks. where can i find the files for old versions of vs2005 i installed the first stable version of the express edition, BTW. ...Show All

  • Visual Basic VB6

    Hi It's been a while since I've done any VB programming, and I need to get back in to it for work purposes. I've quite a bit of experience at VB 6 programming and have lots of code and examples that I need to use again. Is the latest VB development package backwards compatible with VB6 I'm sure all of these questions have already been answered so appologies for that. Thanks John VB.Net is NOT backwards compatible with VB6...there will be a small learning curve tranfering over to .NET....the curve is primarily learning the namespaces and classes...with the exception of a few new keywords and a few t ...Show All

  • Visual Studio custom Task

    I have my own class that I derived from Task and I'm calling it in my .targets file using the UsingTask element. In my Task class I'm am logging several errors and warnings using the Log property that returns an TaskLoggingHelper object. When I run msbuild from the command line against my project file I get all of the messages and it tells me how many errors and warnings there were, but it still says "Build succeeded". How to I change it to say "Build Failed" if there were errors Thanks, Mike When determining the return value of the Execute method, try checking the value of Log.Has ...Show All

  • Visual C# How to assign 4 bytes of float to byte array

    I need to assign each of the four bytes of a float type variable to four bytes of a byte array. Can someone suggest a way to do this In essence I would like to do this: byte_array[0] = float_byte1 byte_array[1] = float_byte2 byte_array[2] = float_byte3 byte_array[3] = float_byte4   This array will be sent via a USB transaction. On the other end I will need to re-assemble the float type variable... BitConverter.GetBytes () will convert a value to its bit equivalent.  You'll need to verify the ordering is correct but it should be. Michael Taylor - 11/23/05 ...Show All

©2008 Software Development Network