wortho's Q&A profile
Smart Device Development Strange errors using eVC++
Hi, just started to migrate an app to my PocketPC. I am trying to write a native C dll that communicates with a driver. So I just open a project in eVC and tries this in the main cpp file: // Simple.cpp : Defines the entry point for the application. // #include "stdafx.h" int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { CreateFile("TAP", GENERIC_READ ...Show All
Visual C++ Registering Hotkey
Hello, I'm working on a Visual C++ 2005 Windows Forms Application using managed and native code. First of all, I wanted to register my hotkey, so I did the following: RegisterHotKey(hWnd,112,NULL,'p'); ***hWnd is my form's HWND. I think this works fine however to test if it really does I want to capture Windows Messages and check if they are WM_HOTKEY. To do this I think I need to use IWindowTarget::OnMessage method. Since I did ...Show All
.NET Development Compatibility Issue
hai.. if i am developing a application using .net framework 1.0 and deploying it in a server with .net framework 1.2..What are all the problems i may face.. Thanks in advance... Regards, Satheesh There's no version 1.2 of the framework (except for early prerelease versions of what's now known as v2.0). As long as you're deploying on a system with the same or a more recent version of .NET installed it will just work most of the time ...Show All
Visual Studio Why VSS2005 not included as part of VS 2005 RC
Hi, Do I need to install VSS 2005 seperately after installing VS 2005 RC, it looks like source safe got un-installed. Will the August CTP of VSS 2005 works with VS RC build. Hi Mahesh, VSS 2005 should come with your VS 2005 RC but you need to install it separately from from another folder. Look at your DVD (if you have the RC as such) and check the vss folder and you will find the setup program there. It was my case. I hope it helps. Abel ...Show All
Windows Forms From TaskVision to WeRock
If you've enjoyed working with the TaskVision SourceCode and want to explore further Smart Client concepts (around Windows Forms, Mobile and Office / VSTO) then I would encourage people to check out another good site: http://www.learn247.net/werock247 WeRock247 will provide ...Show All
SQL Server Connection Properties on Expressions?
Hi, I can seem to find all the necessary properties of a connection in the expression section... except for the password... How the hell do i specify the password for a connection based on a variable Regards, Yes i have already tought about both of them.. but in the connection String that is built using the interface and choosing SQL Auth the password is never there.. well i will try that way but it was a little bit easi ...Show All
Visual Basic Opening forms on 2nd monitor
Hi all, I'm trying to get a form to open on a secondary display. Anybody know a way to open a form on a different screen other then the primary one Or even if you can't open on the 2nd screen, how to move a form to a secondary display by code. Dustin. Use the Screen object: Dim f As new Form Dim screens() As Screen = Screen.AllScreens f.Show() For Each sc As Screen In screens If MessageBox.Show(Strin ...Show All
Windows Forms Set application path (from registry) as installation path
Hi, How can I set installation path in setup The path is taken from registry that saved by prevous installation. Thank's Alexei Hi, I have found solution: http://support.microsoft.com/default.aspx scid=kb;en-us;827026&Product=vsnet Thank's Alexei ...Show All
Visual Studio Team System Security, Groups, and Users To Global or to Project set levels
In setting up Team Foundation Server security, groups, and users can be added globally or by project, but they hace different access rights. I am unsure as to what would be the best policy when setting up TFS. My Thought is to create Global Groups based on Roles eg: Developer, Tester, BA etc. then enter global security then add Project groups that are members of the global groups then add the users to the groups. Or am I making iot too ...Show All
Windows Forms Help. Port an VB indexer property to C#
Hi all, I need to convert this VB Default Public ReadOnly Property Item(ByVal index As Integer) As SomeObject Get Return CType(list.Item(index), SomeObject) End Get End Property and i think in C# comes to this: public SomeObject this [int&n ...Show All
SQL Server an insert
Hello, I need to realize an insert something like the following: Exec GetMyID @tName, @MyId OUTPUT INSERT INTO MyTable2 (MyId,MyName) SELECT @MyId,MyName FROM MyTable1 Here I am getting MyID from a stored procedure and I need to insert this to MyTable2, however I need to get a new MyID for each row in MyTable1. How can I do that I guess you could do a trigger that runs when you insert ...Show All
.NET Development Help : "error: 40 - Could not open a connection to SQL Server"
I'm using VS2005 and SQL2000. I created a database name "myDatabase" in SQL Server 2000 and built a website that connet to this database. When I'm running this website in VS2005 IDE (press F5 or Ctrl-F5), everything is OK. I publiced this site. When I connect to database on my computer, everything is OK also, but when I connect to database on another computer, an error occurred like this : "An error has occurred while establishing a connection ...Show All
.NET Development WinForms Vs WebForms
Where can I get the list of pros & cons generally speaking WinForms are Richable but not reachable , on the contrary WebForms are Reachable (but not richable due to performance factors). so the question is : can we have a form that is both richable and reachable at the same time . the answer is simply , yes "Click-Once deployment ". there was an old article about hosting a windows form over IIS , and this would lead to the death of bro ...Show All
Visual Studio Team System How do I programmatically start a WebTest?
Given the path to a valid WebTest (xml) script, how do I programatically run the WebTest script (from within Visual Studio) I am creating a Visual Studio plugin, and one of the features is to automatically run selected WebTest scripts, very much like how users can use the TestManager to select & run the WebTest scripts. Ed, Could you please suggest the path or the place where to find this extensibility Kit. This ...Show All
Visual Studio Invalid DOS path: $/ error when trying to get items in C#
Hello, I'm trying to get a list of items under root in C#. Here's the code: vssDatabase.Open(txtIniPath.Text, username, password); IVSSItem vssProj = vssDatabase.get_VSSItem("$/", false); ==> IVSSItems items = vssProj.get_Items(false); foreach (VSSItem itm in items) { MessageBox.Show(itm.Spec); } I got an exception at the line ==> IVSSItems items = vssProj.get_Items(false); saying "Invalid DOS p ...Show All
