jv_getmore's Q&A profile
Visual C++ Progressbar update problem
I'm trying to implement a very simple wizard interface that will configure a wireless device for a specific network. I'm using a property sheet wizard to do so, with no help from MFC. Here's my problem.. When transitioning from page 1 to page 2 of my wizard, I need to enable all network devices. I have created a function to do this named enableNetworkDevices(). In my callback function for my property page, I have the following code: case PSN_WIZNEXT: if(pdata->fEnableDevices) { enableNetworkDevices(); } break; Inside enableNetworkDevices() I use CreateDialog() to create a dialog box that contains a progress bar. Then, as I enable each device, I step the progress bar. However, the GUI does not actually update. Here's ...Show All
Microsoft ISV Community Center Forums Cut A Variable Row from 1 Sheet and Paste to the End of Another Sheet with a condition to meet
I wanted to Cut rows that has a status of "High" from sheet B and paste it to the end of sheet A. Sheet A and B will be ever growing list of items. Here's the code that I would like to share. I'm sure a lot more people who would like to create a VBA for Action Database will require this. Sub CopyHigh() Dim HighLastRow, iLastRow As Integer HighLastRow = Worksheets("A").Cells(Rows.Count, "F").End(xlUp).Row With Worksheets("B") iLastRow = .Cells(.Rows.Count, "F").End(xlUp).Row For i = iLastRow To 1 Step -1 If .Cells(i, "F").Value = "High" Then .Rows(i).Cut Destination:=Worksheets("A").Rows(HighLastRow + 1) .Rows(i).Delete HighLastRow = HighLastRow + 1 End If Next i End With End ...Show All
SQL Server Adding Data Viewer causes BI Studio to crash
I am having this issue with BI Studio when I add Data Viewer to a relatively large data set, it causes the Visual Studio to crash. Has anyone experienced this Any help on this will be highly appreciated. Thanks, Ashish Also, I should mention here an important information. This happens only when I set the MaxBufferRows to 1000000 and BufferSize to 104857600. Thanks, Ashish ...Show All
Visual Studio Team System Renamed directories where project files lived...now their not under source control anymore
Hi I have a project under CodePlex residing on the TFS environment, there. Recently I renamed a few of the directories in which the project files lived to match the project file naming better. These directories went from "MyNamespaceMyProject" to "MyNamespace.MyProject" which made them match the CSPROJ names exactly. Since then, those projects are no longer under source control. Inside of visual studio the solution see and builds with the new naming fine, but I just can't check in any changes. These projects are just, quite simply, no longer under source control. I've tried to rebind the projects through the Change Source Control dialog but the Connect/Disconnect/Browse buttons are all disabled, maybe because I'm ...Show All
Software Development for Windows Vista Error when using the Live Labs STS
Hello: I'm trying to use the Live Labs STS, however I'm getting an error when I try to use the issued managed card. 1) I was able to generate the card your site 2) I was able to import the card 3) When I try to signin in the Live Labs Relay, the CardSpaces UI appears correctly. 4) I'm able to choose the card. 5) The CardSpace correcly prompts me for the password (it was a password based managed card) 6) ERROR: i) The CardSpace UI notifies me with this error message: Your data could not be retrieved from the (...). Check your network connection and verify you have supplied the correct authentication credentials ii) There are two events in the Application Event Log 1) A token could not be created. Identity provider requested for an un ...Show All
Smart Device Development Bluetooth programming
Hey, I have been working on a bluetooth program in c++ that will find devices and display them and send files to them. But I cant get it to work. I have tryed to use the Bluetooth Api and winsock. But no matter how I choose to look at it, will it not work. Under are some codes and links I have been throw.. My question is, If someone could make me a sampel of code that work. Would I be more than HAPPY! Hey, I was wondering if I could get some help with a project. I am trying to make program that find the bluetooth devices in range and show them to me. But with no luck. I need some serious help with this. If some one could give me apush in the right direction or a code sampel or anything would I be more then happy: Some codes I have been th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite Batch interferes with Depth Buffer?
I have a few 3D models which render just fine. However, whenever I use a SpriteBatch to draw some sprite elements, the Depth Buffer seems to go all wonky. As a result, my sprites render just fine, but the models no longer render correctly (appears to be a depth buffer issue because visible models are the ones drawn last). Is there an obvious reason this is happening I understand the frustration of repeated questions. I certainly didn't intend to add one. But it happens to the best and worst of us (I fall in that range somewhere). The longer I am doing this and the more I read each day, the more I will know and won't need to ask how to find something. I think part of my problem&nbs ...Show All
Visual Studio 2008 (Pre-release) rc1 kills .svc IIS application mapping
I've updated from june ctp to rc1 on two machines now. On both machines, I've had to add the .svc mapping again in iis to get my wcf applications to work again. Just wanted to let you guys know! Thanks for your feedback,typically where you would check "Know problems" (you check it in blogs or release doc),can you please provide me links we want to document this issue,just checking what is the better place to document this ...Show All
Visual C# Firing events in child classes...
Hopefully somebody can explain why .NET will not allow me to do this... I have a class, NonStationary, which has a member CurrentValue, and an associated event OnCurrentValueChanged. Now, I have two classes which inherit from NonStationary: Joint, and Shaft. Inside Joint and Shaft, there are times when, if the user hooked the event in the application, the event will be fired because he/she has set a min/max value above/below the currentvalue. The problem is, is that I cannot check to see if OnCurrentValueChanged has been hooked (if it's null), nor can I fire the event from within the Joint or Shaft class. The error I get is: "The event 'OnCurrentValueChange' can only appear on the left hand side of += or -= (except when used from wit ...Show All
.NET Development Framework1.1->Framework2.0 and 'There is an error in XML document'
Hi I am investigating some problem and I cannot find a solution. Maybe someone cen help me... After converting project from Framework1.1->2.0 a have the following error in a few of my customers: System.InvalidOperationException: There is an error in XML document <189,2> -->System.FormatException: Input string was not in a correct format ........... and after many exceptions System.InvalidOperationException: <logAttributeSpec xmlns=''> was not expected..... ..a part of definiftion in cs [ XmlRoot ( "logAttributeSpec" )] public class LogAttributes { [ XmlElement ( "structureList" )] public StructureList Structures; [ XmlElement ( "logTypeList&q ...Show All
Visual Studio Team System Failure to log on to TFS
Our Team Foundation Server is set up to join an Active Directory domain so that users need only log on to the domain once. Recently, one of our developers is experiencing the problem of getting "kicked" out of the system after idling for 30 minutes or so (after logging on to the system). He gets the following error: ================================================== Team Foundation Error TF30063: Your are not authorized to access VSTFSRV01. ================================================== VSTFSRV01 is our server name. I believe it is a domain server problem but cannot really tell as this user is the only one experiencing this problem. Also, the problem does not seem to occur during after hours when ...Show All
Windows Forms How to hide properties in a custom control
I'm creating a custom control derived from the masked textbox. I need to get rid of the set mask link that appears at the bottom of the properties editor, I have no idea how to do this other than maybe creating a custom designer. Is there an easier wayand if not how exactly would I accomplish this with a custom designer Apply the BrowsableAttribute attribute to your property. ...Show All
.NET Development Attributes and inheritance on fields/properties/methods
Hi there! I'm trying to work out how (if at all) attributes are inherited on overriden fields properties and methods. According to this msdn page , they are inherited, but how do you retrieve these attributes Here's some code I'm testing with... Hi Michael, thanks for your response. I think my issue is in the difference not being documented, as I would expect these to descend through the inheritance chain in the same way given the inherit argument, but as I've discovered and you've confirmed, they don't. In my opinion it's fair enough that the PropertyInfo.GetCustomAttributes method returns only the attributes declared directly on that instance of the PropertyInfo, but only if the Type.GetProperty method only returns properties actually d ...Show All
Visual Basic How to: tansfer records/data in dataset to datagridview in windows application
Attn: alll users I need ur help to help me in my project.... How to tansfer the selected record/data to another dataset/datagrid like u click the button transfer and the details will be on the other datagrid pls provide link to relevant topics and alos sample code asap Hi, This code copies selected rows from CustomersDataGridView to DataGridView1 successfully: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Populate the columns in the target DataGridView if it does not have any columns. If Me .DataGridView1.Columns.Count = 0 Then For Each column As DataGridViewColumn In Me .CustomersDataGri ...Show All
.NET Development Not Sure of SQL Query - Code Attached
I am building a small application that calculates the required fuel for a Boeing 747 based on route distance, winds, etc. I have created a small Access database and code that successfully opens and closes the database but I can't seem to figure out how to write a query to get the correct infomation from the database. Briefly, the database table has four fields, Altitude, NAM (nautical air miles), Time and Fuel. I want to search the database for the Time and Fuel required for the Altitude and NAM numbers entered by the user. I'm not asking for anyone to write the code for me, rather I need some guidance on how it's done. Can I write a SELECT statement that searches the database for Time and Fuel WHERE Altitude and NAM equal certain valu ...Show All
