Rui Covelo's Q&A profile
Visual C# C#. Program's debug mode returns expected result, but normal runtime does not !
I am using Visual Studio 2005 Express Edition Beta 2 and i have weird problem. I have doubts that this could be some kind of beta bug. After hours of spent debuging time i can't figure out where the problem is... i wonder if anyone can give me a clue on this. So the problem: I wrote program that simulates 10 lap race... it is very simple program that has only 1 form. By presing start button i get random lap time which is passed to 10 separate labels. I have cycle of 10 iterations. In each cycle i generate random number and then pass it to label. I determine to witch label i should pass generated time by using swi ...Show All
.NET Development Email not being sent from IIS 6 Virtual SMTP server
Wrote a vb.net console app (framework 2.0) that sends email to an smtp server. Got the app working but now the email just sits in the SMTP queue and never actually gets sent. The size of the app in the SMTP queue is appropriate so I know the app worked, the attachments got attached, and the email got to my SMTP server okay. My question is why does it just sit in the SMTP queue and not go anywhere I don't know that much about SMTP servers so any leads or ideas would be appreciated. I installed and configured the SMTP virtual server and I think it is configured correctly but I am not sure. Thanks Steve Wells There are ...Show All
Visual C++ Build .exe
where is the build executable / run executable button in the Visual C++ 2005 Express Edition Beta 2 EDIT: I found it... but they're all grey out............. don't know how to use it.... help I too unfortuneatly came across the same thing. Now I can compile a single .cpp file through the command line but not through VS surely it would make many peoples lives much easier if we could just compile a single .cpp at a click of a button. I myself have only just begun to learn c++ and so im continually typing out very small programs consisting of one cpp file, I find it rather cumbersome to have to open c ...Show All
SQL Server SQL Server 2005 Installation does not install sqldmo.dll
Hello, if I do a unattended installation using this command setup.exe /qb ADDLOCAL=Client_Components,Tools_Legacy,Connectivity SECURITYMODE=SQL SAPWD=xxx INSTALLSQLDATADIR=C:\ sqldmo.dll is not installed, although "Tools_Legacy" should do this. What am I doing wrong Oops; I was sure that I had tried that also without success. O.K., it works here. Thank you. ...Show All
Architecture the best orm for .net?
I would like to know your favorites, i am looking for a free one and with caching capabilities. well I would say to look at the following and weight their pros/cons with your requirements nhibernate gentle.net (2.0 is looking great is is completely based around concepts put forward in DDD by eric evans) wilson O/R (its not free but it has a minimal price, $50 if I remember correctly that includes source) A nice thing about this particular implementation is the sproc support. All come up within the first 5 pages on a google search, let me know if you have trouble finding any of them. Cheers, Greg ...Show All
Visual Studio Express Editions question about Visual Basic 2005 Express Edition Beta
Hi there, I recently downloaded Visual Basic 2005 Express Edition Beta in order to create an application that is vital for an assignment that I am undertaking. I need to create an application with a user interface that enables the user to insert some basic details about him/her and then the application displays a number of MPEG video clips in order for the user to rate these videos having as a criterion the videos' quality. The application must then store the user details and ratings in a file for later analysis. I don't have any previous knowledge of programming with Visual Basic. Can somebody please explain to me how it is possible to ...Show All
Visual Studio Express Editions File Read/Saving Question.
Is it possible to open a file and insert a string to the end of it without having to read the data then resave it all Yes My.Computer.Filesystem.WriteAllText(<FileName>,<Content>, <Append>) so My.Computer.Filesystem.WriteAllText("C:\test.txt", "xyz", True) will append xyz to the end of the contents of c:\test.txt ...Show All
Windows Forms Error: Unable to continue. The application is improperly formatted.
I deployed a new application, written in VB.NET 2005 Beta 2 one month ago, using the ClickOnce deployment. In the meantime, several updates to the application were done, and everytime I just clicked on the Publish Now button to deploy the updates. Everything was working without any problems. This morning, after publishish my 31st update, I get the error: Unable to continue. The application is improperly formatted. Please contact the application publisher. The detais of the error are at the end of this message. After that, I checked my PricebookGenerator.Application file, and noticed that the part with <Signature Id= ....>...& ...Show All
Visual Basic visual basic ide+compiler is a mess!
Hi, i have a solution with with 10+ projects (some in c# most in vb) and every time i try to debug inside a vb project i get about 50 annoying error dialogs telling me vbc is broken and the only way to escape from them is to kill visual studio and restart it. sometimes i get lucky and the ide crashes itself saving me from the pain of the never ending dialogs. now debugging is a pain and whats the use of the "edit and continue" if i can even debug so i can see what values have my vars. http://img516.imageshack.us/img516/6568/image45nk.jpg http://img516.imageshack.us/img516/7112/image63xu.jpg http://img508.imageshack.us/img508/7498/image78hd.j ...Show All
Windows Forms Flickering Problem with Windows Form containing DataGridView
I'm writing a User control where i'm displaying a windows form on click of a button and the Form contains a DataGridView. This dataGridview would typically contain 4000-5000 no of records. Now when i'm resizing the Form i can see the VERY NOTICIBLE flickering effect. How can i reduce it Any suggestions...... [NOTE] I have set the DOCK property of the DataGridView to FILL so that on resize of the FORM the dataGrid should be resized to cover the full Form Area. Thanks, Jay The DataGridView does not support double buffering, so the flickering you see is by design. You can customize the DataGridView to add dou ...Show All
.NET Development ILMerge for dotnet 1.1
Hi everyone, I have been using ILMerge since dotnet 1.1 framework. Recently I formatted my hard drive and forgot to save a copy of the ILMerge.exe. Thus, I went to the Microsoft website to download another copy. Now the ILMerge is 2.0 version which requires dotnet 2.0 to run. This is fine with me as I can download the dotnet 2.0 framework. But when I use that tool to combine my executable with the rest of the dlls, I found out that the resulting executable requires dotnet 2.0 framework to run! So is there any way I can use the new ILMerge v2.0 but the resulting executable requires only dotnet 1.1 framework Of course, the easier ans ...Show All
Visual Studio Team System Unable to connect to the Analysis server.
I just can't figure this one out - two tier installation where I have followed the setup manual to the letter (i think). Analysis service is in fact running, I can even connect to it from a mgmt studio installed on the application tier. I tried watching the network traffic to see where it might be getting confused, but the servers were talking via soap, and then encrytped the conversation so I couldn't diagnose anything in particular. I would guess this is a permissions issue, but I am installing as TFSSetup, and this user is admin on both boxes + sa on sql server. Any guesses EDIT: after reinstalling everything I still get the error, but n ...Show All
Smart Device Development unresolved external symbol wWinMain referenced in function wWinMainCRTStartup
Hi. I used the included wizard with VS2005 to update my EVC++ 3.0 created project. After sifting through other migration issues I ended up with the error given in the title: unresolved external symbol wWinMain referenced in function wWinMainCRTStartup Ick. I looked at another forum entry, but it did not seem to help. It just created more problems. What do I do to resolve this Keith What does the w in wWinMain and wWinMainCRTStartup refer to Unicode If I misname my WinMain to WinMain2, I will get your error message. I'd add w to WinMain and see what it says. ...Show All
Windows Forms Owner Draw ContextMenu
Hello everybody, I have a problem. I can create owner draw menu but only MainMenu. Contextmenu doesn't want to be created. Can anybody write sample of it Sorry for my bad English. I believe you have to set the OwnerDraw property of each menu item to True. Then what I usually do is create one sub to handle all of the items for example: Private Sub MeasureMenuItem( ByVal sender As Object , ByVal e As MeasureItemEventArgs) Handles menuItem1.MeasureItem, menuItem2.MeasureItem Dim mnuItem As MenuItem = DirectCast (sender, MenuItem)   ...Show All
SQL Server Assigning the value of variables in a Subpackage
Hi, I have a parent SSIS package that executes various subpackages. Each of the subpackages contain variables that are required for their successful execution, e.g. one has a variable of datetime datatype and a variable of varchar datatype. This date will essentially change with every running of the package as it specifies the date that additional data has been added to the back-end SQL Server 2005 database. I can't find anything in the expressions of the Execute Package Task that would allow me to pass these variables into the package. Can anyone advise Thanks, Paul Look at the documentat ...Show All
