Software Development Network Logo
  • VS Team System
  • SharePoint Products
  • Visual FoxPro
  • Microsoft ISV
  • Visual Studio
  • Audio and Video
  • Game Technologies
  • Smart Devicet
  • Windows Forms
  • Visual Basic
  • SQL Server
  • Visual C#
  • Windows Vista
  • Visual C++
  • IE Development

Software Development Network >> Sweenie's Q&A profile

Sweenie

Member List

jlucas777
Dhivya.S
Blake01
Timmy0614
Always Learning
rachbabe
Leo Liu
Jonas.S
VRATZ
Ray Dyce
Paul Burg
Walkab
Eagleguy125
mikewo
Troy Lundin
tolily
Jassim Rahma
Peoplestick
Thelostcircuit
DavidAragornHouse
Only Title

Sweenie's Q&A profile

  • Software Development for Windows Vista Problem Rolling back a Distributed Transaction

    Hi, I was wondering if any of you guys have encountered the following problem using system.transactions object. I have two databases running Oracle 8.1.4.7.0 and have Oracle 9i client. When i run distributed transaction on these two databases and raise an exception to see if the transaction is able to rollback, the transaction rollsback on one database and does not rollback on the other. There are also some more problem on the Database on which the transaction does not rollback : If i try to delete data and rollback, the Index / Primary key gets deleted BUT the data does not get deleted. i.e. you cannot query the data by using the Primary Key but when you select all the records, you will be able to see the data. This is also not a on ...Show All

  • Software Development for Windows Vista WCS .NET 3 June CTP and IE7

    I've installed the last .NET 3.0 June CTP . My installation seems ok and I can create some personal cards using the selector (with its new GUI :)   Then I've tried to login to Kim Cameron's website and Microsoft Live Labs STS web site (the former one uses the HTML Object tag and the latter one the XHTML tag) Both trigger the selector... but only during 1 second and then it's closed. That's all :(   Did somebody succeed in authenticating to these websites using WCS .NET 3 June CTP   PS: This scenario runs well with the previous WCS version Beta 2.   [updated] Here my configuration: - XP SP2 - Not fresh install of winfx (previous one was Beta 2) - IE7 b ...Show All

  • .NET Development How to check if field is empty?

    Hi, I have an access database which I am using ADO.NET to query. I am currently reading all fields within the database. However, the program crashes when it reaches a field that does not contain any data. I am trying to write a simple statement to check the field if it contains no data. I have tried something like this: string check = dr.GetString(3); if (check == "") txtName.Text = ""; else txtName.Text = dr.GetString(3); I continue to get compile errors. I have tried almost everything (if check == System.DBNull.Value, null,etc). All help is appreciated. it should be:   if (dr.GetString(3) == DBNull.Value) { .. }   now since you are doing: stri ...Show All

  • Windows Forms Heavy operation and Windows.Forms.Timer

    Hello. I have a form that display time in seconds resolution in the status bar. The time is used for some calculations during GUI operations. I have "Load Run Data" action which does several communications and then setup and load received XMLs into DataSet object. I do it in the UI thread in order to block menu and mouse input. Sometimes the loading operation takes more than 1 second so the displayed time becomes invalid. I need to find a valid solution to do the loading without hurting timer. I tried to use Threading.Timer without effect. It continues working but hurted by the higher priority thread (UI thread), so the time is still incorrect. Any suggestions. I am interested to know what Microsoft's default approach for this ki ...Show All

  • .NET Development Foreign Keys and Relationships

    I have a problem with relationships. I have two tables in sql 2005. one table related to another. when i'm trying to delete a row in visual basic .net it says "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows" I did my visual basic form with drag&drop stuff with datasource wizard. i'm managing two bingingsource with one bindingnavigator. i guess that causes this problem but maybe not and i've one last question. i think we can set relationships in vb.net also . what should i do should i set these relation in sql or visual basic maybe it could be the constraint problem. i'm so new about this .net please help me.. heres my code Public Class frm_ana Private Sub ...Show All

  • .NET Development Threading and AppDomain

    Hi all I am a little lost with Multithreading ... :-(( I have a application which is running different functionality, multithreaded. Somehow when one thread is having a problem, the whole application has also some problems ... Now I want to create the new threads in separate AppDomain's, I thinks this is better. Can somebody just give me a very small sample how to do this I need creation of a new AppDomain and than create a new thread in this new AppDomain. Thanks a lot for any help !! Best regards Frank Uray It is not a problem when one of the threads gets a problem, as longest the service keeps alive ... It is always possible that one of the jobs (Thread) is unstable. Do you have a li ...Show All

  • Visual C++ hiding LNK warnings

    Basically, I want to get rid off all the LNK warning For ex, LNK4099, or LNK4204, or any other one. I am linking my debug lib with a third party release lib. That's why I am getting those. Is there some kind of "pragma" for the linking step to hide warnings There was the undocumented #pragma comment(linker, "/ignore:4099") but it does not work anymore on Visual Studio 7.1. I is annoying to look at hundreds of these warnings rolling down on my screen. Thank you. If I add /ignore:4099 to the "additional options" of project properties->linker->command line, I still get the warnings LNK4099 I am using: Microsoft Visual C++ .NET MS Development Environment 2003 Version ...Show All

  • SQL Server How to right justify table field

    How do i right justify data in a nchar or nvarchar field e.g. now: 2bbb 3bbb desired : bbb2 bbb3 where bbb is either blank or null, not certain. I would appreciate any help Pauley Andrea, thanks for responding. Below shows the situation better. The field is a nchar field sorted in ascending sequence using Visual Studio express 's Database Manager. I think nvarchar fields does the same. As u can see the the third field (1013 ) and the 14th field (1014) should be the first 2 in the sorted records. Pure alpha fields like Names, City Names etc are ok but pure numbers come out like this. Is this because the nchar and nvarchar field are intended to b ...Show All

  • .NET Development change the xsd file corresponding to mdf file

    Hi, I have mdf file and corresponding xsd file which work together and all is good :) I have made changes in the mdf file, how can I recreating the xsd file Thanks If you are working in Visual studio: open the dataset right click on the main query "fill" and click configure. change the query by adding or removing the fields you want That should do the trick. ...Show All

  • Smart Device Development synchronize deployment with activesync

    Hello, I have developped some applications in VS 2005 and CF 2.0 with WM 5.0 PPC and created the respective CAB files for deployment. however i found it very inconvenient for the user to copy the CAB onto the PPC and then click every single one of them to install and they need to specified the location. Is there any solution i can by pass all these issues by installing the programs from a computer in an installation package if possible Thank you I try to put a break point in the installer code. but i couldn't make it hit the breakpoint. does that mean that my installer is not running Which is the best way to debug the installer ...Show All

  • SQL Server Invalid Locator de-referenced

    In our application we use three database(access, sql server and oracle) to store configurations. We use a program to copy the configuration from one database to another. We use ODBC and MFC recordsets to do the copy. We recently updated the application and changed the the table schema's. Before we had two tables which each had a schema of one long as key and one image field. Now we have one table with one long as key and three image fields. Now when we copy to sql server from access we get the error " Invalid locator de-refrenced" when we have large data (about 1 MB) in one image field. Before the change in schema's we did not have this problem with an image field with a large amout of data. We are using the sql server odbc drive ...Show All

  • Visual Basic Unsigned Arithmetic and overflows

    I've had this discussion before with unint64s. Setting what would normally be the sign bit causes an overflow. Now I'm seeing this in unint32s. Dim a As UInt32 = System.Drawing.Color.Black.ToArgb will cause and overflow. Dim a as Uint32 = now.ticks and &hFFFFFFFF will cause an overflow depending in the time. This should not be. What it means effectively is the UInt32 is actually UInt31. However............. Dim a As UInt32 Dim b As UInt32 a = 1 a = a << 31 b = a Works absolutely fine. However the equivalent will not work with uint64. I looked at the assembler and it's doing all of this in the ESI which I assume is 32 bits wide on a Pentium Prescot ...Show All

  • Visual Studio 2008 (Pre-release) Hiding a window triggering the Closing event?

    Hi all, maybe i'm a novice to WPF but, is there a way to hide a window during the closing event or better, is there a way to disable\hide the closebutton of a window object Using the following code I get this error: Cannot set Visibility or call Show, ShowDialog, Close, or Hide while window is closing. private void SearchForm_Closing( object sender, CancelEventArgs args) { Save(); // Doing something Hide(); // Trying to hide args.Cancel = true ; } Thanks It isn't impossible to hide a window! It appears to be impossible to do it where you are trying to do it (while the window is in the middle of being closed). If you think about it, it makes sense. The hiding isn't what is triggering the close ...Show All

  • Windows Live Developer Forums Unhandled win32 exception (3956) starting a new instance of Internet explorer 7.0

    This is very weird. (Hopefully I've put this feedback actually onto the right forum) Requirements to reproduce this bug: Windows XP Professional. Visual Studio 2005 (not the beta, with Service Pack 1 installed!)   (VC8 SP1) Internet Explorer 7.0 (Of course). Home page is: http://www.live.com All latest updates have been installed. Error message: Just in Time debugger of VC8 SP1 complains with an unhandled win32 exception (3956). How to reproduce: If I open Internet explorer the first time, there is no problem. If I open a second window (not tab!), double clicking the Internet Explorer icon again then there is this error. If I open however a new instance of internet explorer via the menu of I ...Show All

  • SharePoint Products and Technologies 'UpdateTask' Activity Problem!!!

    Hellow. I want to update a task created by the CreateTask activity, when the activity is changed. I have the following function, which is run when the Task list item is Edited: private void onTaskChanged1_Invoked( object sender, ExternalDataEventArgs e){ SPWeb mySite = new SPSite (workflowProperties.SiteId).OpenWeb(workflowProperties.WebId); SPList myList = mySite.Lists[workflowProperties.TaskListId]; SPListItem myTask = myList.GetItemById(TaskBeforeProperties.TaskItemId); SPUser myUser = mySite.AllUsers[e.Identity]; myTask[ "Assigned To" ] = myUser; myTask.Update(); } Everything seems okay, but when I call myTask.Update(), I get the following exception: Error: Task is Currently ...Show All

©2008 Software Development Network