Robert Barnes's Q&A profile
Software Development for Windows Vista PushSource Filter Sample cannot be compiled(can`t parse _CLSID_FilterMapper )
In VS.NET environment ,I have configured the vc++ environmentn included DX lib and .h file.But it show me error(PushSource error LNK2001: ......)when compiling the PushSource Filter Sample of DX program,how to deal ...Show All
Visual Studio Express Editions TXT search with multiple terms
I am trying to do multible searches within "server.cfg" (which is same as txt) and pick out specific strings (for example "hostname ") and import them into seperate textboxes. here is the code i am using; but all it does is get the first search and stick it in the 1st and 2nd textbox; not 1st term goes in 1st box, 2nd term goes in 2nd box. Private Sub bload_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bload.Click Dim save_dir = q2_dir.Text + "\" + gamefolder.Text + "\" Dim StringToFind As String = "" Dim FileToSearch As String = "" Dim iStartFoundPosition As Integer = 0 StringToFind = "hostname " & Chr(34) FileToSearch = M ...Show All
Visual Basic Timer needs to count down and be displayed
I need a timer to count down from 10 seconds and I need the countdown to be displayed. How do I go about doing this There is a label called Label1 on form Form1. I think it's a bit too much just to countdown, but try this: Public Class Form1 Dim WithEvents Timer1 As New System.Windows.Forms.Timer 'Make a new timer Dim TimerCounter As Integer = 10 'Starting Value Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) _ Handles Me.Load Label1.Text = CStr(TimerCounter) Timer1.Interval = 1000 'Set the interval (milliseconds) Timer1.Start() 'Start the timer End Sub Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) _ Handles Timer ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MICROSOFT SOFTWARE LICENSE TERMS
· use the software for commercial software hosting services hey we have byed a web site hosting sulution from commercial hosting services and we are gonna make some tuts and starter kids is the the good bye to all the commity tuts you can download on the net and games we are allso planed to let users download out starter kids GarageGames is doing some ileagly they are commercial company Scope of License. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In ...Show All
Gadgets can you use flash to develope a gadget?
pretty self explanitory. wanted to create something thats very interactive. and am not as familiar using ajax as i am with flash. also what restrictions do gadgets have do they have full access to internet etc From what I've read on here, you can use flash in gadgets. However, Flash doesn't work on 64-bit versions of Vista, so it would have huge compatibility issues for a lot of users. Andy ...Show All
.NET Development Garbage Collection never collects garbage from generation 2 (finally resulting in OutOfMemory exception)
Hi, I have been searching the net for many hours trying to solve my problem. Since many questions regarding the GC are answered here I hope you can help me. We have built an web application based on ASP.NET (v1.1), the enterprise library (ie caching and logging blocks) and a custom framework. The problem is that the w3wp.exe process keeps growing and growing untill it recycles around 600 MB. When monitoring the heaps I discovered that the heap basically only grows, expect for some small memory releases now and then. I used windbg to analyse a memory dump (created on the moment of recycling). It seems that many objects reside in the generation 2 heap while not having any references to other objects. There are for instance 2000 dataset objec ...Show All
Visual Studio 2008 (Pre-release) Retrieve CheckBox Value from Listbox
Hello all I have a ListBox with DataTamplate which contains a checkbox (not binded) and a textblock (binded). I need window ok button click to retrieve each item CheckBox value. How can I do this How can I even retrieve the CheckBox object from an Item ListBox.Items is actually a DataRowView because of the binding and not a ListBoxItem Please only answer to me on how to retrieve the CheckBox value of an Item. Thanx Itzik This technique also works on a ContentTemplate'ed ContentControl: Use ListBox's ItemContainerGenerator.ContainerFromIndex(int) or ItemContainerGenerator.ContainerFromItem(object) to get the ListBoxItem generated with your DataTemplate. Get the ContentPresent ...Show All
Visual Studio Express Editions MDI Child Once Only please
Good Afternoon All, or morning or whatever, I'm sure one or two of you have come accros this and the answer is probably staring me right in the face, but how do I get the child forms to be shown once, for example.... .... I have my MDI Form, a menu etc under one of my menu items "&Help" I have, "&About", "&Support" and "&Licence" now I only what each of these forms to be shown once. I have tried: about f = new about(); f.MdiParent = this; f.ShowDialog(); but this just throughts an exception (cant remember of the top of my head) some thing like this form can not be displayed in this manor. When I get home I'll make a note of the error and post it here (if I rem ...Show All
.NET Development Invalid attempt to read when no data is present.
Why I am getting Invalid attempt to read when no data is present this is my stored procedure followed by the code.. STORED PROCEDURE: USE shefa set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= ALTER PROCEDURE [dbo].[sp_get_user] @login_user_id varchar(255), @login_password varchar(255) AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; SELECT * FROM persons WHERE login_user_id = @login_user_id AND login_password = @login_password AND is_staff = 'Y' A ...Show All
Visual Basic Handling popup windows
Tell me how to handle popup window in VB. It may be done using newWindow2 event.But i am afraid I dont know how to use it. Help me please. Help me doing the same using newWindow2 only as I can't use newWindow3 in my system. Some automation error is coming. Thanks in advance. ...Show All
Visual Studio FileCodeModel.CodeElements throws an E_FAIL ComException
Hello, My problem is with the FileCodeModel object. I want to get hold of the code model for a project item without having it appear in an open project. In order to do so, I create a temporary invisible project of the appropriate kind (csproj for .cs files, vbproj for .vb files...) and add the item to that project. Once added, the file content is parsed and the code model may be accessed through the FileCodeModel property on the project item. While this strategy works with C# projects, it fails with VB projects with the CodeElements property born by the FileCodeModel object throwing a COM exception (E_FAIL) whenever it is accessed. Note that I am still able to get an actual reference to the FileCodeModel object with the expected valu ...Show All
Windows Search Technologies WDS is very naughty. It doesn't wear pants, and it will not not index my mht files
Apologies if this question is not appropriate for this forum! My problem is that WDS 3.0 does not seem to index mht files consistently. Sometimes it finds items that are contained in MHT files but most of the time, it does not. The mht files are stored in My Documents, and the entry for mht files in the WDS options is the default: Index Properties and File Contents. The odd thing is that this behavior occurs on two different computers that have similar configurations. Thanks very much for any suggestions!! Darryl Apologies for the cheap trick trying to get your attention, but I have been unable to get any answers to my question, and it's a real problem for me because I have a ton of info in my mht ...Show All
Visual Studio Express Editions Can I use VBE 2005 classes in Excel 2003 VBA code?
I have a class library that I'm developing in Visual Basic Express 2005. I can use the classes in other projects in VBE, but I would also like to use them in VBA code in Excel 2003 (i.e. in the VBA code I want to be able to create instances of the classes from the class library). If that is possible, can someone please give me step by step instructions Which line gave the error Anyway, try copying the tlb file and the dll file, to the location of your vba application and running the code. Hope this helps, ...Show All
Visual C++ Change in behavior of properties from VC7.1 to VC8
In VC7.1 in the property pages for a project, if I entered a relative path for an include file on the "Additional Include Directories", then the IDE showed valid paths relative to the project file. In VC8, relative paths are all relative to some path in the install directory NOT my project. How can I get the VC7.1 behavior This new behavior is not intuitive. I never place my files relative to the install directory. Ah - I answered without checking first. Bad. Entering $(ProjectDir)\ does not bring up any autocompletion. Entering $(ProjectDir)\..\ still brings up the wrong tree relative to the install directory. In 7.1 I could enter ..\ and it would provide auto completion directories relat ...Show All
Visual Studio Express Editions Joining code
Is it possible to make a program with joined code (Like joining a little bit of VB and a little C#) Ohhh How do you make DLL's That too is easy start a new project of the type Class library. Add your code. Wrap it in a Namespace and then build it. Be aware that a dll is a slightly different environment than a process and does not have accesses to all classes that an executable does. ...Show All
