Sniper167's Q&A profile
.NET Development CAS declarative security
How come it is not possible for an otherwise fully trusted assembly to refuse some permissions (declaratively) without loosing it's full trust status Not quite: When IIS5.0 tries to load my SOAP service (if I, say, rebuild the assembly that implements the soap service after having added just 1 of the refusal-options and have IE7 look up the corresponding URL - eg http://localhost/MyWebService/MyPage.ashx ) the above exception is thrown before I can get my hands on a breakpoint inside my own code. I assume it happens as aspnet_wp.exe tries to load the appdomain for my soap service. I guess that one of the assemblies that IIS5.0 uses is partially trusted (even though, as far as I can tell, both System.Web.dll and System.dll are full ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DreamBuildPlay is up!!!
Now go register!! Actual contest details to come the week of Feb 5th Plese, Someone at Microsoft.... the drembuildplay site, even though the competition should be global, does not allow non-US people to register. I don't live in the U.S., so I can't choose any state, the zipcodes in my country are 6 digits long, and the telephone numbers are not in the US format. Edit: didn't see errolian's post before i posted this. P.S. did I mention I passed from neutral state, to exalted state and then down to low-morale state in about 2 minutes .... does this make me emotionally unstable ...Show All
Visual C++ Help! problem with CFile class
This is code void func(CString string) { pFile.Open( m_FilePath, CFile::modeWrite | CFile::modeCreate); pFile.Seek( 0, CFile::end ); if ( pFile.GetLength() > (m_iFileSize) * 1024 * 1024 )//when file have some size { pFile.Close(); //close a file DeleteFile( m_FilePath + CString(".old") );//delete old file MoveFile( m_FilePath, m_FilePath + CString(".old"));//move information from main file to old if(!pFile.Open( m_ FilePath, CFile::modeWrite | CFile::modeCreate))return;//open file again and write from begin } //here i write some information in file pFile.Close();//close file //end function } in this code MSVS always thow CFileExeption error i can`t understa ...Show All
Visual Basic Problem saving graphics to a file
Hi, I have an application in which the PaintEvent calls up a procedure to get data from four Sql tables, and produce drawings. This part of the app works fine. I am now trying to copy these drawing one at a time to a Bitmap file, and not having much success. I've omitted the the Sql statement sections in the following code as they are not the problem. Private curFileName As String Private curImage As Image Dim ImageNo As Int32 = 0 ' This procedure adds the drawings ands text to the appropriate rectangle. Private Sub DrawDetails(ByVal e As Graphics) If ImageNo = 0 Then ImageNo = 1 Else ImageNo = ImageNo + 1 End If curFileName = "Drawing " & ImageNo & ".bmp& ...Show All
Visual Studio Express Editions Problem running program on new VS.NET Express Install
I am fairly new to C++ and am taking an online course. I just installed VS.NET 2005 Express. The install went fine, and my first program supposedly compiled OK, but when I tried to start without debuging, I got this message: Unable to start program c.|documents and settings\lynette\my documents\visual studio 2005\ projects\dayType\debug\ dayType.exe. The system cannot find the path specified. I went back and installed a SDK program and rebooted, but got the same message. What can I do to finish installing and run my program Thanks! Lynette First off, what version of VS Express are you using C++ Express Second, have you actually verified that the file exists in the path listed The Express product is simply saying that ...Show All
Visual Studio View Pending Checkins
I am creating a custom source control.Is it possible to populate and display the View Pending Checkins window in the Visual Studio with my custom source control If yes, hw do i do it pls help. You can show the View Pending Checkins window using DTE.ExecuteCommand("View.PendingCheckins"). About populating it, I think it is done automatically by VS, assuming that you are building a Source Code Control (SCC) provider compliant with VS. The VS 2005 SDK has documentation about this subject, and if I remember correctly there were two approaches, one simple and other more complex. ...Show All
Visual C# DateTime Support Native to Managed to SQLServer with COM Interop
Hi Everyone: I am currently looking at an issue involving the best way to handle dates. I am principally using DateTime fields as fields defined in record structures defined within managed VC# code and exposed to COM Interop. Systems Involved: Legacy Native VC++ 6.0 VC# .NET 2005 SQL Server 2005. Issue: What is the best way to handle dates moving between native code, managed code and SQL Server. Facts: All three system have separate and/or different ways of handling dates and times. The min value for a date-time field in all three systems is different by-Microsoft-design. The highest common denominator for date-time min value is that used by native code. (December 30th, 1899 12:00:00 AM) Passing a ...Show All
SQL Server share variable with child
How a parent package can share its variables with child when calling it using Execute Package Task Andy Leonard wrote: Hi Fahad, Phil is correct. A couple things to note: the variable shared between the parent and child packages must have the same name and data type. Hope this helps, Andy They shouldn't need the same name, is my understanding, as you choose the "value" parameter of the variable you'd like to map to. ...Show All
Windows Live Developer Forums Problem Signing In
Hi, I'm having a problem signing into my Windows Live Messenger 8.0. Everytime I first log onto my file and go to sign into the Live Messenger, some error message comes up with the code:80004005. I've been doing everything that I can to fix it but nothing that I've done has worked. So if anyone knows how to fix it, please e-mail me at black_nigga_12@hotmail.com Thanks, Blacks I had the same problem. When I turned of my firewall it signed on then I turned the firewall on again. Since then the problem has gone. Also if your I.E. setting is set to work in offline mode the same problem occurs. ...Show All
SQL Server Does SQL 2005 runs on other platforms them MS windows ?
I could not find in the documentation but someone told me that there is a way. YOu will be able to connect to the SQL Server from any platform where you can find an appropiate driver, but the shipped client tools from MS and the service will only run on WIndows platforms. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Begginers and XNA
How hard is it for a begginger with no experience in programing and low math skills to make a working game on XNA Is it even possible How much does it take to learn C#, and how intuitive is it My first choice of program to use would be the Torque Engine, because it was implemented well in Marble Blast Ultra on Xbox Live Arcade. I would really like to be able to create games, even if simple, I also want to get in the video game industry, though not currently in programming, but I mainly want to do it as a hobby. Thanks for any help you guys can give me. DreamConspiracy wrote: this may sound weird but how hard would it be to port a game made with XNA to platforms like &nbs ...Show All
Internet Explorer Development IE7 displays my xml/xslt page differently from IE6
Hi, I have a Web application that works as follows: - An ASP.net page generates an XML string linked to an XSLT stylesheet and sends it to Internet Explorer. - Internet Explorer applies the stylesheet and displays the resulting HTML page in the browser. Everything worked great with IE6 and most of this still works fine in IE7 except for one page. In that page, I return an XML string similar to the following: 1 < xml version="1.0" encoding="utf-8" > 2 < xml-stylesheet type="text/xsl" href="styles/volumetryAdmin.xslt" > 3 <ifinance xmlns="urn:ifinance" auth="0" lang="fr" today="20061109"> 4 <precomps> 5 <precomp id="5& ...Show All
Architecture Server getting intimation of disconnection while file is downloaded from client side
I have a problem, There is a file being transferred to an .Net application via HTTP protocol by a J2EE web application. Now I want to trap the client disconnection event at Server Side if Download fails from client side. I have thought some approaches but not fully satisfied with those: 1. Just open a separate thread from client that will tell the server periodically that client is alive, till file gets transferred. 2. Server should ping the client periodically, if client is available, but this would be a violation of HTTP protocol. In case 1 , I would have to make a service or exceutable on client side which i would like to attempt as the last case. I would like client to be just using webbrowser. Please comment on my ideas ...Show All
Visual C# C#.net How do you give a Windows service specific permissions?
Hi, I want to be able to create a new user account with only the necessary privileges etc (getting a web webrequest from a web page, then writeing the result to a file). And configure the service to run under the new user account. I cant seem to work out how to do this. Hope someone can help me. Thanks in advance kered Hi if you want to configure a service to use a specific user account you have to - install the service - open up service manager (control panel - administrative tools - services) - right click on the service, choose properties - in the tab Logon, choose this account and supply the necessary info Hope this helps, please close the thread if it does ...Show All
Visual Basic drawing bitmaps images
I loaded a picture box with a bitmap image(.bmp) and read it byte by byte into 3 seperate arrays to get the values of rgb in to each array respectivley. I want to recreate the picture in a diffrenet picture box by drawing individual pixels. The only methos i know is the drawellipse method but i do not know to transfer the values of the 3 array to the pen object in order to create the colour i need. One you said by declaring a bitmap object i can do that but problem is the colours are much shaper than that of the picture and i have dark lines going every in the picture. I have attached the code of my work. Imports System.IO Imports System.Math Imports System.Drawing.Graphics /**************************************** ...Show All
