_vihang's Q&A profile
Visual C++ Problem Adding or deleting classes
I have upgraded a project from VS2003 to VS2005. Modified database structure, added and modified classes. Now, I can not add or delete any classes. I received Link error LNK2001, LNk2019 and LNK 1120. Total 74 link error messages to data. Error message sample: NewCertificate.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CData::GetOwnerList(int,class CListT<struct tagOWNER> &)" ( GetOwnerList@CData@@SAHHAAV $CListT@UtagOWNER@@@@@Z) The CData is my own class. The weird thing is after I add a class and before I close the solution, the project works fine, doesn't get any linking error. O ...Show All
SQL Server Running multithreaded component inside the Script Task
Hi all, I have a class that utilizes the ThreadPool together with a ManualResetEvent to queue up work items (in this case, FTP downloads) and then waits until all work items have completed before proceeding. I then use this class inside a Script Component. However, I am getting a "remote procedure call failed" every single time the FTP component starts a download. This same class works perfectly in a WinForm app that I created as a test harness. Also, the synchronized version of the FTP download component works perfectly well from the Script Task -- it's only when I "wrap" the synchronous version in a threaded versi ...Show All
Windows Forms DataBind Combobox with "Select One" as first item
I have two comboboxes that are bound to datatables in a dataset. The datatables have a relationship so when the user selects and item from the first combobox the items in the second combobox are automatically filtered. What is the best way to add a "Select One" item to each combobox I know I can't modify the Items collection if ...Show All
Windows Forms Filtering a ComboBoxColumn based on another ComboBoxColumn Selection.
Hi guys, I m trying to Filter a Child ComboBox using another combobox value as filter, it is kinda working but i get an exception when i do the following: If i select a State (that is my first combobox) then select a City (on the second) it works fine, but if i change the value of the state to a value that doesnt have any cities, i keep getting the following exception poping up: System.ArgumentException: DataGridViewComboBoxCell Value is not valid Here is my code, anyone could help me fixing this My Objects: private DataGridViewComboBoxCell dgcb; private DataView dv; private DataGridViewComboBoxColumn estado; private DataGridVie ...Show All
.NET Development OnLoad or some initialization for webservices
I expose a few webmethods. I wish to pre-initialize data BEFORE anyone calls the webmethods. Some initialization needs to be done, some stuff thrown in cache, etc. In a Windows app, I have OnLoad, in a website I have Application_Start in the Global.asax but what can one do when JUST webmethods. Is there some other 'place' I can initialize my data BEFORE any webmethods are called you do know that IIS and .Net may re-cycle your app many times a day I do not think your code will be run at all untill a request comes in. so perhaps you are looking at this the wrong way ...Show All
Windows Forms Crystal Report 9 DOS Printing
Hi in my application i want option for DOS network printing a crystal report. i designed my crystal report with dos supporting fonts... is it possible to export crystal report directly to PRN - formatted text (im using Crystal decisions Crystal report 9 - .Net 2003).... thanks Raju hi... see the code below Regards ===================================================== Public Function CreateExcelFile() As Boolean Dim objExcel As Excel.Application Dim objWorkbook As Excel.Workbook Dim objSheet As Excel.Worksheet Dim objRange As Excel.Range Dim strTmpfile As String ' S ...Show All
Visual Studio Express Editions VC++ .exe file is not working on other machine
Hi All, I have created an .exe file using vc++ 2005 but when i copy this file to some other windows machine its not working. How can I make my exe of project portable on any windows machine regards, Thank You very much. *^^* The file is working. &nbs ...Show All
Visual C# Covert String or Object to Hex
Hello Everyone, I have something like this .... object var = property.Value; I want to change var to hex, how can I do it.... In C or C++ we use to do something printf("%x, var)....does the trick.... I'm sure will be really simple, I'm not doing something correct..... Thanks, Harsimrat In C#, it's string.Format, and items to format are specified as {0}, {1}, etc. There are also format specifiers, including ones for hex. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconformattingtypes.asp ...Show All
Visual Studio Express Editions Visual Express and Workflow Foundation
Will Workflow Foundation work with VS Express 2005. Kitty Hi Kitty, Unfortunately, no. The designer (the graphical representation of the workflow) that Windows Workflow Foundation provides will not work with Visual Studio Express. However, you can certainly use the underlying code and markup to author workflows. Check out the Windows Workflow Foundation forums answers for any workflow related questions http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=122 Dennis ...Show All
Visual Studio Express Editions Print page
Can anyone help me print to a page Is there a way of setting a print area of a userform say i only want to print the left had side of the usferform Is there also a way to print sections of code onto this useform at a particular point/location Yes you can. There is a C# article on codeproject that should be understandable for VB.NET developers. You can covert the example code using a converting tool like this one. ...Show All
Windows Forms Equivalent to VCL's DataModule
In Borland's VCL ( Visual Component Library ), one can use a DataModule into which one can drop non-visual components from the RAD designer. The DataModule is a design-time visual container for non-GUI components, which is never seen visually at run-time as a GUI control. An application or Dll can have any number of datamodules in it, each with its own name. One can also manually add any non-GUI data to any particular DataModule. For an application at run-time, datamodule instances for each visual datamodule are automatically created just like forms, while for a Dll at run-time it is the programmer's responsibility to create datamodule insta ...Show All
Visual Studio Express Editions Dataset Question
Hi, I created a form and setup a Split Container - the left pane being a Tree View (with some top level nodes being topics: Memory, Operating System, Hard Drives, etc). The right pane contains a listbox. Is it possible to use a dataset (with no DB connection) to hold all my information in memory Then I'd like to be able to query the dataset to fill the listbox with the info I need when a user click on a node in the left pane. I've tried it, but I'm having some problems understanding how to do the dataset. If I create the dataset in design mode, I can create a table and add columns. But I seem to have problems accessing it from my c ...Show All
Windows Forms Open Child form
Hello all, I have 3 simple forms: 1. Main form (MDI Container) 2. Search Form (Child) 3. Record Form (Child) I want to open the Record Form using code that is in the Search Form. And both of them will be MDI children to the Main form. Any ideas Thanks in advance. Richard M. In Search form write this code RecordForm rForm = new RecordForm; rForm.MdiParent=th ...Show All
Architecture the best orm for .net?
I would like to know your favorites, i am looking for a free one and with caching capabilities. well I would say to look at the following and weight their pros/cons with your requirements nhibernate gentle.net (2.0 is looking great is is completely based around concepts put forward in DDD by eric evans) wilson O/R (its not free but it has a minimal price, $50 if I remember correctly that includes source) A nice thing about this particular implementation is the sproc support. All come up within the first 5 pages on a google search, let me know if you have trouble finding any of them. Cheers, Greg ...Show All
Visual Studio 2008 (Pre-release) Style.Triggers and Template.Triggers
Hello, I'm trying to customize the appearance of the selected listbox item. My problem is that the triggers defined in ControlTemplate.Triggers only seem to respond to EventTriggers and therefore don't know when the the listbox item 'IsSelected'. Conversely triggers defined under Style.Triggers understand the 'IsSelected' Trigger but can't get access to any of the UI elements I want to change. Hopefully the following snippet will make this slightly clearer: <Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}"> <Style.Triggers> <Trigger Property="IsSelected" Value="Tr ...Show All
