Pierre-Yves Troel's Q&A profile
Visual C++ com/atl attributes broken
It seems most of the ATL/COM attributes from 2003 -> 2005 have been broken. Im using the RTM. I just compiled a COM/ATL project which works fine in 2k3 but in 2k5 i get lots of errors with attributes. A classic is: [ uuid("xxx-blah-xxx") ] class myForwardDeclaredClass; That no longer works. I find I have to do: class __declspec(uuid("xxx-blah-xxx")) myForwardDeclaredClass; There is no documentation or acknowledgement of this problem anywhere. I wonder if anyone at MS actually tried compiling any COM/ATL projects in 2k5 before it shipped Quite simply, unless breaking changes are documented then a project in 2k3 should compile in 2k5. I ha ...Show All
Visual Studio Express Editions lire un fichier dmp
Bonjour, J'ai visual C++ express edition et je veus lire un fichier dmp, est-ce que cela est possible Si oui, comment merci. I try to translate i've visual C++ express and i want read a dmp fichier, i can If yes, how Thanks Please elaborate on what you mean by "dmp fichier". Perhaps some links to related pages or snippets of code or anything that can help us (or me at least) understand what this is exactly. :-) Thanks, Nikola ...Show All
Smart Device Development why SetCommState error 87 ?
Is anyone familiar with error 87 - invalid parameter from the SetCommState function Here's what I have : BOOL gs2 = GetCommState(hCOM2, &dcb2); dcb2.BaudRate = 312500; dcb2.ByteSize = BIT; dcb2.Parity = PARITY; dcb2.StopBits = STOP; bStatus2 = SetCommState(hCOM2, &dcb2); DWORD dw = GetLastError(); I open the first serial port (which is a USB) & the handle is valid, GetCommState returns OK, & SetCommState returns OK. I open the second serial port hCOM2 (which is a RS232) & the handle is valid, GetCommState returns OK, but SetCommState returns error 87 ! I can't figure out what th ...Show All
Visual Studio Team System Beta3 TFS Fails to create news MSF For Agile projects
Hi. In a single server deployment, I can do projects with MSF for CMMI Process Improvement, but don't do it this for MSF for Agile. If not exists security problems, what happend. Thanks Sorry, my messenger has stoped the last days, and don't show the alerts of thread. My OS, is : Windows 2003 Server SP1. English version Single Server Deployment I can create the other kind of projects, but never this MSF It's possible that the error begin with various installation attempt . Because in this machine I begin to install TFS in May. Tell me if you need more information ...Show All
Visual Studio Crystal report from XML
I have a VB.Net (2003) project that has a simple Crystal Report. The report displays data contained in an .XML file. Using the wizard, I was able to get it to displaty properly. The problem, is that I would like the user to be able to choose an .XML file (of the same format) and have the report dynamically display its contents. I cannot figure out how to change the .xml file that it reports on during runtime. Can anyone help me in this aspect Hi, Thanks for ur advice. I solved the pbm by giving the table name. if i give the dataset as datasource i've got a blank report. Thank U! ...Show All
Visual Studio Object Moved
Hi, In the Microsoft Document Explorer for VS2005 I'm getting an error showing http source showing Object moved to http://service2.msdn.microsoft.com/search/service.asmx In these forums I've seen a post mentioning adding a proxy to fix this, but I don't use a proxy. Also, that address doesn't even exist! DNSStuff.com reports the message below showing that's not a good site to have moved to, so any ideas why my help is not working I've been into Tools/Options/Help/Online and everything looks good. Thanks :) DNS Lookup: service2.msdn.microsoft.com A record Generated by www.DNSstuff.com at 17:14:37 GMT on 17 May 2006. How I am searchin ...Show All
Visual C# Forcing VS2K5 not to use partial classes (reverting to 2K3 behavior)
In VS 2K3 for a new c# windows project, the IDE created a Form1 and the .cs file for it. Everything was on one page. Now, in VS 2K5, the IDE splits a new c# windows project into 3 files: Form1.Designer.cs, Program.cs, & Form1.cs. For simple windows projects, is there any way of reverting back to one page The only way I know how to do this is to cut & paste the code and set it up in one file the way it was done in VS2K3. hi there, The very fact that VS2005 uses the concept of partial classes is to support classes which are spread across files. I personally think that you should take advantage of t ...Show All
.NET Development Detecting .NET Framworks installed in System using Reflection
Hello, Would please some one tell me how may i detect .NET Frameworks installed in my System using Reflection in C# Regards, You can detect version of .NET Framework which is used while running your application, use System.Environment.Version property ...Show All
.NET Development Cannot connect to MSDE in VB.net
I am trying to make a windows application that connects to a database through MSDE. I can connect using the server explorer but not in my program. I want to insert a row into a table. I return the value of my execute statement and it is always 0. My table never gets the row inserted. What am i doing wrong. I am so fustrated, please help me :( Private Function DBinsert() Dim strInfo As String 'string used to connect to DB Dim conn As SqlConnection Dim cmd As SqlCommand 'sql command statement Dim retValue As Integer ' return value from insert statement Dim v_fname As String Dim v_lname As String ...Show All
.NET Development Problem updating child table i relational database
Hi folks, realy hope to get some help...I have a problem trying to update the child table in two relational tables (let say Orders 1 --- 00 OrderDetails). I'm getting the folowing error every time: " You cannot add or change a record because a related record is required in table 'datatable'" The fact is I have the desired record and records in the child table, but when I'm trying to add some more - this message shows up... I'm using VB.NET 2005 and Access 2003 Database What Am I missing Any ideas Thanks! I can provide a programtical way of doing this: 1. // create a Dat ...Show All
Windows Forms Draw a rectangle
Hello everyone I have 4 point, conect these point can make a rectangle. How can I fill the interior of this rectangle with the color i like. Could some one show me the method to do this. Thanks QuangNgockt And here's a little sample: Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint &n ...Show All
Visual Studio Express Editions How to Format date from 01/01/06 to 01, Jan 2006 in VB 2005
I am having a problem. I just installed the new version of VB 2005, and I don't know how to format the date. For example in VB 6.0 I do as fallow: CODE: Me.panelDate.Caption = Format(panelDate, "dddd"", ""dd MMMM"", ""yyyy") DISPLAY: Sunday, 01 January 2006 If I do similar using the VB 2005 CODE: Me .LabelDate.Text = Format(LabelDate.Text, "dddd"", ""dd MMMM"", ""yyyy" ) DISPLAY: " dddd"", ""dd MMMM"", ""yyyy" I know it is something I am doing wrong. Please someone help me I am getting stressed with this new VB 2005. Thank You ...Show All
Smart Device Development "No such interface supported"
I recently received and installed Visual Studio 2005. When I create an empty Pocket Pc 2003 (or Windows Mobile 5.0) application and try to deploy it, I get a messagebox that says "No such interface supported". The actual .exe is there and I can copy it and run it on the device.. but it seems that the communication layer between visual studio and the device is broken. I get the same error if I try to deply the application to the emulator. Ive tried uninstalling and re-installing ad naseum with no success. please help! Taha I have posted this on the smartdevice forum but no one has replied there and I thought I ...Show All
Visual FoxPro New to VFP please recomend any good books
Hi I have been tasked to update our current DOS based clipper 5.3 database system to VFP 9.0. We have already determined that all our data directly imports to VFP and we have started converting the screens from the DOS based clipper app to VFP. I have a VB programming background and some access programming experiance. I will have a VFP programmer available for about 20 hrs to train me. I would like to get any recomended books to help me learn VFP and for reference. I have already purchased VFP 9.0 and did not find any printable documentation on the CD just the built in help chm files. I have found this book o ...Show All
Visual Basic .NET Deployment with COM DLLs
I am using SQLDMO.DLL within my program which makes me include it in my deployment project. I built the deployment project and installed the output MSI and it works. It registers the SQLDMO.DLL (used COMSelfReg) when I install the package and unregisters the said DLL when I uninstall it. But I have a problem when I install and then uninstall this package on a machine with SQL Client Tools installed. The package uninstalls the program and unregisters SQLDMO.DLL which breaks Enterprise Manager, Query Analyzer, etc. How can I install and register a COM DLL using a deployment project, but will not unregister the DLL if it is shared by other appl ...Show All
