nukolai's Q&A profile
Visual Basic SmtpClient vs SmtpMail
Hi all, When i try to send an email via this little code snippet, everything works: System.Web.Mail.SmtpMail.SmtpServer.Insert(0, "mailhost.medialaan.vmma.be") System.Web.Mail.SmtpMail.Send(" somebody@company.com ", "noone@company.com ", "test", "test") Because the SmtpMail became obsolete, i try the new System.Net class as follows : Dim myMail As System.Net.Mail.MailMessage Dim client As New SmtpClient() client.Host = "mail.company.org" myMail = New MailMessage With myMail & ...Show All
Windows Live Developer Forums BOTS on MSN
There have been a number of questions about BOTS in the forum in various theads so I thought I would provide this post with a broader update on the topic. MSN has recently started licensing BOTS on the network. The huge benefit of a licensed BOT is that it will have contact limitations removed (the reverse list), so that millions of people could connect to the same ID. Our goal is to enable a broad network of these IM applications integrated with other MSN services (Activity API, Search, etc.). To make sure our customers have the best experience with these applications and provide tools to the broadest number of companies se ...Show All
SQL Server SQL Server 2000 Enterprise - memory usage
Hi, I'm running SQL Server 2000 Enterprise on Windows Server 2003 Enterprise with 8 GB of Ram. For some reason SQL Server is not using more than 120 MB. I configured the options below to enable SQL Server to utilize more than 2 GB. If I keep all the default options, SQL Server will use approximately 1.7 GB of 2 GB allocated. I want to know why sqlserver is not using more than 120 MB with the settings below. Thanks in advance for any help you could provide on this issue. sp_configure 'show advanced options', 1 RECONFIGURE GO sp_configure 'awe enabled', 1 RECONFIGURE GO sp_ ...Show All
Visual C# DeSerialize a complex XML file
I am trying to DeSerialize following config.xml file, but the sample code I used from internet does not populate the values of all the elements. Can any one please suggest a code - Best Regards, Pranav < xml version = " 1.0 " > < ConfigData xmlns:xsi = " http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd = " http://www.w3.org/2001/XMLSchema " > < OrgUnit > < SheetName > ABC1 </ SheetName > < UnitID > 123,234 </ UnitID > < Level > 6 </ Level > </ OrgUnit > < OrgUnit > < SheetName > ABC2 </ SheetName &g ...Show All
Windows Forms Using MessageBox in controls
Hi, We are calling a MessageBox.Show() from within a control that is grouping a number of other controls. When one of these controls (say, Control 1) is in a certain state, we want to prevent selecting items in one of the other controls (Control 2). We catch the "ItemChanged" event on the Control 2, and verify the state of Control 1 for the& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I cant Install Directx 9.0c December 2005 dsound.inf problem
When I try install Directx 9.0c December 2005 Redlist I Envisage with this Error : "An internal system error occurred. Please refer to DXError.log and DirectX.log in your Windows folder to derermine problem." I several time download Directx 9.0c December 2005 and November 2005 but everytime I Envisage with this error and when I go to DXError.log and DirectX.log see this Problem with dsound.inf : -------------------- [01/05/06 01:40:11] module: dsetup32(Sep 28 2005), file: setup.cpp, line: 6443, function: CSetup::InstallDirectXInfsFromInfSection Installation of 'C:\WINDOWS\System32\DirectX\DX113.tmp\dsou ...Show All
Smart Device Development Pocket PC 2003 Device Emulator keeps deploying same software
I have a vb 2005 project which is using the device emulator The system dlls like system.xml, sql ce, and windows.forms get deployed to the scanner every time I run the application. This means it takes over one minute to start a debug session in the emulator - every time I run it I just reinstalled the entire vs installation but that didn't fix it. So I think the saved state or something like that is screwed up. Anyone know what files I can remove to reset the thing I have tried hard booting the emulator and rebooting the pc etc. Any help you can give to reset it would be very much appreciated. thanks ...Show All
.NET Development Column Expression
I have database with two tables what i would like to do is in the sales table when i put data in the datagrid is to have a column expression that calculates the quantity * price that gives the total.I am using C# express edition2005 and SQL server express edition 2005 hope someone can help with code and where to place it. Thankyou http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatadatacolumnclassexpressiontopic.asp ...Show All
Software Development for Windows Vista Compiling DirectShow samples off the Platform SDK, ATL
I am trying to compile the DirectShow Base Classes from the Platform SDK. I have installed the PSDK and the DXSDK. However, when compiling, I get the error that atlbase.h cannot be found. As I understand, ATL/MFC are not installed with VC Express. Is there any way to compile the DS samples and Base Classes without ATL You might need to set the paths for the PSDK, this is how they're setup on mine. Executables C:\Program Files\Microsoft Platform SDK\Bin Include C:\Program Files\Microsoft Platform SDK\include\atl C:\Program Files\Microsoft Platform SDK\include Library C:\Program Files\Microsoft Platf ...Show All
.NET Development configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Hi everybody i'v try to run asimple GridView in web developer 2005 and i recive the following message: Line 10: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> another problem is: i can not edit users using asp.net configuration tool. thanks in advenced Ronen Y I never got an answer from anyone on this forum but found something on another forum--unfortunately I don't remember its name. The xmlns piece was apparently required at one time but no longer is. You can delete the attribute in the <configuration> tag and all will be well--except that the next time you run ASP.Net Configuration t ...Show All
.NET Development Write Text File with the same Culture
Hi, I developed a windows form application which writes a txt files with portuguese words with accents. The applications was developed in Windows XP in english and it writes the file correctly. But, when it runs in Windows 2000 Portuguese, the portuguese words have the accents changed to ascii simbols. How to fix it Regards, Marcelo. You need to install the font file in the machine under %System32%\fonts. You probably got the font installed in the first machine with the installation of some application or by enabling some language package but if you don't know you could copy the font file from one machine to the other. ...Show All
Visual C++ Why is strdup() deprecated in VS 2005?
< hyslopc@discussions.microsoft.com > wrote in message news:9a93850c-505b-48c3-bd60-44625db8bbc6_WBRev2_@discussions..microsoft.com ... This post has been edited either by the author or a moderator in the Microsoft Forums: http://forums.microsoft.com You may not care about it, but I do. I don't want to disable the warning because I think the concerns with most of the deprecated functions are very valid, and only wished Microsoft had done this a long time ago. As such, I have taken the opportunity to change a lot of my code to use the new functions. The problem ...Show All
.NET Development windbg/sos - !dumpheap/!dumpobj/!gcroot
Is there any way to find the callstack that lead to allocated object in windbg/sos I can do !gcroot, but I would like to see the call stack that lead to the object allocation. Thanks for any pointers! Hi, Thanks for the links. You're right it would take more memory, but not huge amount. There is a tool called gflags.exe that comes with Debugging tools. It allows to specify stack backtrace for each heap allocation. Later in windbg I can query each memory block and see complete callstack that allocated that memory. It works fine in unmanaged world. I thought there is something like that in managed wor ...Show All
Windows Forms Ending a Windows Program
if ( this ._UserID==0 ) {this.Close();Application.Exit();} My program reads the above lines (including Close and Exit) in a Windows Form and continues on as if they meant nothing. How do I end a program if _UserID==0 Where is this code located You can use Environment.Exit( 0 ); that terminates the process and gives the underlying operating system the specified exit code. ...Show All
Visual Studio 2008 (Pre-release) I love DLinq. Really need n-tier support though.
In section 7.4 of the DLinq guide it mentions that that's something you guys are looking at. Do you guys have an idea if that functionality will get in there before the product is given the green light to go-live Since most apps these days are designed as SOA, there will need to be a distributed notification mechanism. Thanks CZ The type of n-tier support we have for DLinq is simply an API that allows you to introduce objects to a new context after they have been round-tripped across the tiers. You still have to move the objects or data across the tiers yourself, and you have to figure out how to squirrel aw ...Show All
