DawnJ's Q&A profile
Software Development for Windows Vista CreateFile() on C:\Program Files directory on Vista
I was using CreateFile() to create a file under some directory in Program Files. I wanted to see the "elevated" security. The result is not what I had expected. This is the piece of code I am using: memset(&security_attributes,0,sizeof(security_attributes)); security_attributes.nLength = sizeof(security_attributes); security_attributes.bInheritHandle = FALSE; handle = CreateFile("c:\\Program Files\\test",GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, &security_attributes, OPEN_ALWAYS, FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH, (HANDLE)NULL /*Template File*/); if (handle == INVALID_HANDLE_VALUE) ...Show All
Visual C# updating dataset
Hi friends, i am writing text from c# into text file,I use following code : private void Button1_Click(object sender, System.EventArgs e) { StreamReader fp; DataSet1 ds =new DataSet1(); DataRow dr; try { fp = File.OpenText(Server.MapPath(".\\upload\\") + "test.txt"); string info = fp.ReadToEnd(); string[] arInfo = new string[4]; char[] splitter = {'|','^'}; arInfo = info.Split(splitter); for(int x = 0; x < arInfo.Length; x++) { Response.Write(arInfo[x] + "<br>"); dr = ds.Tables["Sample"].NewRow(); dr["username"] = arInfo[0]; dr["password"]=arINfo[1]; ds.Tables["Sample"].Rows.Add(dr); ds ...Show All
.NET Development Help needed with XslCompiledTransform
I had an issue to the XslCompiledTransform.Transform method, i am using the following code to transform xml to html public string transform(string source, string xslPath) { string rtnXml = ""; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.InnerXml = source; XPathNavigator xpNav = xmlDoc.CreateNavigator(); XsltSettings settings = new XsltSettings(true, true); XslCompiledTransform xsl = new XslCompiledTransform(); xsl.Load(xslPath, settings, new XmlUrlResolver()); StringBuilder sb = new StringBuilder(); StringWriter sw = new StringWriter(sb); XmlTextWriter writer = new XmlTextWriter(sw); xsl.Transform(xpNav, null, writer); sw.Close(); writer.Close(); ...Show All
SQL Server Which Server
Hi Guys, I'm a beginner with Access and I set up a small database for a local charity project with a backend, front-end over a network drive. The database works well except that when too many people have the database open (there could be up to 6) at the same time it runs very slow. Someone said to me that if I put the tables on a server on one of the computers then it would improve the speed of the database but I would still like to keep the front-end as Access. Can anyone tell me if this approach would be a solution to my problem and if so which server would suit my needs, remembering that money is an issue You need SQL Server 2005 Express Edition SP2, which is available free from Microsoft. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. EXTREME NEWB QUESTION
Hello fellow gamers, I need to know how to un-zip a zipped file. The file I am trying to un-zip is XACT. So dont worry, its legal. Oh god! I really didn’t think I could see a post like this. Are you telling me that you are a Microsoft registered user, that knows how to post in this forum, but doesn’t know how to unzip a file Strange... but who knows!. Ok, nevermind. Windows XP can unzip it for you. Just select "decompress" in the explorer context menu (click in right mouse button, if don’t know a thing about explorer context menu). If not, download Winzip, Winrar, or anything, install, and decompress. Piece of cake! ...Show All
SQL Server Failed to decrypt protected XML node "PackagePassword" with error 0x8009000B
When and why does this error message appear.. Error 1 Error loading MasterPackage.dtsx: Failed to decrypt protected XML node "PackagePassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. what is the ProtectionLevel property set to on the children and parent Right click properties -> ProtectionLevel) it appears that when you are opening the package it cannot decrypt the sensitive information. This often occurs when developing on one box and promoting to another. ...Show All
Visual Studio Express Editions .NET 1.1 Card game files
I am using VS2003 (at work), and would like to develop a card game. I've downloaded the C# Express card game file, but of course it doesn't work with VS2003. I tried renaming the .vsi to .zip (as specified in the .vsi article), but it won't open (corrupt file). Is the source code available elsewhere Does it require .NET2 or can I use it in VS2003 Thanks Neil ...Show All
SQL Server Missing transaction logs
can anyone please point me in the right direction as to how to go about rebuilding the transaction log files on a database here is the scenario: 1 - transaction log drive failed and transaction log file is basically gone. 2 - database file is fine. 3 - backup is too old or for all intents and purposes non-existent. the server initially showed the database as suspect. the database was detached and an attempt was made to attach it with a recovered copy of the transaction log file but apparently it was too corrupted and the server didn't like it. any suggestions would be greatly appreciated. by the way, after looking at some of the posts here, i tried ApexSQL Log and Red-Gate Rescue bundle but these tools seem to require ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar .fbx models.
Just me, or are the models used in spacewar needlessly huge in dimenisons and in vertex count In wireframe render mode it's easier to see - the ones with gun barrels that have cooling holes are individually modeled that way - it's not like you can see that level of detail. The flying saucer one has an enormous number of verticies can could have been welded away. I haven't seen anything as to what's 'right sizing' a model for xbox360 but these have got be excessive for the level of detail that's shown in game. It's just a shame. I'm sure like a lot of people, i first got the xna kit and built the sample - the game seems slugish on my PC (which admittedly is far from top of the line AMD64 3000, 1GB DDR, Nvidia 5300 (don't laugh). ...Show All
.NET Development SOAP with Attachments using MIME
How can I use SOAP MIME attachments in .Net ...Show All
Visual Studio Express Editions how to make auto numbers?
hi......how to make an auto numbers i'm creating a ticketing system which the ticket starts at smp-2000(textbox)... when i create another ticket the ticket will now increament to 1(smp-2001)....and so-on, and another thing once i close my app and open it... the ticket will now continue the count(not back to smp-2000 again) From the menu, select Project, then the last option listed ("Project Name" Properties). This should bring up a side-tab panel. Select the Settings Tab. Enter the name of your setting, its data type, and set Scope to Application. In your code, refer to the setting with the My.Settings namespace. Be sure to save the settings whenever you change them (and want to keep the changed value). ...Show All
Visual Studio Team System Create a new filter in reports
New bee in creating reports ! I need to add a new filter called Issue Type to all existing reports. How do I do this Thanks Srikanth Hi Srikanth, Were you able to figure this out If not, try looking at this msdn doc about adding a parameter to a report: http://msdn2.microsoft.com/en-us/library/aa337432.aspx basically what you'll need to do is add the parameter to the report, and then also modify the query for the dataset for that report. mauli ...Show All
Visual Studio strange problem regarding check in date time
I meet a strange problem regarding check in date time I check in a file at 8 Aug14:19 today, then I view the history in visual studio 2005 via right click the file, the time is correct equal 14:19, but while I open sourcesafe explorer at same pc and view the history, I noted the check in date time become a future time 5:19 am 9 Aug, it is so strange, anybody can help me. If you're certain that no one will check in code over the weekend, you could change the timezone setting in the Administrator's Tools\Options dialog on a Sunday (or first thing Monday morning). Else, take the database offline for the duration of the time difference (17 hours), change the setting, then place it back online. ...Show All
Windows Forms Help starting "excel like" app
I first started programming with VBA in excel and am having a hard time going from that to VB express by itself. Can anyone give me advice on how to start creating an app that works like excel I want to create a layout like excel and enter information into the "cells" and then store that info into SQL. what is the best way to get started, (datagridview, etc...) thanks for any help. Jeff indeed, a datagridview is what you would require to have that kind of a cell grid view, where you can add/remove/edit data and finally update the database for example with the use of a dataset/datatable as a binding source and with a dataAdapter. I hope this gets you started: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=7538 ...Show All
SQL Server Issue with Logging using SQL Server
Hi All, I'm trying to implement the SQL Server logging in my package but Im receiving a very weird error message. Follow below: "Error at Consumer_Common_Transportation [Log provider "SSIS log provider for SQL Server"]: An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E14 Description: "There is already an object named 'sysdtslog90' in the database. Error at Copy Data to TCARRIER: The SSIS logging provider "SSIS log provider for SQL Server" failed with error code 0xC0202009 ((null)). This indicates a logging error attributable to the specified log provider. (Microsoft.DataTransformationServices.VsInte ...Show All
