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

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

peterng25

Member List

BobS777
Alessandro Camargo
S Nesbitt
R.Tutus
grnr_r
knowledge
Mike Greenway
KJBalaji
darrell0101
tgbt
willajo
Andy R26
Mikkel Haugstrup
aurorean
creaturita
Bob Lyden
KingKoo
RickKr
crossraleigh
yanivpinhas
Only Title

peterng25's Q&A profile

  • Software Development for Windows Vista Writing Resource Managers for System.Transactions to MTS/DTC and XA

    We are trying to write a durable resource manager that works with System.Transactions. I need to use mts/dtc talking to xa where the actual database is on a remote system. I have read all of "Implementing a Resource Manager" and everything else I could find but could not figure out how to couple the .NET resource manager with xa. We have working distributed transaction code for OLEDB and ODBC using mts/dtc and xa. I really need sample code and/or hints about writing such a resource manager like this. If I understand your approach correctly, not quite -- and the issue really does end up revolving around recovery. Again, I think what you're trying for is roughly: App -> your bridge resource -> XA res ...Show All

  • SQL Server Retrieving Sybase data from sql server 2005

    hi i need to select a data from a sybase table into a sql server 2005 table.i dont know whts is the query to do it, let me show u my code.i get error when i do that query select * from openrowset('MSDASQL','dsn=bodaily;uid=sa;pwd=welco me;Initial Catalog=phoenix;', ' select rim from rm_acct') this rm_acct is a sybase table can anyone guide me on this. thanks ...Show All

  • Visual Studio 2008 (Pre-release) How to pass parameters to a DataBinding in XAML? - I want (need) to seed the construction of the DataBinding source object.

    I have a set of generic (generalized) DataBinding source objects, each of which maps to a different UI control type (eg. collections for ComboBox, single value for checkbox, etc.). <CheckBox.IsChecked> <Binding Path="Value" Source="{StaticResource SingleValueBinder}" /> </CheckBox.IsChecked> or <ComboBox Name="MyCombo" Height="21" Margin="20,20,20,20" ItemsSource="{Binding Source={StaticResource ItemsSourceBinder}, Path=Values}" IsSynchronizedWithCurrentItem="True"> </ComboBox> These objects are basically serving as adaptors and internally map to a host of specific object values. I need someway to specify which of the unde ...Show All

  • Visual Studio Express Editions Listbox items filtered by textbox onchange

    i have a textbox and listbox on a form. The listbox is bound to items from a database. When the user begins to type in the textbox I'd like the listbox items to be filtered onchange as he types. So according to what is being typed the items listbox will lessen according to what matches what is being typed. *This is not an autocomplete function.* Can someone please point me to some sample code to be able to achieve this Thanks ! You are correct. I am sorry that I did not check that out further before posting it. I will do some more research and post back my results. I know it can be done, but, might require jumping thru some more hoops! james aka:Trucker ...Show All

  • Visual C# keyboard and mouse

    Hello, I'm wondering how it's possible to create an application wide event that's fired when any keyboard or mouse key is pressed and mouse move Please help. Thanks take a look at this http://www.codeproject.com/csharp/globalhook.asp it should help you with your answer ;) ...Show All

  • Smart Device Development Querying SQL Server CE 3.0 with Visual Studio

    Hey all! I'm comming across fustrations with the sql querying tool that is built into visual studio 2005. I'm trying to query a Sql Server CE 3.0 database, and have dropped a few tables onto the diagram pane, and select my columns and everything queries fine. However, if I change my join between the two tables to a Right outer join, the designer automatically slaps a '{ oj ... }' around my where clause which isn't supported by sql server ce 3.0. Anytime I remove it and try to execute my query it automatically re-adds these sumbols and displays an error to me. Is there any way I can get visual studio to stop automatically adding these sql symbols when talking to a database that doesn't support them Below is the query it produce ...Show All

  • Visual Studio Express Editions save as Excel file how?

    hi there i have a problem regaring to my database and MS excel... how can i save my items which you can see in datagrid into excel file I dont believe there is any default method to export the data from a datagridview control into excel. You would need to write your own process to achieve that. This would work if Excel was installed on the same machine as your application. A Simple example of writing Excel data from Vb.net. This is simply writing some values and looping using the section marked in bold. You of course will be selecting the values from either you datagridview by iterating through the rows and columns. Something like the following should work for you in writing the datagridview contents to a excel worksheet. ...Show All

  • Visual C# WIA 2.0 not scanning

    I am writing a windows control that runs a scanner. Everything works fine in WIA 1.0, but when I try and use WIA 2.0 it does not. I am starting from the sample application from http://msdn.microsoft.com/coding4fun/someassemblyrequired/lookatme/default.aspx Anyway the following code finds the scanner properly, DeviceManager manager = new DeviceManagerClass(); foreach (DeviceInfo info in manager.DeviceInfos) { if (info.Type == WiaDeviceType.ScannerDeviceType) { device = info.Connect(); break; } } When I iterate through the commands, I get the following: "Synchronize" "Delete Device Tree" "Build Device Tree" None of these commands has anything to do with captu ...Show All

  • Visual Studio Tools for Office Word and line command argoment

    Hi, Sorry for my english! I would to read some arguments that I send to a word document on command line. Some could help me hello & thanks Ivan Hi Ivan Word doesn't support sending parameters on the command line. Write the information to an INI, XML or some kind of text file than have the Word solution read the data from there. Or provide the information through a web service and have project access the web service. ...Show All

  • Visual C# Compiler Error CS0570 from C++ defined property

    Compiler Error CS0570 Does anyone understand error CS0570 'class' is not supported by the language This error occurs when using imported metadata that was generated by another compiler. Your code attempted to use a class member that the compiler cannot process. The code being called was written in Managed C++ paraphrased like so: public ref class FilePath { ... [MyPropAttribute] property int Name { const int get(); } ... }; The attribute [MyPropAttribute] is defined like so: [System::AttributeUsageAttribute(System::AttributeTargets::Property)] public ref class MyPropAttribute: public System::Attribute {...}; When I try to use the property in C# code I get CS0570, but see no document on how to get around t ...Show All

  • Visual Studio Database Expert linking and Subreports

    I went through a complete 'Walkthrough' 'Report Document Object model Logging onto a secure SQL Server database with a sub report. Suffice it to say that since am creating a custom Dataset in ADO.NET, this was the incorrect walkthrough - as it showed me a Login, connectionInfo, etc. - this was all unnecessary because the dataset schema takes care of that in the connection. It's difficult to find all the correct information because this is all so new. I'm interested to optimize the loading of a report that has 4 subreports - the method I am pasting here works, but I read something about creating a relationship with the tables in the main report - so I tried that but then I get the famous side-effect - prompt for login credentials p ...Show All

  • Visual Basic Seeking Help with DBF Writer

    Hello, I following is a test class that I am writing. It is the beginning of a dbf writer that i am creating in vb.net. I have not written code to loop thru records, I just set a default field name, length and a default output. However, I am having problems with this, and am seeking advice on someone who may have written a dbf writer before. dbf output should look like this: JOBID 12345 A few things I have noticed when trying to debug, was that after running the program, and going back and readying each byte in the new file. Nothing would actually add up. For example, I specified version to equal 3, but when I read the bytes, I do not get the correct version number.. and so on. Also, my output would be something like 1234 ...Show All

  • SQL Server Space allocation for NULL

    hi, what is the best method to know the space consumption by a table object is it DBCC showcontig another thing is i have a table named tbl1 and having 2 columns Id and name , when i put 5 records with name as null as below Id Name 1 NULL 2 NULL 3 NULL 4 NULL 5 NULL will sql server allocates space for null values if so how much Mat Only FIXED Length columns (CHAR & NCHAR) allocate memory for NULL.. Rest of the datatype will not allocate any memory for NULL.. Use the following SP to find the table(data page) size on disk(actual) exec sp_spaceused 'Table Name' By default if the table is non empty then it will allocate 8KB (one page) for data.. so whenever the page size increases the data size also ...Show All

  • SQL Server How to creat a first DB?

    Hello all, I've Installed VS2005 and MSSQL express with it. I used to work with mssql 2003 enterprise edition where it had "Enterprise Manager" from which I could create and modify my Databases. How do I creat a new database with MSSQL express I've tried to do this via visual studio 2005 "server explorer". I"m entering the "Create new SQL Server Database" dialog, I select my server's name and my new database name and I recive an error message which says "An error has occurred while estabilishing a connection to the server" and it also says that "When connecting to SQL server 2005, this failure may be caused by the fact that under the defult settings SQL sever does not allow rem ...Show All

  • Silverlight (formerly WPF/E) WPF/e vs. HTML

    After reading Mike Harsh's blog post What WPF/e Really is . I'm kind of disappointed with the approach that the Architects are taking with WPF/e, as in that it augments HTML instead of replacing it. Why not Personaly I find that HTML slows me down in producing rich content for my users (something that WPF promises). Sure its easy, its fast, and we should keep it (not every website needs rotating letters). However, as I see .NET being used -alot- for mission critical application, I would only EXPECT WPF/e to take the fore front and upgrading the way we provide commericial services on the Internet in a fast, uniform way. Flash is doing this, Flex is not 'augmenting' the Web, its rewriting it. Share your thoughts. What w ...Show All

©2008 Software Development Network