Hila123's Q&A profile
SQL Server multi step OLE DB error
Hi All, I have a MS Access DB that I have successfully u/graded to SQL Express 2005. I run my code using a recordset as normal, and all connections to the database work fine, but I receive the multi step OLE DB error when it gets to a line trying to populate an address field which has a datatype of nvarchar(max), null. (Field was Memo in Access version before). This field in SQL2005 has allow nulls. I've tried to add an empty string " " to the variable before being saved, but this still doesn't work. Any ideas mrowek wrote: i change provider from mdac to sql native client and now program is running great and this is only one opportunity to get your program running (i th ...Show All
Windows Forms Calculating Total
hi everybody, i have a datagrid and it has many columns out of which amount is one column, and i have a textbox outside the grid, if i fill the amount column automatically textbox should be filled with the total amount, i did the coding part for calculating total, but the issue is i want the textbox to be filled after i leave the amount column in the datagrid, i have tried currentcell changed event, navigate event, tab index changed event, leave event, tab stop changed event, almost the events i tried out, but the value is not catching on the textbox, but the value catches in the textbox after i leave the whole row and then come to next row, i want the value to be catched after i leave the amount column ....... ...Show All
Software Development for Windows Vista How do i pass handle between proccesses?
Hi, I could use CreateProcess and STARTUPINFO to pass a pipe handle in xp. How can I use pipes with Shellexecute under vista Specifically, I tried "CreateProcess" from low privileged process(an activex) and it fails. Thanks in advance. What parameter did you use to pass the pipe handle - I used anonymouse pipe(created with inheritible flag) and used STARTUPINFO hStdInput or output when Creating process When you say low privileged, do you mean Low Rights IE or a standard user application -Low Rights as in protected mode I noticed plain "CreateProcess() without any pipe handle passing" fails when run from Low privileged application such as ActiveX I also tried file mapping with 'Local\\myFil ...Show All
Visual Studio Team System Work Item Field Naming Conventions
We have two camps for naming conventions. 1) Add the Work Item name in front of the field name so you can easily identify which Work Item field this field was for. E.g. <FIELD name= " ChangeRequest _ApplicationLevel" refname= "MyCompany.ChangeRequest.ApplicationLevel" type= "String" reportable= "dimension" > Then for Common fields shared among Work Items this camp does: E.g. <FIELD name= " Common _BusinessUnit" refname= "MyCompany.Common.BusinessUnit" type= "String" reportable= "dimension" > 2) The second camp does not have Work Item specific parts in the field name. E.g. <FIELD name= "A ...Show All
Software Development for Windows Vista Control panel applets
Hi, I am developing a control panel applet specifically for Windows Vista. I need this applet tightly integrated within the UI of the control panel, such that when the applet runs, it inherits the area, look and feel of the control panel. It will have custom pages that live within the area of the control panel UI when you navigate into the applet. All of this is in line with the Windows Vista User Experience Guidlines . My question is: How do I do all of these things discussed above and in the User Experience Guidelines It is clear that the intent is for ISVs to be able to accomplish these things based on their appearance in the guidelines, but I have not found any documentation regarding the actual implementation of such things. Can you ...Show All
Visual Basic finding record with RS and puting in txtbox
Hi can anyone help with VB 6. i am trying to find record and then from the same record taking one of the fields and replacing in the txtbox. this is the code. ' ================== vb 6 code =========================== Private Sub txtFields_Validate(Index As Integer, Cancel As Boolean) If mbAddNewFlag = True Then ZIPLOOK = txtFields(24).Text adoLookRS.MoveFirst If txtFields(24) <> "" Then If (Not adoLookRS.EOF) Then MsgBox "looking " adoLookRS.Find ("ZIP=" + ZIPLOOK + "'") adoLookRS.MoveFirst ' MsgBox "Fond it..." txtFields(1) = adoLookRS.Fields(vander_co).Value If adoLookRS.EOF Then MsgBox "not found ! " End If Else MsgBox "put the ...Show All
Windows Forms Default Date - Outlook,Calendar,Look,Feel
I can not Figure out how to set the default date to Today in the Day View. It keeps coming up as July 21. Any one see this and know where in the code to change. Thanks Quick and easy fix although your monthly calendar view will no longer crunch the weekends. Right Click a day on the calendar Choose other options Uncheck Compress weekend days Follow this link for a detailed explanation of the problem. The bottom line is it’s a bug in Microsoft Outlook they haven’t fixed since 1998 and it still exists even in Outlook version 2007. http://www.slipstick.com/calendar/wrongdate.htm ...Show All
Visual Basic Read/Write Decimal Value to File Problem
Hi, I'm having a problem with writing Decimal values to file and reading them back again. For some reason, the last digit is truncated when I read the value back again. Take a look at the following code snippet. Dim Value As Decimal = 0.1234D FileOpen(1, "test.dat" , OpenMode.Binary, OpenAccess.Write, OpenShare.LockReadWrite) FilePut(1, Value) FileClose(1) Value = 0D FileOpen(1, "test.dat" , OpenMode.Binary, OpenAccess.Read, OpenShare.LockReadWrite) FileGet(1, Value) FileClose(1) For some reason, when I read Value back again, it is 0.123 instead of 0.1234. The '4' is truncated off the end. It is not a rounding issue as this is a Decimal type and it truncates any digit off ...Show All
Visual Studio 2008 (Pre-release) WPF XAML xmlns: assembly not found problem.
i've created a xbap wpf project and i have problem with "Error 2 Assembly '' was not found. The 'clr-namespace' URI refers to an assembly that is not referenced by the project. " at the line which highlighted with red color. CustomControlLibrary2 in particular is a custom control made by using adding wpf control library template project. <Page x:Class="CarouselSample.Page1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d&qu ...Show All
.NET Development What's the different between 64-bit and 32-bit ?
What's the different between 64-bit and 32-bit I am always wondered what's the difference but I couldn't find a good reference. I want to learn what are the benefits. Can anyone tell me Regards, Mustafa 64-bit carries twice as much data. The actual benefits vary depending upon where you are. Most desktop applications/software currently barely utilize 32-bits. This is why for the longest of times most applications ran as fast or a tad slower when combpiled to 64-bit on 64-bit machines because it was trying to move twice the data when it didn't need to. For server applications such as databases, web serving and etc 64-bit should have noticeable performance increases though i've not seen any real w ...Show All
Smart Device Development Losing Databinding with ResultSetViews
I am programming in C# for the .net compact framework 2.0. I am binding controls on the screen to my SqlCe database using ResultSetViews. Everything works fine, as long as there are rows in the table when I create a ResultSet. If I create a ResultSet when there are no rows in the table, and then later add rows to the table, and after that set up the databindings, the bindings won't work (Controls who's Text property is bound display no text at all). Do I need to do something to update the resultSetViews This is (sort of) how I am doing it: cmndDB = new SqlCeCommand("SELECT * FROM MyTable", dbConn); SqlCeResultSet rs = cmndDB.ExecuteResultSet(); ResultSetView rv = rs.ResultSetView; ... cmndDB.CommandText = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Looking for help/advice with multiple game 'screens'
Hi all, I'm fairly certain that I saw a link or post here within the past month where someone described a way to set up multiple game screens (menu screen, actual gameplay screen, pause screen, etc) via a stack of some sort. I've been searching the forum trying to find the elusive topic, but I'm having no luck. I'm trying to decide how exactly I should go about setting up my game so that it can easily have multiple windows without a big jumbled mess of code. As such, I was thinking about that tutorial I skimmed, and I was thinknig of doing something like this: > Have some sort of generic Screen class that references Game1's graphics device. Use this as a parent class > Using polymorphism, create the other screens. Each screen would b ...Show All
.NET Development system.io.log.dll
Why don' I have the system.io.log.dll assembly ! I need the System.IO.Log but I can't get it. I can't even find the file on the disk or add it as a new reference to the whole project. Please Help! You need to download and install the .NET Framework 3.0: Microsoft .NET Framework 3.0 Redistributable Package ...Show All
.NET Development Unknown error "-1".
I am getting the following error when trying to use File.CreateText(filepath) Source: mscorlib Message: Unknown error "-1". We are only seeing this error on a few of our client machines (they are all XP Pro). We are unable to reproduce it in-house. Luckily I've been able to remote into one of our client boxes in order to fix the problem. Here are the steps that I have taken: 1. I've given the folder that we are writing to permissions for everyone full access (just in case). 2. Re-Installed the 2.0 Framework We are writing to the folder "Documents And Settings\All Users\Application Data\AppName" Our code is able to create the folder Under the "All Users\Application Data" I'm not sure w ...Show All
Software Development for Windows Vista Capturing multiple audio streams and mixing into one stream for ASF output
hi, i want to capture the audio from various inputs and want to save to a file, i am facing so many problems, does any body have some reference code, with which i can start thanks in advance When you say "capture", do you mean from live sources If not, you might take a look at DirectShow Editing Services. http://msdn.microsoft.com/library/default.asp url=/library/en-us/directshow/htm/directshoweditingservices.asp ...Show All
