Abhishek Chadha's Q&A profile
Visual Basic count
hi, i am very new to vb and have been looking for a solution for this problem for hours! i think that i have been looking at it for to long and have just completly lost the point of it, so any reply will be greatly appreciated!! anyway, here it is... i have a project where i must display the total number of items from 4 textboxs in between a certain range. for example if 10, 3, 4, 11 are entered into the textboxes, i want to display the total of numbers in between 0 and 5, thus 2 would be displayed. i know the answer will probably be something simple that i have overlooked, but i am near the end of my rope mentaly due to this !!!!!!!!!!!! thanks for the help, but i am still having trouble. here is a snipper of my c ...Show All
SQL Server RS Databases missing following successful install
I've installed 2005 / RS on my testing server several times, no problem. My production server throws an error when Reporting Services is installed. There are a few threads on this error: Microsoft SQL Server 2005 Reporting Services -- Error 29528. The setup has encountered an unexpected error while Setting reporting service and share point exclusion path. The error is: Fatal error during installation. I've Googled several similar complaints which discuss any of: Ensure IIS default web site is set to "All Unassigned" Ip [/*] Delete the RS Web services pool and retry [/*] Install RS separately [/*] The first two do nothing for the problem. While installing RS separately doesn't generate an error, it also doesn't create the ...Show All
Windows Forms System component model with custom combobox column
Hi, I have a custom combo box column for a dgv. i've set the datasource and display member. The problem i am having is: When the combo value is changed, the value in the cell remains the same. The issue could be about binding or selected value changed i don't know. Someone please let me know the direction, better in form of reading for me to better get a grip upon what i am doing. For now i need to be able to make the combo keep the value the user selects. If not a solution, can i have some directions Thanking you all, hrubesh Imports System.ComponentModel <System.ComponentModel.LookupBindingProperties( "DataSource" , "DisplayMember" , "valuemember" , "lookupmember" )> _ Public ...Show All
SQL Server ODBC-Call Failed - Access
We have this fairly simple Access database with a link table to a view in an SQL Server. The Select Query in Access is a simple select from this view with a view criteria set. Nothing fancy. What is driving is moderately crazy is that this Select Query in Access seems to work fine for months and than all of a sudden (same query performed around the same time with about the same workload on the SQL-Server) it responses with the helpful "ODBC-Call Failed" message. Closing the Access database, taking a coffee, coming back againg and try the exact same Select Query normally works, no "ODBC-Call Failed" message. It not happens always, mosty we're fine. When it happens it happens for all subsequent queries tried. W ...Show All
Visual Basic Copy of Screen
Good day to you. I don't know much about the ClipBoard and GetData and so forth but there seems to me that 2005 Express is not quite the same as .NET 2003. The code that I shall give in a moment gave me a full screen copy on the Form_Load event and gave a copy of the Form on a button_click event. Now, when using the code in 2005 Express the Load event only gives a copy of part of the screen. Why is this happening Is there a way in which I can rectify matters. I would be very pleased for any info. I have tried with Imports and Inherits and Paint. It is the sizing I believe. Private Sub frmScreen_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load SendKeys.SendWait( "{PRTSC}" ) D ...Show All
Visual Studio 2008 (Pre-release) New XBAP launch screen
I have seen that in RC1 the XBAP launch screen has changed http://learnwpf.com/Posts/Post.aspx postId=710f50ba-5902-4db6-9a61-a48317b554da It's very nice, however is it possible to customize it It would be nice to be able to create your own custom loading screen - something like Flash does. Nobody's going to bother with a splash followed by another splash - especially one that is reminiscent of QuickTime! This is what bothers me about WPF in general - does one really have the freedom of UI expression that the browser exposes It's understandable that there will be API constraints, but the demos/samples I've seen all seem to show the same pastal shades! Are control styles only going to allow one to create variants ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotating a bounding box
I have a game with a bat of which you hit balls with. in terms of collision detection im looking at a bounding box. The bat is long and thin, and can be rotated, however there doesn't seem to be a way to rotate a bounding box. It would be very obvious if the bat was at 45 degrees but surrounding by a square bounding box. Is there any way to rotate the box, or is there a different collision detection method i can use If you are familiar with matrices and coordinate space transforms, then do the following: Transform the balls position (or trajectory) into the bat's coordinate space before performing the collision check. That way, you can still use the bat's axis aligned bounding box. ...Show All
Software Development for Windows Vista filter compilation under vista issue
Hi all, I am trying to compile a directshow in-trans filter using the VS2005 over vista. This filter was compiled fine under VS2005 over XP . It does not compile giving the following output: Command Lines Creating temporary file "d:\MediaCam 1.0\mCam\New_MD\Release\RSP0000028923592.rsp" with contents [ /O2 /I "D:\MediaCam 1.0\mCam\Logger" /I "C:\Program Files\Microsoft SDKs\Windows\v6.0\Include" /I "C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\Multimedia\DirectShow\BaseClasses" /D "WIN32" /D "NDEBUG" /D "_VC80_UPGRADE=0x0710" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /FD /EHsc ...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. HLSL - Pulling a list of techniques from FX file
Hi all, I've spent the last few hours searching for an answer for this to no avail. What I'm making is a simple MDX 1.1 app that lets the user select which technique from the FX file to run on a simple mesh from a combobox. My problem is that, while it's easy to get a list of EffectHandles for all of the techniques, getting the actual technique names is proving difficult. I noticed that there is a TechniqueDescription struct which has just what I need, but the constructor has no way of passing an effecthandle object (or anything else for that matter), and no method or property in the Effect class returns a TechniqueDescription value. So, my question is this - is there a way to extract a list of the technique names from an effect f ...Show All
Visual Studio Bitmap image not displaying for IE - OK on Firefox
I have a report with an image coming from a database field. I have tried viewing the report as a local using the ReportViewer control in a web page. Also have tried it as a remote remote report in reportserver. In both cases the bitmap image shows up correctly if I use Firefox as the browser but doesn't when using IE. With IE I just get the small square with red x. If I export the report to PDF or Excell the images display fine. If anyone else has had this problem and has a solution please let me know how to fix this. Any help would be appreciated. Tom Richards trichards@pharmitas.com ...Show All
Visual C++ Unable to find an entry point named 'HidD_GetHidGuid' in DLL 'HID.DLL'.
I want to use the HID as a driver to communicate to a simple peripheral. When I call the 'HidD_GetHidGuid' function I get the subject error. If I run 'dumpbin.exe' on the 'hid.dll' the entry point is there with that name! I'm using the 'hid.lib' in 'winddk\3790.1830\lib\w2k\i386' in the linker and it builds okay. If I run 'dumpbin.exe' on 'hid.lib' the exported names are listed are decorated. I would understand if the error listed the decorated name '_HidD_GetHidGuid@4' as the name that couldn't be found. I have the include files 'hidsdi.h' and 'hidclass.h' bracketed with 'extern "C" {}'. I get no errors or warnings when I build the project. I'm really confused. Hello Re: Unabl ...Show All
Visual Studio 2008 (Pre-release) Application.LoadComponent() problems June CTP -> RC1
The Application.LoadComponent(component, uri) is no longer working if the component and the resource pointed by the uri live in different assemblies. Unfortunately this change makes it impossible to have components from one assembly to inherit from components from another assembly. Say you have a custom MyWindow control that lives in a Common.dll assembly. Its generated InitializeComponent() code contains a call to Application.LoadComponent(this, new Uri("/Common;component/mywindow.xaml"). So far so good. Now in the Application.dll assembly you have another class AppWindow that extends MyWindow. When it loads it calls MyWindow constructor which in turn calls MyWindow InitializeComponent. The result is a System.Exception : T ...Show All
Windows Forms autocomplete ends at forward slash
Hi, I've been searching the forum for a solution but they are all deadends. When using autocomplete on a combobox then the autocompletion stops asa it reaches a forward slash. F.ex. if one of the items in my combobox is "AnyInc A/S" then my autocomplete (with suggestappend) suggests "AnyInc A/" and the last 'S' is dropped. Any suggestions on this one Not too keen on replacing the '/' character and then rereplace it or anything like that. /Js I fear you're running into the original use for the AutoComplete window: entering URLs in Internet Explorer. "/" means something special of course. I see no option to disable this in IAutoComplete2::SetOptions(). You might want t ...Show All
.NET Development insert the rows in a dataset into a new table
hi, first thanks for the time you are to put in this query. my query might be silly, but i am very fresh here and i am not much comfortable with .net. The Issue I have a dataset that has been populated from an excel spreadsheet and i would like to insert the rows in the dataset to be inserted into a sql table. i would be greatful if any sample code could be provided for reference. thanks again. yours mohan Hi, First option is to create a store procedure for doing the table insert of the data. After that, you just create a method that reicieve a DataSet as parameter and then at that method you create everything need it for doing the insert. In this case, iterate over the rows of ...Show All
