Roberto Brunetti's Q&A profile
Windows Forms How to change selected index of combobox using Win API?
Hello, How to change selected index of combobox on one external exe using Win API That combobox style is dropdownlist. I tried to use SendMessage(GetDlgItem(hWnd, 301), CB_SETCURSEL, 2, 0) where hWnd=hWnd of exe 301=control id of combobox But it doesnt change the selected index, itonly changes the text portion of the combobox. Even I tried to use SendMessage(GetDlgItem(hWnd, 301), CB_SELECTSTRIN ...Show All
Visual C++ Linker Error with the file atlsd.lib
Hi all, I am facing a problem when building my code in VC++. Actually i built my code on a machine which contained VS2003. When i copied the same files into my machine which has VS 6 in it gives me a linker error saying, LINK : fatal error LNK1104: cannot open file "atlsd.lib". What is the reason for this to occur ,I think there will be a simple solution for this. Please look into it and gimme a suggestion. Thanks &am ...Show All
Visual Studio Team System Error TF50304 when creating project alert
In the released VS Team Explorer accessing the released TFS server, the project alert "My work item is changed by others" throws the error "TF50304: There is a syntax error in the subscription statement. Check the syntax." when clicking OK after selecting the alert and typing the email address. The other alerts can be set without error. How can I resolve this problem. It seems an error with the filter the alert uses, bu ...Show All
Visual Studio Team System Problem with MS Project plugin
Hi, I'm having a problem with VSTS MS Project plugin when it is connected to Project Server. Every time I select "Publish new and changed assignments" it says that I removed resources from tasks and asks to publish the cancellation even thought I didn't!!! This started to happen when I wired together a team project and a Project Server project. I am using MS Project 2003 SP2, Project Server SP2, VS Team Suite / Team Foundation Se ...Show All
Visual Studio 2008 (Pre-release) WPF/XAML for WinXP
Hi, everyone! Question about WPF, but not about Vista. Whether any release of WPF/XAML for WinXP is planned With best regards, Dmitry Do you mean - just a pack of WPF (without WCF, WWF components) SDK, Runtime - for Win XP ...Show All
Visual Studio Express Editions LPCWSTR doesn't work with reg commands
I am making some functions that use regcreatekeyex, regsetvalueex, ect. So I made them and tested them by making a command prompt program and had no problems. Then I tried using the in the form designer and the compiler keeps telling me it can't convert my parameters that are strings into LPCWSTR. So I add the (LPCWSTR) in front of the parameter to convert it. Well my project compiles but recreatekeyex and stuff never succeed. How can I fix this ...Show All
Windows Forms popup text box?
I have a findows form that has a lot of textboxes, but is short on real estate. I was wondering if there's a way to pop up the text boxes into another window, I guess using the onclick or focus events So that I can m ...Show All
Visual Basic Built in functions
Hi All Does VB 2005 Pro version have a way of listing all the build in functions. For instance where could I go to get the correct syntax for computing the first and last day of the current month Dim FirstdayOfMonth as Date = fday(thisMonth) Hope that makes sense VB newbie Andre or of course the help system or a web search ... the functions built into the language and the .net framework are ...Show All
.NET Development drive types
Hi. I know I can get the logical drives from Environment.GetLogicalDrives() which returns me a string[] of drive letters on the computer. How can I detect if a drive is a DVD (not CD) drive I can make a call to kernel32.dll (dllimport) and use the GetDriveTypeA api and it returns me 5 as a fixed drive (which is correct since it's a CD ROM type drive) but I want to go an extra step further and detect wether the computer has a DVD or CD drive... ...Show All
Visual Studio 2008 (Pre-release) LINQ functionality for C# 2.0 (...and others)
So far I'm encouraged with all the help I've received on this forum, so here is another problem. What is the best way of providing ad-hoc querying capabilities in C# 2.0 (the same techniques might apply to Java 5.0...but I won't mention that here :) ). By ad-hoc I don't mean parsing quries written by end-users, then operating on existing data structures (think a winforms application where a user types in something like SQL on an IEnumerab ...Show All
Visual Studio Can't uninstall MSDN Library for VS 2005 Beta 2
I've been moving toward doing a large project using VS 2005 as opposed to VS.NET 2003. This project requires both VS 2005 Beta, and SQL Server 2005 Beta for "Reporting Services". I'm having problems, after installing VS 2005 beta and SQL Server 2005 beta, uninstalling everything; specifically the MSDN Library. Here's what I have: + Windows XP w/SP2 (fresh install) on a 10GB "C" partition + About 10 typical windows programs ...Show All
Software Development for Windows Vista DirectShow and MFC vs ATL
I would like to use DirectShow in my DirectX application that use MFC But the sample I have for DirectShow in the SDK seems to be in ATL Do you need ATL to make DirectShow Work Also, I will need to take the *.Lib and *.h file from the DirectShow SDK and Bring them in my Include and Library directory of the DirectX SDK 2005 What are the Lib I need to have to make DirectShow work And what *.h should I bring Any help is appreciated ...Show All
Visual Studio Installing IE7 works but..
Thought I'd start a new thread, since I'm using Visual C# Express, rather than full VS2005. Windows XP Pro SP2, Visual Studio 2003 Pro, SQL Server 2000 Developer Edition, Visual C# Express, Visual Web Developer Express, SQL Express 2005, MSDE. I also have Virtual Server 2005 SP1 beta installed. Problem just started this weekend. Whenever I click on any topic in the Index, Document Explorer crashes. I've tried Repair on Visual C# Express, Visual ...Show All
Smart Device Development How to open/close GPRS connect?
Hi there, I would like to write a program for data socket with GPRS connection. My smartphone, Dopod 585, is as the client and PC is the TCPserver. To deliver string from smartphone and show it on PC is my current task. However, I can do that via USB connection but failed in GPRS. It seems to mean that both programs in client and server are correct but something wrong in GPRS connection. Maybe I need to write a program in C# to start GPRS conne ...Show All
.NET Development The partner transaction manager has disabled its support for remote/network transactions
Hi People, I developed a .net 2.0 windows applications using TransactionScope. Client applications access a MSDE database on server via LAN. The program works fine when I tested on my own computer where database is on the same machine. But when I deployed database to the server, I got a message "The partner transaction manager has disabled its support for remote/network transactions Exception from HRESULT: 0x8004D025". I did some ...Show All
