McWhirter's Q&A profile
Visual C++ VC++ static function updating form textbox
I'm new to .Net programming and I'm trying to create a forms app with some Socket communication going on. I loosely based it on the Asynchronous Server Socket Example C# code but pulled it into a forms app. I have the static functions accepting the data into a buffer but I haven't figured out how to copy the received data to a textbox->text field. I get an error C2227: left of '->Text' must point to class/struct/union/generic type. Any ideas would be appreciated. private : static void AddBytes( array <Byte>^ bArray, int iLen ) { // iBuffIndex is a static int indicating the last byte written, // BufferSize is a static constant int that controls the size of the buffer if (iBuffIndex+iLen > BufferSize) { Mes ...Show All
Windows Forms GUI for multimedia application
Hi I need to implement an application that shows recorded A/V streams and corresponding notes similar to Macromedia Flash Professional. There will be a timeline for video and notes - each note has a certain time code. Will I be able to implement such an application using Windows Forms Where can I find samples or tutorials for multimedia GUI designs Thanks! For my timeline, I just used an onwer-drawn control derived from a label. Just added some code to implement gradient fill to achieve 3D effect. ...Show All
Visual Basic comparing dates
tryin got compare a user selected date with dates present in a dataset obtained from an sql database. on button clik the following code is executed. Reset field has to be changed on finding the specific date but this does not happen. Protected Sub ResetAll( ByVal sender As Object , ByVal e As System.EventArgs) Dim cmdObject As New SqlClient.SqlCommand 'select the trainees that have not been reset cmdObject.CommandText = "select CompletionID, EmployeeID, CompletionDate,Reset " & _ "from POPMA_Trainees " & _ "where Reset = 0 order by CompletionDate " Dim ds As DataSet = eLearningDatabaseMethods.GetDataSet(System.Web.HttpContext.Current.Request( &q ...Show All
Visual Studio Team System Upgrading from 180-day trial version to full RTM version (volume license)
I just upgraded our trial version of TFS to the full version and wanted to pass on some notes about the exercise. Upgrading is pretty simple: Click Change/Remove on the entry for TFS in Add/Remove Programs on the TFS server, then enter the permanent license key in the dialog box that appears. Our TFS license was purchased through a volume license agreement, so we had no nice box with the 25-character license key on it. Instead, per the instructions elsewhere on the MSDN site, I called Microsoft Customer Support to obtain a key. The MS support rep needed the TFS Product ID in order to generate a license key. Unfortunately, neither of us could find the darn thing; after 5 minutes of searching every Help | About box we could think o ...Show All
Windows Search Technologies Outlook 2007 -- WDS not working - "content sources cannot be accessed."
Quick search in Outlook 2007 is not working. No results found. Does anyone have any ideas as to how to resolve this I just installed Office 2007 Professional on Windows XP + WDS 3 RTW using WindowsDesktopSearch-KB917013-XP-x86-enu.exe. Quick search returns no results in Outlook 2007. I had been running Outlook 2003 + Lookout for searching. I did an install of Office 2007. The latest Lookout addin was in place on Outlook 2003 when I did the Office 2007 install. I have uninstalled Lookout. I uninstalled WDS and re-installed it. I ran Office 2007 repair. Nothing is working. The event log shows an error that seems to say the WDS can't access my outlook.pst. Windows Search Service - Gatherer - Event ID 3024. "The updat ...Show All
.NET Development get all form names.. and their tags please
I itterate through all the forms of my solution like so: Assembly asm = Assembly .GetExecutingAssembly(); ArrayList allForms = new ArrayList (); foreach ( Type t in asm.GetTypes()) { if (t.BaseType == typeof ( Form )) { allForms.Add(t.Name); } } Anyone have any idea how I would then get the Tag property for each of these Forms that are places in the allForms ArrayList Thanks. When I do that it only gives the forms that are currently open. This is part of a security class, giving permissions to view a Form or Not. So the Forms Im looking for will most likely, at least should not be opened yet. ...Show All
Visual FoxPro using Textbox control...
Hello friends... I am new to visual foxpro. I have been learned programming in Foxpro 2.6 for Dos.. Now I want to learn visual foxpro.. I had make just a simple form with one textbox and two command buttons. I just want to do if I click command button1 then textbox show today's date and if I click command button2 then textbox show currunt time... What codes I have to write in command button1 and 2 Need your help...thanks a lot Assuming you haven't changed the Name property of any of the controls, code like this should work. In the Click event method of Command1, put: ThisForm.Textbox1.Value = DATE() ThisForm.Textbox1.Refresh() ...Show All
Visual Studio How to add a toolbar to a document window?
Hi all, I need to add a toolbar at the top of a document window. I found how to do it for a tool window (there is a walkthrough in the SDK) but I haven't found anything for document window. .Anybody know how it can be done Freddo Hi Freddo, I presume you're looking to add a toolbar simlar to the VB code editor's dropdown combos toolbar. That's actually done via a different mechanism that's specific to the VSCodeWindow. You need to implement IVsCodeWindowManager::AddAdornments, and then use the IVsDropdownBarManager to add the dropdown combos. I don't have an example of this handy, but the Figs sample does show how to integrate an IVsCodeWindowManager into your editor. If your edit ...Show All
Visual C++ reboot
How can i reboot my application at run time using function inside the program In that case I would look at CreateProcess . Note: you are going to have to start up the new copy of the application and then close down the current copy. ...Show All
Visual Studio Team System Team Build Sources Directory
Is there any way to make a build type (team build) use a common directory for it's references rather than it get the latest source code on every referenced solution when building one solution Did you mean that references should be resolved using dlls that you check into a common dir in source control instead of building the dlls Swaha ...Show All
SQL Server SSAS Poor resource usage
Our users use Excel 2003 pivot table to analyze data on our SSAS 2005 database. They experience poor performance as soon as the products dimension is involved (800.000 leaf members), query performance is worse than with AS2000. At the same time, we notice that msmdsrv.exe only occupies 350 Mb of memory at the peak, and only 25% of processor time (bursts above 25% of processor time do occur, but are extremely rare). This is on a dual-core x64 Opteron, effectively a 4-way processor, with 16 Gig of memory. Why is msmdsrv waisting time constantly allocating and freeing-up memory at the 100 to 400 Mb level, where we have about 12 Gig of memory on that server sitting idle How can we make msmdsrv aware of those available 12 Gig and 7 ...Show All
Visual Basic Change String to Integer...error msg
I have a setup dialog with some text boxes into which the user has to put certain strings that are parts of a file name. They are putting those in manually. So if the file name is "IRS001234.tif" then one box contains the prefix "IRS", one the leading zeros "00", another the main number "1234" and a last the "tif" document extension. The "." is a freeby. The user is then prompted to put the whole number in again in a fifth text box to verify he or she got all the parts correctly entered above. I am trying to create a formula whereby when the user clicks "ok", the program adds up the number of letters in each box and compares them to the number of letters in the verifi ...Show All
Connected Services Framework UDDI Authentication Issue
hi, I am using UDDI SDK 2.0. In my code, i am trying to publish as well as search for businesses. 1. While publishing, I do Publish.AuthenticationMode = AuthenticationMode.UddiAuthentication; Also give user credentials(machine administartor) here. 2. While searching I do Inquire.AuthenticationMode = AuthenticationMode.WindowsAuthentication; I try to browse UDDI virtual directory, http://server/uddi , it only allows me to read from UDDI repository and links for publishing are not visible. I checked the virtual dir "uddi" and it is set to allow Anonymous access. If I change it to Integrated Windows Authentication, then I am able to browse to virtual dir and I can add/update/delete from UDDI rep. But in this case my co ...Show All
SQL Server shrink tempdb
I have a sql2000 server that has a 24 /7 uptime. The tempdb size is increasing rapidly. it was 4 Gbs and i restarted the sql server to shrink the tempdb size which worked fine. but now after 1 week then tempdb size is almost 1.5gbs. Is there anyway that i can shrink the tempDb without restarting it. Asking the users to stop using for a certain timeframe after every month or so seems like a hassle for the users. I found the same result with a search engine, but is there any reason not use to SQL Enterprise Manager If you right-click on the tempdb, All Tasks, you get the option to shrink the database there. Is that a bad idea ...Show All
Visual Studio Class as Local Report-DataSource
Hi, I want to add an own class or raher the object from this class as datasource for my local report. how I have to do this Hi, This is how I just tryed it. First you have to make the class as in this example: public class Product { private string _name; private int _price; public Product() { } public Product(string name, int price) { _name = name; _price = price; } public string Name { get { return _name; } } public int Price { get { return _price; } } } public class Products { private List<Product> products = new List<Product>(); ...Show All
