elala's Q&A profile
Visual C# Who can convert the code to C# completely?
Somebody have convert the FotoVision to C#, the code below is a part, but there are still some VB.net code, such as object vector = Interaction.CreateObject(Consts.VectorProgId, ""); Who can convert the code to C# completely thanks! using System.Diagnostics; using Microsoft.VisualBasic; using System; using System.Windows.Forms; using System.Drawing; using System.Collections; // Uses the XP Photo Printing Wizard to print one or more photos. // The implementation of the photo wizard is in photowiz.dll but the // interface is not exposed. Instead, Microsoft provides the Windows // Image Acquisition Library (WIA). // // Use late binding inc ...Show All
Visual C++ MFC newbee problems to create worker thread
I am new to MFC. I am just trying understand threading. I tried to create a worker thread, and I get a linker error when I compile the code. in CMFCThreadingDlg.cpp I put... void CMFCThreadingDlg::OnBnClickedBtnStart() { HANDLE hThread; hThread = AfxBeginThread(foo, this ); } static UINT foo(LPVOID lParam) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); return 0; } I have put the foo prototype on the header file. I get the following error: Error 1 error LNK2019: unresolved external symbol "private: static unsigned int __cdecl CMFCThreadingDlg::foo(void *)" ( foo@CMFCThreadingD ...Show All
Windows Forms How to bind a DataGridViewComboBoxColumn to an object rather than a value!
Hi. I have this custom Business Object 'OrderDetail' that have those fileds:Id(int),Price(decimal),Quantity(decimal), and Product(is a custom business object too.) when a bind OrderDetails to a DataGridView(where OrderDetails is a collection of OrderDetail), i want the user to be able to choose a product from a DataGridViewComboBoxColumn that in turn, have it's DataSource bounded to the Products list, and the ValueMember is nothing, because i want the Selected value to be a Product, and not the Id of the Product, so it can set the Product property of OrderDetails properly. but i have an exception that say that i can't convert from Stri ...Show All
Windows Forms Complex Wizard Style Application - State?
Hi, I've been tasked to develop a large Wizard style application and I'm completly confused by the Windows Forms architecture and specifically state. I am a highly experienced ASP.NET developer and am used to the concept of working in a Stateless environment, however Windows Forms has cofused me. If I want to pass objects between forms I can currently see several&nbs ...Show All
Visual C# Show Console
I want to ask how I can show results or something in console while I am usinf windows application or Forms You can use the Windows API to create and destroy a console window: public static class MyConsole { public static int Create() { if ( AllocConsole() ) return 0 ; else return Marshal.GetLastWin32Error(); } & ...Show All
Visual Studio Team System How to Create Tests Lists
I wanted to create a build that would run some tests. I select Run Test and see vsmdi file in the dropdown. But there are no test lists to run. I have developer version of VSTS is there a way for me to create test lists. Thank you, Shimon. In theory, the answer is "Get the Test Edition or Team Suite". Test lists are created in the vsmdi using a tool named Test Manager which is included in the aforementioned Team System editions. The VSMDI file is just an XML file, so in theory you could manually create it. At a glance the schema is simple enough, but the files include some GUIDs a ...Show All
.NET Development How to force a UI culture for a .NET app?
I have a program whose default UI culture is German. I also have satellite dlls with English and Catalan resources. The program shall run in Spain with Catalan UI. We have an English Windows XP with German and Spanish MUI packages installed, and English as well as German UI work fine from our program when selected as UI languages in Windows respectively. But how can I get it to show the Catalan UI When I turn on Spanish Windows UI I get the German UI (as it is the default) in our program and I cannot install the Catalan LIP as it requires a native Spanisch Windows XP as a requirement for installation which we don't have. As our customer in S ...Show All
Windows Forms How to Set Quick Start Tutorial
Hello All, I want to learn about Windows Forms 2.0. Can anybody explain me how i can set Windows Forms 2.0 Quick Start Tutorials on My local machine.. Thanks in Advance Shail Hello, finally I done it. Steps are like this. 1. Install .NET 2.0 Framework SDK 2. Choose Start-> Programs -> MicroSoft .NET Framework SDK v2.0 -> Quickstart Tutorials 3. In the Web Page shown click the link " Set up the QuickStarts " 4. The follow the instructions after that Note That you require Admininstrative Privilages to install, as the setup programes require to update the IIS Script map, Install Database and many ot ...Show All
Visual Studio Team System Problem with recording web pages with user control
I have a web page in .net 2.0/C# that includes a user control, which in turn includes a form with several fields and a submit button. The submit button is handled by an onclick handler that does database inserts, etc. I am using Visual Studio 2005 RTM (details at the end of this message.) I record the page in question, entering values in the form fields repeastedly, but when I play back the recording I get failures with the error 'context parameter '$HIDDEN1.EVENTTARGET' not found in the test context. Specifically, the sequence is: 1- load the page in thre recording browser, form comes up, OK. This action ...Show All
.NET Development Compile error
Hello Paul, my name is Mike Clark and I am a software developer. I had a question about an execution error, when I try to execute my project. I code in VB .Net (using the earlier version of Visual Studios .Net not the new 2005 version). Anyway I have successfully compiled the project on the computer it is being developed on, but when I try to execute it on a different computer, I get the following error. "Application has generated an exception that could not be handled. Process id=0x844(2116), Thread id=0x4b8(1208). Click OK to terminate the application. Click CANCEL to debug the application." I've ran this program on this computer ...Show All
Windows Forms drawing over a panel
I'm trying to draw a simple graph using the "drawline" command. I have no problems drawing on a form, but I am unable to draw over a panel or a tab control. Ideally I would like to have a tab control that displays different graphs depending on which tab is selected. Can anyone give me some advise on where to look or any sample code on how to draw over tab controls and panels Thank you Either derive from panel and override the OnPaint method or respond to the Paint event. You will receive a PaintEventArgs as parameter. Use the Graphics property to paint the line. ...Show All
.NET Development XSDObjectGenerator: XSD attributes in Restrictionlists with illegal characters for C# tokens are not removed
Hi All, XSD attributes in Restrictionlists with illegal characters for C# tokens are not removed. example: - < xs:attribute name =" Type " use =" required " > - < xs:simpleType > - < xs:restriction base =" xs:string " > < xs:enumeration value =" COM " /> < xs:enumeration value =" Java " /> &nb ...Show All
SQL Server DeleteSubscription leaves job in SQL Server
Has anyone else noticed that if you create a timed subscription using the web service and then delete it using the DeleteSubscription method, there is a job (id'ed by a guid) left in SQL Server Jobs Consequently we now have hundres of "orphaned" jobs in our database :-( A bit more investigation appears to reveal this: I use data driven subscriptions and create them using CreateDataDrivenSubscription. Therefore I retrieve them using GetDataDrivenSubscriptionProperties. The matchData returned does not contain a scheduleId. Is that correct Well calling ListSchedules returns an empty row, i ...Show All
Visual Basic class library
Could some who is already familiar with the developement environment please tell me if it is possible to build class libraries as a compiled dll file, or is this restricted to the full versions like 2003 was Thanks for any help.. I currently have a universal subscription and use the pro version of 05, however, i have previously installed the "Standard" version 03 and did infact try to create a DLL...can't from within the environment...so i tried opening a DLL project created with 03 pro in the standard and it would not even open! Personally for any one who is serious about programming, it is just one more re ...Show All
Visual Basic Saving User Settings
ok, so far my app allows people to choose a prog to add to the menu, however, closing an opening the prog resets everythin, how do i save so far this is how my app works: People add a program to the menu using openfiledialog, thats fine once they choose a program in openfiledialog, the filepath appears in textbox1, the menu item has the following code in it: process.star (textbox1.text) so it reads the filepath in textbox1 and then initiates the program A friend told me that u then had to put this into the form1_load: Dim app_path As String Dim nFilenum As Integer nFilenum = Free ...Show All
