ChanKaiShi's Q&A profile
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
SQL Server report is always one page regardless of how long it is...could somebody help?
Hi anyone, my problem is a bit simillar with harry but we are making a report and when viewing it, we still see one page even how long the report is, I had viewed the XML code and search fot the property InteractiveHeight but I found out it has 8.5 by 11in on its page height...but still when viewing it has too long one page report Can anyone help me with this thanks a lot... we need to cut the report in pages.....God Speed We are experiencing a long report upon generating the report bu cliking the view report button. the report is generaed successfully but still it has only one page even how long the report is...thank you ...Show All
Visual C++ How do I return from a static member function
I don't know how to return from a function if it's expecting and ADT type. I can't use *this on static member functions. My header prototype looks like this: class Fraction { private : int numerator; int denominator; SignType sign; /******************* Fraction Operators ********************/ static Fraction addFract( const Fraction &f1, const Fraction &f2); } My implementation looks like: Fraction Fraction::addFract( const Fraction &f1, const Fraction &f2) { Fraction::numerator = (f1.numerator*f2.denominator) + (f1.denominator*f2.numerator); Fraction::denominator = f1.denominator*f2.denominator; return * this ; } // end addFract ...Show All
SQL Server reporting and monitoring
Hey all I am new here and fairly new to SQL server. And yes i have a question, that maybe dumb. My boss wants me to reporting to him the health of the DB each week. So here are a few questions. 1. What really defines the "health" of a DB What elements should I be reporting to him 2. Is there any utilities out there that would be helpful or can SQL provide enough info 3. I am using 2005 standard, so I have the shipped reports in summary page. But is this enough and can I customize them Sorry I am having a hard time even asking the questions cause I am not really sure what to ask. Any help or pointing down t he correct path would be greatly appreciated. Thanks, jason and what about 3rd party utilities such as this>>&g ...Show All
Audio and Video Development axwindowsmediaplayer automaticly resuming with the next item in a listbox
Hi there,i'm having some trouble automaticly playing a list of audio files. here's some of my code: Private Sub AxWindowsMediaPlayer1_PlayStateChange( ByVal sender As Object , ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles AxWindowsMediaPlayer1.PlayStateChange Dim i As Integer For i = 0 To Listplayname1.Items.Count - 1 If AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsMediaEnded Then Listplayname1.SelectedIndex = i + 1 AxWindowsMediaPlayer1.URL = Listplayname1.SelectedItem End If Next i End Sub when a file ends it jumps to the next file in the list but it does not launch, anyone have a clue how to launch it if i click it or move up and ...Show All
Visual Studio Express Editions Tips needed - How do I match the "{" with "}"
Hi How do I match the "{" with "}" This is to math the loop begin and end. There is a short cut I used but forgot. Thanks Hi, the shortcut might depend on your VS setup. To get it for sure, choose Tools->Customize->Keypoard. Look at the shortcut for Edit.GotoBrace. -- SvenC ...Show All
Microsoft ISV Community Center Forums DLookup help?
Hi there - im building a contact management system and require some help. I have previously had help with VBA in terms of defining what users can and cant do within the system when logging in via a username and password which was incredibly useful. Im now at further along the route and now want to incorporate an activity system that will record all hours that employees will have worked against clients. However we have a lot of clients! The users login name('login_name' which is held in 'tblusers') is also entered into a 'leadofficer' field in 'tblcompany' so that we know which user is responsible for managing that client - this is done through a combo box on the company entry form so it looks up the values from the table 'tblusers'. On th ...Show All
Visual Studio 2008 (Pre-release) How can I bind to member classes of a class
I want to encapsulate all the data binding, validation, conversion, etc. objects for a piece of data under a single class, then reference these child objects as needed in XAML. For Example: I can implement a collection like this *** public class MyModes : ObservableCollection<string> { public MyModes() { Add("Mode One"); Add("Mode Two"); } } And bind it to a combo box, like this <Grid.Resources> <ObjectDataProvider x:Key="Modes" ObjectType="{x:Type src:MyModes}"/> </Grid.Resources> .... ItemsSource="{Binding Source={StaticResource Modes}}" IsSynchronizedWithCurrentItem="true"> *** ...Show All
Visual C# Formatting dates from string
Hi there, I have a string thus: 16-12-2006 That I have managed to get looking like this: 16/12/2006 00:00:00 By doing this: string date = System. Convert .ToString(newString); date = System. Convert .ToString( DateTime .Parse(date)); BUT! I cannot for the life of me find out how to make it display is this manner: Sat, 16 Dec 2006 Can anyone help a bit of a newbie out please TIA, d. Boban - I don't find your reply helpful, because often one doesn't know in advance the format of the string that one wants to convert into a date. Why doesn't .net provide a method to convert strings in unknown format to dates (I know there is the Parse method, but t ...Show All
Visual Studio Team System Build fails with: The binary form of an ACE object is invalid
I can't seem to get team builds to work at all. They fail with "The binary form of an ACE object is invalid" but, there's no indication of which ACL has an invalid ACE. Any ideas The complete log is: Build started 7/22/2006 8:51:35 PM. __________________________________________________ Project "E:\Checkin\JAMS\Checkin\BuildType\TFSBuild.proj" (EndToEndIteration target(s)): Target InitializeEndToEndIteration: UpdateBuildNumberDropLocation BuildNumber='Checkin_20060722.3' DropLocation='\\MVP\Cmn\Kits\Checkin\Checkin_20060722.3' C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(165,5): error : The binary form of an ACE object is invalid. C:\Program Files\M ...Show All
Visual FoxPro Passing multiple variables from forms w/ VFP7SP1
I'm an old Clipper (S' 87) programmer that needs to figure out forms with VFP. The attached code generates a form containing a set of four optiongroups that set basic comm port parameters on the local host for serial communication with an instrument (usually an electronic balance). I'm trying to use the form to replace a series of cascading menus in the original program. My intent is for the form to recognize the 5 existing parameters in the main prg, permit user input and then pass any changes back to the calling procedure or function using a array embedded in the form when the user clicks [OK]. Clicking [Cancel] should leave the parameters unchanged. Can somebody please suggest a technique for passing multiple variables back and forth be ...Show All
SQL Server Eliminate Duplicate ID's in this StoredProcedure
I have a stored procedure that I use for Monthly Billing delete from BillingCurrent insert into BillingCurrent([Name],Address,City,State,Zip,InvoiceID,CustomerID,[Date],InvoiceTotal) SELECT Customers.Name,Customers.Address,Customers.City,Customers.State,Customers.Zip,Invoices.InvoiceID,Customers.CustomerID,Invoices.Date,Invoices.InvoiceTotal FROM Invoices INNER JOIN Customers ON Invoices.CustomerID = Customers.CustomerID WHERE CONVERT ( varchar (15), Invoices.Date, 112) Between CONVERT ( varchar (15), dateadd (d,-30, GETDATE ()), 112) and CONVERT ( varchar (15), GETDATE (), 112) This works great, but if a customer has more than one invoice open it adds that Customer again (for each invoice that is n ...Show All
.NET Development Issue with generating schema from XML
Hi, I am using Visual Studio 2005 team edition for software developers. I am facing an issue while trying to generate a shema (xsd) from an existing Xml file. The IDE just hangs with the status 'waiting for parse to complete'. The XML i am using is a simple one and i have already got the XSD for it from a VS 2005 installed from another machine. Anyone faced this issue before Thanks, Mujir The issue got resolved somehow, but still not sure why it failed the first time. Here is the XML. <NICConfiguration> <nics guid="{68f05bfb-fbf9-4d29-87ac-9fa571d39db7}" Name="TestNic" Count="1" IsMasterValid="True"> <nicId Index="0" Is ...Show All
Visual Studio Express Editions How to make a simple function
Hi, I was wondering if there is anyway to turn a huge amount of code into a simple function. Right now I have a bunch of check boxes and they are all named C1-C7 and W1-W7, instead of putting in code for each one when clicked, which results in a large amount of code, is there anyway I could make one function to handle all of these. I tried something like this. If C(num).checked=true then W(num).checked=false endif its just a basic example of what i want and i could really use this later on. Thanks I am getting a nullreferenceexception was unhandled error for the code posted last. It looks like what I want, just needs to work. ...Show All
Smart Device Development about WINCE IME
Hi, 1, If it is supported that using the no-keyboard IME which is not SIP but based on IMM-IME form on WINCE platform 2, And If it is supported that using multi-download IME on WINCE platform 3, If the first IME worked, which parts of register should be modified If we only modify the two parts below, can it be OK [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Layouts\e0xxxxxx] [HKEY_CURRENT_USER\Keyboard Layout\Preload\5] Thanks. Best Regards crow wu This forum is smart device development related. Since your question is not related to smart device development, it's off topic here. If you’re having a h ...Show All
