Hussein's Q&A profile
Visual Basic Overwriting Data in Text Files
Hi all, I have an application that writes sets of data to text files when you click the save button. The each set of data has a heading and the data im saving gets placed under this heading. Everytime you click the save button, my code will check through the existing file to see if the current heading exists. If it does it will attempt to overwrite the old data with the newly saved data under that heading. Problem is.. it appends the ...Show All
Visual Basic I need help with Printing
Ok, I am making a program for a this small bussness I work for. Now they wanted me to set up a database for our products serial-numbers and a front end program for it. Now on top of the program they want me to make they also want hardcopies of each serial number entered, including all the info that goes along with it. Now I have been hunting all over for information to make it so I can just print the MDI child form as is. Well all ...Show All
Visual Studio Express Editions fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
Hi All: The story so far: I am having a we bit of trouble running the most difficult of all C++ programs the imfamous first C++ program Hello World! code: // Simple Hello World Console Application #include <iostream> using namespace std; int main() { cout << "\nHello World!\n" << endl; return 0; } And we get: ------ Build started: Project: Hello, Configuration: Debug Win32 ------ Compil ...Show All
SQL Server SSRS 2K5 offers parameters implementation only through subcubes MDX expressions ?
Hi I use a SSAS cube with several calculated measures as a data source for a report. Some calculated measures use time dimensions that also must be used as user parameters in the report. Nevertheless user parameters selection, in some cases these calculated measures need to obtain a non filtered value such us ([Dim Time].[Year-Month-Day].[All], measures.[Quantity]) But when designing the report dataset I find that the parameter funct ...Show All
Visual C# CallBack from a WIN 32 C++ dll
Hello Everyone, My application is written under C#, but for some of the low level stuff I have to use C++ dll's and one of the dll require password before I can make some function call or if user entered wrong should ask again..... How can I implement something along those lines.... At first I can send the pasword, but if the password is wrong what is the way to get the password....If you want I can even post my procedure which asks for ...Show All
Visual Basic How to keep GUI responsive during DB query?
All right, here's the question...while loading large amounts of data, or querying a DB, my GUI hangs...that's to be expected with single-threaded apps. So what I did is I created a borderless form with a picturebox that has the animated GIF of the progress bar scrolling back and forth, along with a label that gives you a message like "Please wait while the query executes..." I show the form before I call a method that's going to take ...Show All
Windows Forms Databinding to a combobox... strange
Hey, I want to bind some data from my sqldatabase to a combobox in my form. When i try this, it doens't work; i get this exception: System.NullReferenceException: Object reference not set to an instance of an object It's strange, because I use the same code for a toolstripcombobox (other names, other table) but the code works. This is my code, if someone can tell me what wrong... thanks! query = "EXECUTE getToBeSolvedIn" ...Show All
Visual Studio Team System Testing a Web application with Active X Controls
Is testing web applications with ActiveX controls supported, if so how would one go about doing this. The application being tested was not developed in house so we do not have any code just the application. We are trying to load test the application but ran into problems recording due to the Active X controls being used. To save a fiddler recording as a web test use the File->Save->Visual Stud ...Show All
Visual Studio Express Editions How can I do reports with my visual Basic Express Edition?
I would like to do charts reports with my visual basic Express edition. ReneeC I would have to take exception to your comment that people doing professional things should not be using VBE but should run out and buy VS. I disagree. VS simply gives you more tools and apparently easier methods of accomplishing almost all of the tasks VBE does. Visual Basic is a language. Who has the right to say how that language ...Show All
Visual Basic how to work with file protected with password
hi, I have one serious problem. I need to open a text file in append mode which is in a folder on windows server 2003 network. The folder is protected with login name and password. If I use open statement in vb code to access the file how can I pass the login name and password. Is it possible waiting for early response. Thanks Hi, Weird, but I did not find anyway to do that from managed code so here is example showing ...Show All
Visual Studio Express Editions Resource Editing
When I try to edit resource file (*.rc) I get this error: "Resource Editing in not supported on the Visual C++ Express SKU". Does that mean there is no way to get the resource editor to work in VC++ Express I've tried both links to resource editor in this post. The first one crashes as soon as I add a dialog and try to change the width property. The second wont even open, windows says it's an invalid zip file. A ...Show All
Visual Studio Tools for Office Range.get_Information() is causing Application.XMLAfterInsert to be fired
Hi, I am getting some strange behaviour which I am having a hard time reproducing in a new project. I know that without being able to reproduce it I am not being very helpful, but I am running out of options and time. I will keep trying to reproduce it, but in the meantime any suggestions you might have would be greatly appreciated. I have a Word Template project and I am using XML tags to mark certain parts of the document that interest m ...Show All
Windows Forms Failed to load resources from resource file
Hi, I may just be being thick here but, after installation, setting up a new Terrarium, compiling the simple carnivore, and trying to indrocude the animal to the Terrarium, I am getteing the following error: "Setup Error Failed to load resources from res ...Show All
Smart Device Development Setting the device volume and disabling the Volume buttons.
Hi all, I have a client who has a requirement for their application, upon startup, to be able to set the devices volume to maximum, and to them be able to disable the volume (controls/buttons) so that the volume on teh device cannot be adjusted. Is this possible to perform from within the application during start-up If this is not possible, would I be able to run a BAT file that maybe able to do this when the applications starts up - if so, how ...Show All
SQL Server Push and Pull subscription?
As I understand replication in Sql2K the only difference in push or pull subscriptions is where the agent runs. If I wanted changes in the publisher to be sent to the subscribers immediately after the change then I thought push would be better. But, if I am equally interested in changes made at the subscriber then what should I use Or does the agent monitor both the publisher and subscriber at the same time Thanks for your help Graham ...Show All
