AronW's Q&A profile
Visual C++ do while statement
Don't understand why cout statement to print an array member doesn't work. See bold text below. Any help would be appreciated. void main(void) { //initialize variables char Command ; char chrNum[4]; int x= 0; int Num; string strNum; //initialize two arrays char pagetable [10][2] = { {'i',' '},{'i',' '},{'i',' '},{'i',' '},{'i',' '}, {'i',' '},{'i',' '},{'i',' '},{'i',' '},{'i',' '}}; char memorytable [3][2] = { {0,' '},{1,' '},{2,' '} }; do{ std::cout << " Please enter a command:"; cin.getline(Command, 6); if (Command[0] == 'r') //nested if from Gaddis page 178 { for(x=2; x <= 4; x++) chrNum[x - 2] = Command[x]; Num = atoi(chrNum); std::cout << "\nNum= " << Num; Num = Num/100 ...Show All
SQL Server OLEDB Destination Error in SSIS Package not returning error column/desc
I have a SSIS package that reads data from a dump table, runs a custom script that takes date data and converts it to the correct format or nulls and formats amt fields to currency, then inserts it to a new table. The new table redirects insert errors. This process worked fine until about 3 weeks ago. I am processing just under 6 million rows, with 460,000 or so insert errors that did give error column and code. Now, I am getting 1.5 million errors. and nothing has changed, to my knowledge. I receive the following information. Error Code -1071607685 Error Column 0 Error Desc No status is available. The only thing I can find for the above error code is DTS_E_OLEDBDESTINATIONADAPTERSTATIC_UNAVAILABLE To add to the confus ...Show All
Visual Studio How to set "SourceControl->CheckOutOnEdit" property programmatically?
Hello! I am implementing a VSIP package and I need to set programmatically Tools->Options->Source Control->Environment->Checked-in item behavior->On-Edit property. Please advice how to do it I have reviewed MSDN, internet but found nothing. I found that value in registry at HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\SourceControl->CheckOutOnEdit and I can change that value there, but I want to found an elegant solution for my problem and use VSIP interfaces or automation model. Please help. See if DTE.Properties have that section/property indexed: HOWTO: Getting properties from the DTE.Properties collection of Visual Studio .NET. http://www.mztools.com/resour ...Show All
SQL Server Report Model Expression
I'm new to Report Model and trying to create a new expression field with IF condition on related Role's attribute when i do this it gives error "The arguments to the following function are not valid: = (Equal to)" but if put direct Entity's column it works fine.. heres the expression IF( Activi ty Type List Value Display Name = "Sick Day", 1, 0) "Activity Type" is the Role(1--*) in Employee Table, and i'm adding this expression in the Employee Table are there any sample models that i can download with some complex filters/expressions etc regards faraz Sorry for the delay in responding. Based on the cardinality of the role (1-*), it sounds like you are trying to ...Show All
Visual Studio 2008 (Pre-release) How to load resource from library assembly
Hi everyone, I'm working on a two-project setup where one project is a WPF component library and the other is a WPF application. I'm trying to load a separate PNG image resource from both. In each case the assembly loading the resource is the one that contains the resource. This works fine in the application assembly loading a resource in the application assembly with code like this: string fullName = "pack://application:,,,/MyImage.png"; System.Windows.Controls.Image result = new System.Windows.Controls.Image(); result.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(fullName)); However I can include the exact same code and include the same PNG resource in the component library assembly and if I try t ...Show All
Visual C# timing and "scheduling"
i have to write an application to do some stuff, firstly i need it to be "always on" and i need to be able to have "schedules" in the application, every 20 minutes, once or twice a day at certain time etc.... i guess that using a windows service and utilising the system.threading.timer class would be the best way to go about this... are there any other, maybe better, ideas about how to tackle this The thing is that i need my application to save state throughout its life and i need to execute methods based on the state of some of the objects. Idid not consider using the windows scheduled services for two reasons: 1) i want the schedules to be set remotely – i.e. in a dat ...Show All
Visual C# return type of BSTR??
I want to write a function in a class library which is the return type of the function is BSTR, how can i do that Can anyone give me an example source code Ya, There is no BSTR type in .NET.Use String in the class library. This'll be converted to BSTR , when the above library is used in VC++ client. Thanx, Ch.T.Gopi Kumar. ...Show All
Visual FoxPro how to shutdown the OS without error
good day to all. i use my Net monitoring system developed in VFP at my net cafe for almost a year now, and so far it works fine. But there is a little problem that although it don't bothered the user and me but it much better if it does not shows-up. When i shutdown the workstation or restart it from the server, before it will totally close there is sometimes that a VFP error message will pops-up, which will prompt to send the error to MS. How could i prevent such error as if there is still missing in my shutdown code, clear events, clear dll's, etc and etc they've all there already. it seems that the PC can't wait any longer to shutdown. Thanks for any help regarding this matter sorry i forgot to mention my client pc's vfp applic ...Show All
Visual C# Need help in Batch Printing
Hi, I am needing to batch print a number of Word documents. Some of these are already created others are created on the fly from database data using Interop. The problem I am having is printing the already created documents, it locks up Word and confuses the print queue. The process is: 1. Build doc 1v1 and print 2. Build doc 2v2 and print 3. Print doc 3 4. Build doc1v2 and print 5. Build doc 2v2 and print 6. Print doc 3 etc... For each build and print, Word is activated (but not made visible). A pop up automatically appears(not coded by me but part of Word) to show printing is being done, this closes and the next item is then printed. After 3 or 4 items it locks up and I can only release the printer by ...Show All
Visual Studio Passing parameters to Crystal not working. Help.
Hi All I am simply trying to pass the company name string to my crystal reports. It looks really simple but I must be missing something because it does not work on any report I have tried it on. Below is the code I have tried. The commented out parts are trying to get it to work various ways I have seen on the forum. None of them work. The parameter seems to be setup corrently because if I try to use "CompanyBlah" instead of "CompanyName" I get a runtime error. I don't get any errors with the code below but the parameter is not passed as the box asking me to provide input pops up. Any and all help is greatly appreciated. Private Function btnDriverStatements_Print() DriverStatementsReport = New Dr ...Show All
Windows Live Developer Forums How to retrieve the PushPin ID?
Hi, I have a listbox with few address. when I select an address from the list and clicks a button, a pushpin will be shown for that location. Think that I have populated three pushpins in the Map. If I select one address and click "remove" button, the pushpin which is shown for that location alone should be removed. Kindly assist me how to do this I used the map.DeletePushpin(id) method. But I do no how to retrieve the pushpinID based on selected address when you populate the list box set for each ListItem the Value = pushpin ID and the Text = place name. If you use data binding then set the DataTexField = id field name and DataValueField = description field name This way you have the ids whever you ne ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX
Hi people, Hi run some application with comes with DirectX SDK and both Managed and Unmanaged application's FPS stay the same. But when I run Managed application in fullscreen, it decrease a lot. It doens't happen with unmanaged Directx. For example, my application in C++, running in fullscreen mode, stay in 270 FPS. When I run the same application in Managed DirectX fullscreen mode, it stay in 80 FPS. Someone knows why this problem occour Thanks a lot. Ricardo Hi Jim, I'm using the ProgressiveMesh sample, with comes with DirectX SDK. When I use this example using C++ in fullscreen, I get 154 fps. But when I use this example using Managed DX in fullscreen, I get 60 fps. In ...Show All
.NET Development how to modify and upadate the data in dataset
Hello, in my program I am filling my dataset from 3 datatables and I need to update the value in "sum" field by increasing it by 1 (+1) and saving it back to the database...my select command for filling the dataset is: dataadapter1.SelectCommand.CommandText = "SELECT INCOMING.EPC,TAGINFO.Material_Number,TAGINFO.Description,TAGINFO.PSP,STOCK.SUM " & _ "from (INCOMING " & _ "INNER JOIN TAGINFO on INCOMING.EPC = TAGINFO.EPC)" & _ "INNER JOIN STOCK on TAGINFO.Material_Number = STOCK.Material_Number WHERE INCOMING.EPC=(" + tagdata + ") How can I update the "sum" field and save it back to the database Thanks in advance, Ca ...Show All
Visual Studio Express Editions Quick help needed pls,
Well this hopefully will be the last question i need answering, How do i make it so that "" this will appear in a message box, cause at the moment it uses it as if you was making it say something such as: MsgBox ("Hello") i need it so when the message box pops up it would say "Hello" and not Hello Please help Not content with the answers so far, I was curious the performance difference between """ and String.format("{0}",ControlChars.Quote). I my tests, it appears that string.format offers the potential for some small performance boost, but it is negligable unless doing alot of string concatenation. It shouldn't really factor for a message ...Show All
Visual Studio 2008 (Pre-release) DoDragDrop Question
I've been playing with some of the code from DragDropManager. I've added adorners to a bunch of images before the user starts to drag so the objects will be instantly available. However, once DoDragDrop is called, the MouseMove events on the Window don't fire so I can't move the adorners around. Any ideas on how to get this working I notice that in Pavan's DragDropManager the adorner object isn't created until DoDragDrop() is called. I'm assuming this is just a performance thing, but maybe maybe objects created outside DoDragDrop are frozen Doesn't seem like that would be the case... Any tips would be great. I'm fairly new to .NET so don't assume I'm not overlooking something simple. Brian Lest ...Show All
