Ravi Joshi's Q&A profile
Windows Forms VS 2005 (Team Ed. for SD) C# Windows.Forms.TabControl
Hi! Does anybody know why the Windows.Forms.TabControl can change the order of pages (even inside TabPage Collection Editor) By the way, it was happened even with VS 2003. Thanks any way for your attention. ...Show All
SQL Server declare programaticly a X number of variables
Hello everyone, I really need some help; I need to declare dinamicly an number of records to be pulled out of the table.. so I need to declare first DECLARE @NumberOfRecords int then DECLARE @i int set @i=0 and WHILE @i<@NumberOfReocords begin declare @Record int <-- Here is my Problem set @i= @i+1   ...Show All
Visual C++ could you tell me the result of this code?
I hold the idea that the current result of this code is 0,but in vc6 and vc2003,it's result is 10! could you tell me why btw,the result if this code is 0 with java compiler. int main() { int a=0; for(int i=0;i<10;i++) { a =( a++); } cout<<a<<endl; return 0; } Can you explain why you expect it to be zero You have initialized a to 0, then you increment it inside a for-loop that loops 10 times. The expected output is 10. I've never done Java, but I'd be truly surprised if the output will be 0 in Java. ...Show All
Visual C++ Need help with SendDlgItemMessage(...CB_FINDSTRINGEXACT..)
I'm getting a "Unspecified Error" when my code got to the SendDlgItemMessage to retrieve the index that is a matched to the string that I sent. Can someone see how I coded this incorrectly Also, the index value is return through lResult. How do I get the index from lResult variable It's defined as IRESULT which is a long pointer. Thanks. PWSTR SR= bstrtSearchResult; //This is the content of syamrk-ComputerReference token = wcstok(SR, seps1); for ( int i = 0; i<2; i++) token = wcstok(NULL, seps1); //Find the 3rd forward slash token = wcstok(NULL, seps2); //Find the 1st comma and we got the symar ...Show All
Visual Studio Express Editions Selecting a combo box item
I am wondering if anyone has any hints about the most efficient way to select a combobox item. I have tried code I found on the net but it doesn't seem to work -- perhaps because it was an older version of VB. My combobox is linked to an MS Access datasource. What I want to do is to programmatically select one of the items that is already listed in the select box choices based on its ValueMember. In other words, I want to the item who's value member is x to be the selected item. (I don't want to choose it by its order in the list--I want to select it based on its actual valueMember value) Thanks again for all the help. One of my bigg ...Show All
Visual Studio 2008 (Pre-release) Hosting Multiple Services
Hi, First, I want to host over 50 different services each with a seperate interface, how can i do that in WCF using the same endpoint and the same service host. Second, can a service dynamically add a service to be hosted, for example lets say i have created a new service is there a way i can dynamically host this service without recompiling the service host code. You can host services dynamically. I do this currently with a Peer channel binding, but it works with any of the bindings as well. You can configure as many services as you like to the same endpoint. For HTTP transport you need to have derivitive URLs for each servi ...Show All
Windows Forms IssueVision issue
The setup wont 'see' my local sql installation and gives me the the only option 2 cacel the setup :( Sql acceps mixed mode Remco Now that is a fast response btw do you know how 2 solve 'my' problem Remco ...Show All
Smart Device Development Accessing the Garmin iQue M5 built in GPS Unit
I wonder if someone out here could help me. I'm busy building an application for specific use with a Garmin iQue M5 Pocket PC. I was very excited when I joined the Garmin Developer Network ( www. garmin .com/DeveloperZone/ ) and found that there was an SDK already built for this unit allowing developers access to the built in GPS Unit. Sadly, once I had downloaded the unit I realised that it was built in Native C++, something which I am not too familiar with! Now my problem is, is there a way to develop my application using Visual Basic 2005 and still have access to the built in GPS Unit so that I can retrieve the current users coordi ...Show All
Windows Forms How to install Office Web Component prerequisites using ClickOnce
My ClickOnce app uses Office Web Components. The target client machine will be Windows 2000 or Windows XP with Office 2003 Typical installed. The app will be querying an Analysis Services 2005 cube. OWC11 with SSAS 2005 requires MSXML6 and OLEDB9 to be installed on the client. Is it possible to get the ClickOnce installer to check for these and install them on the client if not present Thanks, Bren After further study, I discovered that ClickOnce installs custom prerequisites with the use of a Bootstrapper app. There is an MSDN webcast on the topic that demonstrates exactly what I need to know; ClickO ...Show All
Visual Studio Team System Team system and project server integration
Having to start a new software factory architecture and having to deal with project management I need some directions on the two products integration. It's better to start using project server to deal with project management (it's a released product) and use TS only as a way to handle work items The future integrations are about integrating TS into Project Server or viceversa Those two products will be upgraded together or one will be discontinued THnx Carlo Hi Carlos, Just wanted to expand on what Siddharth answer a little bit. The integration between MS Project and VSTS allows customers to b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Directx sample not working in Win XP
My multiplayer directx game on V8.0 runs on Win 98 but does not run in Win XP. What needs to be done ...Show All
.NET Development SslStream client authentication fails
I have set up a client and server app for testing SslStream. Connecting and authentication works fine as long as a client certificate is not requested. When I call AuthenticateAsServer with the clientCertificateRequired parameter set to true, authentication fails. In the RemoteCertificateValidationCallback (on the server) the sslPolicyErrors parameter has a value of SslPolicyErrors.RemoteCertificateNotAvailable, the certificate and chain parameters are null. Debugging the client I am sure that I am passing a non-null certificate. I used MakeCert to create this client certificate signed by the same test authority that was used for the serve ...Show All
Visual Studio Tools for Office Merged Word Menus are not accessible after creating new word project
Hi, I created a new word project from within the Visual Studio IDE. I noticed, that the merged word menus are not accesible, although most of the word functions are accessible via toolbar or context menu. Is this a bug or did i miss any settings Thanks, Klaus Are the menus not enabled even when the designer is selected Can you send a screen snapshot ...Show All
Visual C++ Linker Error
I am writing a C++ Wrapper for the Java Access Bridge API, I am completely new to C++ and come from a Delphi background, I seem to be doing just dandy though except for what seems to be a simple problem that just requires the experience of a C++ mind :-) Here is my code: #include <windows.h> #include <winuser.h> public ref class JavaBridgeWrapper { // TODO: Add your methods for this class here. private : void InternalExecute( void ){ AccessibleContext ac; long vmID; HWND hwnd; POINT p; GetCursorPos(&p); hwnd = WindowFromPoint(p); ...Show All
SQL Server How to retrieve data from query and link the data to a data number?
i'm doing a project on SQL Server 2005, i'm stack in searching the data and can't link the data in the data number.. can someone help mi with the programming code as i can search for the words in the table but i can't link with the data number.. first thing is how to search the keywords from the tables Second thing after u search the result ,how to link the result to a number related to the result ...Show All
