rishi bajaj's Q&A profile
Windows Forms Starting .Net application from a parent C++ application
Hi, I have a question about starting a C# .Net application from another app that is written primarily in C++. I basically want to add a menu option to the parent (C++) app so that when the user selects this menu option it fires and event that will open the .Net application. Some other things I want to control are things like - I only want one instance of the child (.Net) application running at a time. Any suggestions or help would be appreciated. Regards, Wallace One thing I forgot to add is that when I launch the new application which is basically a form I want to be able to pass some data t ...Show All
.NET Development Sql Server Access Database
I am running windows home edition with my IDE and i need to get to my Veiw Designer..It says that i can go to View and right click and go to a sub menu called New view but i dont see that...I am connected throught MS Jet Databases...What should i do Sorry here is another helpful hint For anything other than SQL DB's you must be using 05 (I don't think the express version have this option either) to have that option available!!! ...Show All
Software Development for Windows Vista quartz.dll SP2 debug
Just wondering, last time I looked (when DirectShow was included with the DirectX SDK) the quartz debug dll was pre SP2, now in the Platform SDK it does not seem to exist at all. (I have the Windows Server 2003 SP1 SDK). Does a quartz debug dll exist in a later Platform SDK If not, is there going to be one Earlier I really liked the debug dll since I would get information about interfaces that was not released and everything like that. And now when I'm going through another development phase it would be really nice to have all that great functionality back. Using the SP1 version of the dll won't work since I need some SP2 features. By the w ...Show All
Visual FoxPro Thank you Microsoft
I just wanted to say thank you to microsoft for giving us this forum. I know there are a lot of great forums, but this gives us a chance to be a fly on the back of the couch in the living room at microsoft... This may well become my primary forum to turn to now when I have some real questions to throw out there... Agreed! I have previously used various combinations of newsgroups, universalthread & EE (experts-exchange). Each seems to have their various advantages/disadvantages. I really liked EE because you get a fast response and notification when a reply is posted but the VFP community there seems quite small. Perhaps becaus ...Show All
Visual Studio problem with SS utility
Hello I have ssexp.exe version 6.0c build 9447, and ss.exe 6.0c build 9350. In Dos prompt I type: ss Checkout $\sv201\db\dbcmd.cpp -IC -c- The file is checked out (I can see it when I hit F5 (refrash) at the UI VSS) The problem is that the attrib of the file stays read only. I type again ss Checkout $\sv201\db\dbcmd.cpp -IC -c- I get "You currently have file $/sv201/db/DBCMD.CPP checked out." But I can't edit the file cause it is still read only!!! Any hints Thanks OM Thanks a lot It was fast, kind and helpful :-) Oren ...Show All
Windows Forms Datagrid totals
Does someone knows how can i calculate the totals of a column in datagrid Hello dear. Here is the good Idea to calculate datagrid columns: Bound you datagrid to dataset or dataview. Than use the following command. Syntax: DirectCast (DataSet.Tables("Table").Compute("Sum(Field)", "FilterAsString", Integer ) Sample to sum Amount field of Orders Table where order number is 1: DirectCast (DataSet.Tables("Orders").Compute("Sum(Amount)", "OrID = 1", Integer ) Same as you can use Max(), Min(), Count functions Thanks ...Show All
Software Development for Windows Vista Could I use WWF in such scenario?
In many business application, some database records should be viewed and modified by many person by sequence. In general, at anytime there should be only one person to modify the record, after this person "commit" his modification, another person could go on to modify the record (on another machine in the network) and when the record is being modified, other person could only view the record. Sometimes the record may be withdrawn or rollbacked to previous node in the workflow and such rollback should be logged. A typical scenario is bug tracking application, or order form process system. I am wondering if I could use WWF in s ...Show All
Visual Studio Tools for Office VSTO and OLE Automation
Hi, I have a VSTO-enabled Excel spreadsheet which works just fine when I open it standalone. I use the VSTO Startup event to add some document actions. Now I am trying to open the spreadsheet programatically using the following code: Excel.Workbook wkb = _app.Workbooks.Open(strFileName, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing); _app.CommandBars["Task Pane"].Visible = false; The workgroup opens just fine in Excel but the Document Actions menu is missing. It looks like the Start ...Show All
Windows Forms how can i limit the textbox to only accept numbers... and no letters
how can i limit the textbox to only accept numbers... and no letters Thanks, Hi, use a MaskedTextBox and in the Mask property you can choose the format that it accepts. You could also add a key event handler to the normal TextBox and do the code to only accept numbers. ...Show All
Visual Studio Team System Is there a was to disable code analysis for an entire file?
The VS 2005 generated files for datasets generate numerous warning messages under code analysis. Suppressing these messages individually is counter-productive, since the next time the files are generated by VS 2005 the suppression messages are lost. Is there a "global" way to suppress messages for individual files, similar to the ModuleSuppression.cs technique I put a suggestion up for this a few days ago as well: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=964e49c1-9e2c-4997-b93f-8ff40ac7149f ...Show All
Visual C++ how to get errors for nonstandard ISO c++?
As I understand it, "for each" (as opposed to for_each() from STL) is not allowed in standard ISO C++, it's part of the new C++/CLI standard instead. So if I take the program below, it doesn't compile in Cormeau's compiler. However, it compiles in VC2005 even if I use /Za and do not use /clr. My question is, how can I prevent the compiler allowing new constructs like this My friend's compiler doesn't compile them! What switch am I missing to get regular standard C++ cl /EHsc /MDd /Za /W4 /c /Zi /TP .\scratch.cpp #include <list> #include <string> int main () { s td::list< int > foo; ...Show All
Visual Studio Team System Another event log error
Is there any reason I get this error in the System event log Event ID: 10016 User: NT AUTHORITY\NETWORK SERVICE The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {BA126AD1-2166-11D1-B1D0-00805FC1270E} to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool. The CLSID you referenced is the GUID for the Netman. These pages may offer some assistance: http://www.tek-tips.com/viewthread.cfm qid=1042889&page=10 htt ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vector3.Project() doesn't work.
I'm trying to project the location of a mesh in world space back to screen coords. I've been searching around with no real luck. I've seen people say that you should use Matrix.Identity instead of your world matrix, but that makes no difference for me at the moment. It's not that the code causes an error, it doesn't. It's just that after projecting pos, it remains almost identical to what it was, off by about 0.5. Considering my values are typically in the hundreds, this is a minor rounding error. I get the exact same results using Unproject(). I would have expected that projecting into 2D space would have removed the z component, but it ...Show All
Visual Studio Team System Logon with the object model in RC
In beta 3 I used a NetworkCreditials object to create a conenction to a TFS server. NetworkCredential objNetworkCredential = new NetworkCredential (strUserName, strUserPassword, strDomain); TeamFoundationServer objTFS = TeamFoundationServerFactory .GetServer(strVstsURL, objNetworkCredential); But in the RC version the factory uses a Microsoft.TeamFoundation.Client.ICredentialsProvider in the GetServer method. In Client applications I can used the UICredentialsProvider, but what about Server applications Is the only way to logon to a TFS server in server application to use the current users credentials &n ...Show All
Smart Device Development How to make a phone call on Device Emulator
I download the sample "CallEvents" and it work fine with PPC 2003 Emulator. "SendCallEvents" automaticly open the PPC 2003 Emulator and connected. How can I do to use this sample on WM 5.0 Emulator How to make a phone call on Device Emulator without wavecom I want to use virtual radio WM 5.0 Emulator ...Show All
