Brendan Stewart's Q&A profile
SQL Server ODBC Descriptors
Hi All, I am doing some research on the use of ODBC descriptors and hope that the community might have some opinions: Is anybody out there using ODBC descriptors in their applications What are you using them for and why Are their alternatives to using them Thanks in advance, Usually you don't need to use them. They add the ability to set certain attributes one by one istead of all at once using another API. For example, call SQLBindParameter to set the parameter number, its C-Type, its SQL-Type, precision, scale, etc... You could set each individually by getting a descriptor handle, and then setting each value 1 by 1. You can use your imgination to find advantages to tweaking only 1 descriptor. There are oth ...Show All
Visual Studio Project Item Templates
Hi all, I'm developing a new project wizard which has to create both new projects and project items according to project and project item templates that we've created and tested. The problem I'm having is this: The new projects are being created correctly with the new template via (Solution2) GetProjectTemplate() but whenever I try to create the project item from its template via (Soluntion2) GetProjectItemTemplate() it throws the following exception: System.IO.FileNotFoundException Message: "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)":null Source "EnvDTE80" string As I mentioned both templates have been tested and appear in the proper VS dialogs. It just seems tha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Will we be able to shared compiled versions of XNA apps?
Ok, so before someone flames on me. I searched the forums and what not for a long time, before I posted this. I only saw threads about actually selling the homebrew games and I'm not interested in that. What I want to know: Is there plans in future releases to share only compiled versions or some sort of package I mean if I spend my heart in soul making a game that I think others will will enjoy for the love of the community. It doesn't seem fair that everyone gets my source. So are there plans for just sharing complied versions of some kind If so, whats an approximate time frame Thanks, Nick I think, yes if I might make money off of it, I would Also be reluctant to share it. A ...Show All
SQL Server Using Xcopy to get the .mdf file of pubs database to the App_Data folder of a website of VWD Express project
Hi all, I have a stand-alone Windows XP Pro PC that has SQL Server Express (SSE) and Visual Web Developer Express (VWDE) programs. The Microsoft "pubs" Database is installed in the SQL Server Management Studio Express (SSMSE). I created a website in my VWDE program. I need the .mdf file of the pubs Database in the App_Data folder of website of my VWDE project. I think that User Instance in my SSE is established. I have studied Xcopy Deployment (SQL Server Express) and User Instance for a quite a while and I still do not know where and how to use Xcopy to get the mdf file of the pubs database into the App_Data folder of the website of my VWDE project. Please help and give me the detailed key steps/instructions about where and h ...Show All
Visual Studio Tools for Office Opening Visio on specific page
Hi, I need to open Visio file on specific page. (E.g. my Visio file has 3 pages.) Is it possible Thank you very much . ...Show All
Smart Device Development Toggling Network on Motorola Q
I'm building a Jabber client for the Moto Q and am having issues with the "network" interface turning off on the Q. When the "network" connection is on, my app works fine. When it goes down, I get a "dead network" error. Is there a way with .NET CF to turn the Windows Mobile 5.0 network interface on I've checked the Moto site and can't find any reference to this. Thanks... You could use Connection Manager API to control connections. I believe there’s wrapper on OpenNetcf.org. ...Show All
SQL Server Report deploment to multiple servers SQL Reporting 2005
Hi Another issue I would like your help: We are writing reports for different clients. We need to deploy the same reports to different clients (thus also different DataSources). What is the best way to handle this The folder names would probably be the same. Andre Sounds like you need a custom installer that will accept the required input (database name, credentials, folder path) and deploy the reports by calling down to the Report Server APIs. Or, you can script the objects and use the rs.exe utility to deploy. You may also find the RSScripter utility useful. ...Show All
Windows Search Technologies Windows Desktop showing as a Split Screen
Hi I recently closed my laptop running windows xp home and when i restarted it ... my desktop was in split screen mode about 80% to the desktop and the other 20% was showing in folders mode with showing thedown the left hand side .... FOLDER TASKS, OTHER PLACES, DETAILS AND DESKTOP Currently using XP Home Service Pack 1 - if i upgrade to service pack 2 will this solve my problem i am unsure as to what has caused this error. No new software has been installed that i am aware of ... so imagine my surprise. No error messages are displayed so any help that is on offer is appreciated regards Murray I have a similar problem. The XP logo at startup is off center and split. If I do anyth ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Matrix.CreateBillboard
I am trying to create a Sun textured quad billboard to rotate around my skydome. I came across the Matrix.CreateBillboard method, but I'm not sure how I am supposed to be using it. Here is my call: Matrix billboard = new Matrix (); billboard = Matrix .CreateBillboard(entity.Position, camera.Position, camera.Up, camera.Forward); Am I supposed to be using the resulting matrix as the quad's World when I pass it into my shader I tried that and multiplying it by the quad's world passing it into the shader, but in both instances I get nothing to show up. Any help appreciated! Havn't tried any of that, but the most natural thing for the method would be to generate a WorldView matrix. So all that is left is your proj ...Show All
Visual Basic Controls in a group
Hello, How can I check which CheckBox was clicked in a certain GroupBox (I have several CheckBoxes in this group) Hi, Dave299's approach is best i think as you can have a mixture of controls and His code checks the TypeOf control that the sender is where a Groupbox has mixed items in it or not. Regards, S_DS ...Show All
Visual C++ few queries
hi frnds, i have two question 1) what is the type of pointer 2) difference between oops and procedure oriented approach sGurpreet wrote: 1) what is the type of pointer int* x <- pointer to int char* y <- pointer to char And so forth. sGurpreet wrote: 2) difference between oops and procedure oriented approach http://en.wikipedia.org/wiki/Object-oriented_programming You'll have to excuse me for being so vague, but these are questions which are covered in just about any programming book you can find. I suggest you get one of those :) ...Show All
Visual Studio Express Editions Creating a custom collection
I've created a custom collection derived from the collectionbase class. Everything is going well I think While debugging, I examined my collection and saw that it contained the base object. I examined base and saw InnerList and List. I examine List and it contain what looks like another copy of my collection. This seems to go on infinitely. When I saw this I was thinking I did some thing wrong, so I typed in an example I found and got the same result. What is going on Peter Don't worry about the repetitive looping. That happens all over the place when you look at the debugger . The below I already assume you know but just in case: InnerList is the list that you add things to. ...Show All
Windows Forms \r\n problems with textbox
Hi All, I'm making a program which has a textbox, when I try to set the text of that textbox it seems to not allow \r\n to work, a small square box appears in the text instead of a new line being started. I've set the properties of the textbox so that multiline = true and scrollbars = true Does anyone know how I can resolve this please Any help would be gratefully received. Many thanks in advance and kind regards, Rich string text = "Hello\r\nWorld"; textBox1.Lines = text.Split( new char[] {'\n'} ); ...Show All
Windows Forms Display a Control outside of its container.
As this post will probably prove my knowledge of the inner workings of WinForms isn't fantastic so please forgive me if I'm missing the obvious. I've made a little user control to replace the DateTimePicker. It is made up of a TextBox for keyboard date entry, a MonthCalendar for date selection via the mouse and a button for displaying and hiding the MonthCalendar. I want the MonthCalendar to be shown on top of all other controls on the form, just like the date picker on the DateTimePicker. Currently I'm just expanding and contracting the size of the UserControl to show and hide the MonthCalendar but obviously this doesn't work if the control is near the bottom of a GroupBox or other container. Searching the web, the recommended ...Show All
Visual Studio Team System TF14043: An error occurred computing the delta. Not enough storage is available to process this command
We're attempting to migrate a fairly sizeable SoruceSafe database into a dual-tier TFS server configuration using VSSConverter. After running analyze.exe, VSSConverter Analyze, then half-way through VSSConverter Migrate we start seeing errors in the EventLog. The app-tier server had been running for about 3 weeks, so we've restarted it and are starting a fresh VSSConverter Migrate. Searching for the win32 error "Not enough storage space is available" seems to indicate that it's run out of memory. However this is a Dual Xeon hyper-threaded box with 3.5Gb of memory and plenty of free disk space. The 2.0 Framework machine.config has <processModel autoConfig="true" /> Can you provide any clues as to wha ...Show All
