hunchback's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DirectX texture from C# bitmap
I'm new to DirectX, and I'd appreciate some help I have a texture that I load from a file with that donutTexture = TextureLoader.FromFile(device, @"..\..\donut.bmp", 320, 384, 1, 0,Format.A8R8G8B8, Pool.Managed, Filter.Point, Filter.Point, (unchecked((int)0xff000000))); I want to initialize the texture from a bitmap Bitmap myBitmap = new Bitmap ("MyFileName.bmp"); (In fact I have another part of a C# program that creates the bitmap I want to render later with DirectX). How can I do that ...Show All
Smart Device Development How do we test camera application?
Hi , I'm writing camera application on windows mobile 5.0 smartphone. i succeded writing the same application on desktop using webcam. could u please give me the steps to test the same application on smartphone emulator. in the document they said, we need camera equipped pocket pc (or)smartphone installed camera driver(or) Null driver ships with the emulator. am not understanding what the document is saying do i need to install any camera driver along with smartphone sdk. is it posible to test the application on Emulator Thanks No, you cannot do that. You need a physical device with ...Show All
Windows Forms How to set Password as the mode for textbox in datagrid
I am adding a textbox column at runtime in a Datagrid control(not a Datagridview control).This textbox is meant to enter password.How do I hide the text( i mean encrypt this text) while user is entering password in the textbox. Thanks Supriya You must creat a new class that inherits from DataGridTextBoxColumn an implement this feature, see the code below: Option Strict Off Option Explicit On Imports Microsoft.VisualBasic Imports System Imports System.Drawing Imports System.Windows.Forms ' Coluna do DataGrid para senhas Public Class DataGridTextBoxColumnPwd Inherits DataGridTextBoxCol ...Show All
Visual Basic Displaying dates between two set dates
I have a form with two DateTimePicker. the user chooses dates from the two DateTimePicker What i want to do is to show every Friday in between the two dates. Does anyone have any idea on how to do this Thank you! The following should work - it will return an array list of dates between two dates for a given day of week. Function DatesWithDay(ByVal Date1 As Date, ByVal date2 As Date, ByVal dow As DayOfWeek) As ArrayList Dim d = DateDiff(DateInterval.Day, date1, date2) Dim X As New ArrayList For d = 0 To d Dim checkdate As Date = date1.AddDays(d) If checkdate.DayOfWeek = Da ...Show All
Windows Forms How to get DataGridViewComboBoxColumn's selected value for validation?
Hi. I have a bound DataGridView with a DataGridViewComboBoxColumn. I want to validate the value the user selects. I'm working in the grid's CellValidating() event handler. How do I get the newly selected value of the item selected in the combobox In the grid's CellValidating() event handler the DataGridViewCellValidatingEventArgs "e" parameter gives me the previous combobox value which is useless in this case. I need the newly selected value for validation. Here's code from CellValidating: int iVaseTypeID = (int)this.dataGridViewFlowers.Rows[e.RowIndex].Cells["datagridviewcomboboxcolum ...Show All
Visual Basic IDE not picking up my 'Backspace' or 'Enter' keystrokes in the debugger
The debugger isn't picking up my keystrokes for my 'Backspace' or 'Enter' (carriage return). As far as I can tell those are the only two keystrokes from my keyboard that are not being caught. Any ideas Logitech wireless keyboard. Hi, Windsailor, Sorry to hear about the problems! Where are the keystrokes failing – in the Immediate Window, Watch Windows, or in the editor itself (while doing Edit & Continue) --Matt Gertz--* VB Compiler Dev Lead ...Show All
Visual Studio Team System [Team Explorer] Can't change user who connects to the TFServer
Hi, I've installed TF(Build proxy server), SQL Server 2005, Sharepoint Services on a new windows 2003 Server. (TFS Beta 3 Refresh) On a client machine (running under windows XP Pro) , i've installed Visual Studio Team Edition for software developpers and Team Explorer I've connected to my TFS Server via Tools - Connect to a team server. Team explorer asked for my login and password. I gave him the credentials of a team foundation project administrator. Under this account, i've created a project, build the project (with added build) tested source controls and so on... All of the stuff was working so i ...Show All
SQL Server Problems adding MS access datasource in VB studios 2005 enterprise
I am running Visual Studios 2005 enterprise edition and I am creating a mobile application to keep track of some receipts. The problem I'm currently having is that even though I can connect to the MS Access Database with Server Explorer that I'll be aquiring data from; Everytime I attempt to use the Data Configuration Wizard to add a new data source that namely the database I get this error message: The new connection uses a data provider that is not supported. (end of message) There is no username or password necessary to access this database and it is an Access 2003 database. Any help would be greatly appreciated. ...Show All
.NET Development Client/Server software. Way to go?
Hello, I need to create server and client software, but I do not know the right way to go. Communications between applications would be through internet and only server would have reachable IP address. Main concepts of application working: Third-part vendor would be responsible of order receiving. After order received, order’s data would be passed to my server application (perhaps, here web services are ideal to use). Idea of comunication have changed. See next post. Server should save order in DB and pass it to logged in client (client application). After clie ...Show All
Windows Forms designer can't load form. Where is 'more information'?
after going from beta2 to rc1, the designer all of a sudden cannot load my forms anymore. instead, i get the infamous window with the red top that says some errors may go away building the project, while other need code changes. needles to say: the file compiles fine, the form could be opened with the beta2 and vs2003 designers and obviously doing a rebuild doesn't help at all. now what the additional error message says; Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. ok - great. now how do i retrieve the loader exception property. how can i fix this where can i find more info ...Show All
Microsoft ISV Community Center Forums ISV Buddy Program: Mini-FAQ
Started by Brenda [msdn/isv] at 03-17-2005 12:55 PM. Topic has 0 replies. 03-17-2005, 12:55 PM Brenda [msdn/isv] Joined on 03-16-2005 Posts 6 ISV Buddy Program: Mini-FAQ Here are a few of the most popular questions (and answers) that we get from ISVs in the program. We completed the Request a Buddy profile but haven't heard back. What's going on The matching system makes buddy connections by comparing your profile to the profiles of Microsoft employees available to be matched. You won't receive a match notification email until the system finds an appropriate m ...Show All
Visual Studio Team System Linking Serena Version Manager and work item
Hi, Is it possible to choose Serena version manager as my source-control and use work item for defect tracking Can I associate Serena Version manager files as file attachments from work items Thanks Mamatha mamatha, This is possible but will leave you with a behaviour that is less optimal then using the fully integrated product. That said, yiu could of course integrate the two products yourself using the extensibility features of TFS. If you want to go trough this trouble yourself then you would need to investigate the extensibility of serena as well. You would need to register your versionmanager product as beeing a art ...Show All
SQL Server MSDE ,SSMSE connection
hi friends, I'll be thankful if anyone solve this problem. When i developed my application, i used sql 2000 as a server side DB. Now my client want to install MSDE instead of SQL 2000. so i uninstall SQL2000 and installed MSDE . AS we all know, MSDE doesn't have GUI. So i installed Microsoft SQL Server Management Studio Express - Community Technology Preview (CTP) (includeing xmlparser,windows installer,.net 2.0). now i could able to view tables and everything. but i couldn't make the connection. Getting error like "SQL server not found. CMPNAME\MSDERELA" I used same kind of connection string for SQL 2000. Worked wel ...Show All
Visual Studio Express Editions A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or
When i add a .dll file as a reference in C# application it shows an error : A reference to the "....dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component. Willfin David I assume you are working with VS2005. So here is the work around for that Execute "tlbimp <....>.dll" <Drive>:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>TlbImp.exe <....>.dll This command creates <...>CORELib.dll and add it as a reference to the project. Hope this works, Let me know the result.. ...Show All
Smart Device Development wldap32 for Windows CE 4.21
Hello I am trying to write native code using eVC++ to access LDAP. I am targeting Windows CE 4.21 pocketpc. Installing the Mobile 2003 SDK, I don't see the existence of the wldap32.lib. It is present in the Mobile 2005 SDK however. Does anyone know how I can accomplish this Should I be looking at another library that has this LDAP implementation Please let me know. Thanks Amit Talking with our company's Microsoft rep, I found out that Microsoft has by mistake missed out packaging this library from their SDK. The rep sent me this library for Mobile 2003 and it worked like a charm. If you need the file, I wo ...Show All
