chxfryer's Q&A profile
Visual Basic circular references between usercontrols and 'main' form in vb6->.net upgrade
in upgrading from vb6 to vs2005 user controls are introducing a circular reference problem in the following way. In the vb6 solution, user controls could access methods in the 'Main Form' upon which the user controls are used. In VS2005, I create a separate Windows Control Library Project for each User Control. For composite controls I 'reference' any other controls as needed. However, there are controls which call methods/functions on the 'Main form' within a Windows Application project. That project includes the references to all the user controls ( which show up in the ToolBox.) Circular references have been introduced which didn't exist before. The Mainform references the User Control. The User Control calls MainForm methods. ...Show All
Software Development for Windows Vista What do i have to do in order to use SqlWorkflowPersistenceService
I tried to add SqlWorkflowPersistenceService with a valid connection string (an existing DB) , but once i create an istance of workFlow i got an exception with could not find stored procedure RetrieveNonBlockingInstanceStatsId. is there any process for creating those tables and stored procedure Thanks Amit FYI - With the June CTP the path to these files has changed to: %WINDIR%\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation\SQL\EN\ Just ran into this and thought I would pass it along... -- Bryant ...Show All
.NET Development Problem: float +- operators give different results depending on computation order, flags, Win32/x64
Hi, I have this small test program test.cpp: #include <iostream> using namespace std; int main() { cout.precision(8); float v1= -1.9513026f, v2= 0.31476471f, v3= 3.1415927f; cout << "v1-v2+v3= " << v1-v2+v3 << endl; cout << "v1+v3-v2= " << v1+v3-v2 << endl; return 0; } When I compile it (using Visual Studio 2005 SP1) with cl /EHsc test.cpp as a Win64 application (both on Windows XP x64 and Vista x64) and run it I get this result: v1-v2+v3= 0.87552547 v1+v3-v2= 0.87552536 So, depending on the order of computations I get different results. I know that float has only 6-7 significant digits, so some inaccuracy is to be expected (using double in stead of float gives ...Show All
SQL Server Creating a Maintenance Plan via the Command Line
Hello All, I've searched high and low for documentation on this to no avail. Basically my goal is to create a maintenance plan in SQLSERVER2005 via the command line. I need to create this plan in a way that it can be seen in the list of Maintenance Plans in the Management Studio Interface. I went into the SSIS designer and created my plan. I now have a DTSX file. I tried the dtutil.exe utility, however i never saw my maintenance plan in the list of plans. I ran dtutil.exe and did /FILE to /SQL but i don't see the plan listed or in a way a user could modify it, which is of the utmost importance to my clients. How do i get my file to turn into a real running Maintenance Plan that is seen in the list of Maintenance Plans via the ...Show All
Visual Studio 2008 (Pre-release) Accessing an object in XAML
I have been searching for quite a while how to make an object declared at the window level accessible in XAML but can't seem to find a solution. How could i make _myObject accessible in XAML in the following example: public partial class Window1 : System.Windows. Window { MyObject _myObject = new MyObject(); public Window1() { InitializeComponent(); } } make it a public property give your window a name say 'Window1' and in XAML you could do <TextBlock Text="{Binding ElementName=Window1, Path=propertyname}"/> ...Show All
SQL Server Dimensions from Fact tables
Most of the Fact tables I'm building seem to have a bunch of categorization type columns in addition to the numeric columns that naturally fit into the Fact tables. However it feels "wrong" to create dimensions from a Fact table, so instead I'm getting the ETL to split the tables: for every FactX table I get a DimXInfo table that has the non-numeric/non-key data. E.g. FactDeal includes dealID, price, quantity, product key, customer key (and other keys that relate to shared dimensions. DimDealInfo table includes dealID, ContractNumber, DealType Then in the SSAS cube DimDealInfo naturally forms a Dimension and FactDeal naturally forms a measure group. And you don't have to create a SSAS Dimension from the Fact table. Quest ...Show All
Windows Forms Change scroll bar style...?
Hi... Can i change the scroll bar sytle of my form… I want to change the scroll bar style as same as microsoft’s Live website’s scroll bar… Can I change like that using my C# application… Thanks, Vinay Here we go: http://www.codeproject.com/vb/net/corescrollbar.asp the example is in VB.NET. You can compose your custom control out of some basic ones, and then handle mouse and keyboard events and fire the appropriat scroll up/down events. ...Show All
Visual Studio 2008 (Pre-release) sorry for those repeated messages
The web told me that server had an error so i tried to publish again. I don't know why but i can not delete them. Sorry for any inconvenience. ...Show All
Visual C++ Why is casting needed in this example
I am a little stuck understanding why casting is needed in the following example (Example taken from MSDN website):- // A simple program that uses LoadLibrary and // GetProcAddress to access myPuts from Myputs.dll. #include <stdio.h> #include <windows.h> typedef int (*MYPROC)(LPTSTR); VOID main(VOID) { HINSTANCE hinstLib; MYPROC ProcAdd; BOOL fFreeResult, fRunTimeLinkSuccess = FALSE; // Get a handle to the DLL module. hinstLib = LoadLibrary(TEXT("myputs")); // If the handle is valid, try to get the function address. if (hinstLib != NULL) { ProcAdd = (MYPROC) GetProcAddress(hinstLib, TEXT("myPuts")); // If the function address is valid, call the function. if (NULL != Pr ...Show All
Visual J# java.awt.geom.AffineTransform - - System.Drawing.Drawing2D.Matrix
Hi; Is there an easy way to convert to/from an AffineTransform from/to a Matrix thanks - dave Hi David, There is no straight way to convert to/from an AffineTransform from/to a Matrix.But you can use JLCA-Java Language Conversion Assistant to convert the Affine Transform java code to Matrix C# code. I tried a sample. check.java import java.awt.geom.AffineTransform; import java.awt.Shape; import java.awt.geom.Point2D; import java.lang.Object; import java.lang.String; public class AffinetoMatrix{ //getRotateInstance(double, double, double) void metodo18(double x1, double x2, double x3){ try{ AffineTransform V1 = AffineTransform.getRotateInstance(x1, x2, x3); }catch(Exception e){ } } } converted check.cs us ...Show All
Software Development for Windows Vista EventLog.SourceExists on Vista always throws an exception.
Please look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=324053&SiteID=1 ...Show All
Visual Studio How to force rebuild of Document explorer index manually
On my Visa machine I have installed VStudio Team Suite, Team Foundation Client, and VStudio DB professional. all upgraded to SP1 (took me 4 hours to update :-) After installing Windows Mobile 5 PPC SDK, the document explorer always crashes when trying to rebuild its documentation (it gets to 768 MB memory use and than crashes in HXDS.DLL; online error report never comes up). For this program worked befor install of WM5 SDK, I would like to clear the help index and remove all WM5 files from it. But I can't find any information about how to force a complete new build of the help index or how to build an index that excludes some help files. Is there such an information or what can I do to completely remove any information Document Ex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tool for auto HLSL Generation?
Are there any tools out there to enable the graphical building of a shader network, such as in Autodesk Maya's Hypershade tool or Softimage XSI's RenderTree tool, which can enable you to use a GUI to set up an object's basic material properties and then automatically generate the appropriate HLSL shader fragments needed to reproduce the material effect in your game without having to manually write HLSL files Certainly, if you want to create complex shader effects, you would need to be able to edit the HLSL or manually create new custom HLSL files, but for creating HLSL files to render basic, standard material properties, there really should be a graphical tool to take some of the work and difficulty out of it. Such a tool should allo ...Show All
SQL Server Using variable in DataReader's SqlCommand text
I'm attempting to configure a DataReader's SqlCommand text to use a package-level variable and I'm having trouble. I've read about using the "sql command from variable" option but although I see that during the configuration of Ole DB source, I don't see the same option for DataReader source. Viewing the properties of the DataReader and selecting the SqlCommand property does have button to configure the value but only displays a string value editor window. (I was hoping for the expression editor.) The configured connection to the DataReader uses the odbc Data Provider (under .Net providers). I'm connecting to mySql, if that matters. What I'm looking to do is to use a variable in the where clause of the DataReader's SqlComma ...Show All
Visual Studio Team System How I can find what event subscriptions I have in the TFS?
And which subscriptions I have to have in order to make TFS function properly I played with EventService.asmx and I believe that I could accidentaly unsubscribe from event with id=1. This Web Service is so poorly developed that it even doesn't let you know the results of operation - maybe nothing happened, but who knows Thank you for response! Yep - I will use bissubscribe. But looks like the order is different - I have this subscription as #4. Let me list my remaining subscriptions from ##2-4 and you will let me know which one I am missing: #2 DataChangedEvent http://<server>:8080/WorkItemTracking/V1.0/SyncEventsListener.asmx #3 ProjectCreatedEvent http://<server>:8080/Warehouse/ ...Show All
