James Alexander's Q&A profile
Visual Studio Express Editions Help with class templates
help, I have a small project to try programming templates classes, BUT IT WILL NOT LINK. The linker complains of unresolved externals. Can anyone see what the problem is; I am darned if I can spot it. Thanks, Pat Pope the main program is :- #include "cBinTree.h" int _tmain( int argc, _TCHAR* argv[]) { cBinTree<cDataItem>* binTree = new cBinTree<cDataItem>; <<< PROBLEM HERE } *************************************************************************************************** AND BinTree is :- pragma once #include "cDataItem.h" #include "cBinTreeNode.h" #include "console.h" template < class T> class cBinT ...Show All
Windows Live Developer Forums Restrict VE Map scroll
My client has just asked me this – and I am not sure if it can be done My client wants to limit the outer edge of the map scroll to an area around the UK. (to stop users VE’ing their holiday destinations during work hours) Any suggestions IF this can be done Yes but that is good if you are in on a particular zoom, however lets say you are at county level and start panning across the uk, when you reach the boundary I would actually like to un-pan the the last move. Is this possible like reversing the last view change rather than setting map to required centre. I am guessing that the only way would be to record the center of the map prior to the pan and if it goes out of boundary then move ba ...Show All
.NET Development .NET framework adoption rate?
We are trying to decide on whether to maintain 1.1 compatibility for our software or use some of the new features in 2.0. Thus we need to know how widely .NET 1.1 has been adopted by end users. If few machines have 1.1 installed we might as well use 2.0 since most users will have to download the redistributable anyway. But if many 2000/XP machines already have .NET 1.1 installed it would make sense to rather stay compatible with 1.1, since our application footprint is small relative to the redistributable. I haven't been able to find good information on the adoption rate of .NET, so I would appreciate any links. It would also be interesting to know why the .NET framework has always been (still is) an optional component in the service packs ...Show All
Windows Forms Comparing .NET diagramming components
Im considering using the Nevron .NET Vision toolkit for UI and Diagraming componentry to build an windows application under .NET 2.0/VS2005/C# to create/edit network diagrams, dependency trees etc. From what I have seen the toolkit seems reasonable. However, as I am very new to winForms programming I would be interested if anyone could maybe point to some other candidates I could consider. Any tips appreciated. ...Show All
Visual Studio Express Editions create dll in visual studio express
Hi everybody, I have a c file and a h file i have written, which compile successfully. I want to make this into a dll. I know this is kind of a newbie question, but how would I go about doing this in Visual C++ 2005 Express Edition I am not too proficient with using Visual Studio yet, so a step by step guide woudl be extremely helpful. Thanks a lot! Kiran Take a look at using the /LD option. For more information and hot to set that through the IDE, please take a look at http://msdn2.microsoft.com/en-US/library/2kzt1wy3.aspx Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
Silverlight (formerly WPF/E) Info on support for other platforms?
Hi, I know that as of right now MS is only planning on supporting the browsers that are currently supported in the CTP, and I've read on a developer's blog that MS will be relying on partners to implement support for other platforms. Is there any of this work with partners underway Is there anything else that I'm missing I'm giving a presentation on WPF(/E) to some execs at my company, and I'd like to be able to mention something about support on other platforms because I know this will be a con when compared to Flash. Thanks, HV "WPF/E" was built for the internet and as such should work anywhere people browse from. That said, we have limited resources and we need to optimize our effort around th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render triangles of subset
Hi, I wondering if its possible to render the triangles of a subset one by one Thanks, -Dave Sure but you have to do it by your own. First you need to get the attribute data for the subset and then you can loop. (I have not include method names because I don’t know which language and mesh class you use) I hope you would do this only for diagnostic purpose because it will kill the performances. ...Show All
.NET Development Formatting numbers
.net I am building a solution that shows two numbers. VAT on sales and VAT on costs. I can obtain the two values through a SQL query Sum(amount) * 0.175 etc etc however when I want to subtract one from the other I get a single digit number. For example my sql query might return 14,5435.00 and 5,746.00 but the value i get after i try to subtract them is 9. I have tried using format but that just returns a letter "N" in this case. Label35.Text = Format(objDataRow.Item( "totalclientyear" ), "N" ) objDataRow.Item("") return an object. You need to convert the data to a number for the format to work Label35.Text= CDec(ObjDataRow.Item("totalclientyear" ...Show All
Software Development for Windows Vista Help Need WinFx Beta 2 Runtime!
Hi, Please Help! Where can i find the WinFx 2 Runtime for Download Thanks Peter You can download .NET Framework 3.0 (formerly WinFX) Beta 2 from http://www.microsoft.com/downloads/details.aspx FamilyId=4A96661C-05FD-430C-BB52-2BA86F02F595&displaylang=en . ...Show All
Visual Studio Team System assigning work items to many people
I'm using team system and microsoft project to create and modify work items. I can create task work items in either project or team explorer and pass them backwards and forwards without problem if I only assign to a single person. If I try to assign to multiple resources (a comma separated list of names) in project then the work item will not publish to team system. If I remove all the names but one then it works again. I can see that it is reasonable for some work items (i.e., bugs) to only be assignable to a single person but it seems unbelieveable that all tasks on all development projects would only be assigned to one person. Someone tell me that it ain't so! Do I need to create a custom work item I'm on windows xp pro sp2 and ...Show All
Visual C# c# and vb.NET working together
This is what I need. I have to seperate projects. One project is c# and the other is VB.NET. I want to c# project to fire an event and then the VB.NET project should respond to that event. For some reason I can;t subscribe to me c# event. THis is what I have: In my c# code (which is the one that will fire the event) public delegate void MyDelegateEventHandler(); public static event MyDelegateEventHandler MyEventHandler; public static void OnMyEvent() { if (MyEvent != null) { MyEvent(); } } private void button1.Click(object sender, System.EventArgs e) { form1.OnMyEvent(); } Now i need my VB code to respond to MyEvent which should be a method within the VB.NET code. I am havin ...Show All
Visual Basic Nested structure declaration
hi i am trying to convert a udf type of vb 6 to vb .net. VB structure definition Type a myCode As String * 10 myDesc As String * 80 mytype(1 To 26) As c end type type c myname as string * 10 end type equivlent in .net for a simple structure which does not have another structure as an element worked fine Public Structure a <VBFixedString(10), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst:=10)> Dim mycode As Char () <VBFixedString(80), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst:=80)> Dim mydesc As Char () End Structure ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to show the real world image data using Direct3D?
I read some YUV data from a file. Then I transformed the data from YUV to RGB. At last when I showed the RGB data as texture in Direct3D, I found the image was not showed rightly. The color distortion was very serious. Would you please tell me how to show real world image data in Direct3D why are you converting to RGB you can leave it YUV: 1)create an RGB texture 2)create an YUV surface. 3)strech the surface you created over the top surface of the texture. ...Show All
SQL Server MSDE (SQL Server does not exist or access denied.)
Hi all, I'm getting this error message when I try to connect my MSDE database from other machine using enterprise manager application. Both of the machines are WinXP SP2. I found some solution such as using 'SQLServer Network Utility' but didn't work out for me. I even can not connect my database on my computer using TCP/IP. When I connect with name, it worked fine. I already enable both TCP/IP and Named pipe protocol on the MSDE machine. If someone has solution on that please let me know. Thanks, Myo If you have SQL Server 2005 installed on the same box as the MSDE, you need make sure SQL Browser is running. Make sure the ports (UDP/1434 and your TCP Port) are open if firewall exists. Also try file sharing between machines an ...Show All
SQL Server import from Access to SQL, not knowing the table format
I need to import few tables from MS Access to MS SQL but the table structure in Access is always different, as I would like the destination table in SQL to be. Therefore I would like that a table would be created in SQL at runtime, according to the structure the Access table accessed has. i'm not sure about this, but i think you can use the script task to determine the access table schema. then, you could use this schema information to dynamically create the sql server table. ...Show All
