bxchan's Q&A profile
Visual Studio Express Editions Technical Problem when transporting Project
I have built a project on a PC running Microsoft Visual Basic 2005 Express Edition. I also installed this software onto my laptop (from the same CD and registered it fine too). But when i save the project from my PC and close Microsoft Visual Basic 2005 Express Edition i sometimes get errors about the program (doesn't bother me that much and i just send the error reports via the prompt). I then copy the solution that i have developed in the Projects folder to my memory stick and copy that into my Laptop's Projects folder, but when i goto open Life.sln or Life.vbproj (one folder deeper) i get an error that says this (BTW, it's the same error both ways [so both times it's Life.vbproj]): Unable to read the project file 'Life.vbproj'. C ...Show All
Visual Studio Express Editions Math.Sqrt Problem
Im having a problem with this code: float quad1( float a, float b, float c) { float d; float e; d=Math.Sqrt(b*b-4*a*c); e=(-b+d)/(2*a); return e; } And here is the error: c:\documents and settings\zach williamson\my documents\visual studio 2005\projects\workplace\workplace\workplace.cpp(42) : error C2065: 'Math' : undeclared identifier c:\documents and settings\zach williamson\my documents\visual studio 2005\projects\workplace\workplace\workplace.cpp(42) : error C2228: left of '.Sqrt' must have class/struct/union type is ''unknown-type'' Am I not including a library If you're building a managed program, use Math::Sqrt(). If you're building a c ...Show All
Windows Forms ClickOnce Workaround.
hey guys, I need help from you guys. Just a few questions if these can be dealt with. 1. Is it possible to use click once without its backward compatibility I mean would want the newly published files(all files) overwrite the old ones. Would it be possible 2. Just wanna hear your ideas on this guys. For example, we have multiple servers running. Considering a multinational compay that has employees on North America, Asia and Europe. Each continent is being represented by a server. The purpose of which is that every time theres an update, those employees from europe would just connect to the server on europe and so is USA and Asia with their assigned servers respectively. Would it be possible for ClickOnce to deploy to multiple servers ...Show All
Visual Studio Express Editions Datbase Search
I am working with VB 2005 express to create an app that will connect to an Access DB. I have successfully been able to connect the DB to the app and can retrieve data as well. I would like to be able for the user to Input text in a textbox and click a button to perform the search. I am unsuccessful with coding the button to retrieve the records that fit the criteria. If have any solution please could you help me out. Here is a sample of the code i have so far for the search button. I have added a data gridview but made it invisible so that i can display the results in a label using data binding. The underlined code is giving me an error. it says: unable to cast object of type 'System.String' to type 'Sy ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BoundingBox.Contains doesn't work after a transform?
Hi All, I have some test code that uses BoundingBox.Contains to see if a vector lies inside the bounding box. It works fine until I transform the point vector and bounding box min/max vectors by a matrix. The coordinates look right, but the function retuns disjoint. I know I must be missing something here, but I can't figure it out. The values after translation are: BoundingBox.Min: 0, 0, 0 BoundingBox.Max: 1, 0.99999999, -1 Point: 0.5, 0.5, -0.5 My test code just replaces the standard game Update() method. You also need to set the game Draw() methods graphics device clear call to graphics.GraphicsDevice.Clear(color); Here's the Update method and color declaration: Color color = new Color ( Color .Yellow.To ...Show All
SQL Server Zip archive of XML docs loading into SQL Server
*Newbie Alert - Non-Programmer* I have over 100 thousand XML docs in a zip archive to upload to SQL Server 2005. My question is how to go about this and what is practical I've read a couple of posts using some sort of loop but it seems slow and I don't want to unzip the archive. I would want each doc as an individual record and whole and not shredded. Any info would be greatly appreciated. Thanks SurfingMoose You will have to unzip it since SQL Server does not understand ZIP files. then you have to write some script (maybe using SSIS or VB ) to loop over the files and load them into the database. You pass the content of the files to a stored procedure parameter (or T-SQL statement) as the appropriate type ...Show All
Connected Services Framework IBM WebSphere MQ Listener Service in C#
I need to write a windows based servcie in C# to listen the reuest queue configured in WebSphere MQ 5.3. Whenever a new message arrives in the queue, the service should pick the message and process the request. I want to know the best practices of implementing the Listener Service in C#. Should i create a timer thread to listen the queue for new messages at specific intervals or Is there any other feasible solution to achieve the same Thanks in advance Ganesh, Thanks for posting a question to the Connected Services Framework (CSF) forum. Please note that this forum's goal is to provide support for issues related to CSF. The question you raised, does not seem to involve CSF. Please post your question to the appropriate forum ...Show All
Windows Forms Datagridview image column
Hi all, I have been trying to get this code to work to no avail The code below I believe should put an image into a datagridview image column , but I could be wrong.. I tried to use byteArrayToImage(e.value) but all it says is systems.drawing.bitmap - it's not giving bytes, it's giving a string. What do you reckon I'm missing to return the byte array Private Sub dgvUsers_CellFormatting( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles dgvUsers.CellFormatting Dim _cell As DataGridViewCell = New DataGridViewImageCell If e.ColumnIndex = 1 Then dgvUsers.Columns(e.ColumnIndex).ValueType = GetType (System.Drawing.Bitmap) _cell.ValueType = GetTy ...Show All
SQL Server WSS on MSDE for Vista or later
Hi, I have come to know that the upcoming OS releases VISTA, and Longhorn are no more going to (Courtesy: Microsoft Directions) support the MSDE version of the SQL. So, all the applications that are to be ported on to VISTA and are dependent on MSDE engine would first have the MSDE content be shifted to other compatible databases such as SQL Express, SQL Server (2k, 2k5). If this is true, i'm wondering how Microsoft WSS release is going to be positioned from the Vista onwards as the typical install of WSS installs MSDE instance on the machine and add the configuration content on MSDE. That said, do we have to manually move our configuration databases to other compatible ones and let go with the functionality or if Microsoft has any ...Show All
Visual Basic How to fill a A4 page when printing a form?
How can I fill a entiry A4 page, when using Pintform I have a picturebox docked in the form, with a model of a report, and some textbox, that fill some questions of the report. But I can't get the picturebox to completely fill the printed page. Is there any tool that could help me Thanks, Lucas 1. Add a PrintDocument control to your form. 2. Add this code: Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.DrawImage(Me.PictureBox1.Image, 0, 0, e.PageBounds.Width, e.PageBounds.Height) End Sub 3. Add A PrintDialog control 4. Set to the Document property of con ...Show All
Visual Basic Get/Set File Attribute
I need to get a file attribute of a specific file, then set it to another value. Specifically if a file is -r I need to be able to set it to +r Thanks, Robert Hello Robert This is not work when You want to clear some of attribute for example: - You have a file with ReadOnly , Archive and Encrypted attribute, to clear only ReadOnly , you must do this: ' Get the file attribute Dim FileAttrib = File.GetAttributes(strFile) ' Clear the ReadOnly attribute leaving existing others FileAttrib = (FileAttrib Xor FileAttribute.ReadOnly) ' Set new attribute to file File.SetAttributes(strFile, FileAttrib) Regards ...Show All
SQL Server SQL Server Agent not finding the package to run
Hi, I have been searching through the posts hoping to find an answer to my problem. Most errors and problems seem to deal with Agent not being able to run packages because of permission issues. My problem has to do with SQL Server Agent not finding the package to run. I have a proxy with a high enough level of permissions (SqlAgentOperatorRole). The error message I get is: Executed as user: ___/____. The package could not be found . The step failed. The package is in a folder on our network. When I create the step I use the browser to go find and select the package. So why does it not find it at runtime I can run it manually My group is using 2005 for the first time. Any help you can provide would be very much appreciated. ...Show All
.NET Development CSharpCodeProvider and temporary files
I'm using CSharpCodeProvider.CompileAssemblyFromSource() to compile C# scripts from within a Windows service. Everything works great from my machine but when deployed to our test servers, this error occurs: Compilation errors: Compilation failed:error CS1619: Cannot create temporary file 'c:\WINNT\system32\CSCDBC.tmp' -- Access is denied. Is there a way to specify where this temporary file is generated I've tried everything. TempFiles collection doesn't do it. GenerateInMemory doesn't do it. I don't have the code anymore. I've followed many examples and someone else ran into the same problem. You only have to use Reflector to see it's not using the parameters. I tried all the suggestions from google searches and I could no ...Show All
SharePoint Products and Technologies Can't search within PDF files
I've installed the Adobe Ifilter 6.0 and can now search to list posted pdf files in multiple sites by querying the pdf name. I can search content within Word files, but still cannot search content within these pdf files. Is there something else I need to configure to see content within these pdf files I can't seem to find any clues to what needs to be tweaked. Thanks. I'm having the same issue. My Operating System is Windows 2003 R2 x64 with SQL Server 2005 and WSS 3.0. I'm running the latest iFilter version -- 6.0 and have verified all registry settings. Some of the pdf files are indexing properly, but I believe that the ones created with Adobe 8.0 are not indexing content at all. I assume this is a ...Show All
Visual Studio Express Editions On Checked display another image
Hi there :) Was wondering if it is possible to change the image of a Toolstrip button when it is CheckedOnClick as True I've tried starting it like that but im lost at the very start of it :S Here is my starting code: private void mnuLeft_CheckedChanged( object sender, EventArgs e) { mnuLeft.Image = Reminder.Properties.Resources.left_over; } This works but when i click on it again the picture stays :S Any suggestions Thank you :) Hi, john Before we discuss it, can you tell me what Reminder.Properties.Resources.left_over is in your code If it is just a image, then after you clicked it the image works, the second or more time you clicked it, it also works! (But the image is not changed still) Thank you ...Show All
