dstrode's Q&A profile
Visual Studio 2008 (Pre-release) Getting Error when try to publish the exe with XML file.
Hi, When im trying to publish the exe, im getting 'System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission' error. Actually im reading a XML file inside the code behind. If ill remove that then it wont create any problem i think. Please, can anyone help me to publish it Perhaps you can explain what the xml file contains and what you need to do with it Do you ever need to modify it, or just read it... ...Show All
.NET Development file decompress
Hi all, in my application i want to decompress compressed files and then write it into a folder. Has anyone an algorithms (except the example from msdn) Thanks in advance you could use the GZipStream but does not use/interact with zip files. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=891232&SiteID=1 if you need it translated in C# - let us know :-) ...Show All
.NET Development Check how many references there are to an object
Hi! I am writing a .NET Compact Framework application, which loads a certain number of controls in a row and displays them to the user (first control A gets loaded and displayed full screen, then control A is replaced with control B, B is replaced with C and so on, but only one control is loaded at a time and each control will also be used only one time). Writing this application for a memory constrained environment (Pocket PC) I added a finalizer to a few controls to see if they got disposed properly, yet they didn't. So I wonder if there is a way to track the number of references to an object so that I can find out what keeps these controls from being collected. One thing to note is that although you have added a finalizer to a cont ...Show All
SQL Server How to execute multiple stored procedures from a report and return the sum of the values returned from the sp's
Hi, I am writing a ver complex and highly critical report and since the report is complex, I have created a bunch of stored procedures to handle this. I then created a text dataset to call the sps. In the dataset I have a dynamic sql query that executes those sps and get the values returned from them in a variable. I then add those values together and store them in another declared variable. I want to return this variable from the report so that it shows in the fields list. For this I am writing a single select query for eg: 'Select @amount as Total' But when I click refresh fields, I just get a single column with the name ID and it is not set to any value from the dataset when I go the the fields tab in the dataset. This has b ...Show All
Smart Device Development Pass text From TextBox1 to TextBox2 in MFC WM5
Dear All: Is correct the fellowing code It works but i want to know whether it is correct or could be better void CPrueba01Dlg::OnBnClickedButton1(){ // TODO: Add your control notification handler code here CEdit* editCtrl = (CEdit*)GetDlgItem(IDC_EDIT1); CEdit* editCtrl2 = (CEdit*)GetDlgItem(IDC_EDIT2); TCHAR *cadena2 = (TCHAR *)malloc(200 * sizeof(TCHAR)); editCtrl->GetWindowTextW(cadena2,10); editCtrl2->SetWindowText(cadena2); free(cadena2); } I'm using VS2005 for Smart Device Applications. Thanks. Alfredo Mendiola Loyola Lima Peru ...Show All
Smart Device Development VoIP client for WM 5.0
Hi, Is there any API to develop a VoIP client with SIP, RTP, .. Thanks in advance. No, not on WM 5.0 (even though it's available in Windows CE 5). You’d need to implement it from scratch or use 3 rd party products (if any). ...Show All
Visual Studio Express Editions Multiple Instances of Program in Taskbar
I notice that when I test my program in debug mode that for every form that I have open (I can have anywhere from 1 to 4 forms open at the same time), a separate instance of my program is shown down in the taskbar (I'm running Windows XP). Is there anyway for me to just have one instance of my program show up in the taskbar Thanks. John Each form has a ShowInTaskbar property. Just set it to False if you don't want the form to appear in the taskbar. ...Show All
Visual C++ Error message PSAPI.DLL
I am getting a error pop up saying Get Process Image file name w. could not be located in the dynamic link library psapi.dll What should I do to fix this. April I get the feeling that you are not a software developer using Visual Studio... Can you give us the steps you're using that gives you this error i.e. What kind of application are you trying to run Also, check out this blog link , which I found by searching the net on keywords psapi.dll and GetProcessImageFilenamew. Brian ...Show All
Visual Studio Team System Advice needed: delete old builds using a Task(?)
I have the following. A build type called "Nighly Build" that is scheduled to run every night. It will drop the output on a shared folder on a server in the following structure: \\server\drops\ProjectA\Nightly Builds\ However after a couple of weeks there will be a lot of nightly builds in this folder. I was wandering what would be a good practice to only keep the Nightly Builds of the last week and delete the ones older than one week Should I add this as a custom task to the "Nightly Build" Build Type Or should I use a batch file or script file and run it on scheduled intervals using the Windows Scheduler Any advice is appreciated or how do you guys deal with this Hi Gabriel, In version 1 we don't have m ...Show All
Visual Basic i need help! please someone help!!
hey guys, i'm doing a project that requires me to build an application with a database. i need to gather information from the database to use with the applicaiton. for eg.. a login page. and the application will look for the appropriate userId and passWord from the database. can someone give me some starters as to how to do it. it has been a frustrating 2 weeks trying to do sumthing. i've tried table adapters, functions and everything but i just can't get it to work. THANK YOU VERY VERY MUCH!! mel hey bro! although u didn't really help me much. but in fact u did HELP me alot. u woke me up from my dream and really got me to start working again. and i manged to create and connect and do everything i had to d ...Show All
Visual Studio Express Editions MS access DB / vb express help?
I have an MS access DB and it has 2 tables 1) "customers" 2) "contracts". I pull data from both of these tables using 2 different datasets so if i change something in customer only customer updates and if i change something in contracts then contracts updates... both tables have a field called "CustID" so i would like it if i change the contract then the customer details also update, im sure this is possible but im new to programming and cant figure it out :( Hope someone can help, thanks! :) Heres the Code:- Dim parentColumn As DataColumn = DataSet.Tables("Customers").Columns("CustID") Dim childColumn As DataColumn = DataSet.Tables(" ...Show All
.NET Development Validating with XSD: Why is object System.Xml.XsdValidatingReader inaccessable?
If I am validating an XML with an XSD, I set a handler for XmlReaderSettings.ValidationEventHandler. This method has a property sender, of type object. If I do a break-point in the handles and then use quick-watch to look at the property, I can see that object sender is of type System.Xml.XsdValidatingReader. System.Xml.XsdValidatingReader is not an object I have access to. I am trying to cast object sender as type XsdValidatingReader so I can access the 'Name' property (Trying to get the name of the node that has the error). I can see the value from quick-watch, but cannot access it because I am unable to cast the sender object as XsdValidatingReader. This is the short version of my code: 1 private void MyMethod() 2 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bounding Box Not Rotating Correctly
I have a bounding box around a rotating object which is positioned at the origin. The object is only rotating about the Z-axis and I'm wanting the bounding box to rotate with it. To achieve this I am translating the bounding box's coordinates by the same rotation matrix as I'm using to rotate the object but it's not working correctly. Instead of rotating the bounding box it just appears to shrink and stretch it. I have written a simple method which just draws lines between the bounding boxes coordinates to display the bounding box which is how I know that the bounding box isn't being rotated correctly. Interestingly enough, the bounding box is always drawn with vertical and horizontal lines, never diagonal lines. So it could be my drawing ...Show All
Visual C# Combine C# with C++
I have a solution that combines a project in C++(for calculations) with C#(interface). Is it possible to declare a class in C# and then use the objects in the C++ code ...Show All
Visual Studio Express Editions Printing
Hi, How would i "capture" the print event and get information like the user that told it to print, pages in the document etc. thanks briggins5, The Print event occurs after data in a report section is formatted for printing, but before the section is printed. The following code shows how to create standard Windows Forms Print Jobs Private Sub PrintDocument1_PrintPage( ByVal sender As Object , ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.FillRectangle(Brushes.Red, New Rectangle(500, 500, 500, 500)) End Sub ...Show All
