bjquinniii's Q&A profile
Software Development for Windows Vista show method parameters in property window
Hi, I created a custom activity to be able to call a method on my workflow base class. I'd like to be able to specify parameters value at design time (exactly like CallExternalMethod Activity does)... How can i make the property designer dynamically show parameters of the selected method Thanks, Hadrien To do this you need to provide your activity with a way to store the values of said properties (say a dictionary of sorts) and then use a custom activity designer that overrides PreFilterProperties() and synthetizes PropertyDescriptors for each of your method arguments. At least this is how I've done it. There's also the IDynamicPropertyTypeProvider interface, which I think complements this, but I haven ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Book ( In Progress )
For reasons I cannot exactly put into words, I’ve decide to write a (free) book about how to use XNA. It is defiantly a work in progress and thus far only includes two chapters and associated source code. I truly hope that my work is advantageous to some people out there. I am in part doing this as a practice towards writing technical documentation. I am not accomplished in writing instructions for other people that may not have the same level of technical skill sets as myself. I hope that with this book I learn a whole lot and more in that regard. Granted, if you are a diehard game programmer, what I have written is probably not for you, at least, not yet! Yet I would value your input. If you feel like c ...Show All
Visual Studio Express Editions Help request on how to link applications
Even though I am using precompiled header file in my application the linker wants to see all the files associated with a project. I have several projects and the linker wants to allocate all the files even if these files are not directly used in the particular project. The solution I came up with is to load the same files (both .h and .cpp) to the - almost -all of the projects of the same solution. My question is : What is the best solution to this problem. I do not want to create some DLLs at the time being because the program is still in progress. Would a static library solve this problem If it does, how can I create a static library Or is there any other solution Any code snippets (a simple one will be good enough), a link whe ...Show All
Visual FoxPro send direct email from visual foxpro 9.0
How to send e-mail from visual foxpro 9.0 without opening outlook Dave M. wrote: Unfortaunaly Now days Most ISP’s Block sending email from third party SMTP Servers, (Probably because of spammers). So you may need the following as well, this will specify a specific SMPT to use and provide the required info to connect to it. Thanks for jumping in with that, Dave. It reminded me that I forgot to mention that the easiest was to configure CDO is to make sure that Outlook Express (not Outlook) is installed and configured on the client machine. That way the necessary registry entries are there. It is not necessary to set Outlook Express as the default e-mail clinet. Installing and configuing is enou ...Show All
Windows Forms !!!HELP!!! Is ClickOnce useless? Publishing a Clickonce application after certificate renewal.
I recently renewed my certificate through thawte and found out after signing our clickonce application that clickonce does not play well with the renewed certificate. The problem seems to be that during the process of renewal, thawte and apparently others require a new private key to be generated for the renewed certificate. So it seems there is a critical flaw in the ClickOnce architecture if it requires your code to be signed but can't handle the industry standard of renewed certificates. The only other option is to be your own certification authority but that requires distributing your CA certificate before clients install your application. If we have to have our clients uninstall our software and reinstall it because of this, then ...Show All
SQL Server Like operator
Hi, Can you just tell me how to use LIKE Operator(Syntax) please.I am new to SSRS2005. The like operator in RS filters (such as table filters) uses VB-style syntax. For example, Filter expression: =Fields!Name.Value Filter operator: Like Filter value: T * -- Robert ...Show All
Visual C# How to use RectangleConverter?
I am constantly converting rectangles back and forth from int based to float based rectangle. I have noticed the RectangleConverter class, but there are no samples (that I can find). Does anyone have any experience with this class Right now I am constantly writing this code to convert from a RectF to a Rect Rectangle r = new Rectangle((int)rF.X, (int)rF.Y, (int)rF.Width. (int)rF.Height); And it is a big pain! I have even written a class that creates 2 rectangle objects and keeps them in sync. But there must be a better way. Any help would be much appreciated! Thanks, Bob The RectangleConverter class is used to convert string repretations to a Rectangle and versa vista. What you ...Show All
Software Development for Windows Vista Private members in activity: how and where to initialize them ONCE?
I have defined a private boolean in a custom acitivty. I need to set it when the Execute method is called, but I noticed that every time I execute the activity, the boolean variable is reset. How can it be possible Is there a method in which I can perform all private fields initializations, sure that they are done only once during lifetime of my activity Thank you very much! Sounds good Thank you very much! Now, I have a second question: why when I override custom activity's Execute method, and set a property (already initialized in Initialize() method) with a new value, when I recall the same activity and read the property, the new value is lost It seems that only Initialize() makes it to " ...Show All
.NET Development manual IL code fails verification with "unable to resolve token"
Hi, I'm trying to write a (naive concept test) script that adds a prologue & epilogue to methods. It modifies the output of ildasm on an assembly to create a new IL file which I in turn compile with ilasm. It works by adding the following lines to the begining of every method: call class [Reflex]Reflex.ReflexWriter [Reflex]Reflex.ReflexWriter::get_Instance() callvirt instance void [Reflex]Reflex.ReflexWriter::Enter() It works on very simple assemblies I compiled with C#. To challenge my naive idea, I tried running it on the fxcop executable. The executable compiled but peverify fails with many similar errors, I copied the first one here: [IL]: Error: [D:\Program Files\Microsoft FxCop 1.35\FxCopy_trac ...Show All
Windows Search Technologies Vista: Moved index location, drive died, now not indexing
>>> Short version: My Windows search configuration is invalid. I would like to set it up cleanly as if I were doing a fresh Vista install. But I do not want to change any other aspect of my current installation. How can I do that Vista Ultimate RTM Indexing Options dialog buttons are disabled >>> Long Version: 1. From a working installation of Windows Vista, I moved the location of the index files from the default to e:\index. 2. Then the E: drive failed. 3. I replaced the E: drive After that, Windows Search no longer worked. The Indexing Options dialog said the indexing service was not running. - I have tried starting the service. At frist, it would not start saying it could not find a particul ...Show All
Smart Device Development help on serial port sql server operations
Here is the hardware mix I am faced with: Handheld device runs on Windows CE 4.2 PC running SQL Server database Serial port connection between Handheld and PC The requirement is that I interface with the Handheld and the PC using a serial port. Data has to go back and forth in encrypted XML. So I have to issue the SQL commands (Select, Insert, Update, Delete), and I have to return any results by serializing and deserializing XML and encrypting it, sending it over the serial port. I understand .NET CF 2.0 supports serializing and deserializing XML. I am told that CF 2.0 is now supported on Windows CE 4.2. Any code, third parties, or other info anyone has to offer would be greatly appreciated. Thanks. ...Show All
Visual Studio Team System Error 28002.Error unkown
I am recieving that error when attempting to install a fresh copy of TFS Workgroup. Here is the part of the Msi Log that is erroring: TfsGSSInit - Irrecoverable error: TF50237: An error occurred when adding a group member. The group with security identifier (SID) S-1-9-1551374245-1204400969-2402986413-2179408616-0-0-0-0-4 does not exist. 10/09/06 13:52:26 DDSet_Status: Process returned 6130 10/09/06 13:52:26 DDSet_Status: Found the matching error code for return value '6130' and it is: '28002' 10/09/06 13:52:26 DDSet_Error: 6130 MSI (s) (3C!AC) [13:52:51:332]: Product: Microsoft Visual Studio 2005 Team Foundation Server - ENU -- Error 28002.Error unknown. Any ideas As part of a workgroup install, TFS (specifically that TfsG ...Show All
Visual Studio Express Editions Comboboxes in DataGrids and values from a TXT?
Hi all, I am newbie in VB 2005 and still feeling the differences to my previous VB 5.0 To learn it, and as a hobby, I am trying to redo a small program I developed some time ago, with a better interface. My question is: to a friendlier visual, some data I desire to show in a DataGrid. Until this point, everything OK. The problem is a field I'd like to be changeable in it, by a Combobox field, once the valid values are only few of them and these possible values are read by a TXT file. For example, the TXT could have this format: ValueA ValueB ValueC ValueD No problem to read them and put in an array, but how can I list these values in the combobox field (how to transport items from an array to a combobox field ...Show All
Visual Studio 2008 (Pre-release) Getting elements from a FlowDocument during pagination
I have a FlowDocument and I use DynamicDocumentPaginator to paginate it in memory. Now I would like to enumerate all the elements on the DocumentPage (obtained with GetPage). The purpose is to read the the coordinates where the paginator put those elements (text, table, etc.). Any suggestion TIA, Raffaele Thanks Ifeanyi, it works well for me. That interface is precious! Just a couple of questions: - why HostedElements.Reset throw a NotImplementedException Should I avoid to re-enumerate the same page elements twice - If I have a table that is so big to be paginated in two pages, should I expect to find two different tables (one per page) Thanks very much, ...Show All
.NET Development Orcas, .Net 3.5, and .Net 2.0 applications
My understanding is that when .Net 3.5 ships, it will be some new assemblies in addition to the current 3.0. However, I've seen mentioned that there will be a service pack for the 2.0 bits. I believe when I installed Orcas it said it was installing ".Net 2.0SP1". What will ".Net 2.0SP1" do to the 2.0 assemblies Will it change version numbers If so, will it just be 2.0.xxxxx that changes Our customers can write assemblies that our application loads and runs. What I'm trying to figure out is what will happen if the customers write an assembly in Orcas (but it doesn't use any new 3.5 features). Will such assemblies be bound to the 2.0 version and therefore work Or will our app, which is running in the 2.0 CLR get an ...Show All
