DrDeath's Q&A profile
Visual C++ how to import pure c++ into class library
hi, i am teaching a first course in c++ using vs 2005. the textbook is pure c++/stl. what i want to is to test student programs using nunit. nunit works with test classes in managed c++ in a class library just fine. what i would like to do is to have the students place their code in some kind of dll and somehow "import" the symbols (via include or however) into the class library with the test classes (see the example below). how can i put the students code into a separate dll does anyone have any clues about how to do this any pointers will be appreciated. thanks #pragma once using namespace System; using namespace NUnit::Framework; // start of students code #include <iostream> #include <string> #include <list> ...Show All
Windows Forms Overloading ToolStripMenuItem
Hi! I want to overload my ToolStripMenuItems, to my own ToolStripMenuItemX. I have done some overloading for this Class, but I have a problem with make it a fixed size and remove some items on it. I have done this in the Constructor: public ToolStripMenuItemFix() { this .AutoSize = false ; this .ForeColor = Color .White; this .Size = new Size (181, 37); this .Size = base .Size; this .Font = new Font ( "Verdana" , 12, FontStyle .Bold); this .BackgroundImage = global ::Console.Properties. Resources .ensfarvet_menu; this .ShowShortcutKeys = false ; this .AllowDrop = false ; } Which allow to do most of what I want, but I have one thing missing, i ...Show All
Software Development for Windows Vista WinWF 3.0.3203.56
Where to find and download the component WinWF 3.0.3203.56 ...Show All
Community Chat Clockless Chip
Anybody knows about Clockless chip is it really possible having taken a few hardware courses I dont think it is, but if there does exist this kind of technology kindly reply asap. regards Sumit Dagar ...Show All
.NET Development Calling object???
in the following: private int width = 10; public int Width { get { return this.width;} set{ this.width = value;} } How can I tell or get from within the get or set methods what object is calling them Thanks, Devin could you not just use interfaces on the object interface IFullAccess { int width {get; set;} } interface IReadAccess { int width {get;} } Then specify the parameter type on the member as the required interface so that even if you pass the complete object, the member will only have access to what the interface allows Or is this wrong Not enough (as you can always cast) ...Show All
Visual Studio Tools for Office Outlook 2007 RTM FormRegion editing bugs
I am trying to edit FormRegion in the Outlook 2007 that I was developing in B2TR. When trying to modify it (add more controls) the changes are not saved. Even when trying to "Save As" the dialog is never poping up. By trial an error I've discovered that if I delete the TabControl (MultiPage) from my region it will allow to save it. What's going on Thx... Alex You're right, you should be able to host the InfoPath ActiveX control on a form region. In fact, we did testing to make sure this worked and was possible to do. There isn't a mechanism in place to day to file bugs against RTM Outlook 2007, other than calling product support and opening a service request or by finding someone at Microsoft ...Show All
SQL Server Sending SQL Mail
Hi, I am using SQL Server 2005. I have configured my email on Database Mail. when I am trying to send email using xp_sendmail I am getting problem error as: Msg 17925, Level 16, State 1, Line 0 xp_startmail: failed with mail error 0x80040111 I am using following sql statement master . dbo . xp_startmail 'myaccount' , 'mypwd' master . dbo . xp_sendmail 'tomail1@mail.co.in' , 'test' where myaccount and mypwd is my password on my email profile. 'tomail1@mail.co.in' is the destination email address.. thanks I had the same problem. It turns out my network administrator had changed the userid and password in Enterprise Manager, Management|SQL Server Agent|Properties and had failed to change the userid and pas ...Show All
Customer Care Framework workflows
public WorkflowWs () { base . Url = "http://ccfiis/Microsoft.Ccf.Csr.WebServices.ContactCenterAif/Workflow.asmx" ; } what does it mean , that my machine must be named ccfiis. why is this hard coded Ok, there are several QFE's for the 1.1 version of CCF that resolve many of these issues.. have you installed them Which File did you get that entry out of.. If at all possible... I would recommend that you move up to the .net 2.0 version of CCF.. there are several fixes and update’s in that version that were not back ported to the 1.1 version. Matt B. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .. Tridex VB.NET ##UPDATE 15# XNA .... Mesh Viewer Component we have Meshes!!!
Hi Tridex Again.... ok, once again thanks to the guys who have created the xSWM mesg object and converter .x to SWM much simpler to load than x file and seems smaller in size!!! which can be found on the forum, I have updated the code for VB.NET users, with all the other updates worked on today, so guy get learning !!! its really fun to crack this stuff... down load full source code below and lets build a libary !!! http://www.tridexconsultants.co.uk/pages/downloads/XNA%20VB.NET.zip More , Much more to come!!!! .... TRidex ........ ...Show All
Architecture Visual Studio 2005 Class Syncronization issues
Hi , Has any one come across Visual Studio 2005 's class syncronization's issues basically it looks like VSTS doesn't support generation of sequential diagrams. -Paresh Hi Paresh, Are you asking whether the sequence diagrams can be generated from the class diagrams in VS 2005 Unfortunately the answer is no. Here is a link you can find further information to your question: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=271160&SiteID=1 . As this link explains, you can use Microsoft Visio to create sequence diagrams. ...Show All
SQL Server SQL2000 and SQL2005 named instances on same server
Is it the best practise to run SQL2000EE and SQL2005EE named instances on the same server on Windows 2K3 EE Any comments As such there is no problem, both will co-exists. but its all depend upon the load on the system when its implemented. if both the instance is going to host a very busy/huge/mission critical database , then you should have enough H/W support. BTW , why u need to install SQL Server 2000 EE now.. Madhu ...Show All
Visual C++ Is __assume() supposed to crash application?
Can someone tell me why the following code crashes in release mode builds with optimization in VC2005/SP1 #include "stdafx.h" #include <stdio.h> void func1(int i) { printf("func1(%d)\n", i); } int _tmain(int argc, _TCHAR* argv[]) { int p = 3; // The following example is almost identical to the Microsoft Help at // http://msdn2.microsoft.com/en-us/library/1b3fsfxw.aspx switch(p){ case 1: func1(1); break; case 2: func1(-1); break; default: __assume(0); // This tells the optimizer that the default // cannot be reached. As so, it does not have to generate // the extra code to check that 'p' has a value // not represented by a case arm. This makes th ...Show All
SQL Server How to improve the efficience of Sql query ?
now i want to get results from server tables, but i found it is very slow, for example : select Coalesce(T1.Name, T2.Name, T3.Name), T1.M1, T2.M2, T3.M3 from T1 full outer join T2 on Coalesce(T1.Name, NULL) = T2.Name full outer join T3 on Coalesce(T1.Name, T2.Name) = T3.Name in Tables i have builded index for name, but when every table have 20000 records, the sql above is very slow, is there other method to improve the query speed Thks every one: i have solved this problem with hash join such as belows: select Coalesce(T1.Name, T2.Name, T3.Name), T1.M1, T2.M2, T3.M3 from T1 full outer hash join T2 on Coalesce(T1.Name, NULL) = T2.Name full outer hash join T3 ...Show All
SQL Server Need script to loop through all non-system databases and drop all user schemas
Does anybody have any tsql code that will loop through all non-system databases on a SQL Server 2005 instance and drop all the user schemas in each database Thanks. Perhaps you might want to check the objects for not being system ones: where xtype in( 'P' , 'U' ) AND OBJECTPROPERTY ( OBJECT_ID ( name ), 'IsMSShipped' ) = 0 HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio 2008 (Pre-release) EntityFramework + LINQ vs. O/R-Mappers with UML and Schema Generation Support
Hi, I understand that Microsoft is now heading to support concepts most people understand like ER-Models instead of UML and availability of an SQL-like language that even allows to do mapping without objects. My question is however how much OO one can get out of Entity Framework in combination with LINQ. Please let me know if the following is supported: - Issue Query agains ER-Model (Mapping) using LINQ and get Objects of a predefined (modeled) typed that includes business logic. I understand that technically any type can be annotated with business logic but my question is if the ER-Modeler will understand this - Will Entity Framework support DDL Generation like ObjectSpaces d ...Show All
