Achiu's Q&A profile
Smart Device Development Calling managed code from native code using COM interop
I'm trying to write COM wrappers around an existing C++ library so that it can be called from managed code, and for the most part I have been successful. The managed application can create COM objects in the native library and call them. I've been getting nothing but crashes, however, when I try to make calls in the opposite direction, and I'm wondering if there might be a known problem in this part of COM interop. What I've done is created a COM interface in the native code that is never actually implemented in the native code. The native DLL is then referenced by the managed project, creating an interop DLL. I then create a managed C# clas ...Show All
Visual Studio Team System Can I Know how many lines of code has a method?
Can I Know how many lines of code has a method Thanks What are you looking at achieving Are you attempting to determine the complexity of the method If so, then counting the number of lines in the method is not the answer, as spacing, braces, etc can affect this. Instead if you have Visual Studio Team System, have a look at the AvoidExcessiveComplexity rule, otherwise, if you want to develop the rule yourself, search on Google on calculating the ' Cyclomatic complexity' of a block of code. ...Show All
Visual C# DirectX in a Window form with controls!!!
Hi, I need to create a software allowing to check welding spot of a robot. I need to draw real-time charts of current, woltage, ultrsonic... I try to draw using GDI+ in visual studio C#. The matter is it is too slow, even on a good computer!! I would like to know if it is possible to use directX on a widow form, which allows to use the controls (buttons, text...) available. If yes, could you give some hints or a reference Another point is that my chart does not need to be in 3 dimensions and I heared that DirectDraw is not being used anymore. Do I have to use Direct3D Thank you for your response... Eric H ...Show All
Visual C++ simple question
i was reading mfc book by jeff. i had installed vs 2005 . i tried simple programme but it does not works just add this to onpaint CPaintDC dc(this); CRect rect; GetClientRect(&rect); dc.DrawText("hi ",-1,&rect,DT_CENTER); but there is no display in output That looks fine to me. What sort of project did you create Did you use a template What class is handling your onpaint method If you put in a breakpoint, does it get called ...Show All
Visual Studio Tools for Office Looking for makecert.exe download
I am looking for this download, for use w/ Access 2003 standalone. There is a k.b. article here: http://support.microsoft.com/kb/828407/en-us But the link does not take you to a download site, just a description of the utility. Can anyone help You can download the windows platform SDK kit: http://www.microsoft.com/downloads/details.aspx FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en Or if you can download .net redist and .net sdk, and the tool is included there too. Thanks, George ...Show All
Smart Device Development Cannot install SDK certificates to WM5 phone
Hi I have a WM5 Qtek 8310 and VS 2005 and installed the SDK tools for it. However I cannot install the SdkCerts.cab into the phone. It says that the installation failed due to not enough system permissions. Also I cannot deploy a small HELLO app from VS2005. The app is signed with the SDK unprivelidged certificate. Error msg from VS2005: The device security configuration disallowed the connection. Ensure that you have the appropriate certificates on your device for development. Review your SDK documentation for proper security settings for connecting to this device. Device Connectivity Component I have also tri ...Show All
SQL Server Interactive sort doesn't work for multiple sub-reports
I have a report, which contains two nearly identical sub reports. In the IDE, when I test the containing report, each of the sub-reports works fine, in particular, the interactive sort feature works for both. When I deploy the reports to the test server (desktop running Windows XP, SQL Server 2005 Developer’s Edition, and SQL Reporting Services 2005, reports are served as web pages), the interactive sort feature seems to work only for one of the sub-reports. The other sub-report causes a postback, and refreshes, but does not return sorted. It appears as though whichever sub-report I attempt to sort first, sorts fine. When I attempt to sort ...Show All
.NET Development TimeSpan or Stopwatch not as accurate as Environment.TickCount
Can someone, maybe preferably from Microsoft, confirm a behavior that I'm noticing concerning the lesser accuracy of using TimeSpan and the Stopwatch object to time something in milliseconds versus using Environment.TickCount. Specifically, I'm noticing that in my Ping class that when I use Environment.TickCount to measure how long a host responds to my message, the result in milliseconds is accurate compared to the results when I use Ping.exe from the command prompt. However, when I measure it using either TimeSpan or the Stopwatch class, the results are off about 100 to 200 milliseconds (more). Here's pseudo code of how I'm ...Show All
Windows Forms Making one record span two rows
I have looked on the net for quite some time about a solution to the problem of displaying two rows of data for each record within the datagrid. Unfortunately, the answer always seems to be "buy a 3rd party control". But I love the way the WinForms 1.1 Datagrid works, and I want to use it! I would like the first row in t ...Show All
SQL Server LIMIT Clause
It seems current version of SQL Server doesn't support LIMIT clause in SELECT statement. Will future version of SQL Server support it Thx. Maximilian, I don't know if the keyword LIMIT will be supported, but even in the current version, you should be able to get the same functionality with the enhanced TOP syntax and/or the new ranking functions. For example, to delete just 10 rows: delete top (10) from ... and to select rows 50-59 in some order: with T as ( select row_number() over (order by someColumn) as rn, * from someTable ) select * from T where rn >= 50 and rn It seems current version of SQ ...Show All
Visual Studio 2008 (Pre-release) LINQ functionality for C# 2.0 (...and others)
So far I'm encouraged with all the help I've received on this forum, so here is another problem. What is the best way of providing ad-hoc querying capabilities in C# 2.0 (the same techniques might apply to Java 5.0...but I won't mention that here :) ). By ad-hoc I don't mean parsing quries written by end-users, then operating on existing data structures (think a winforms application where a user types in something like SQL on an IEnumerable). Several people have already shown how to do a Where clause: class Operators{ IEnumerable Where(IEnumerable source, predicate_function) //I don't remember the syntax for delegates } This method ...Show All
SQL Server SQL 2005 DB design
Hi All: There is a design issue that I like to know your opinions. We are designing a database that will manage the data of many customers. All of the customers will use a same web site to communicates to the database. There are the requests of most customers that they like to have their data as separated as possible from the others and they also need to do offline bi-direction data exchange to this database from their databases( possibly through web services). Basically the data structure is the same. THe customers number, however, can go upto a thousand potentially. And each of their data volumn is about in the middle range. I h ...Show All
Visual C++ Writeing all listview elements to file
hi. i am using ListView and i need to save all list view elements to file :S is there any way to save whole ListView i am writeing to list this way: Meritve is the name of listView this->StatiskitaNalisti= gcnew ListViewItem(this->EditImeRobota->Text->ToString()); this->StatiskitaNalisti->SubItems->Add("NE DELA"); this->StatiskitaNalisti->SubItems->Add(this->VCasi->PovprecenSpeed.ToString()); this->StatiskitaNalisti->SubItems->Add(this->VCasi->MaxSpeed.ToString()); this->StatiskitaNalisti->SubItems->Add(this->label1->Text->ToString()); this->StatiskitaNalisti-&g ...Show All
Visual Basic ERROR: Unrecoverable build error when building Setup project in VS.Net 2005
Hello, Somebody, please help me out, I got "Unrecoverable build error" when building setup project. I try the solution in http://support.microsoft.com/kb/329214/EN-US/ but did not work out. I am totally stuck. Please, your any information, solution will be very much appreciated. Thanks! Yi-an This worked for me: Mergemod.dll is not registered correctly To resolve this problem, register Mergemod.dll again. Typically, Mergemod.dll is located in the following folder: C:\Program Files\Common Files\Microsoft Shared\MSI Tools\Mergemod.dll To register the Mergemod.dll, type the following c ...Show All
Software Development for Windows Vista RTM
Is there a release date for WWF yet Will there be a cost Will it work on Windows XP Pro/W2K3 Thanks hi Mark, I want to deploy some windows application to w2k ( server or professional). My application also uses windows workflow dlls. U have done similar thing as i think.could u help me here thanks ...Show All
