Nuno Santos's Q&A profile
.NET Development __w64
I am trying to port an application from 32-bit to 64-bit windows environment. There are a lot of warnings like these when i compile my code on 64-bit :- mbtext.cxx(2249) : warning C4244: 'argument' : conversion from '__w64 int' to 'int', possible loss of data mbtext.cxx(2354) : warning C4244: 'argument' : conversion from '__w64 int' to 'int', possible loss of data This warning is at lot of places. "__w64" : Not much help is available to kno ...Show All
.NET Development Error: SQL Server does not exist or access denied
I am a newbie so any help appreciated. the ASP.NET web application is on a seperate machine than the machine that runs the SQL Server. There are 3 SQL Servers running on machine that has my database. The 3 SQL Servers are: SQLM1\DevSQL SQLM1\DemoSQL SQLM1\QASQL where SQLM1 is the machine name & QASQL is the name of the SQL Server. The database that this application connects to is in SQLM1\QASQL. In the default.apx.vb, I have a connection str ...Show All
.NET Development System info
Hi this is sandeep how to get the system information using vb.net. do u have any classes for retreving the system info or we need u use specia apis. please send me some code. Thank u depends what you need to look for. you can get the drives/sizes etc.. using the DriveInfo class in .NET 2.0 Most likely you would have to use the API's for Windows/Dev manager http://www.codeproject.c ...Show All
Windows Forms Setup/deployment project - conditional installation of shortcuts
I've created a setup/deployment project. I want to conditionally create a shortcut to one of my installed files in the user's Startup folder (for example). I've created a checkboxes dialog box and assigned a condition to the first checkbox. But there seems to be no way to make the installation of the shortcut dependent on any conditions. If I do 'Properties' on the shortcut (in the file system view) then there is no condi ...Show All
.NET Development CreateFolder only shoudl succeed if folder doesnt exist
I was looking for a method in .NET similar to MkDir in VB the io.Directory.CreateDirectory() method succeeds even if the folder that i am trying to create already exists. I am looking for a method that should potentially error out while trying to create a directory if it already exist. any ideas The CreateDirectory method does throw an exception when the directory exists, but then again, u can make it a function and therefor call it ...Show All
Visual Studio Express Editions How do I get my free e-books?
I downloaded, installed and registered the beta editions before Nov. 7th. I have yet to get an e-mail though telling me how to access my free e-books. I have a benefits page where I can download icons and pictures but nothing about e-books. Anyone know what's going on Thanks. again . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen sized quad blend with rendered scene and shadows
http://i17.photobucket.com/albums/b95/julesthe/scene1.jpg the url brings you to an image that shows the current problem I am facing. I render a screen sized quad (background image) and then set some device blending operations before rendering my scene objects. as you can see, where the shadow is cast, the blending behaves as I would expect, making this area show through but it is slightly darker then the background. My problem is that I c ...Show All
Windows Forms Published application file list is incomplete
Howdy folks, We have a clickonce application that experienced a problem yesterday. One of the referenced libraries was modified and required a new library that wasn't originally required. When the clickonce application was rebuilt and published with the updated library, the new library wasn't picked up. The result was that the application would throw an exception. Here are some details. Say we have an application called 'Applicat ...Show All
Windows Forms StreamWriter bool error
I found a way around this, but still, I don't understand the error. FileStream fs = new FileStream("words.txt", FileMode.Open, FileAccess.Write, FileShare.None); StreamWriter sw = new StreamWriter(fs, false ); //Error Above on false - Argument '2': cannot convert from 'bool' to 'System.Text.Encoding' Now, when the ( is first added, the help box appears and the list says the second is a bool, but, if you scroll thro ...Show All
Visual C# Is there a sample code which can record voice and play the voice recorded, just like sound recorder
Is there a sample code which can record voice and play the voice recorded, just like sound recorder. but I hope it can record voice enough long, you konw the record of Windows XP can only record 1 minute! In Microsoft VS.net, I can't find a record component. thanks! http://www.un4seen.com/ Bit of a learning curve with this dll....but its worth it. Check the forums for NET postings. ...Show All
Visual Studio 'Specific Version' property of project reference not saved
One of the projects in my solution, ProjectA, has a reference to another project in my solution, ProjectB. ProjectB's output is strongly named, but I would like to relax the requirement that ProjectA bind to a specific version of ProjectB, so I set the Specific Version property of this project reference to false. However, it doesn't seem like this is saved anywhere, because when I close the solution and reopen it, this property is back to its de ...Show All
Visual Studio 2008 (Pre-release) RichTextBox How To!
Hi, I have searched the net and the documentation that shipped with Beta 2 and have not found any results or information that was able to aid me. Hopefully there are some RichTextBox experts that could please help me with the following things: How can I make the RichTextBox single line (this was possible in Win32, and no, changing the control template to a textbox does not work! Because then it essentially is a t ...Show All
Visual C++ CString is not identified by Visual Studio 2005?
I have compiled with VS 2003 #include <afxwin.h> (at the top) #include "stdafx.h" #using <mscorlib.dll> and declared in method like this CString csUser, csPassword, csServer; //=========================== The same syntax is giving this error in Visual Studio 2005! error C2061: syntax error : identifier 'CString' Spent four to six hours to resolve it, However, I need this CString to work, but can not change it String* o ...Show All
SQL Server How to fix postion of report itme?
I'm mirgating a invoice report from Crystal Reports to RS, I've some questions on controlling position of report items. I put a list at the body of report. At the top of the list, it displays general information of invoice, like invoice no., customer name, address, page no....., I want those information print on the top of every page. In the middle of list, I use a table to display invoice details, it may have many lines and longer than one page ...Show All
.NET Development Stream Not writing last byte?
Hello and thanks in advance for any help you may give. I am currently using the new gzip feature in VB 2005, to compress XML and insert the zipped bytes into an OLE access db column. I have gotten it to work for the most part except it seems to be cutting of the last Char of XML and sometimes even more. E.g. The closing tag of the XML would look like "</Inventory" - Missing the ">" .I have no idea why, but since I am new to streams I ...Show All
