Virmundi's Q&A profile
Visual C++ How to define a class in C++ (MFC)?
I have a dialog based MFC application and I need a dynamic array whos type is a certain class. I tried to enter a prototype in dialog's header file and class definition in dialog source file but it didn't work. Then I tried with Project->Add Class->Generic C++ Class and again with no success. I continually get some of these messages: Error C2501 and Error C2059 ..... It would be pretty neat if I could put both prototype and class definition in the dialog source file. Your header needs to include the header for the class you're putting in your collection. Then it should just be: #inc ...Show All
Windows Forms Inheritance Base Form lock
I am using a base form which has menu and toolbar in a windows forms application. I changed modifier property all the toolbar items and menu items to protected. The other forms inherits the base form. I can see the controls on my inherited form but can't click on any button on toolbar or menu and neither I can write code for events for the controls on base form. It used to work on Beta1; now the inherited form shows the small lock on the controls of base form. I can write code for the events of toolbar/menu and code compiles but I can't double-click on the control to write code. I also tried with modifier as public but s ...Show All
Visual C# Regarding Dundas Guage for .NET
I have Dundas Gauge for .NET Version 1.6 [for Visual Studio 2005 ] can I use it with .NET 2003 No you can directly use this .NET 2.0 dll in your .NET 1.1 project. You have to upsize your 2003 project to 2005 or use a older Dundag Gauge control. You have license for the 2005 version so you may use the 2003 version as well as far as i know. ...Show All
Visual Studio Team System Test run name and test list
Hello All, I have some tests list like Release 1 Iteration 1 TU (stands for Unit Tests) TR (stands for Acceptance Tests) Iteration 2 Release 2 ... I would like to run first all my Unit Tests and then all my Acceptance Tests. If I reorder my tests lists to have something like TU Release 1 Iteration 1 Iteration 2 TR Release 1 Iteration 1 Iteration 2 I then can reference my tests like <MetaDataFile Include="$(SolutionRoot)\DH2Solution\DH2Solution.vsmdi">   ...Show All
Visual Studio ReportViewer data binding (NOT design time) in ASP.Net, please help
I am trying to bind a report to a datatable (or dataset) in asp.net. The only way I can see is via an ObjectDataSource (unlike windows where I can bind direct to the datatable). Is this the case, is it not possible to bind direct to the table or dataset Assuming we have to go through an ObjectDataSource, I have succeeded in building a working example using design time binding of the report to the ObjectDataSource, and adding a handler to the ObjectCreating event to put my datatable into its object data source property (see snippet1). However if I try to create the ObjectDataSource programatically (see snippet2) then the report doesnt ...Show All
Visual C++ Application hangs, when I click on some controls on the ActiveX
Hi, I will be displaying on C# activeX control on one VC++ 6.0 Client. In the C# activeX control, I will be adding one more VC++ 6.0 developed activex control for the System.Windows.Forms.UserControl. Here the display and all is fine. When I click on some buttons (belogs VC++ 6.0 developed activeX control), it is working fine also. But, when I click on some buttons(belogs VC++ 6.0 developed activeX control) like it is hanging. The stack is as shown below CWnd::GetTopWindow() line 257 + 23 bytes _AfxNextControl(CWnd * 0x0012f5f4 {CDTMGUICtrlWnd hWnd= }, CWnd * 0x00000000 {CWnd hWnd= }, unsigned int 0) line 90 + 8 bytes _AfxNe ...Show All
Visual C# running an application from resources
Hi i embbed a application as resource.. can i run that app from the resources.. or how can i now extract and put it some where that app and run it.. please post some sample code Then I believe that you could convert a stream of the embedded resource into a byte array and load it up into an assembly as I suggested. Also, you always have the option of taking the stream and storing it as a physical file and executing it directly. But I think the former choice is less ugly. ...Show All
Visual Studio Express Editions c# pointers
A need help and hope someone here can help me!! A long time ago I used c++ and used pointer but now moved over to c# and havent programmed for a while! my problem is: I have a picturebox that contains a number of rich text boxes (dont ask why!! :D ) what I want to do is enable bold on all of the richtextboxes with only using reference to the picture box (called pbxContainer ) this is all the code I have written before a blank: private void bold( PictureBox pbx) { int count = 0; while (pbx.Controls.Count > count) { //need code here count++ } } what I wish the while loop to do is go th ...Show All
.NET Development consume coldfusion web service in asp.net
Hi I need consume a coldfusion web service in asp.net. anyone has done this before a code sample will be a great help! thanks in advance! That's correct. The WSDL file describes everything about the web service, location, protocols supported, methods, types, etc. As long as the cold fusion web service exposes a WSDL file then your .NET client can add a web reference (alternatively you could use wsdl.exe tool) to this WSDL file, to build a proxy class, and then from your .NET application you can invoke the web service just like any other classes. Post a reply if you run into any problem ...Show All
Visual C++ Comparing files
I wondered how antivirus programs use the virus definitions, and what is a "virus definition" because as you know a simple antivirus program is about 15MB but it supports thousands of viruses. How is that accomplished ___Michael___ wrote: Thank you. But can you tell me how they define which bytes are unique. And is it that possible to be done with other file types like *.mp3, *.avi etc. Viral signatures are obtained typically using reverse engineering techniques. The following links/docs may help :- http://home.arcor.de/idapalace/papers/bagle_analysis_v.1.0.pdf http://www.zeltser.com/reverse-malware-paper/ ...Show All
SQL Server Run Variable in DataReader Source?
Hi all, I am trying to have a DataReader Source that can run a variable which I used to store the SQL statement. For example, I have: Variable #1 Variable name: tablename Data Type: string Value: "name_of_table" Variable #2 Variable name: sql_stmt Data Type: string Value: "SELECT * FROM " + @tablename I want to use DataReader Source to run Variable #2 in the SqlCommand that connects to an ODBC connection. If it is possible by any way, please let me know. Thanks in advance. Daren Use a property expression on the SqlCommand of the Dat ...Show All
Visual Studio Express Editions Visual Studio Express products crashes on ico and jpg files
Why do visual express c++ and c# ide crash when I click on ico or jpg files at the solution explorer frame Express C++ editor does not have a built-in Win32 resource editor - the only thing I can think of is that the crashing is a bug (they didn't handle the missing resource editor proprerly). You might want to file it as a bug at the product feedback center. ...Show All
Visual C# How to take the difference of two time
Hi all, I would like to take the difference of two time and if it is more than 30 minutes, I will take some action. I had manage to convert the time to string as follow dt1="2006/03/20 23:55" dt2="2006/04/10 10:55" May I know how to take the difference (dt2-dt1) and check if the difference is more than 30 minutes Please help A complete solution could be (you have to treat exceptions in the conversion also): string l_sDate1 = "2006/03/20 22:00"; string l_sDate2 = "2006/03/20 23:00"; DateTime l_objDate1 = DateTime.Parse(l_sD ...Show All
Software Development for Windows Vista Error message in state machine workflow. HELP!
This message Error appears when i am trying to drag some activities inside an eventDrivenActivity: Multiple child activity inside the event driven activity 'eventdrivenActivity' implement the System.workflow.activities.IeventA What is it What can I do about it Hi! Is this happens with any activity or some specific activities I want to reproduce this problem, can you describe a little more what are you doing ...Show All
Visual Studio Team System Error Report 28004. Error service acount is not valid
Hi Everybody!! I hope Some could Help me. I got always this Error message at the end of installation. What this means How I can fix it I'm going to need more information in order to help you. It would appear that you got this error while initializing some of the security pieces. Can you tell me if you were doing a 1 or 2 box installation. If 1 box, was this domain or workgroup And, the TFSService account -- was this a local account or a domain account What permissions are assigned to this account If you can, look in your %temp% directory for the VSMsi*.txt file. This is the setup MSI log. Look thru this for the 28004 error, an ...Show All
