Sweeps78's Q&A profile
Windows Forms ListBox Problem
Hi All: i hope to help me. i have a List Box which i fill it by the DataSource. when i try to set the SelectedValue, i got this message: "Undefined Value" and i cant set the selected value. but if i put a break point on the line which set the selected value and enter on the ListBox items by the QuickWatch, then close the Quickwatch, i get the true selected value and the ListBox working fine. is there anyone have an idea Thanks very ...Show All
.NET Development Problems with GUID
Hello Again My friends, the problem is the next: I have an object with an attribute called Recepcion. This attribute is Guid type. When i use sqlparameter and try to convert it to string i'm having troubles because te method ToString() says me that i can't convert implicity the Guid to string. How i do that Thanks a Lot Thanks my frined, it can be useful in the future, i solved the problem using half of your sintaxys. But now i Have another problem. Imagine this situation: private Guid Recepcion; Recepcion = (drAsignar[ "Recepcion" ]); Where drAsignar is a Dataset wich have a guid created in sqlserver 2005. this sentence have an error in the conversion because it can't be implicit. Dou you have any idea ...Show All
SQL Server Can't Restore a DB backed up with COPY_ONLY in Mgmt Studio
If I create a backup using the following T-SQL, is there a specific reason that I cannot restore it through Mangement Studio. BACKUP DATABASE MyDB TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\MyDB_1.BAK' WITH FORMAT , COPY_ONLY , NAME = 'Backup of MyDB' I can still restore it using T-SQL but would like the conveinence of using Managment Studio. Any ideas Is this a bug or is this by design If by design, what would be the reason Any help is appreciated. ...Show All
Visual Studio Team System Can't Install CTP7
I have Visual Studio 2005 team Edition for Software developers installed but when I run the CTP7 setup program it won't install and informs me that "Visual Studio 2005 Team Editon for Database Professionals requires Visual Studio 2005 Team Suite to be installed...". I have previously installed, and sucessfully run, CTP5 and CTP6, both of which are now uninstalled. I have re-installed Visual Studio but I get the same error. I have the following Visual Studio components installed: MS Visual Basic MS Visual C# Team Edition for Developers Team Explorer Visual Studio Tools for Office SQL Server Analysis Services SQL Server Integration Services SQL Server Reporting Services What is the problem ...Show All
Visual C++ C++/CLI Compile Error
Hi, I have some code that compiles and works fine in C++. I am in the process of attempting to use this same code in a C++/CLI project. Been working through various compile issues. This one is pointing me into the map, do not want to mess around with that code. Anyways, the error I get is, C3699: '&': cannot use this indirection on type xmlDictionary::DictionaryData. My class that I am working with is named xmlDictionary. DictionaryData is a struct, ref struct DictionaryData{ std::string value;// error here also ValueType type; }; The offending line of code is, std::map<std::string, DictionaryData> m_data; I am thinking it is STL related. Any direction would be appreciated. Thanks Jeff ...Show All
.NET Development Is there a way to draw a specific glyph from a font to a bitmap?
I need to render glyphs to a bitmap but I am unable to find a way to do this with the .Net framework. Previously I used ExtTextOut with ETO_GLYPH_INDEX but there is no clear mapping of this functionality to.Net. Apparently this can’t be done without using the native Win32 API ExtTextOut ...Show All
.NET Development ASP.NET 2.0 SQL Server 2005 Connect Problem
HI, I have a standard 3 tier architecture which uses asp 2.0 and sql 2005. The SQL 2005 machine is remote and when trying connect to the db server from my logon page I get a page cannot be found once i click submit on the logon button. I have carried out the following checks: 1 ) MAde sure that SQL Server has enabled the TCP/IP and network pipes from configuration manger. 2) I have checked that the remote connections is enabled from surface area configuration. 3) I have ensured that the network service account has privilages on the web server. 4) I am using forms authentication. 5) I have used the following connection string: connectionString="Network Library=DBMSSOCN;Database=My_DB;data source=ServerName,1433; ...Show All
Visual Studio 2008 (Pre-release) Need help with 4 table query
I have 4 tables. The first three are the familiar aspnet_Users, aspnet_UsersInRoles and aspnet_Roles where a User relates to many UsersInRoles, many of which relate to a single Role. Added to that is a table of objects owned by roles (one role owns many objects). Given that a user can be in many roles, I need to get a result showing the objects owned by the user and through what role. As a start I've tried: Dim result = _ From stuff In db.MyObjects _ Where ( From u In db.AspnetUsers, ur In u.AspnetUsersInRoles _ Where u.UserName = "user" _ Select ur).Any() _ Select stuff I know this (even if it worked) wouldn't be the whole solution, but all I'm getting is An unhandled exception of ...Show All
SQL Server Conditional Navigation Action?
RS 2005. I cant see a way of putting in a conditional navigation action on a table cell. e.g. some table cells should have a url action, others should not based on the data. Any ideas Try setting the expression in your url to Nothing base on the data. Ex. =iif(SomeField=0,"www.mywebsite.com",nothing) Only if somefield as the value of 0 then if opens www.mywebsite.com . ...Show All
Software Development for Windows Vista Rename file, Error "MoveFile" failed. But file gets deleted
I am currently seeing an error 183, file couldn't be moved because a file already exists. However, after this error appears the destination file is deleted anyways, only leaving the orginal source file. This is in a directory in program files and the files are not being virtualized ( I played with the permissions on the directory). The rename works perfectly fine in PrgoramData. Is this a problem with rename, or is one of Microsofts ways of getting applications to not write to program files The same results can been seen in C:\ProgramData. Do the following: Create two files: test.txt and test1.txt Create an app that deletes test1.txt Check the return value of the delete Then do a move from test.txt to test1.txt The "MoveFile&qu ...Show All
Visual Studio Team System An overlapping product in SQL Server???
Hi, I spotted the following job advert: http://members.microsoft.com:80/careers/search/details.aspx JobID=ADA9F7F7-97D2-4B45-B2E1-8919E5525BA0&AllCl=Y&start=1&interval=68&SortCol=DatePosted&SortOrder=DEF Seems to me that the product their talking about has alot of overlap with datadude. What's the deal here -Jamie I cannot comment on any future product plans outside the scope of my team; I can say we are actively working together with the SQL Server team on integration and futures. However our product is not going to be exclusive to SQL Server, we will be supporting different database backends in a future release through a schema provider mechanism. -GertD ...Show All
SQL Server Loading Dynamic Images
I have a tabe that contains the name of images ex: image1.gif etc, all pictures are in the same folder, and they can be reached also with URL like http://ImageServer/Folder/image1.gif . how can I add this image to my report. any help would be greatly appreciate Hi, I have the same problem and I have configured the unattended execution account as specified in BOL. I'm using expression to get the correct image. When I switch to Preview in VS 2005 the image is shown correctly, when I deploy the report and browse to the report using IE I have a red cross instead and the path of the image is cutted of after the domain name like : http://localhost/ I also tried to hardcode the full path of the image but ...Show All
Visual Basic C:\Documents and Settings\...\My Documents\Visual 2005\...\bin\debug\Reports *Spaces will not let me open .doc file in word*
Hi, if someone on here could help me, I'd really appreciate it. I am currently building a program that will be able to open excel and word documents in their appropriate programs. Heres my code: Dim Job As String = txtJob.Text Dim str2File As String str2File = "" str2File = Application.ExecutablePath str2File = str2File.Substring(0, str2File.LastIndexOf( "GaugeHelper.EXE" )) Dim wordstart As New Process wordstart.StartInfo.FileName = "winword.exe" wordstart.StartInfo.Arguments = str2File & "\Reports\" & Job & "\" & Job & ".doc" w.Start() I can get it to work, except for one thing, When you use the common folder name \Documents and Settings\ Word will try to ...Show All
.NET Development .Net Web Services
Help Help Help. This will be an easy question for you veteran .Net developers. Here goes. I created a simple web service to add 2 numbers on machine A. I compiled it to create the .asmx file. In Visual studio 2.0 I did a "View in Browser and the service works great. I then created a windows app to call the web service on machine A. I created a web reference to the service from the windows app. I called the web service and it worked perfectly by instantiating the service to consume it. I then tried to create the same windows forms application on machine B. I can't get the windows application to see the web service on machine A even if I try to reference it using the ip address of machine A. Any Ideas. I've checked ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to flip a 2D texture
Hi Microsoft, First, thank you very much for the XNA Platform. I do recognize the titanic effort to deliver this platform. I do have a small suggestion that will help the development of 2D games, specially for us newbies. In a nutshell, I've been looking for a direct way to horizontally flip an image, mostly because I don't want to put two ".png" files when one single file might be enough. I think this operation would be quite common, specially since a sprite that goes to the left will eventially go to the right. I look everywhere in the documentation, and I was not able to find such procedure. I did find some stuff about DirectX, but I didn't understand a byte of it. After half a jar of coffee, I read something ...Show All
