sahady's Q&A profile
Visual Studio How to wrap a DSL diagram inside a Windows Form
I want to embed my DSL Diagram inside some standard Windows buttons and menus etc - though with all of that still inside a VS window. This turns out to be pretty easy. Here's how: Make a User Control inside your DslPackage project. (In Solution Explorer, right click on DslPackage > Add > User Control.) If you want to put it inside a Custom folder inside the DslPackage project, make sure the namespace doesn't get ".Custom" at the end of it. I cheated and created the file in the main package then moved it into the folder. If you create it directly in the Custom folder, you have to open both of the generated code files to fix the namespaces. Using the usual WinForms editor, add your buttons and menus and ...Show All
Visual Studio Express Editions Loop
How do i loop, so that it does not return only 1 email address, and display it in EmailTxt (eg. email@email.com , email2@email.com ") For Each row As GridViewRow In GridView.Rows Dim cb As CheckBox = DirectCast (row.FindControl( "EmailChk" ), CheckBox) 'We are interested in if CheckBox is checked If cb.Checked Then Dim email As String = row.Cells(7).Text EmailTxt.Text = email + "," End If Next End Sub the code: "EmailTxt.Text= " is incorrect. you are pretty much over writing what you already have in that textbox. it should be: EmailTxt.Text = EmailTxt.Text & email & "," ...Show All
Visual Studio 2008 (Pre-release) Partially Trusted callers
I'm developing a WCF service that will be accessed from Outlook using the VSTO Second Edition. When I'm calling the generated proxy, the following exception is thrown. "The assembly does not allow partially trusted callers" I read in the documentation that the ServiceModel does not allow partially trusted callers. But how can I make the call if Outlook is not fully trusted Is there a workaround Thanks in advance Janni Kajbrink Hi Janni Yes, you cannot call into System.ServiceModel from partial trust (PT) as it doesn;t have the AllowPartiallyTrustedCallers (APTC) attribute on it. You will have to create a shim that you put in the GAC that has APTC and that asserts full trust (FT) and forwards your call on to Sys ...Show All
Software Development for Windows Vista error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates"
Hi out there Directshow forum! I'm new on this forum as you can see! I'm developing a directshow pull filter that inherits from CBaseFilter that has the ability of reading a lot of formats from many data sources. I've declared an atl-based interface that defines the generic reading/writing functions and a few clases that implement that interface for exposing the ability of reading from many data sources. That was compiled so good in release and debug mode. My filter has a load function that allows the user to pass that "data source interface" to the filter, to allow the filter to read from the remote data sources. i've declared all the filter dll's stuff, the factory templates and it compiles so fine in release and debug mode! I' ...Show All
Visual C++ 'DisplayMat' : cannot convert parameter 1 from 'int [6][6]' to 'int *[]'
Hi. this is a sample of my problem. what should I do thanks. #include "stdio.h" #include "stdlib.h" #define _Row 6 #define _Col 6 void DisplayMat(int *Mat[]); void main() { int Matrix[_Row][_Col] = { { 11,0 ,13,0 ,0 ,0 }, { 21,22,0 ,24,0 ,0 }, { 0 ,32,33,0 ,35,0 }, { 0 ,0 ,43,44,0 ,46}, { 51,0 ,0 ,54,55,0 }, { 61,62,0 ,0 ,65,66} }; DisplayMat(Matrix); } void DisplayMat(int *Mat[]) { int k,j; for ( k = 0; k < _Row;k++) { for( j = 0;j < _Col;j++) printf("%d\t",Mat[k][j]); printf("\n"); } } I guess, you wonder why it doesn't compile. You need to understand how a ...Show All
SQL Server Parameterized MDX Query Performance Issue in SSRS
Hi, I'm having issues with a reasonably complex MDX query used in a Reporting Services report. I have executed the query and traced activity on the SSAS box and have discovered that there is a major difference in performance between the parameterized query and the exact same one but with 'hard coded' values. The difference we are talking about is from a couple of seconds (hard coded) to minutes when parameterized!! The key difference is that the parameterized query is causing litterally hundreds of thousands of Query Dimension events (EventSubClass : 1 - Cache Data) to occur against one of the dimensions (the Date dimension to be exact). This dimension is not even large with only a few hundred leaf level members and about five levels ...Show All
Smart Device Development Please help! VS 2005 smart device application unable to deploy
I had a project built in VS 2003, and upgrade it to VS 2005 now. The build process is sucessful, but when I want to deploy it to my Wince 5.0 device via Ethernet, an error message shown: Description: Referenced package not found File: Device Connectivity Component Then I try to create a new project for testing the Ethernet connection, it works fine without any problem. Any hint or advice is welcome, because it takes me days with no progress. Thanks in advance. Worked for me...but with a twist.. 1. Shut down VS2005 2. Navigate to the folder (see above) 3. Rename 'v1.0' to 'xv1.0' 4. Re-start VS2005 5. Bobs your aunty ...Show All
SQL Server Role design issue
I have a strange roles problem. Is there a way we can accomplish this: Say, the fact table has 100 records. each record having a new account number (100 accounts in 100 records). The problem is we have users who have to see only some accounts. For example, user 1 has to see only accounts 1-10, user 2 has to see only accounts 11-20, user 3 has to see only accounts 21-30. and so on... I know we can create different roles and create perspectives for these roles, but the problem is the list that defines what they can see is a table of 1000 user entries, each row has its own conditions for each user type. (Actually, each condition is a combination of different dimensions. For example, user 1 has to see account 1-10 and products A-D) ...Show All
Windows Forms Treeview node cropping
Does anyone know how to prevent a Windows.Forms.Treeview node's text being cropped if the node's font size is increased or changed to bold The text seems to be cut off roughly where the text would have displayed to if it were in the treeview's font - the final letter is often chopped off part-way through, even though there is plenty of space following. The only work-around I have found is to set the Treeview's font to bold (or larger) and then set the font of all the other nodes (the ones I don't want emphasized) to the regular/smaller font. The problem with this is that the nodes' tooltips display in the treeview's font (ie bold/larger). Reassigning text property won't fix the cropping problem I did the text reassigning when cre ...Show All
SQL Server OLAP VS Reporting DB.
Hi Experts (MVPs & MS): What are the list of things that one should take into consideration when designing a OLTP database VS reporting database. I am looking in terms of: 1). Physical DB Design. 2). Logical DB Design (Indexes, Partitioned Tables, Normalization etc). Any white papers, guidelines, KB Articles or documents or your valuable suggestions welcome. Thanks AK Thanks Oj. Actually I am looking for differences and what design considerations one should have in mind.The above web sites talk of DB designs and other OLAP material. I need a list of things in other words a side by side comparision. If a document such does not exist, thats no problem. I will have to come up wit ...Show All
Visual Studio Express Editions Can't set breakpoints.
I opened VBE and loaded a program I had been working on. I set a breakpoint and ran the program. It never stopped at the breakpoint. The breakpoint changed to an unfilled circle with a warning logo. Placing the mouse over the breakpoint symbol I get a pop-up with the following information: The breakpoint will not currently be hit. The source code is different from the original version. To allow the breakpoint to be hit when the source code is different, right-click on the breakpoint choose "'Location...", and turn on 'Allow the source code to be different from the original version.' To allow this for all breakpoints, disable the option 'Require source files to exactly match the original version' under Tools, Options ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .. Tridex.. C# wave front OBJ , guys could you make this work for XNA???? ...
hi I found this code for rading wave fornt OBJ files could you get it working for XNA so I could convert to VB.nET... //BSD License //DXGfxR - http://www.eteractions.com //Copyright (c) 2005 //by Guillaume Randon //Permission is hereby granted, free of charge, to any person obtaining a copy of this software //and associated documentation files (the "Software"), to deal in the Software without restriction, //including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, //and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, //subject to the following conditions: //The above copyright notice and this permission notice shall be included in all ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Another Bug???
Hello:)) i have one question: i need run few game objects for example Game1 and next Game2 .... Game3 for example: static void Main( string [] args) { using (Game1 game = new Game1 ()) { game.Run(); } and next game object: using (Game2 game = new Game2 ()) { game.Run(); } when i make Exit() from Game1 program stop on Game1 object and do not run Game2 but when i press "cross" on Game1 window then program go to Game2 normally ,but how to make this programmatically Best Regards Cezaro Perhaps you could borrow the game screen concept from this article: http://blogs.msdn.com/etayrien/archive/2006/12/12/game-engine-structure.aspx ...Show All
Visual Studio Express Editions code not associated with a button
I need to have code that collectes UDP frames from another computer (port 1234). I found some examples but the code is not part of a button. I have yet to find anything telling me how to add code that is not associated with a button. The code example is here: http://www.codeproject.com/vb/net/Silence_Socket.asp But it does not tell me where in the project/solution to put it. What window do I open and how do I open it How or what starts running the code Thanks for your time Hello Aw Ali, Thank you for a simple clear answer. I tried a quick example and it looks like what I need. I will be working on that. It seems to me that this sould be stated rather early in the tutorials. Why is such simple information so diff ...Show All
SQL Server Enabling remote errors
Hi, I am accessig reports through report manager. The RS and report manager are installed on same remote machine. i have edited the ConfigurationInfo table in the report server database to set EnableRemoteError to True but still i am gettin the following error when i try to access the reports from my machine through report manager(installed in remote machine) An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'Prague DB'. (rsErrorOpeningConnection) For more information about this error navigate to the report server on the local server machine, or enable remote errors I have done that, but still i am getting th ...Show All
