Justin Henley's Q&A profile
Visual C++ Stack corrupt after managed callback (w/ parameter) from unmanaged
I have a callback function that calls from unmanaged to managed code. Using code derived from the MSND article “How to: Marshal Callbacks and Delegates Using C++ Interop”, it works fine. When I change the callback function and the delegate to pass a parameter I get a corrupted stack. Could anyone offer a suggestion of why this is happening Any help a greatly appreciated. Here is a short sample program that shows the problem with the output. // CallbackTest.cpp : main project file. // compile with: /clr #include "stdafx.h" #include <iostream> using namespace System; using namespace System:: ...Show All
Visual Studio Team System Team Foundation Server installation problem ("SetupWarehouse.exe" and "...No mapping between account names...")
Hi all, I am trying to intall Visual Studio 2005 Team Foundation Server.At end of installation progress, i am getting that error ; Error 32000.The Commandline '"c:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\bisdwserver\bin\SetupWarehouse.exe" -n -s "MSF" -d BisDWDB -c "c:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\bisdwserver\bin\Consolidated.xml" -a "TESTMSF\TFSSERVICE" -ra "TESTMSF\TFSSERVICE" -v -l "c:\DOCUME~1\TFSSETUP\LOCALS~1\Temp\setupwarehouse.log"' returned non-zero value: 3. within setupwarehouse.log: ...The following system error occurred: No mapping betwee ...Show All
Windows Forms How to make a form close after 5 seconds?
How to make a form close after 5 seconds use a timer control, set the first tick at 5 seconds, hook the tick event... and close the form within it. but if you don't mind freezing the UI .. then System.Threading.Thread.Sleep(5000); will suffice ...Show All
Windows Forms passing variables to form
I made my textboxes on form1 public. I was able to access them through my form2, after I made a statement like form1 form2 = new form1(); Problem is, the text boxes are all empty on form2. Is this because I initiated a new form1 and therefore the textboxes are set back to their default as empty How can I access variables stored in form1 from form2 thanks. Awesome.. thanks.. that worked.. I have no idea why I never tried that. So all I gotta do is define my variables globally. I thought I tried that.. guess not cause I tried a few tests and it works great. Jeez this language makes it awkward to p ...Show All
Visual C# Flushing datatable to an Excel file usin InterOp
Hi, I'm working on an C# winforms application. I am binding a datatable to a datagrid. The user can do update, insert and delete operations on this grid. I wanted to know how do I flush this datagrid to an excel file using Interop. And, I wanted to know how to delete an Active Worksheet from an excel file using Interop. Thanks in advance, livehed Interop is probably not your best option. Instead, try opening the Excel file as a datasource through an OleDbConnection. See http://support.microsoft.com/default.aspx scid=kb;EN-US;306572 for examples. There are various issues to deal with in this approach, but ...Show All
Windows Forms Problem with picture box
Hi, I have problem with binding picturebox to a data set. I have MS Access 2003 database with just one table: Persons: id (AutoNumber) - Primary key name (Text) - not required adress (Text) - not required photo (OleObject) - not required I have created data source using wizard, and placed appropriate controls (by dragging them from datasource) on my form. Visual studio automatically created personsDataBindingNavigator, personsBindingSource etc. Then I created click event for photoPictureBox control, which displays OpenFileDialog, and then sets photoPictureBox.Image property to chosen image. private void photoPictureBox_Cl ...Show All
Visual Studio Express Editions looking for properties.settings tutorials
Is there any docs or more preferably tutorials on using properties.settings All I can seem to find at the moment are Visual Basic My.settings stuff instead of C# stuff. Hi, Please go through the below link. Hope this helps... Link: http://csharp-pro.blogspot.com/ Thank you, Bhanu. ...Show All
Visual C# Ampersand
Hi, I'm having trouble with an ampersand in my URI. I'm working in a winform with a webbrowser. This is my code: String test1 = "http://serv/reportserver /CUBE/CUBE02&rs:Command=Render&Budget=[Budget].[N Budget]."; String Testen = test1 + "%26[1]"; (%26 is the same as &) webBrowser1.Url = new Uri(Testen); When the browsers opens he converts the url to : http://serv/reportserver /CUBE/CUBE02&rs:Command=Render&Budget=[Budget].[N Budget].&[1] He must not do that ! I tried everything (HttpUtility.urlEncode, ASCII encoding,...) The browser seems to convert it allways. Is there a way to resolve thi ...Show All
Visual Studio Express Editions CHILD WINDOW 2 QUESTIONS
I have a MDI form with a single child window. When the child window is visible the controls on the parent form show through to the child window. I'v looked at the opacity property and the transparent key property but I still have the problem. I want the child window to cover the portion of the parent window. Any ideas When the child window is closed it returns back to the parent form but it does not return to the event handler that I called it by using the SHOW() method. Is there any way to make it return back to the event hanlder from which it was called I am not sure about your transparancy problem however if you w ...Show All
Visual Studio Team System Team Project Creation failed because of some user account problems
I used a single-server mode and encountered the following error: Error TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Reporting plug-in. Explanation TF30171: The Microsoft.ProjectCreationWizard.Reporting plug-in used to create the new team project could not be initialized and returned the following error: TF30224: Failed to retrieve projects from the report server. Please check that the Yukon Reporting Web and NT services are running and you have sufficient privileges for creating a project.. User Action Contact your Team Foundation Server administ ...Show All
Windows Forms Windows XP visual styles in Datagrid control
How do I make the datagrid use the xp visual styles It doesn't have a FlatType property, is supposed to use them by default after calling Application.EnableVisualStyles(), but it just doesn't work. I have no trouble with other controls. Thanks. I don't believe the DataGrid supports XP visual styles. It seems those are only available one control drawn&nb ...Show All
SQL Server Run report without Login
Is there any way to run a report via a URL without having the user login Could I provide special parameters on the url or define a user/password in the report itself We do NOT use active directory. Thanks. You can store the credentials needed for the data source access on the report server. Check this BOL link: http://msdn2.microsoft.com/en-us/library/ms160330(SQL.90).aspx Also check the links at the bottom of that page which describe how to manage data source credential settings via Report Manager and Management Studio. -- Robert ...Show All
Software Development for Windows Vista SqlPersistenceService.sql
stupid question..but where can i get hold of the scripts to create the db side of things eg SqlPersistenceService...I thought it might have been in the sdk... Good morning Kiwi JB, you should be able to find the necessary SQL scripts at this location C:\WINDOWS\WinFX\v3.0\Windows Workflow Foundation\SQL\EN you may also wish to take a look at Lab03 (Hosting Workflows) as this lab gives a short sample of using the SqlPersistenceService. Cheers :) Steven Higgan ...Show All
Visual Basic Links
hi everyone, can i link to asp.net page from a vb.net program for an instance, i click on a button in a vb.net form and it will link and open up internet explorer (an asp.net page). Sure, put this in the button click event Process.Start( "http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=388338&SiteID=1" ) ...Show All
Visual C++ Unicode characters in console-application.
I'm writing a program that prints the date in different languages, but it dosn't work with languages that uses the Unicode Character Set. Here's the source-code: #include <iostream> #include <locale> #include <time.h> using namespace std; int wmain(void) { wchar_t date[81]; time_t currentTime; struct tm tmTime; time(¤tTime); gmtime_s(&tmTime, ¤tTime); _wasctime_s(date, 80, &tmTime); locale swedish("swedish"); locale::global(swedish); wcsftime(date, 80, L"%#x", &tmTime); wcout << "Svenskt datum: \n"; wcout << date << endl &l ...Show All
