Ming Zhao's Q&A profile
Visual C++ linking of dependant projects
I have a solution with 2 projects... Project a is a console app with MFC support and project B is a dll with MFC support. I have set project A to depend on project B. When I build the solution it fails as there are unresolved externals (from Project B) I have turned in the verbose option on the linker and can see that the lib isn't scanned. Is there somthing else I need to do to get my project to build Robin Have you declared your Cb class like this : class AFX_EXT_CLASS Cb { ... }; The AFX_EXT_CLASS makes sure that all methods of your class are exported by your dll, if you don't use MFC you can use __declspec(dllexport) instead (which AFX_EXT_CLASS reverts to as well). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My new game running on Beta 2 (Dr. Popper)
Just wanted to let everyone know now that I have migrated my game to XNA Beta 2, and have put it up for download at http://www.bluerosegames.com . It's called Dr. Popper and it's a puzzle game similar to Pop'em, Jawbreaker, and Bubblet. I will post full source code for the game in a few days, but for now if you have any questions feel free to ask. Thanks, Bill Jim Perry wrote: I'll have to wait until lunch to try it out since I'm at work, but it looks good. Thanks Jim, hope you like it. I'd like to hear what you think. Bill ...Show All
Visual Studio 2008 (Pre-release) Yet Another Binding Question
After breezing through several basic experiments while trying to learn WPF/XAML, I've tried to tackle something that is beyond me. After much searching and reading, I'm afraid I'm more confused than when I started. Hopefully someone can point me in the right direction. The desired end result is a StackPanel that displays one or more UserControls (Gadget) contained in an ObservableCollection. I would like to be able to filter which items are display in the StackPanel, so I think a CollectionViewSource needs to come into play as well. So, as a very basic example, the Gadget control XAML file might look something like this: <Border xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http: ...Show All
Visual Basic Begginer question: 'Dim image as new panel'???
I am trying to create a new panel via code when a button ('button2') is pressed however when I click 'button2' my panel doesn't appear. here is my code what is wrong with it Private Sub Button2_MouseClick( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button2.MouseClick Dim coods As New Drawing.Point coods.X = 10 coods.Y = 30 Dim image As New Panel With image .Show() .BackColor = Color.Blue .Width = 100 .Height = 100 .Location = coods .Visible = True End With End Sub Also I want to be able to create multiple panels from this code and place them next to each other. I know how to put them into the right position bu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. End users shouldn't have to rewrite XNA math functions in order to improve performance.
The overhead of passing a 64 byte Matrix by value is significant. Most especially when you are comparing two matrices for equivalency (==), or performing a Vector*Matrix multiplication (Vector3.Transform(Matrix)). The following matrix comparison function performs 5-10 times better than your built in == comparison. If the matrices are equal, then it is about 5 times faster. If they are unequal then it fails fast, and is about 10 times faster. public static bool Equals(ref Matrix a, ref Matrix b) { // i check the diagonal first for quick fails return a.M11 == b.M11 && a.M22 == b.M22 && a.M33 == b.M33 && a.M44 == b.M44 && a.M12 == b.M12 && a.M13 == b.M13 && a.M1 ...Show All
Smart Device Development Smart phone device id in standard format using GetDeviceUniqueID
I am converting my application from pocket pc to smart phone I wants to get device id in this "3606d294-0000-0100-0008-0050bf3f5171"format for smart phone. Previously i were using KernelIoControl. Now I want's to use GetDeviceUniqueID My code for KernelIoControl and GetDeviceuniqueID is private static Int32 FILE_DEVICE_HAL = 0x00000101; private static Int32 FILE_ANY_ACCESS = 0x0; private static Int32 METHOD_BUFFERED = 0x0; private static Int32 IOCTL_HAL_GET_DEVICEID = ((FILE_DEVICE_HAL) << 16) | ((FILE_ANY_ACCESS) << 14) | ((21) << 2) | (METHOD_BUFFERED); public static string GetDeviceID() { byte[] OutputBuffer = new byte[256]; Int32 OutputBufferSize, Bytes ...Show All
Visual Studio Team System Trouble with VSTS / Sharepoint remoting services
We are evalualting VSTS & Sharepoint. As a small company, our Team Foundation Server is accessible via the public internet using dynamic dns (dyndns). What happens is that all of the reports fail when coming in over the public internet, because the redirect url is pointing to the actual server name, not the url on the internet. http://<servername>/sites/project/tfsredirect.aspx%flsreport works fine internally, but on the public internet the address should be http://<dynamic dns name>/sites/project/tfsredirect.aspx%flsreport This is a real showstopper for us, as we want to be able to allow our clients to view reports from sharepoint. I'm sure we're not the first to encounter this problem, any advice would be a ...Show All
Windows Forms SelectedIndexChanged Event of DataGridViewComboBoxCell firing multiple times?
I am currently having an issue when using the EditingControlShowing event of a DGV in combination with the SelectedIndexChanged event of the DataGridViewComboBoxCell. I have 4 unbound combobox columns within a mixed DGV (there are 4 databound checkbox columns as well). I am using strongly typed collection objects for the unbound columns. The third column is dependent (the cell is created and databound) on the selection that is made in the second column. This same dependency also exists between the second and the first column. The issue I'm having relates to the number of times and the value of the EditedFormattedValue of the current cell as the comboboxes are used. In the first column when I use the combobox, the event only fires after I h ...Show All
SQL Server Can I use keyword Like with a Parameter
Should be simple. I'm writing a report to find employees by last name. I want the user to key in at least a few characters of the last name and the report will search for all last names that are like that. I know in TSQL it would go: Last_name like 'Jones%' But how do I set up a parameter in Reporting Services I've tried: last_name like =@name% Any ideas Thanks, Jim You would probably need to use dynamic sql and expression. ="Select * from table1 where last_name like '" + @name + "%'" Or use a stored procedure and perform the like statement within it. cheers, Andrew ...Show All
Windows Forms Close Form on Submit
I have a Window Forms project with 3 Forms (will say Form1, Form2, and Form3). On Form1 I have a 2 ComboBoxes and Submit button when clicked will go to Form2. My problem is I want Form1 to Close,Not Be Visible, etc.. to the user in the Task Bar on XP. What happens is a user will keep on piling on Forms and at some point will have to close on their own. I have tried the following code but it does not seem to work: Thanks for any help. Form1.cs private void btnSubmit_Click( object sender, EventArgs e) { Form1 closeForm1 = new Form1 (); Form2 frm = new Form2 (cmbBoxCenProcessors.SelectedValue.ToString(), cmboStatusOfForm.Text.ToString() ); closeForm1.Visible = false ; closeForm1.Close(); fr ...Show All
.NET Development Creating a database storage and information access?
Okay I'm totally lost. I've been trying to make a website for our customers to sign into where they can view specific details relating to their company (their product purchases, warranty end dates, and points balance tracking). How do I go about creating such a database storage and access website. Does anyone know where I find a tutorial or if someone can help me out. I've tried everything I could find and nothing. All I got so far is the actual layout and log in working. Now i need the backbone of the website; the database functions. Thank you. The best way as I explained above is to add a query in you table adapters. For example in the purchase table adapter you could add this query: sele ...Show All
SQL Server How to integrate SQL Server Business Intelligence Tool into ASP.Net web Application
How to integrate SQL Server Business Intelligence Tool into ASP.Net web Application. Anybody can send the answer for above one it is great help for me, just I want to open this tool through >net application and I can able to create some reports from there. You can embed Report Viewer into ASP.Net application. See http://www.gotreportviewer.com/ for some good examples ...Show All
SQL Server Subquery Error
Dear Friends, Could you tell me where is the problem ALTER PROCEDURE [dbo].[GD_SP_FACTURA_SOFTWARE_GERAL2] @Direccao nvarchar(10) AS DECLARE @NrLinha int BEGIN SET @NrLinha = SELECT COUNT(*) FROM (SELECT dbo.Aplicacao.Aplicacao, COUNT(dbo.ADCN_AplicID.CN) AS QtAplic FROM dbo.ADCN_AplicID INNER JOIN dbo.Aplicacao ON dbo.ADCN_AplicID.AplicID = dbo.Aplicacao.AplicID INNER JOIN dbo.SERVICO ON dbo.ADCN_AplicID.Servico = dbo.SERVICO.S_GrupoServico INNER JOIN dbo.HARDWARE ON dbo.ADCN_AplicID.CN = dbo.HARDWARE.New_Computername WHERE (dbo.SERVICO.S_NomeDir = @Direccao) GROUP BY dbo.Aplicacao.Aplicacao, dbo.Aplicacao.Custo ) END ERROR: Msg 156, Level 15, State 1, Procedure GD_SP_FACTURA ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to move, rotate, zoom 3D object
I am new in direct3D. I am writting a window application to view a 3D object. I need move, rotate and zoom function. I appreciate if I could get help. Examples in C# is better. Thanks. Plenty of samples here and in the SDK sample browser http://www.thezbuffer.com/categories/tutorials.aspx To move/rotate/zoom objects you need to set the world transformation before you draw the object using combinations of Matrix.Translate (move), Matrix.Rotate and matrix.Scale (zoom). TO move around the whole scene you set the View transform, usually using the MAtrix.LookAtXXX functions ...Show All
SQL Server Executing Package From Web Service
Hi, I'm having another go at attempting to call an SSIS package from a web service. The Web Service is set up on the same server as the sql server and SSIS package deployment. When i attempt to run the pacage from the web service it starts and then inmediately fails. I can see this in both the Integration Service Logs and the event viewer. If i click on the package itself and run it using the DTExecUI, it runs without a problem. No logs are output by the package when called by the web service. Can anyone suggest anything that i could to see if i can diagnose where the problem stems from. Many thanks in advance, Grant hi, i had the same problem, The reason for this execution error is that you are using the ...Show All
