jCarlisle's Q&A profile
Windows Forms Program Warning problem
Hey, I found this really cool Example on The Code Project website that was a MS Word/Exel like program, and for the recent documents list thing I have to have this line of code: private static extern bool PathCompactPathEx ( StringBuilder pszOut, string pszPath, int cchMax, int reserved); I highlighted green the part that has the warning...Below is the warning and this warning wont let me run my project until it is fixed...: Warning 1: Method, operator, or accessor 'Notebook_Pro.Form1.PathCompactPathEx(System.Text.StringBuilder, string, int, int)' is marked external and has no attributes on it. Consider adding a DllImport attribute to specify the external implementation. What do I do to fix this T ...Show All
Visual C# issue converting generics list to array and back
I'm new to generics and they are being a real pain when it comes to my web services. I've got a winforms app that uses a proxy web class which invokes methods on a web service. The web method "RemoveRole" takes a parameter of List<Guid>. It throws up saying it could not convert object[] to List<Guid> so I'm trying to figure out how to put the plumbing in place to make the conversion happen. Currently the code below throws " Cannot implicitly convert type 'System.Collections.Generic.List<object>' to 'object[] ". 1. How do i get the following to work and.. 2. What plumbing do I need in the web service code to convert from object[] back to List<Guid> public void RemoveRole(List<Gu ...Show All
Visual Studio Express Editions File Associated Icons WITHOUT passing File Name
Spent 2 days on ShGetFileInfo - and was not satisfied. How can I get the Icons associated to a file type based ONLY on the extension I am building a catalog application which may contain a file "C:\TEMP\DATA.TXT". This path/file may be valid on my computer but not on another. However, I need to display the TEXT FILE associated icons irrespective of where I load the "catalog". Can anyone provide some code to do this effectively using the "System Imagelist" or any better implementation Thanks. Reading the docs, it looks to me like you can pass the SHGFI_USEFILEATTRIBUTES flag and pass a fake file name like "blabla.txt" or ".txt". Pass FILE_ATTRI ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help Using Quaternion To Find Target
I've read a couple of very helpful threads here on Quaternions, so I decided to try putting them to use. I was able to use them to move a 3D object around using a modification of Riemer's flight simulator tutorial, to which I added a second object. However, I then tried to initialize the orientation of the two objects to point towards each other from any given starting location, and that didn't work the way I expected. Can someone help me understand what's wrong with the following code public void SetOrientation(Vector3 startLocation, Vector3 targetLocation) { Matrix target = Matrix.CreateLookAt(startLocation, targetLocation, Vector3.Up); Orientation = Quaternion.CreateFromRotationMatrix(target); } public virtual void U ...Show All
SQL Server Implementing "preconditions"
I have about a half-dozen insertion tasks that depend on a condition: SQLServerProcessDate == OLEDBprocessDate. If the task executes early, old data gets inserted and needs to be backed out later on. (This happens about two-three times a month.) The jobs start at 8:00 PM, but on occasion processing runs late. In order to make the task intelligent enough to not insert old data, I've thought of a couple options: 1.) Separate scheduled job runs continuously, comparing process dates. When the dates match, it sends a message to the other jobs. Pro: less repetitive. Con: another scheduled job ! I'll have to learn the message queue task; a little bit complex; flood of database activity on message reception may slow system down 2.) Compare the dat ...Show All
Software Development for Windows Vista All games run slower than XP
I have nvidia 6600GT. All games run bad! Fifa 2007 in XP runs more than great on 1280x1024 + AA and all effects, in Vista from the game menu is starting to run bad! When a match starts, starts veery slow fps. The same is with some other games i tried, even the old Counter-Strike 1.6 I play with 60 fps, that is very slow for that kind of game and that kind of videocard. Tried to run with XP Compatibility mode, same :(. Videodriver is updated (that shows Device manager) My Vista is RTM, Ultimate. Tried to stop all visual effects, same story. RAM - 1024, 60% free. Hello samardjiev, Microsoft does not support 3rd party software or hardware. Performance is dependant on many factors in both hardware and software configurations. I would g ...Show All
Visual Studio Express Editions LDAP Authentication
hi all, i want to create a login form to my windows application that takes username and password and looks to Active Directory to authanticate the user. I think i could use LDAP but how thnx.. thnx for your help, but it throws this exception System.Runtime.InteropServices.COMException was unhandled Message=" Unspecified error\r\n " Source="System.DirectoryServices" ErrorCode=-2147467259 StackTrace: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_NativeObject() at LDAP_Authentication.Form1.button2_Click(Object sender, EventArgs e) in ... ...Show All
SQL Server SSIS Logging -- how to overwrite old log file.
After logging is configured in SSIS package, it seems that after each execution the output is appended to the log file (we are talking about log provider for text files in this case). As a result the file just keeps on growing. I would like to overwrite old information with each run, but I can't find where to configure this. Anybody knows Thank you! I don't think you can do that but you can easily just create a new file upon each execution by setting the name of the file dynamically. If the filename contained (for example) the start time of the package then you would get a new file on each execution. If you want to do this - explore the use of expressions. -Jamie ...Show All
Windows Forms Unable to move the position of custom control during design time
Hi, I developed a WebCustomControl in c# 2003. Everything is fine but when I am trying to use this in VS2005 the control is not moving during design time. Actually it is locked. How to remove the lock for webcustomcontrol that was built in 2003. Or is there any way to make the control moveable through code that was developed on c#2003. Any help is really appreciated. I need it badly. Thanks, Sukanya. Sukanya wrote: Hi, I developed a WebCustomControl in c# 2003. Everything is fine but when I am trying to use this in VS2005 the control is not moving during design time. Actually it is locked. How to remove the lock for webcustomcontrol that was built in 2003. Or is there any way to make the control mov ...Show All
Windows Forms should access database under application files?
hi, i have a program with an Access database when i publish it, should the database be included (under publish tab --> application files button) if so, how can i make it shown as now i can't see the database now many thx hunb Are you asking this regarding a ClickOnce deployment If so, the following references may answer your question: MSDN topics: Application Files Dialog Box http://msdn2.microsoft.com/en-us/library/xtkkwf3d.aspx Accessing Local and Remote Data in ClickOnce Applications http://msdn2.microsoft.com/en-us/library/d8saf4wy.aspx Forum: ClickOnce and Setup & Deployment Projects http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=6&SiteID=1 If this is not regard ...Show All
Visual Studio 2008 (Pre-release) WCF: IIS7, HTTP, Basic Authentication & Membership
Hi, I'm trying to use WCF with HTTP binding and Basic Authentication using IIS7/WAS. It works when authenticate using Windows accounts, however it return 401 when using ASP.Net Membership. Note: I do not want to use HTTPS since the HTTPS is terminated in a router in front of my web server. Here is my WCF binding configuration: < basicHttpBinding > < binding name = " HttpBinding " > < security mode = " TransportCredentialOnly " > < transport clientCredentialType = " Basic " /> </ security > </ binding > When I'm using the standard IIS7 Basic Authentication handler everything work fine. However, I want to authenticate against username cr ...Show All
SQL Server OLAP Cube from an OLTP (normalized database)?
Hi All, I am new to OLAP and every book that I have read so far talks about creating an OLAP cube from a Star Schema (Data warehouse). I want to ask that, is it possible to create a Cube in Analysis Services from an OLTP (normalized database) without creating any star schema I understand that the first concern is performance. Regards, Ravi S Thomas, Thanks a lot for the pointer and recommendations. As you mentioned one can use named queries and data source views. Are these features available in Analysis Services 2000 (or SQL Server 2000) Thanks a lot again. Regards, Ravi ...Show All
Visual Studio Express Editions No RX Data problem
Hi, I'm having a little trouble with my serial data program, it only works whilst there is data coming in. I am sure that I require something between opening my port and setting my variable = comport.readbyte, can anyone suggest the short statement required I thought maybe a do loop and something which looks at the port and allows it to continue if there is incoming data but I don't know the functions You have been very helpful, many thanks. I have almost got it perfected. I will over the next day try to understand the first paragraph of your last post, I'm not too concerned abouit time now as it is almost done. Thanks again ...Show All
Visual Studio Tools for Office msi - check office and PIAs version
hello, regarding msi, 1. how do i check what version of office is installed on the target machine That is , in the launch conditions part - do i use registry search or windows installer search and , i don't know what values to expect and look for. 2. if 2003 is installed i intend to check for the 2003 PIAs and if they are not present - i install them. i look for word 2003 PIA , for example , by adding a windows installer search with componentId={1C8772BD-6E6F-4C9D-8FF8-B5EA072F86EF}. now , if i want to check for the word 2007 PIA presence - what do i look for does the 2003 and 2007 PIA have the same component id thanks hilla 1. Check out this article for the Office's produc ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Whats the deal with DirectX being owned by XNA?
How come when I go here: http://msdn.microsoft.com/directx/ I get redirected here: http://msdn2.microsoft.com/en-us/xna/aa937781.aspx Is XNA making a move on owning DirectX It seems after reading some basic information on microsoft.com regarding recent statements about XNA and its current goals I'm led to believe that perhaps the whole of DirectX is being cut up and fed to XNA. First DirectShow goes. Now I realize even basic support I had in DirectX 9.0c is not even supported in DirectX 10. Basically I'm gonna have to port a graphics app engine from DX9 to DX10 and have to include DX10, at least some DX9 headers/libs, the seperate DirectShow files, and if I want rumble support for my Wireless XBox360 controller for Windows I ne ...Show All
