hazz's Q&A profile
Visual Studio Express Editions how to build?
Hi all, can u plz tell me how to write a c# program to do this.. -> I am having one VC++ application. -> This vc++ is application contains 2 projects. -> how to write a c# program to build that VC++ application. plz give me reply.. Thanks --hanu Hi, In C#, you may use System.Diagnostics.Process class to invoke cl.exe. Sample code: ProcessStartInfo info = new ProcessStartInfo (@"C:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.exe", "sourceCode.cpp"); Process.Start(info); Thanks ...Show All
Visual Basic Startup Items? & Hiding / showing forms?
Basicly I'am requesting this: How does one create a 2 forms that you can move back and forth from though each form your NOT using will hide, on top of this, how do I dispose of one form and then come back to the form as a new instance. My theory was that i use 3 classess two as forms and one as a main class, the main class controls the instances on what is shown and what is not, though im unable to adchieve this. Has anyone got some sample code that can help me out .... Please keep things simple and straight forwards im repeat im currently a rook at this language. Thank you. I've sent it to your emails address hotmail account, though im unsure if it will go through, ive zipped the whole project and possibly have trouble wi ...Show All
Visual Studio Team System Constant value in Comment field during check in from source control explorer
Tell please is it possible to have constant value in field "Comment" when I do "Check in pending changes" from source control explorer If by constant you mean it's always set to the same thing, then nothing out of the box does this. By default the comment will be whatever your last attempted checkin was, or it'll be from your last unshelved shelveset (if you also included the metadata in the unshelve). From the command-line you could have a script or whatever (or invoke it as an external tool) for "tf checkin /comment:foo" and then foo can be whatever you want. ...Show All
SQL Server Read CSV file - Save Columns into Rows
I want to import CSV file and convert columns into rows depending on Customer count(2nd record in each row of CSV file) and save to SQL table --CSV file format State, Customer_Count, Name_1, Total_1,Name_2, Total_2,Name_3, Total_3..can go upto 350 GA,2,'John Doe',14.00,'Roger Smith',15.00 FL,3,'John Doe',14.00,'Roger Smith',15.00,'Sally Cox',16.00 SC,5,'John Doe',14.00,'Roger Smith',15.00,'Sally Cox',16.00,'James Brown',17.00,'Rick Davis',18.00 Data in SQL table from csv file should look like this State,Name,Total GA,John Doe,14.00 GA,Roger Smith,15.00 FL,John Doe,14.00, FL,Roger Smith,15.00 FL,Sally Cox,16.00 I have multiple CSV files with millions of records. How can i achieve this using Integration Services or Bulk Data ...Show All
Windows Search Technologies Windows Safe Search Filter - Application Error
I use Windows Desktop Search and recently starting getting an error message. Details: WindowsSafeSearchFilter.exe - Application Error The exception unknown software exception (0x0eedfade) occured in the application at location 0x7c812a5b Followed by the error: Runtime error 217 007F0EEE What do these errors mean Paul, why should I have to uninstall something I had Adobe before you made me upgrade to V7... Why didn't MCFST make it compatible By the way didn't work....next suggestion............ ...Show All
Visual Studio 2008 (Pre-release) A TCP error (10049: The requested address is not valid in its context)
Hello, When I try to listen and use my computer's external ip I get the error "A TCP error (10049: The requested address is not valid in its context) occurred while listening on IP Endpoint=218.166.32.38:808. Here is the code: ServiceHost sh = new ServiceHost ( typeof ( MathService )); sh.AddServiceEndpoint( typeof ( IMath ), //contract type new NetTcpBinding() , //one of the built-in bindings "net.tcp://218.166.32.38/MathService/Ep1" ); //the endpoint's address //create and open the service runtime sh.Open(); System. Console .ReadLine(); As I previously suggested, get a dyndns service like https://www.dyndns.com/ ... set your router up to register with it every tim ...Show All
SQL Server External Activation and Receive Timeout
I have a set of service broker services setup that rely on external activation to process messages. I'm using the GotDotNet ExternalActivator, and it launches console applications that do the actual retrieval from the queues. The console applications are written to run continuously to avoid the cost of starting up .NET based console apps over and over again. I am observing very odd timing behavior. With the receive queues empty and the external activator configured to run a minimum and maximum of 5 instances, I observe in SQL Profiler that most of the receive operations finish in about the same amount of time as my WAITFOR command in my receive stored procedure. However, there is usually one receive command that consistently takes upwar ...Show All
Windows Forms hierarchical dataviewgrids
Hello All, I am new to VS 2005 and VB, my experience is Excel and Access VBA. I am trying to create three hierarchical datagridviews on a single form. In Access this is easily achieved using subforms. I have found several peices of code that show me how to set a dataset, add the data adapters, add the relationships and then bind the data sources. All very well and I am prepred to code along these lines if necessary. Since I will be using teh same data tables in a few places in teh Windows App I have already defined my dataset in the VS2005 Data Sources Window. Within that dataset the relationships between the three tables are defined. If I then drag and drop the individual tables from the datasources win ...Show All
Visual Studio Can Shapes that house/own other shapes?
Hi All, I am trying to figure out if this is even possible Can a shape own or be a compartment of other shapes Thanks This has been raised before. You might find the following post helpful: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=807805&SiteID=1 ...Show All
Visual Basic .bat to .VBS Conversion
Hi, im a novice with vbs scripts and was wondering if someone could give me a hand to convert this batch file to vbs script echo %username%, %computername%, %date%, %time% >>\\cse2k05\logons\%username%.txt It is a simple file that just logs when and where someone logson on our network to a textfile on one of our servers Thanks Dave. Here is some VB code...a little diff than vbs but it should give you an idea what you can do in VB: Dim UserName As String = Environment . UserName Dim ComputerName As String = Environment . MachineName Dim LogFIle As String = "\\cse2k05\logons\" & UserName & ".txt" Dim fTw As System . IO . TextWriter = My ...Show All
Visual Studio Team System Actual End Date and Actual Effort
Hello all, I have the requirement like this: 1] if Actual End Date entry has been made then the Actual Effort should become the mandatory field. 2] Also, I am having one CUSTOM work item in which you can link TASK, BUG etc., if actual end date has been made in CUSTOM workitem, all the associated tasks, bug etc. which will have the effort hrs should be summed and rolled up in the CUSTOM work item in Actual Efforts. Please help me out in this regard. Thanks, Kathir Kathir, You can edit existing work item types and create your own to do what you've asked. If you download the "Team System Administrator's Guide" and look at the topic "Customizing Work Item Types" it sho ...Show All
Visual Studio 2008 (Pre-release) Routed Commands (bis)
Hi I tried to implement a custom routed command and referring to the thread "Routed Commands", mine doesn't work. Here are the code snippets: namespace CommandTesting { public partial class Window1 { public static RoutedCommand customCommand; public Window1() { this .InitializeComponent(); customCommand = new RoutedCommand ( "custom" , GetType()); CommandBindings.Add( new CommandBinding (customCommand, CustomOnExecute)); } private void CustomOnExecute( object sender, ExecutedRoutedEventArgs args) { MessageBox .Show( "help!!!" ); } } } < Mapping XmlNamespace="Local" ClrNamespace="CommandTestin ...Show All
Visual C++ error LNK2001
Hi, (I saw the post on same subject but it seems to be a little different. so I'll use some word from that post!) There is a project earlier written in VC++ 6.0. I opened the same project in VS. NET 2005 and I am trying to compile. The code compiles properly (with couple of warnings) but while linking I am getting unresolved external symbol errors like this: The linker seems to have problem with seeing .obj from files in program (which are in the debug directory). It doesn't seem that the /Zl switch or the /NODEFAULTLIB are on. 1>Linking... 1>Utm.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zone.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zones.obj ...Show All
Smart Device Development Link error 2019 - c++ VStudio 2005 - WM Smartphone 5.0 - ARMV4I
Hi all, I' have a header file sctp.h and the sctp.lib (linked in C) In my proyect, when i try to link this library, a get this error: Error 1 error LNK2019: unresolved external symbol sctp_initLibrary referenced in function wmain testsctcp.obj I also include this library under: Linker -> Input -> Additional Dependencies: sctp.lib and, the header file (.h) has the: #ifdef __cplusplus extern "C" { #endif definition. QUESTION: What's wrong here Thanks in advantage, for any help. Check against the build log, Does your build log has the linked library as one of the dependent files ALso find out from dumpbin utility if the funstion is indeed exported by the referenced library. Th ...Show All
Windows Forms IComponentChangeService.ComponentChanged doesn't fire
Hey. We have a little problem regarding <subj>: we have a DesignerSurface and a propertyGrid to show the data on a selectedObject (IComponents, as the case may be). Upon changing a property value in the PropGrid - the IComponentChangeService.ComponentChanged event fires, but when changing a property normally in code (either from glyphs or from "external" code) - the event doesn't fire. Is this by design I saw in the reflector that normal (internal) glyphs do not change properties directly but call on a PropertyDescriptor.SetValue(). Is this the only way to get this to work (I should mention that I talk about properties of existing classes, and I cannot add the RefreshPropertiesAttribute hardcoded, or (as it ...Show All
