Wilk06's Q&A profile
Visual C++ SerialPort Class Implementation
Help I am a new user of Visual studio 2005 i used Visual studio 6 before and i have to say that i don't understand some part of this new version. anyway i'd like to use the class SerialPort (i believe it is available but maybe not) Is it possible to use it If it is, what header or library do i have to declare in order to use it PS: Why when the help is filtered to VC++ Only VB JAVA C# examples Come up, is that me becoming mad The SerialPort class belongs to the :NET Framework. If you want to program managed code you can use it. For unmanageged code use http://www.naughter.com/serialport.html ...Show All
Visual Studio Help using the Visual Studio DIA SDK for debugging...
I’m trying to provide myself a call stack dump whenever my code causes an exception, and I want to use the DIA SDK rather than ImageHlp API. Ie I want to see the callstack when my program crashes, rather like the callstack is shown in VisualStudio, except I’m not using an out of process debugger – I want to do this in my own app. The DIA SDK provides some COM interfaces to support what I want to do, but unfortunately there is no documentation. All I know is that IDiaStackWalkerHelper and IDiaStackWalkFrame must be implemented by the client. As to exactly how, remains a mystery! And this is where you step in! Let m ...Show All
Visual Studio Team System TestTools.LoadTesting source samples
Hi I am trying to get a feel for some of the customization possible in unit tests. The MSDN2 doco on TestTools.LoadTesting is fairly sparse on examples while TestTools.UnitTesting fares better. >> Does someone know of a URL with some good examples The general drift would be customized attributes before the unit test which needed special handling when the test was run . Many thanks Hi Greg, I am not sure that u have visited this link or not, it has sample code for creating custom attribute for unit test. http://msdn2.microsoft.com/en-us/library/84c42s56.aspx#cpconcustomattr ...Show All
Visual C++ using GetLastInputInfo
Hi i have applcation where i need to detect how much time system has remained idle. Now problem is that i am using VC7 in .net and XP as OS.....i am using the following code #include <windows.h> #include <winbase.h> #include <stdio.h> #include <winuser.h> using namespace std; void main() { LASTINPUTINFO lastInput; lastInput.cbSize = sizeof (LASTINPUTINFO); BOOL success = GetLastInputInfo(&lastInput); if(!success) { DWORD err=GetLastError(); // report error, throw exception, etc } DWORD lastInputTime = lastInput.dwTime; } Now when i build this pro ...Show All
SQL Server T-SQL Mental Logic Block
SELECT src_terrier.Areacode, src_terrier.siteref, src_terrier.estatename, src_terrier.Securitised, src_terrier.unitref, src_terrier.unittype, src_terrier.unittype_count, src_terrier.tenantname, src_terrier.tenantstatus, src_terrier.tenantstatus_count, src_terrier.unitstatus, src_terrier.unitstatus_count, src_terrier.floortotal, src_terrier.floortotocc, src_terrier.initialvacarea, src_terrier.initialvacnet, src_terrier.TotalRent, src_terrier.NetRent, src_terrier.FinalRtLsincSC, src_terrier.ErvTot, src_terrier.tenancyterm, src_terrier.landact, src_terrier.datadate, src_div_mgr.div_mgr, src_portfolio_mgr.portfolio_mgr, src_centre_list.propcat ...Show All
Visual Studio VC++ Directories
Hi, How I can get the VC++ Directories and VC++ Project Settings from the Tools::Options... Dialog thanks, -z Hi, You can use the Microsoft.VisualStudio.VCProject and VCProjectEngine to co-create ta VCProjectEngine object and use that to get to platform specific paths. The macro below does it for you. Public Sub DumpPaths() Dim vcEngine As VCProjectEngine = CType(CreateObject("VisualStudio.VCProjectEngine.8.0"), VCProjectEngine) Dim coll As IVCCollection = vcEngine.Platforms Dim platForm As VCPlatform = CType(coll.Item("Win32"), VCPlatform) MsgBox(pla ...Show All
Visual Studio Crystal reports XI R2 and Visual Studio 2005 issues
Has anyone got this error after updating (fresh install) to Crystal Reports XI R2 with reports in Visual Studio 2005 I am posting here because I am not sure if it is a Crystal reports XI R2 bug or a Visual Studios 2005 problem. I thought it might be that my programming was wrong so I tried the samples that come with R2. If anything these should work since the people who developed the software wrote the examples. Even the examples gave me these same errors. Custom Tool is CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator I have these refernces: CrystalDecisions.CrystalReports.Engine - v2.0.50526 CrystalDecisions.Enterpris ...Show All
SQL Server query builder
hi friends i've one question is it possible to use SMO to replicate "Query Designer" programmatically i want to write a query builder for end users and am wondering which objects in SMO i need to use to achieve what i want. any ideas on this one much appreciated. Thank you very much for your help. You can use SMO for part of the problem, but not all. You can use SMO to obtain a listing of tables, columns, and views and various properties (e.g. keys, datatypes, and etc). But this is no way in SMO to provide it some tables and conditional statements to generate a query. Peter ...Show All
Visual C++ Visual C++ 2005 - I'm not sure how to run my program, can someone help?
I am trying to learn C++. I installed Visual C++ 2005, and I'm not used to the way it looks or handles. Can someone show me, step by step, how to open a project, write a simple 'hello world' program, and execute it i know how to do this with older versions of visual c++, but this one really got me. thanks all I apprecite it. hey, that was helpful i appreciate it! thanks! ...Show All
Windows Forms Getting name of Proxy Object
I have a Server and Client distributed Application(Through Remoting) From Client Form I assign Remotable object to my Interface variable Dim BizOrgInfo as IBiz (My Facade Interface) BizOrgInfo=Activator.GetObject(Type,URI) (URI=BizLayer.OrgInfo.rem and OrgInfo is the Class Name in Bizlayer) Then I call a commonUtility dll Dim Common as CommonUtility Common.InsertData(BizOrgInfo) In CommonUtility Public sub InsertData(obj&n ...Show All
Visual Basic File I/O to read a specific line
Hey guys, In need of help. I need to read a line from a .ini file (specifically the 4th line). What it is, is a path to a database which I want to implement as the connection file in my vb window forum --> crystal reports so crystal viewer can pull the data from that database. [CONFIG] ReportDirectory=E:\appdata\ MainframePortNumber=1111 ClientsDB=E:\appdata\clients.mdb ProviderDB=E:\appdata\provider.mdb So I need VB to read the 4th line and it has to pull E:\appdata\clients.mdb and set it as the database path for crystal reports. Can anyone shed some light :) thanks. As a answer on you question how to read the 4th line: Dim r ...Show All
Windows Forms Why is DataGridView so slow?
I created a databound DataGrid, and then researched DataGridView to find it would fit my needs better. I have a DataGridViewCheckBoxColumn as my first column in my DataGridView then set its datasource to a DataSet. Sometimes the DataSet may contain a table with over 1000 rows. The user has a button that will select all checkboxes in the DataGridView. It takes about 5 minutes for my foreach loop to complete this task with the DataGridView. With the DataGrid, it was milli-seconds. What is going on Any suggestions Here is some of the code. Thanks in Advance, ryan //my DataGridViewCheckBoxColumn truevalue = 1 foreach ( DataGridVie ...Show All
Visual C# commandline poblem
i am using this code to assign commandline for my appication but nothing is happenning when i pass the commandline, why /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { string [] cmdList = Environment.CommandLine.Split(' '); // First command-line param is the exe name, second param is the mode if (cmdList.Length >= 2) { if (cmdList[1].IndexOf("/s") >= 0) { // Configuration mode Application.Run( new frmSysAdmin()); return ; } // parentHwnd = IntPtr.Zero; // if (cmdList[1] == "/p") // { // Preview mode // preview ...Show All
.NET Development How have been used the Microsoft Dynamic DHTML Editing control?
I use Microsoft Dynamic DHTML Editing control to develop a BBS of my website.I met a question is : You should know if I input a url like www.microsoft.com , I get a link now. However,I want this link have a target="_blank" in my own website. Do you know how to implement it Thank you for coming! Hi there, this forum is particularly focused on Web services, so there might not be any folks here who can help you with your ASP.NET web development question. I think you'll have more luck with this question on the ASP.NET forums at http://forums.asp.net/ . Regards, JJustice [MSFT] ...Show All
SQL Server Source and Destination table equality
I have searched the SSIS forum for an answer to my question, and I think I have found my answer but what i have read does not come out directly and answer my question. I am attempting to create an SSIS package that imports data from a Visual Foxpro table into a SQL Server table. From what I have read, the source and destination tables must match column for column. Is this correct My SQL Server table has a few more columns in it. However, i consistently get "Cannot create connector. The destination component does not have any available inputs...blah". From what i have read, it sound like the reasoning is that my source and de ...Show All
