SarahBurgess's Q&A profile
Visual C++ I have a problem with AfxBeginThread()
I want to create a worker thread but i recive an error like this: my code: UINT ReadCD(LPVOID lp) { .//Some Code// . . return0; } . . . AfxBeginThread(ReadCD,NULL); Error:"error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)" http://msdn2.microsoft.com/en-us/library/s3w9x78e.aspx might help! Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Iteration Security
The security button is not enabled for iterations (custom or the default) but it is for Areas. Can security not be controlled at the iteration level or is this a bug Jeff ...Show All
Visual Basic COM visible DLLs: are they only legends?
Can anybody provide a direct, straightforward method of creating a DLL with properties and methods exposed to other programs I followed the instructions that I found on the MSDN websites as well as suggestions from forum participants. The DLL should be available both for COM and .NET programs. So far, nothing has worked. There are numerous variations listed on the MSDN site. No doubt there are reasons for the differing instructions. However, I have not had sufficient success with any of them. Sometimes, just building the project makes the class visible to COM compatible programs. Other times, only after running regasm. Still other times, I h ...Show All
.NET Development Filtering data
Hello, Suppose I already retreived some records from the database containing names of some persons, their age and so on Is it possible to filter down the data in the SqlDataReader to only get out of it people over 50 for example I know this can be done in the SQL query, but for some reason I need to filter the data after I retreived it into the SqlDataReader and not when getting them from the SQL Database Thanks Filtering using sql statement is by far the fastest. And no, there is no automatic filtering with SqlDataReader or any other reader. You might check the conditions yourself in reader loop ...Show All
.NET Development Using VS2005 typed DataSet and typed DataAdapter in Transactions
The following code tries to use a VS2005 typed DataSet and typed DataAdapter to retrieve some data inside the scope of a transaction. Ofcourse it does not work, since DataAdapter (and it's included SqlCommand objects) is not aware of the transaction. Provided that using a distrubuted transaction if no option to me, is the following possible somehow using (SqlConnection connection = new SqlConnection("<connection string>")) { connection.Open(); // begin transaction SqlTransaction trans = connection.BeginTransaction(); // use a typed data adapter accountTableAdapter adapter = ...Show All
Windows Forms How to tell when a form's minimized?
Is there any way of telling when a form's been minimized I want it to redisplay data on another form, but can't find an "OnWindowStyleChanged" event or similar to trigger it. Override the Form.OnResize method or handle the Form.Resize event, for example: protected override void OnResize(EventArgs e) { base .OnResize (e); if (WindowState == FormWindowState.Minimized) { MessageBox.Show("You minimized the window."); } } ...Show All
Visual Studio Team System WebTest failing when ran as a LoadTest (using hidden field bindings)
Hello folks, I have a WebTest that works fine when running as a single test, but when I try to use it in a load test, it fails continuously. I am extracting and binding hidden fields with ExtractHiddenFields and BindHiddenFields, basically the same way that the auto-generation does. One thing I tried changing was adding a unique id to the ContextParameterName, so that in case the context name is statically declared, I thought this might reduce collisions. I am getting the following error: Exception in PreRequest event: The hidden field group name is invalid. Here is another error that is related, Exc ...Show All
Visual Studio Publish rdlc report to web - Local Processing mode
Rajeev.. This related to my earlier post where there was a cryptic one liner in the rdlc file as it is deployed. We are able to repro this behavior 10 out of 10 times Why would publishing a website with a few rdlcs when published to a target box doesn't copy over the file AS - IS . Is there something that we are doing wrong in the build and deployment process.. What is the best practice to deploy the RDLC files to a website where pages uses it for local processing Thanks Will anybody get back on this Why can't the publish website copy the rdlc as-is Thanks ...Show All
Windows Search Technologies Cannot uninstall WDS v2.6.5 (5378) under XP SP2
Howdy, I am using XP SP2 on a IBM T40 laptop, accessing through two accounts; one with admin privilege and the other under Power User. For daily usuage, I used the latter. The problem is I can't uninstall WDS v02.06.5000.5378. It is because: a) WDS isn't listed in Add/Remove Programs b) the Uninstaller package is not listed in %systemroot%\$NtUninstallkb911993-V2$\spuninst and lastly c) The "Windows Install Clean Up" does not have WDS listed BUT I found instructions to remove the product manually at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=257994&SiteID=1 , but upon doing so, I found: a) while ...Show All
Smart Device Development PictureBox Dispose Problem
Hi all, I have a application run in O2 Xda IIi Pocket PC (speed 520MHz) where I will update the image of the picture box every minit. My code is like below: void DisplayMap() { Bitmap MyImage1; if(picCar.Image!=Null) picCar.Image.Dispose(); MyImage1 = new Bitmap("C:\car.jpg"); picCar.Image = MyImage1; } My problem is sometimes the application will hang! I have debug this and find out that when reach 'new Bitmap', it will just hang, or sometimes pop out System.IO.FileNotFoundException:FileNotFoundException where actually the file is exist! Can anybody help me on how to dispose a pict ...Show All
Visual C++ window class help
Anybody can give me a help (example, code, link) about window class In fact, my question is about how a window object can control an other window object. I believe you can use multiple forms in such case. For example: 1) Start a default win form application and add another form for it (e.g. form2) You can do that by right clicking on "header files ->add->New Item->UI ->Windows forms 2) In the code for your original form (form1.h), add: #include "form2.h" 3) Now you can add to the class form1 a new public form (let us say ...Show All
Visual Basic Date Difference
I have two month calendars. Monthcalendar1 and monthcalendar2 I have set monthcalender 1 to be the computers clock date monthcalendar2 date can be chosen bu the user How do i get the difference in the number of days btw those to calenders MonthCalendar1.SetDate(#11/11/2005#) works....its looking for a *Date* data type. To cast a string use the # symbols or you can cast your own date variable and then pass.... selectionstart may work but it is used for selecting multiple dates... sorry about the value thing that was off the top of the head... ...Show All
Windows Forms Start IE from form
Hi All, I have a windows form with a button. I would like the user to be able to click on this button and for IE to start and the page to be directed to "http://localhost/Something.aspx ID=33" (the ID=33 being a dynamic value) Thanks Try this: System.Diagnostics.Process.Start("http://localhost/Something.aspx ID=" & IDValue.ToString) ...Show All
Visual C++ Newbie question
Sorry if the answer to this question is out there already, I have looked but I must be looking in all the wrong places. I am coming back into the C++ world after being away from any sort of coding for years, and I was still newbie even then. But, in the desigh mode of VSC++ Beta2, is there a way to link the a component such as FileSystemWatcher with a contol/window piece visually, or do you have to physically edit the code at teh code leve I can't seem to find anything to explain how to deal with the components you can drag onto the form even though I have found several on how to deal with the controls. Thanks. ...Show All
Software Development for Windows Vista WorkflowInstance.GetWorkflowDefinition() problem
Hi, Calling GetWorkflowDefinition() on a workflow instance returns an activity object with an InvalidOperation exception in its <WorkflowInstanceId> property. Is this a bug Ta in advance, Michael Ps I'm simply trying to get the root activity. Michael, The problem here is that when you call GetWorkflowDefinition, you're not getting the actual workflow instance, you're getting the definition, which is essentially the template that was used to create your instance - it has no state. The instance id property will throw here because it is not valid to call this for a non-running instance. What you're trying to do ...Show All
