kalprin's Q&A profile
Visual C++ Structure Alignment/Packing issue
I have developed a VC6 X application. In X application i am reading/ writing structures in the binary file. These files are used by Y application which is also developed in VC6. Untill now everything was working fine but as soon as i changed the order of struture members i have started getting junk values in Y application. I have changed the order in both the application but my X application is reading them properly from the file but my Y application fails to read from the same file. Can anyone tell me why is this happening. Any kind of help will be appreciated Thanks in advance Herman Bastiaens wrote: A struct member is misaligned if it starts at a position that's not a multiple o ...Show All
Windows Forms How to install windows and web application using a single setup file
Hi, I have two applications. One is a windows application and the other is a web application. I created two msi's for these projects individually. I want to create a setup file, that will combine the installation of these two files together. Also, i want to know, how to modify the config file to change the connection strings for these applications, after getting the user input for these. Also, provide us with some help on how to create a setup file same like that of the SQL Server 2005. (with same installation steps and the screens). Thanks Prasanna This is part of a larger Wix tutorial - this is the section dealing with virtual directories and there's a download sample. http://www.tram ...Show All
Windows Forms refresh the data table disable to select
hello, i have a problem with refresh the data table function in the tableadapter. It is disable and not allow to select, how to fix it thx table desc: 1 unique primary id no special character I have also had problems with getting the identity to reload when added to the database. It happens with the typed datatables. I have seen code where @@identity is used to retrieve the identity that the database assigns. Unfortunately: Dim adapter As OleDb.OleDbDataAdapter AddHandler adap.RowUpdated, UpdateIdentity works but in a typed dataset (Created with the wizard) this event is not accessible. I have had many problems for a while now with this and could never figure out why ...Show All
Visual FoxPro CHM Help in VFP9
Hi All, We have an application that we recently upgraded from VFP 8 to VFP 9. The transition was smooth except that the help file of the application is not working in VFP 9. I have made sure that FOXHHELP9.exe and FOXHHELPPS9.dll are included in the installer. After doing some research on the web, I read a comment on http://fox.wikis.com/wc.dll Wiki~VFP9RuntimeFiles which only says: foxhhelp9.exe /regserver When we type thi command at the cmd prompt, it fixes the problem. However, this is not the solution our users want to see. Can you please let me know the reason for having to type this command, and is there a way I can avoid going this route Thanx, Bini The installer for your EXE (in VFP9 generally ...Show All
Smart Device Development Sending packets out UdpClient on Motorola Q Smartphone
K, thanks to Ilya, I'm making definite progress. I've now got lots of nice debug output going to a TextBox. I'm now trying to send a packet out a UdpClient. A call to Send seems to return successfully but I see no packet emerge on my Ethereal trace of the network interface. Likewise, there is no response coming back as expected. This despite the fact that I can see both web requests and DNS queries and responses going back and forth, obviously bound for the phone over ActiveSync. The UdpClient is bound to port 5060 (SIP for those that may not have guessed already). I have turned off the Windows Firewall. Any other ideas about what might be blocking this packet Thanks, FM OK, so I just discovered that Act ...Show All
Visual Basic For your VBA, CUT AND PASTE the Function out of this VB.Net code.>>
Hi! I have a list with prices of US Treasury bonds. They are quoted in a particular way that I would like to convert to decimal form. They are quoted like this eg: 99-02. Now this means that the price is 99 and some decimal. The two first numbers are the number of 32:s. Thus in this case the price is 99 and 2/32. However if there are three decimals eg 99-021 the last digit refers to the number of 124:s. Thus the price is 99 and 2/32 and 1/256. Sometimes There are only two decimals followed by a plus or minus sign eg 99-30+ or 99-10-. The plus/minus indicates that you should add/subtract 1/64. Keep in mind that the non decimal numbers may be one, two or three digits. Thus, it could be eg. 6-02 87-22- or 105-21+. Is there any wa ...Show All
Windows Forms How to capture keypress in Windows Forms?
Hi every body How can i capture key press in Windows Forms not from a Control I want the user to press any key any where in the Form and display the keypress in label like if you write in the text box I knew that i have to setup ( KeyPreview to true in the Form1 ) and use private void Form1_KeyUp(object sender, KeyEventArgs e) { } to capture the key press. But my problem is that i did not get the value correctly in the label Pressing number 5 in keyboard will give 1. If using e.KeyCode =========================== label1.Text = e.KeyCode.ToString(); NumKey will give ===>> NumPad5 MainKey will give ===>> D5 2. If using e.KeyValue ========================== label1.Text = e.KeyValue.ToString(); NumKey will give === ...Show All
SQL Server What issues are reported when sql2005 for 32bits is installed on a windows64bits server?
Are there limitations about installing sql2005 enterprise edition on a 64bits windows box I have one installation and I would like to know more about it. I'm not aware of any special issues, except that you will have reduced performance versus a native 64-bit version of SQL Server. -Ryan / Kardax ...Show All
.NET Development how to unzip a file in .net 2.0 with C# as a language
I have a zip file.I want's to unzip it how can i do this in .net 2.0 as we know there is a class i think gzip from which i can unzip a file. Please can anybody help Hi Kamran, The short answer is that the .NET libraries don't provide a way to easily unzip a zip-formatted file at the moment. And working around this takes a bit of effort. First I'll give you an overview of compression in .NET and then give you pointers to possible workarounds. As of now, the .NET compression libraries support at the core only one compression method, which is Deflate. Our GzipStream class, for example, is Deflate plus some extra header info and checksums -- i.e. the GZip format defined in RFC 1952. Many other compressed file formats besides gzip ...Show All
Visual Studio Team System MDX syntax question
Hello, I am starting to play with customizing some of the TFS Reports and have been able to create a couple of simple ones on my own. I am just trying to get my head around MDX and learn the basic syntax by playing with some of the box reports. I am having a simple problem however and I don't understand what is wrong. I am trying to modify the Remaining Work report and add in a filter in the WHERE clause that only returns items where the Exit Criteria is set to false. i.e. [Work Item].[Microsoft_VSTS_Common_ExitCriteria].&[Yes]. So my modified query looks like this. ---START WITH MEMBER [Measures].[Date Key] AS [Date].[Date].CurrentMember.UniqueName SELECT { [Measures].[Date Key], [Measures].[Cumulative Count] } ON COLUMN ...Show All
Visual Studio Team System TSql Tests Timeout
I am writing tests for procedures and the tests have pre-test and post-test actions that may run for well over a minute, and I periodically receive the error "Failed <TestName> <TestProjectName> Sql Error: 'Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.' (Severity 11, State 0)" when I run the tests. I typically receive the error about 30 seconds after starting the test. Is there a way to increase this timeout I have tried adding execution time conditions for greater than 30 seconds, but that does not seem to help. Thanks - and great product overall! Gabe, Yes, you can increase the sql timeout that i ...Show All
Visual FoxPro VFP9 applications running much slower than VFP6 and VFP8
I have same vfp application program. But I found that it run much slower than previous version when loading a form in vfp9 compiled application. Anybody have same problem How is the data being loaded into the controls on the form Are there a lot of controls on the form that are being instantiated as it loads We can't see your form on our end and we can only guess. ...Show All
Visual Basic BackgroundWorker - Best way to wait during CancelAsync()?
Hello, What is the best way to wait for the BackgroundWorker during CancelAsync() I have tried a simple loop like this: While BackgroundWorker.CancellationPending Application.DoEvents() End While This works most of the time, but sometimes I get this error: An exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll but was not handled in user code Additional information: Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function. Thanks for any ideas, Tom Why do you need to wait for the background worker's cancel to be completed The BackgroundWorker.RunWorkerCompleted event will be raised whe ...Show All
SQL Server "batch size setting" ?
Is there a "bacth size setting" or some such t-sql option that determines the number of records sql will hold before commiting them as a group to the database TIA, Barkingdog ...Show All
Software Development for Windows Vista IVMRWindowlessControl9.GetCurrentImage returns black frames.
Hi, I am extracting frames from a DVR-MS file created by Vista Media Center. It works fine but sometimes IVMRWindowlessControl9.GetCurrentImage(IntPtr iDIB); returns a black frame. If I run the graph and pause the thread of my application for a second and get than the current image - it works just fine. So it looks like it needs a few ms to get the frame etc... Fyi, I am using C# and develop under Vista. Is it possible to "wait" till the current frame is available and not still a black frame Thanks, Olcay I converted your code to VB.Net and I got black frames when I first ran It. I changed your ctlContainer.Handle to my Form's handle and changed the scan0 IntPtr to the offset of the BitmapInfoHeade ...Show All
