Baolong Chai's Q&A profile
Visual C++ need to create a .exe using vc++ without runtime files ?
Hello All I need to create an application Suppose if I use VC++ do I need to include any big runtime files Say for example the Dot net runtime Suppose If I use Visual C++ Express Edition to create application do I need to include Runtime files like the Dot net runtime Thanks Steven > One day, I will post reasons why shunning the .NET framework just because not every computer has .NET installed is moronic, but since today is not that day... When you get around to writing it, you have my backing. :) People should be aware that the .NET Framework is a free redistri ...Show All
.NET Development .net equivalent of vb6 winsock
My application needs to read a barcode string that is sent via tcp/ip from a camera on the network. I have done this before with VB6 using the winsock control and using the DataArrival method. What is the .net equivalent Is it the socket or tcClient class that I should be using Great stuff. Thanks. Got it going. But where's the DataArrival event that the winsock control used to have ...Show All
Windows Forms Disabling windows forms designer temporarily
Hello every body As you know when designer code grows and becomes giant its so bothering to modify the source code and then turn back to the designer (It consumes alot of time). The question is "Is there a way to disable windows forms designer for a while " Thanks in advance . I'm not entirely sure I understand what you want, but you set the code editor the default by doing the following: In Solution Explorer , right-click a Form and select Open With... In the Open With dialog, select CSharp Editor and choose Set as Default and then OK Now everytime you double-click a form in Solution Explorer, the ...Show All
Windows Forms How to attch another form to main form
I have main form A. When click button on Form A , it will show Form B. I like Form B to show in a split panel on Form A , so user do not feel difference to work on different forms. How I can attach Form B to Form A Please help! If you want to work with multiple forms in the same enviornment, I would use a MDI (Multiple Document Interface) form (Form Z). You can then use the location and sizing properties of Form A and Form B to display them side-by-side within the same window (Form Z). ...Show All
Windows Forms How do I limit file types on my drag and drop?
Hello, I am building an app and I want to limit what file types a user can drop onto my form. I got my starter code from on of the C# sites. Here is a sniplet of me code: private void listBox1_DragEnter( object sender, System.Windows.Forms. DragEventArgs e) { if (e.Data.GetDataPresent( DataFormats .FileDrop)) e.Effect = DragDropEffects .All; else e.Effect = DragDropEffects .None; } I just want to have the cursor show the 'x' when it is not the right file type. I only want to allow them to drop '.xml' on my listbox. Any help Thanks, Michael. use the Dra ...Show All
SQL Server To Boost Performance
We are designing the database for a high load web application . We used 4 techniques. 1.No outer joins,No Unions, > only in reports 2.No joins in main forms 3.Choose the smallest dataTypes possible. 4.Used a single instance for all users. Are there any additional MAJOR ones DId you had a look on www.sqlserverperformance.com Additional options would be to define the right indexes, use of index views, etc. You find all this ont his side. HTH; Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Express Editions Q: What is the modules
hi, i'm new and i want to know what is hte differece between classes and modules , and when to use modules, thx Hi shak, The purpose of a module is to contain subroutines or Functions and to declare Variables or Arrays with the Public Command. Modules have no visible properties and have no events because they have no controls. Subs within the module are made available to your entire program (global) as opposed to local to a partuclar form or even more local to a particular procedure. The 'Visual Baic 2005 Express Edition for Dummies by Richard Mansfield is a great book for beginners. It had most of th ...Show All
SQL Server Database connection and local temp tables
We have a C# process that opens a database connection, creates and populates a global temp table, manipulates the data in it and then renders a SQL report to display the data in the temp table. However, to avoid concurrency issues, we want to switch to a local temp table so that it is only available to the connection opened by the C# process. Unfortunately, when we try to render the report, the temp table will not be visible to the report server. One possibility is to call a stored procedure from the report that creates and manipulates the temp table itself, however this is not a viable option for us. All data processing must ...Show All
Visual Studio Team System Problem configuring TFS for SSL access (have already followed advice in other posts)
Hello, I have partially succeeded in configuring access to TFS through SSL. The final problem I have is that the "Documents" node of Team Explorer does not work (it has the dreaded red cross next to it). I have searched the forums and followed the instructions here: http://forums.microsoft.com/msdn/showpost.aspx postid=103796&siteid=1 However, my problem is not resolved. I have a single tier installation of TFS, access to this is over HTTPS via an ISA Server. The TFS install has three websites that get set-up during the initial installation process, the "Default Web Site", "SharePoint Central Admin ...Show All
.NET Development Problem with Datacolumn aggregate expression
I have a master table named Orders and a detail table named Orders_detail. (Xtreme Access db) I succeeded in calculating the sum of the field [Orders_detail.Qty] by using a datacolumn with an aggregate expression [Sum(Child.Qty)]. Me.relation1 = New System.Data.DataRelation("Relation1", _ New System.Data.DataColumn() {Me.tableOrders.Order_IDColumn}, _ New System.Data.DataColumn() {Me.tableOrders_Detail.Order_IDColumn}, _ false) Me.Orders.SumColumn.Expression = "Sum(Child.Quantity)" I'm using a DataGridView to display the records in Orders_detail with a BindingSource object : M ...Show All
Visual Studio 2008 (Pre-release) WinFX For Visual Studio RTM
I have readed about the Visual Studio 2005 RTM is planned to be released today on msdn, is planned to be released also a recompiled version of WinFX runtimes and SDK for RTM soon Sebastian Whoo hoo! Nice work: http://blogs.msdn.com/tims/archive/2005/11/18/494526.aspx ...Show All
Visual Studio Uninstalling Add-ins - removing toolbars
Hi all, I have an addin for VS.NET which I've recently altered to work with vs2005. I'm having an issue with uninstallation though. When my uninstaller runs, it runs 'devenv /setup' to remove the toolbars for each of the Visual Studio versions installed. This works (albeit with ugly consequences) on VS2003, but on 2005 my add-in's toolbar and commands are still present. Some searching around yielded the /resetaddin command, which kinda works. It removes all the toolbar buttons, but not the toolbar itself. Also, annoyingly, it fires up a whole new copy of vs2005 which then stays open - not an ideal thing to happe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawIndexedUserPrimitives in .Net 2.0
The new DrawIndexedUserPrimitives doesn't support arrays anymore but only GraphicsBuffer. If I simply write the index an vertex arrays into two GraphicsBuffers DrawIndexedUserPrimitives fails with an exception (Invalid call). How can I convert old code Thanks. I did some debugging and it the error was that the vertex shader was not set correctly. I looked into the assembly with reflector and it seems that there is a bug in Device.set_VertexShader. It calls the function with the offset 0xc4 in the vtable of IDirect3DDevice9, but the index for SetVertexShader is 0x170. ...Show All
Smart Device Development How can you force Closing PIM.VOL on Magneto??
We are working on a backup solution for backing up the PIM information on a WM2005 device and I can not find out how to have the background services to release the locks on the PIM.VOL (EDB) - I can copy the file over to another file name but I can not replace the file as the file is locked. I have tried several Mount, Delete, etc operations. I have even tried replacing the contents of the EDB database on a per record basis but the "Dirty Bits" (replication) all get set and I have already been informed that alteration of the Replication Bits were not implemented in WM2005 - I a stumped and needing help in a very bad way!! ...Show All
Visual Studio Express Editions path to a local html file
Hi everyone, I would like to create an application that should run from a cdrom. It should access and display html files on a webbrowser control. I am wondering that if it is possible to point my html files to the webbrowser conrol relatively. For example placing the index.htm on the same directory with app.exe. So far I couldn't find a way to achieve this. I know how to get the first cdrom drives letter programmatically and use absolute paths to the html files but this is not my first preference. Any help is appreciated Thanks This works for me... Application.Path & "index.htm& ...Show All
