Liam Flood's Q&A profile
Visual C# Compiling a native C DLL for use in VC# using DllImport
Hi Group! I'm a C# newbie (real wet and raw) as well as a complete newbie to Microsoft OS programming. Normally I use native 'C' on Posix complient platforms - which I've been doing for many decades. Scruitinsed this BB for an answer but can't find anything close. Also burrowed around in Visual C# IDE for clues - none forthcoming. For reasons of speed and size I want to write a suite of routines in native 'C' and encapsulate them in an external module - presumably a DLL. Can someone please give me a pointer to how to get started in Microsoft products Can Visual C# IDE compile a native C routine (after all most C++ IDE's can) and what do I ha ...Show All
.NET Development How to dynamically change connection string in generated dataset class?
I have a project with database classes which are generated from database objects. That is I add a dataset to the project and drag and drop a database object onto it. The problem with this is that I have to give a connectionstring which is stored in the code. This is ok while developing the application. But runtime I want to use another connectionstring, both for security reasons and because each user of the application will correspond to a database user (ms sql) and shall have a corresponding connectionstring. Is there an easy way to do this without having to restore to plain all datasets and do everything myself The name of the proper ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using index buffers
I want to draw cube. And I want specify only 8 vertices, and then specify their order in special array. As I know index buffers allow to do so. But I can't find example. Please, write example of using index buffers. I wrote following program: using System; using System.Windows.Forms; using System.Drawing; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; namespace ProgaX { class Forma : Form { #region Variables Device device = null ; VertexBuffer buf = null ; IndexBuffer ibuf = null ; PresentParameters par = new PresentParameters (); #endregion ...Show All
Visual Studio 2008 (Pre-release) Getting Started sample not getting service.exe
Hi, Well, I have been trying to get this first sample "Getting Started" going for a very very long time, and so far, I've been pulling my hair out just trying to figure out what is going on. My question is, when i compile the "Getting Started sample" which is from WIndows SDK, it compiles fine, and I find client.exe but I can not find service.exe anywhere. Neither under Getting Started/service/bin folder which produces service.dll file and service.pdb nor under wwwroot/servicemodelsamples/bin directory. I got the console based sample going but I really want this IIS based samples to work as well. Any help woul ...Show All
Visual Studio Team System Difficulties in getting Code coverage information
I am testing ASP.NET web controls and am facing difficulties in getting code coverage information from my tests. For testing our web controls, I am using the [HostType("ASP.NET")] and [UrlToTest(" http://localhost/TestSite ")] attributes in my test projects to either test a website that has these webcontrols, or dynamically add these controls to a empty test website and test their properties and methods. So my project structure is like this c:\> - InetPub -wwwroot -UnitTestWebSite & ...Show All
Visual Studio Express Editions Printing from VB Express
I have come across several posts indicating that it is nearly impossible to print documents, much less interact with Word, when using Visual Basic Express. Is this true If so, will this functionality ever be included or will I have to either purchase Visual Studio or learn another language While not impossible to print in VB 2005 ( this includes the Express Edition too) it takes a bit of work to get the results you want. There are a lot of printing capabilities in VB 2005, but, you need to do some reading to maximize your results. Doing a Google Search in the Groups section will find a lot of info on print ...Show All
Visual Basic Create and run select access SQL queries through VB
Im attempting to have a user select the table, fields and criteria to create a SQL statement query and run it immediately, from a form in MsAccess. Ive tried to build and store the SQL statement in a string, set it as a new querydef,open an existing query and set its sql to the string. I have been unable to get this to work however. I either get a "obj var/ with block var not set" error or invalid SQL statement . However the syntax of the statement is correct according to tutorials ive followed. Can any1 offer sum help Hi TechAddict, I'm glad to help. However, I'm not quite sure how you ...Show All
Visual Studio 2008 (Pre-release) AsyncCallback threw an exception
I have created WIndows Service & deployed it on Win 2003 Server. This service just has Add/Multiply function. My WCF client is noramal WEB App. which is consumming this service the Service returns me the Result but after proxy.End MethodName ( IAsyncReslt ) gets executed it gives me the Error saying AsyncCallback threw an exception. Can anyone please help me on the same. Following is my Web Page Code. public partial class _Default : System.Web.UI. Page { NTServiceProxy p; protected void Button1_Click( object sender, EventArgs e) { PageAsyncTask task = new PageAsyncTask (BeginInvoke, EndInvoke, EndT ...Show All
Visual C# How to free up memory in C# apps?
hi.. In my application so many variables and XML files are used .. eventhough after finishing off the work with the file, im closing that. It works fine with few number of files but when i uses more than 50 files the application crashes... So. is there any way to resolve this by clearing the memory. need help !!! You need to make sure you call Dispose on any variable that has that method, before it goes out of scope. But, the garbage collector should ensure that your app never crashes from lack of memory. ...Show All
Visual C# Program execution
Can someone tell me the method or command on how to run a program that is on my desktop by code. I tried the openfiledialog but it didnt work. Can someone help please if (openFileDialog1.ShowDialog() == DialogResult.OK) { System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents = false; proc.StartInfo.FileName = openFileDialog1.FileName; proc.Start(); } ...Show All
Visual Studio Team System Errors details - Load testing using Unit test
Hi, i am testing one winform application. i have written unit test and i am calling this unit test in my load test to test the web services. i am getting the following errors pls let me know how to correct these errors. Error 1 00:04:37 <none> <none> <none> <none> Exception LoadTestCounterCategoryTimeoutException Timed out trying to read performance counter category 'Process' on computer 'SHANKK-LP' view at Microsoft.VisualStudio.TestTools.WebStress.PerformanceCounterReader.ReadPerformanceCounterCategory(PerformanceCounter ...Show All
Visual Studio Items and properties set in one target not available in others? Why
Hi I've got this build file (below), I have a property named TestProp, I want to change this in one target (in target Debug-Build) and have its new value in another (in target Deploy). TestProp as you can see is a property, but I would also like to do this with items. For example the item named @(AssembliesBuiltByAllProjects) created by the MSBuild task that contains the TargetOutputs from the build. What I would like is the contents of this item to be available in another target (in the Deploy target). As you can see I've used CreateItem to try to achieve this, similarly without using CreateItem it didn’t seem to be availab ...Show All
Smart Device Development Pocket Pc beta2
hi , can i create application with c++ in beta2 for pocket pc. thanks Not sure my first post was successful, so will try it again. I've installed 2005 Beta 2 and both Windows Mobile 5 SDK's. However, when creating a new C++ "Smart Devices" project, the only two platforms that show up are SmartPhone 2003 and Pocket PC 2003. Why aren't the WM5 SDK's showing up Also, can PPC 2000 and 2002 be added Thanks, Kevin ...Show All
Visual Studio Extending a DSL post-deployment
I'm exploring the possbilities for allowing end users of my DSL to add metadata beyond what I know of when preparing the product. There are places where it would be useful for people to add metadata specific to their environment to the DSL. For example: say one end user's deployment environment is such that all decision points in a workflow can be resolved with reference to their proprietary or third-party rules engine. I can provide a DSL that describes the workflow generally, but there will be no space in there to capture the information specific to the user's own rules engine. Now it is not a big task to create a new class or struct to ca ...Show All
Visual Studio Team System Problem in login TFS through Teamprise elicpse plugin
I am doing a evaluation about source control in VSTS. I want to use Teamprise eclipse plugin to access TFS. After I type the login information (username, password, domain and TFS name), it prompt "(401) Unauthorized". I capture the packets when I connect to TFS through Team explorer and teamprise plug-in and sent it to teamprise's support center. The reason that teamprise s ...Show All
