Alain Vezina's Q&A profile
Visual C++ Rather simple Question (how to make people use my exe)
Hello everyone ;) i must admit that i'm an Newb i just learned to use C++ and VS 2005 and like messing around on my own. i Just created a little project in Win32 Console C++ form. Some cpps and headers are included. Everything works perfectly fine except i'm the only one able to run it from my machine Everyone else i send the EXE to tells me that they cant open the file because 'configuration is incorrect' and that they must re-install the app At first i sent them the debug version and then the released version. Still no success :( Someone could give me a hand on this very simple newbie problem :P You probably ne ...Show All
Software Development for Windows Vista Breakpoints not working
I'm running the February CTP on WinXP SP2 and Visual Studio Pro. I'm running my development environment inside of a Virtual PC VM. The problem that I'm having is that I can create workflows fine, but breakpoints set up on a workflow activity do not work. I see the hollow circle with the warning when running in debug mode. Breakpoints set on the code beside code such as a CodeActivity handler work. I've looked at the other posts on the forum about the same problem, but the solution doesn't appear to be valid for my issue. I'm not running workflows from another library. I've built a console application and have the workflows in the conso ...Show All
Windows Forms Tip:DataGridView with Combobox rendering performance
I have found that for a datagridview with 1 or more combobox columns that if you fill the datasource for the combobox before filling the dgv's datasource performance is tremendously improved. (I have a grid with 1000 rows and 5 columns, two of which are combobox's, with loading grid data first it toook almost 20 sec to load now 2 sec) Simmy ...Show All
Visual Studio Understanding Check Out Behavior
VS.NET 2003 and VSS 6.0d build 31222 Occasionally if I try to simply view the designer for some of my VSS protected ASP.NET pages, I am prompted for checkout. I am not explicitly selecting checkout, however - just "View Designer" from the context sensitive menu in my project pane. When the checkout window comes up, I have options to either Check Out, or Edit, the file. I also have an alert symbol that reads "Editing items in memory without checking them out can cause loss of data". So I'll check it out, despite the fact that I do not intend to make any changes to the page. This is an annoyance than anything since ...Show All
Visual C# Unloading an Assembly
Hello, I read in one of the Blogs that an Assembly cannot be unloaded. It has to be loaded into a AppDomain and then unloaded. I have tried that. Take a look at the following code. AppDomain newDomain = AppDomain.CreateDomain("NewDomain"); Assembly myAssembly = newDomain.Load(AssemblyName.GetAssemblyName(assemblyPath); After doing Reflection on myAssembly, I used AppDomain.Unload(newDomain); There are a some other statements in the CurrentDomain. While executing, Iam getting the following exception: 'System.Runtime.Seri ...Show All
Windows Forms Multiple Data Source Search
I have a form that does a parts search against different databases (Oracle,SQL,Acess). It is a long story as to why the data is in these different sources. Suffice it to say I am not allowed to move them to one source. I have written code in VBA that basically reads a table on the SQL server that has the connection information&nb ...Show All
Smart Device Development highlight DATA
HI I have a combobox and content many data inside, How can i highligh some of the data backgroud colour Is there method i can do it to highlight the only the important data in the combobox Hi! There is no easy way, but you can do this - handle DrawItem and MeasureItem events, so you can draw items as you want (and set DrawMode = DrawMode.OwnerDrawFixed). ...Show All
SQL Server Maybe I'm asking for too much.
I’m using oracle but I’m sure this problem will have similar solution to SQL. I have a list of string in a table (aa, bb, cc, dd). I also have a list of numbers that are not in the database. What I’m looking for is an output like this. Aa, 11 Aa, 22 Bb, 11 Bb, 22 Cc, 11 Cc, 22 Dd, 11 Dd, 22 Is this possible, without having to insert the numbers in a database table and with a simple query (this could be done with temporary table) Sure... SELECT YourTable.YourStringColumn, N.Number FROM YourTable CROSS JOIN ( SEL ...Show All
.NET Development request.BeginGetRequestStream with FTP in ACTIVE mode problem.
Hi, i'm making an asynchronous upload function. When using .usepassive = true all is good, i can transfer and catch pretty much every exception thrown at it. When using .usepassive = false and the server and client are both configured properly, all is good too. The problem i have is when .usepassive = false and either the ftp or client are not configured properly to use active ftp connections. Here is the code that calls the BeginGetRequestStream request.BeginGetRequestStream(New AsyncCallback(AddressOf EndGetStreamCallback), state) waitObject.WaitOne() After BeginGetRequestStream is used and EndGetStreamCa ...Show All
Visual Basic Displaying list of text in a TextBox
I'm a novice programmer and I have a very basic question. I am trying to display text in a TextBox, with one caveat. I need to be able to insert "carriage returns" or force the text onto a new line. I am using the text box to display the results of a numbered list. How can this be done As a work around I am using Word to display the results, but ideally the application needs to be able to display the results in a text box. Thank you for any help you can provide. ''If it were me I would make the textbox multi line then do somethin ...Show All
Visual Studio Problems getting the VCCLCompilerTool object!
Hi I'm writing some (C#) code to modify the compiler settings on a large number of VC++ projectfiles and I'm having trouble getting the VCCLCompilerTool object. My code looks something like this: VCConfiguration CurrentConfig = <some code to get the config> VCCLCompilerTool Compiler = (( IVCCollection )CurrentConfig.Tools).Item( "VCCLCompilerTool" ) as VCCLCompilerTool ; Now, the Item method returns some object, but the cast to VCCLCompilerTool fails. If I change VCCLCompilerTool to VCLinkerTool everything works as expected and I get a VCLinkerTool object. Is there ANY way to figure out what kind of ...Show All
.NET Development .NET Framework 2.0 and MSN MEssenger
Does anybody know if there is a problem with .NET Framework 2.0 and MSN Messenger 7.5 Since after installing .NET Framework 2.0 I have not been able to connect with my MSN Messenger 7.5 80048820 - is the error code. May be coincidental.. but this has started happening after i installed Framework 2.0 ...Show All
Visual Studio SQL Server 2005 Express April CTP Fails from VSTS DVD
When installing VS 2005 (Team Suite) the SQL Server Express install fails with an error code 1603. Also tried reinstalling it after VS but still fails with same error code. Anyone else got this problem /Per Salmi This was a clean installation on a new PC. I can't find the installer or the folder you mentioned to do a manual install. ...Show All
Windows Forms Hosting a Windows Form from unmanaged MFC application
I have a legacy unmanaged MFC app that uses the infamous doc\view architecture. I have a new feature request for this application and would like to implement it using C#. I have successfully been able to host a windows form inside of a Cview derived window via what I call a managed\unmanaged bridge class. On this windows form, I have ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Installation Problems?
Hi there, I've gone ahead and installed the XNA package, following the instructions in the download. The prerequisite's, Visual Studio Partner Edt, and the XNA installer. I've however not downloaded the MechCommander2 package yet. I wanted to see if this was any bit usable without it. I fire up Visual Studio and attempt to make one of it's "content build", and am greeted with a number of exciting errors. Of note, the content build project has a generic no image icon. Two of these: --- Package Load Failure Package 'Microsoft.Xna.UI.XnaStudioPackage.XnaStudioPackage, Microsoft.Xna.UI.XnaStudioPackage, Version ... (a whole bunch of p ...Show All
