Uggywuggy's Q&A profile
Visual C# Plugin events C#
I hope this is the correct place to post this Q. I am also going to write a tutorial/blog/experience report on this as I cannot find the correct resources on the net, believe it or not (ok so my search keywords are not great!)..... I am writing my very first plugin for my application in C# I have created an interface. I have implemented this interface in the plugin. I have also created a IPluginHost interface, which sets the host (application) in the plugin. I can load/create/instantiate the plugin. Now, I have made a delegate/event in the interface. The plugin implements this. //delegate example: public delegate void DoSomething(string text); //event in interface and plugin: public event DoSomething OnEventDoSomethi ...Show All
Visual Basic Arrays
i know it sounds sad but i am stuck. i am trying to do a simple array with numeric data to be entered into one textbox and then transfered to another. with this done i need to do standard deviation claculations. any form of help will be more than welcome i am a begginer at VB. i am trying to do an array of numeric data. entered singularly in one textbox, then transfered into another, where i can do calculations for standard deviation. or any other suggestions. ...Show All
Visual Studio Unsharing files
Is there any way to undo a share process For example, if I change my mind after sharing a file, how can I reverse the process so that the original file remains where it is and the shared file disappears in the directory where a copy is created from the share process Just delete the shared file that you dont't need, and select "Destroy permanently" in the Delete options dialog. If the file is already deleted, go to Properties dialog for the parent folder and purge the unneeded file. These will get rid of the shared status for the remaining file. Alin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tiling a texture?
Hey, I have a 3d terrain system. The terrain is built using a heightmap image. Then I have a large texture that I paste over the top, this covers the complete terrain. I'd like to be able to dispose of the one large terrain texture image and use tiling and different layers for different tiles. (Texture splattering, I think this is called). However, for now I'll be happy with just tiling my grass texture over the top of my terrain instead of it automatically scaling. Can anyone point me in the right direction to repeat and tile my texture rather than stretch to fit Thanks You could add a new parameter to the shader, say: float textureScale; and set that shader parameter in your c# code, and ...Show All
SQL Server sql server - odbcad32.exe error
While trying to create a system dsn for sql server by selecting the server drop down list it is displaying an error saying that "odbcad32.exe had generated errors and will be closed by windows." Please suggest me the necessary to solve the problem Thanks in advance ...Show All
Software Development for Windows Vista Rule Engine - Stands alone?
Hello, I was wondering is it possible to use the rule engine as a stand-alone piece of infrastructure Or do I have to use it only in the context of a workflow. Are there any existing examples where there rule engine is used on its own, and not as part of a workflow. Thanks Houman Tom, have you tried to use that example under RTM Vista, VSTO, etc. It wants Excel 2003 SP1 and I've "only" got 2007 now ... thoughts ...Show All
Visual C# How to use DllImport with c++ functions that take a function pointer as an argument?
I'm trying to understand how dll importing in c# works. I've managed to get it working for function F1 shown below, however I want to extend this to a function of type F2, which takes a function pointer as an argument I've look at the example on MSDN, but it is too dissimilar from what i am trying to do and I don't really understand it. Can someone tell me the c# code that will enable me to import the function F2 into my c# program, or point me to a a more basic tutorial than the MSDN help site, because I really didn't find it useful in helping me solve this particular problem. This is the .cpp file that i compile into a dll which my c# program then uses. I have successfully imported F1, but all attempts to import F2 have failed... extern ...Show All
Visual Studio Express Editions IF DirectX9 development could use VC++ 2005 Express
There are some description below. Developing C++ applications with this release(DirectX9) requires Visual Studio .NET 2003 or later. Visual Studio .NET 2002 and Visual Sutdio 6 are no longer supported.Developing Managed applications requires Visual Studio .NET 2003 and .NET Runtime 1.1. My question is that if DirectX9 development could use VC++ 2005 Express Yes, I have pointed my VC++ Express to the libs and headers on path setting of option of VC++ Express. But it always show " Cannot open include file: 'windows.h': No such file or directory" when compiling. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Some missing documentation?
Hello, I was working on my content pipeline classes and in my ContentTypeReader<T>.Read() existingInstance is being passed in as null (so much for existing!). I thought that was a bit curious so I decided to look it up in the docs. To my great surprise Read() is not listed as a method for class ContentTypeReader<T> though I am clearly overriding it and in the content pipeline example documentation it is clearly being overridden. I had a few other people see if it appeared in their local documentation and the online documentation - they also said it doesn't exist. I am just wondering if this is possibly a bug in the documentation class ContentTypeReader<T>: ms-help://MS.VSExpressCC.v80/MS.VSIPCC.v80/MS.XNAFX.103 ...Show All
SQL Server Inserting data into reporting table
let me preface this by saying, i'm no DBA or developer. i was given a query that returns a result using a print statement. i want to take those result from the print statement and drop them into a new table in the ReportServer database. can anyone give me some advice on how to dump these results into a new table on another DB print @className + ',' + @firstName + ',' + @lastname + ',' + Cast(@timeOnTask as varchar) + ',' + cast(@numberOfModules as varchar) + ',' + cast(@liveMinutes as varchar) ...Show All
Visual Studio Remove .NET Language Pack
Hi Having automatic Windows Update turned on (which I changed after this experience) the .NET Language Pack (German) was installed on my machine and after that half of my VS is german, the other half is english. More than that the german translations are more confusing than helpful. Is there a way to switch back to having everything in english without re-installing VS completely. I have tried to uninstall the language pack - no change. Thanks Alex Thanks for your comments. My problem is different. Not only exceptions are german but half of my menu structure is german, half is english :( ...Show All
Visual C++ Unknown build error in iomanip
hi, I encountered this error when building log4cpp with my project. "Error 1 error C2143: syntax error : missing ';' before '<' C:\Program Files\Microsoft Visual Studio 8\VC\include\iomanip " In fact, there're many other errors that has nothing to do with the application. eg: Error 11 error C2061: syntax error : identifier 'ios_base' C:\Program Files\Microsoft Visual Studio 8\VC\include\iomanip 63 Please help. Thanks Cheers Wilson Hi there, the line in blue is causing the problem. But the thing is I did not touch this code at all. Isn't this part of the C++ std library // TEMPLATE FUNCTION setfill template<class _Elem> inline _Fillobj<_Elem> __CLRCALL_OR_CDECL setfill ...Show All
SQL Server AMO based C# application: Pre-requisites
Hi, Okay I am finally done with my AMO application in C#. Here is a brief on what it tries to accomplish: It Creates/synchronizes an existing Oracle OLAP datawarehouse into SSAS. This is done using AMO in C#. I programatically create Dimensions, Cubes, MeasureGroups, Measures,Partitions, Update the DataSourceView and its table references. Finally I process the Cubes. This application is scheduled, where it picks up a list of entities to be created/synchronized to SSAS. I have created a Windows installer setup project for the AMO application. which has added the "Microsoft.AnalysisServices.dll" as a dependency. Now what I need to know is: 1. What are the other pre-requisites that need to be installed for the ...Show All
.NET Development Redistributing .Net Framework 2.0: Commandline options
Hi, I am redistributing .Net Framework with my application. When the .Net starts to install, i want to pass some command line arguments so that it install in quite mode i.e without showing any dialog boxes. But i dont know how to do it. Can any body tell me how to pass command line arguments to the pre-requisites when they start to install Regards, Wasif Ehsan. The recommended method of handling this particular situation is to redistribute the .NET Framework version you are targeting with your application. Please see more information for deploying the .NET Framework with your application: .NET Framework 2.0 Deployment Guide http://msdn2.microsoft.com/en-us/library/aa480237. ...Show All
Visual Studio Team System I can't believe I miss SourceSafe!
Ok, I'm late to TFS. This is my first contract with it. I can't think of a Microsoft release I've been more disappointed by. I'm stunned they've stuffed up Source Control again (ah well, v3 rule again lol!). Yes shelving is fantastic. It really is. BUT: - Get Latest doesn't always Get Latest. Now this is as bad as it gets in terms of an SDE. I've seen it time and again (guys on the project now ONLY Get Specfiic Version, Select latest and Overwrite). - Add files is a pain (no context menu ). Doesn't seem to be a smooth way to incorperate added files to a changeset - You cannot simply Move a Folder (I mean come on. We've lost histories because of this, and if the serious response is to write an add-in to it I'd consider TFS feature incomple ...Show All
