Adam2342342341's Q&A profile
Visual C++ Help please!!!
I am new a C++, I have been enjoying But alsp I have been frustated with this program, It is gfiving me an error: was matched, I know it have something to do with the } but I can not find where the problem is... I will appreciate any help!!! // Fractions calculator // This program define a class called func_cal (function calculater) // This programs contains public data that hod integers the num1,num2 // and dem1 and dem2. // The program also contains the following public members fuctions // instructUser(),GetData(), doDivideZero #include "stdafx.h" #include <iostream> #include <conio.h> #include <ctype.h> #include <iomanip> using namespace std; ...Show All
Visual Basic txt files
How can I access text files in VS2005 and display them in Arrays Any help or websites containing a "How to" would be greatly appreciated. Thanks! Also, more information on split() method of the string class sounds complicated to a certain extent. Well you need to know at what point you want to split. So if I had a string which contained spaces and these spaces are our delimeter and we wish to split the string by the spaces then.... Dim theSplitString() as String = theStringToSplit.Split(new char() {" "}, StringSplitOptions.RemoveEmptyEntries) ...Show All
Visual Studio 2008 (Pre-release) starting...
hi... i'm a senior student and my thesis is all about wpf and wf... i've managed to get well acquainted with wf but i dont know how to start with wpf... i want to start with its hands-on-lab but the problem is i dont know how to install it... what i understood from the faq is that the july release (which i've installed to start developing with wf) doesnt support wpf... so what should i do thanks.. well thnx am un-installing da july release now to install da june one... but could u tell me where to get da hands on lab for wpf thnx :) ...Show All
Visual C# c# to vb .net (2005) help
I want to convert this c# code to vb, please help. while ( window[++scan] == window[++match] && window[++scan] == window[++match] && window[++scan] == window[++match] && window[++scan] == window[++match] && window[++scan] == window[++match] && window[++scan] == window[++match] && window[++scan] == window[++match] && window[++scan] == window[++match] && (scan < strend)) { // Do nothing } Thanks Javfarary what about the following converted code for vb I got it from other forums. what do you say any suggestions Do For i As Integer = 1 To 8 scan += 1 match += 1 If window(scan) <> window (match) Then Exit Do Next If scan >= str ...Show All
Internet Explorer Development Where can I store images that my extension injects into the DOM on Windows Vista?
I have a toolbar that does some direct DOM manipulation, sort of the way the IE Developer Toolbar does. Part of this DOM injection are some images that we use. Previously, we were programmatically inserting our images into the Temporary Internet Files folder, and when we created our DOM objects that needed these images the URLs pointed to the images in that folder. The problem is, that on Windows Vista it now seems that Temporary Internet Files is now considered a system folder, and I have lost the ability to write to it. At this point, I think I have a few options but am unsure as to how to implement any of them: 1. Store the files in an accessible temporary location (using a different Special Folder, maybe ). I don't know which one, i ...Show All
SharePoint Products and Technologies Sharepoint Services 3.0 and AD Security Groups?
I am running Sharepoint Services 3.0 on a Windows 2003 R2 Server. Everything setup without issue and works without issue. I can add AD security groups to Sharepoint groups and the users get access. However the only security groups that actually grant access are the groups that were there prior to the Sharepoint install. Any groups that were created after the install or changes to those groups are not granted access in Sharepoint. Basically I add a presharepoint ad security group to a sharepoint group for access and it works beautifully. I create a new group, add a user to it, and add it to the sharepoint group - it adds without issue but does not grant access to the site. I even tried creating the group, adding it to the site and lettin ...Show All
Visual Basic rich text box control cannot paste
rich text box control cannot paste when i select any thing(it may be image or text from internet explorer) and paste it in a msword it has got pasted including image and text when i do the same copy paste in my application which contain the richtextbox control i am unable to paste the images and i can paste only the links of the images can any one help me in pasting the images and text is there any other way to do this other than downloading the file my requirement is to simply copy the content from the brouser and paste it in the rich text box and it should appear similar to how we copy and paste in the ms word plz help me thanks for ur code dustin ...Show All
SQL Server Merge Replication on SQL Server Compact Edition + SQL Server 2005 SP2
I followed the tutorial found on http://msdn2.microsoft.com/en-US/library/ms171908.aspx . I have SQL Server 2005 with SP2 installed (NOT an Express version), SQL Server Compact Edition SDK, Server Tools and all other downloads I could find for CE. I'm running it on Windows XP Pro box, with SP2 and IIS 5.1. Entering http://localhost/SQLMobile/sqlcesa30.dll diag results in a page titled SQL Server Compact Edition Server Agent Diagnostics, SQL Server Compact Edition Modules Test Module Status ErrorCode Version SQLCERP30.DLL SUCCESS 0x0 3.0.5300.0 SQLCESA30.DLL SUCCESS 0x0 3.0.5300.0 Reconciler Test Reconciler Status ErrorCode 9.0 Database Reconciler ...Show All
Visual C# datagrid prevnt click
Hi How can I prevent all click in any cell in a datagrid rows. I do want to keep the columns active. If I disable the datagrid - I can't resize columns at execution. Thanks Abhijit This was never answered, I need to know the answer as well. It would be nice the individual cells of the datagridview could have a disabled property. How else do you go about disabling the individiual cells ...Show All
Visual Studio Changing text color of property at runtime
Hi, I have some Shape with a compartment properties. Each property has a Name property and a Multiple property, which is boolean. In the diagram, only the name of the property is shown in the Compartment Shape. I would like to add some visual information with a specific text color, depending on the field 'Multiple' value: if Multiple is true, let's show property name in red. I don't know which class or method to override in order to change the Text color property at run time. I have tried to override GetCompartmentDescription() method and change the ElementListCompartmentDescription class, but it has no effect, and it does not seem to expose some delegate to write. If you could help me a little bit, it would be great. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. NoSuitableGraphicsDeviceException was unhandled
Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them. They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line. I have no idea where to even start. Is it my install My PC My hardware The program I'm trying to run Once I know the environment is actually working, I can begin the learning! ...Show All
Visual Studio When will VS 2005 and VSS 6.0 work?
Open vs 2005, select "pending checkin window" for about 10,000 files wait 45 min to 1 hour.. Are you talking about the checkin dialog or pending checkins tool window If you are talking about the checkin dialog; yes that is still instant in VS 2005 RTM and SP1. If you are talking about the pending checkins tool window; VS 2005 RTM and VS 2005 RTM SP1 (with fix) performs about the same. I never did any perf testing for VS 2003 so I do not know how fast it performs it there. ...Show All
.NET Development XSD and Microsoft Types.
We have developed a good bit of code by defining the data to be serialized in an XSD and then creating and using objects base on the classes generated from the XSD. Now it seems that we need to some how define a DataSet and a Guid. Objects with these types are serializable but I am not sure how to define them using an XSD. If I indicate in the XSD that a member of a complex type is a Guid or a DataSet the XSD becomes invalid. Is there a way to refer to these Microsoft types in the XSD or do I need to define an specific type in the XSD and then convert that type to say a DataSet or Guid I have read about the "supported" map between .NET types and XML types but I was interested to see if anyone else has come up with a good solution ...Show All
.NET Development is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
im trying to do a simple select statement across sql server express. it is able to return me the query when i try on sdk but the a/m error appear when i try on web browser or emulator. btw, im doing a web service with mobile app. command = new SqlCommand("SELECT MAX(AID), UID, isDefault FROM Alert where (UID =" + uid + ") AND (isDefault='" + isdefault + "')", dc.Connection); above is my code when i try on web broswer and emulator. SELECT MAX(AID) from Alert where (UID =1) AND (isDefault='n') above is my code when i try on sdk (vs.net2005) what is wrong im trying to find the latest entry into the table by searching the largest AID in the table. Hi, When you u ...Show All
Visual Studio Express Editions how to compare two images and return the result?
Hi, all, I want to compare two images. I read these two images into the bitmap class If I don't want to compare these two images by each pixel, how can I compare these two images thanks for your help! Tsai Dim imagefile1, imagefile2 As Bitmap Dim result as boolean imagefile1 = New Bitmap("D:\temp\IMG_0315.jpg") imagefile2 = New Bitmap("D:\temp\IMG_0313.jpg") result = equals(imagefile1, imagefile2) // If imagefile1 and imagefile2 are really the same, but the result of the equals(imagefile1, imagefile2) is false why That Equals calls the Object.Equals method which tests if the two variables reference the same object. It does not compare the images. If they are always coming fro ...Show All
