LelandDurrette's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. combine c++ and c#
Hi everybody, I wish to know, if it's possible to combine c++ and c#. I mean, if I create a DirectX device using c++, could I draw it in a c# window. I'm not so confortable with c# and I 'd like to develop a 3D modeler based on c++ with an c# interface (I suppose the easiest way to create fancy user interface). Thanks for your help Ok , thanks a lot but what is the greatest solution to keep speed advantage from c++ I guess, it's to make a c++ dll (last solutions ) Am I wrong ...Show All
SQL Server Pass a parameter to SSIS from .NET App
I'd like to pass a parameter value from a ASP.NET application to an SSIS package. My SSIS package pulls data from SQL and loads it a flat file based on the parameter value. Is this possible Very much possible. Check out the example @ http://www.codeproject.com/useritems/CallSSISFromCSharp.asp More details on "Loading and Running a Package Programmatically " @ http://msdn2.microsoft.com/en-us/library/ms136090.aspx Thanks, Loonysan ...Show All
Windows Forms Problem validating a bound text control
I have a text box that is bound to a class property. I want to do the validation in the Validating handler of the text box. However if I set the e.cancel = true in the case of invalid data, the validated handler is not called which is correct, but the data is passed over to the bound control. This should not happen. The msdn help at http://msdn2.microsoft.com/en-us/library/ms229603(VS.80).aspx States the following. "When you use data binding, the data in your control is synchronized with the data source during execution of the Validating event. If you cancel the Validating event, the data will not be synchronized with the data source." ------------------------- So it should work as I expected. Here is the test c ...Show All
Visual Studio Express Editions Can some one tell me how to find the default icon please.
Hello. Can some one tell tell me how to show the default icon in a ListView box please Av only bean learning programming about 3 or 4 weeks now, and am stuck on the this. Am making a cleaning program, the files and the path show in the Listview box, but I want the default icon to show as well. Your help will be very much apresiated. Hears wishing every one a merry Christmas and a happy new Year, and may 2007 be a good year for you all. Thank you Download example: http://users.adelphia.net/~gcumbia/Listview%20with%20icons.zip ...Show All
Internet Explorer Development Cannot print frames if a frame contains non-HTML
I have found with IE7 that if you have multiple frames and one of the frames contains non-HTML (e.g., pdf, doc), you cannot print the frame that has the non-HTML in it. This worked in IE6. For pdf files in the frame, nothing prints. For doc files in the frame you get output indicating it cannot be printed as laid out. Hopefully Microsoft can fix this bug. I would not need to have a frame with Word in it if Microsoft supported the widows and orphans styles but I have some paragraphs that I need to keep together and use Word to print as it can handle orphans and widows. We are experiencing this problem with our clients where we have quite a few documents that are in Rich Text Format. This has greatly inconve ...Show All
SQL Server Number of Dataset per Report
Hi I am creating this report which requires 50 datasets to be created. I was just wondering Is there any recommended number of dataset per report Or Number of controls per report I really dont want to create this big number of dataset per report but sometimes its difficult to explain client. Regards Amit There is not hard limit on the number of dataset or controls per report. It is possible that you might see problems if you have very complex report or if the dataset is very large at runtime depending on what kind of hardware you have (e.g. memory) though. ...Show All
.NET Development How can a hidden app capture keystrokes when it is not in focus?
I'd like to create an application that is hidden in the taskbar. It's purpose is to capture keystrokes to perform specific scripted actions. How can this be done without having a process that uses large amounts of system resources Use the SetWindowsHookEx() API. You'll find lots of examples both on these forums as well on the Internet. ...Show All
Windows Forms Problem with ClickOnce and mandatory profile
Hi, I'm having problem running a ClickOnce application using mandatory user profile. I'm getting these error messages: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid=668 ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://192.168.0.2/ClickViewPlayerLite/ClickViewPlayerLite_1_0_0_2.application videoid= ...Show All
Visual Basic Problem in Writing Data in MSWord in vb6.0
Hi all, I want to prepare a report in vb with the help of MSWord.I am drawing a table at run time in word but there are 31 columns in table ,only 13 or 14 columns are displayed and rest are cutoff from the page. Is there any way by which i can control the the display of table i.e. 10 columns are displayed on first page ,next 10 are displayed on second page and so on. Waiting for positive reply. Its urgent, Thanks R.K. These forums are for VB.NET and there are better places to find answers for older versions of VB. Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vb.general.discussion&lang=en&cr=US or the VB6 resource ce ...Show All
SQL Server SQLServer 2000 cluster Metadata
Hi Is there any TSQL query/function/procedure that would return the metadata about the SQLServer cluster Is there any way to get information about the application cluster I need to write a program to get the information about the SQLServer application cluster. I need to get information like participating nodes in the application cluster. Any information regarding this will be useful. Usage of other programming languages is also fine. Is this possible through programming !!! thanks Vijay Hi, The only TSQL cluster info metadata I know about is fn_virtualservernodes() fn_servershareddrives() Otherwise, I believe you will need to use the Cluster API that the other posted referenced. C ...Show All
Visual Basic haw make data transfer between modems, using tapi3lib.
hello, i'm using tapi3lib i make the connection between my modem and one phone, but ..after connect, i don't know haw to transfer data i use the folow code, for make connection: If Not (TestCall Is Nothing ) Then MsgBox("Previous Call hasn't been cleared yet.") Exit Sub End If If Not (TestTAPI Is Nothing ) Then TestTAPI.Shutdown() End If TestTAPI = CreateObject("TAPI.TAPI.1") InitTAPI() Register() PhoneNumber = TextBox54.Text Print("Dialing " + PhoneNumber, vbCrLf) TestCall = FoundAddress.CreateCall(PhoneNumber, lAddressType, lMediaTypes) If FoundAddress.State.AS_INSERVICE Then MsgBox("connected") End If Di ...Show All
Visual Studio Tools for Office Document Level Customization - Excel
Hi, This is with reference to my previous thread.... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=585932&SiteID=1 (Regarding the bug mentioned by Cindy in the replies, I got a confirmation from Microsoft VSTO Support regarding the bug you had mentioned. They have confirmed the bug and have sorted the same and would be working fine with the Beta2 Tr version which would be shipped out shortly.) A couple of questions regarding the above topic (document level customization)... 1. Using the workbook level customization which is really a good suited option for me, I would like to add a usercontrol form on a CustomTaskPane. However, the CustomTaskPane is not available under the ThisWorkbook class. It appears only unde ...Show All
Visual Studio Tools for Office Depolyment on Office XP is not working
i created a simple excel solution and tried to Depoly on machine running Office XP but is not working. i have also installed PIA's for office xp but it is not working. can somebody help in this. The "hooks" required for VSTO solutions are only available in certain versions of Office 2003. VSTO cannot be used with any earlier Office versions because the required functionality was not in those versions. These is stated quite clearly in the VSTO documentation. You can create standard COM Add-ins for earlier versions of Office, but of course you can use only those features available in those versions. You should ALWAYS test against the target version of Office. Certainly NEVER against an&nbs ...Show All
.NET Development how to trigger a mainframe job using vb.net
Hi, We are planning to use dotnet instead of J2EE in our project. One question that our development team raised "How to trigger a mainframe job from C# or VB.Net" thnks in advance siva Hi, It depends on the mainframe, maybe there is a library for this. Look at this link: http://www.csharphelp.com/archives/archive112.html If you don't find a library you will have to write the mainframe adapter yourself. Charles ...Show All
Visual Studio Express Editions Custom calendar control - how to populate?
I want to make a custom calendar control similar to the MonthCalendar control, but using a DataGridView instead, so that I can set the background color for individual days. How can I populate my DGV with dates ie. where do I get date info from Can someone show me a quick code sample that will do this Thanks... Hi, Please go through the following link. Hope this will be a good start. http://msdn2.microsoft.com/en-us/library/ms180996.aspx Also check this link: http://msdn2.microsoft.com/en-us/library/system.windows.forms.idatagridvieweditingcontrol.aspx thank you, bhanu. ...Show All
