Karthick Sukumaran's Q&A profile
Visual C++ Problems in VC++ Directories
Hi guys I am a beginner in Visual C++ and i use Microsoft Visual Studio 2005 Pro version but i am having difficulties compiling a proggy i made. Whenevr i try compiling it i get the following errors: ------ Build started: Project: Zing, Configuration: Debug Win32 ------ Compiling... stdafx.cpp NOTE: WINVER has been defined as 0x0500 or greater which enables Windows NT 5.0 and Windows 98 features. When these headers were released, Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions. For this release when WINVER is defined as 0x0500 or greater, you can only build beta or test applications. To build a retail application, set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk to see if retail Windows NT 5.0 or Wind ...Show All
SQL Server Reporting Services 2005 - Security Extention
Hi, I have compiled the security extension sample code that comes with the installation and I was able to successfully deploy it on the Reporting Server. Now my server asks me for username, password when browse to the http://servername/reports folder. I have configured one user as say "AdminUser". When I login as AdminUser, I am to see all my reports and browse thru them. I created one more user say "RegUser". I have logged in as AdminUser and I have give permissions to RegUser for some folders on report server. Until this point every thing just worked fine and absolutly no problems. The real problem shows up when the "RegUser" logs in to the system. He is able to login, but he cannot see any th ...Show All
SQL Server Problems splitting name field
I am reading in data from a legacy system where name data is in one field. The single field includes last name, first name, middle initial(sometimes), and suffix(sometimes). Due to the optional components it is a bear. I am using a fuzzy lookup on the suffix and derived columns for the first, last, and middle initial. The first name and suffix work, but I'm having trouble with the last and middle initial. The following is the formula I'm using for both. The first name formula is causing an error, and the middle initial is only populating if the suffix exists. If anyone has insight, it is appreciated. FirstName: TRIM(SUBSTRING([ARPNAME-T],FINDSTRING([ARPNAME-T]," ",1) + 1,FINDSTRING([ARPNAME-T]," ",2) - FINDSTRING( ...Show All
SQL Server Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
Any help would be very very much appreciated as I am about 15 hours into this :( Background is a development system with ASP.NET 2.0 and SQL express 2005. The server is SQL 2005 standard edition. Any ASPX pages that connect to a database results in errors. I have 2 identical servers with Windows server 2003, one has SQL Express and the other has SQL Server 2005 standard. that is the only difference between these systems. The scripts that work seamlessly when uploaded to the SQL Express server dont work on the SQL Server 2005 My connection string is <remove name="LocalSqlServer" /> <add name="LocalSqlServer" connectionString="Datasource=servername;Integrated Security=SSPI;initial catalog=C:\INETPUB\WWWROOT\test\ap ...Show All
Visual Studio Express Editions Webbrowser control versus I.E. Explorer
Hello, I have an application running with a webbrowser control. In some webpages I get script errors . When I navigate through these same pages, outside the application , and using I.E.7, I have not these script errors. Is there somme differences between the Webbrowser of V.B. and the I.E. 7 browser The IE 7 control is a lot better because it can do the same stuff like use IE 7's plugins so it can do a lot more and better because it has the same capabilities as IE 7. I have IE 7. I needed a app to view flash videos and the webbrowser control didn't work. The IE 7 control worked. ...Show All
Visual Studio Express Editions Copy Protection/Demo Disk
Good Day, as a beginner I learned from a lot of you in this forum and wish to thank all of you who have help. Because of your help I have completed by first program and learn how to deploy onto a CD using ClickOnce. Where I need help understanding next is how do I build a demo disk the will either limit the number of entries or a time expire method so that the client will need to purchase a upgrade and how do I copy protect the software so that it can’t be copied to other machine. I have read a lot of the forums commits but most of them seem to suggest using third party software. I would like to learn how to do write code for these things for myself. Any suggestion on which way or what reading material can lead me in the ...Show All
Windows Forms Setting size of Picture in PictureBox
I have created a form which has a picturebox on it. I also have it so that the user can choose a gif or jpg to put into the picture box from their computer. But while running this code i noticed that the picturebox shows the picture in its original size and therefore you only get to see the top left hand corner of the picture. I was wondering whether anyone knows anyway in which i would be able to get the picture to be shown smaller than the original size Thanks alot in advance Satal yes there is. If you wish to resize the image to the same size as the picturebox, try this: Bitmap theBitmapImage = new Bitmap("FileName.jpg", this.thePicturebox.Width, this.thePictureBox.Height); this ...Show All
SQL Server dynamic Instead of update trigger problem
Hello, I am trying to use an instead of update trigger to alter a lastupdated field in the table when any of the other fields are modified by an update. I want to do this as I can't rely on the applications updating the date when they alter other data. The trigger looks something like this. CREATE TRIGGER [noidentitytableinsteadupdate] ON [dbo].[noidentitytable] INSTEAD OF UPDATE AS if(not update(updatedat)) begin update noidentitytable set text = inserted.text, state = 'updated', updatedat = GetDate() from noidentitytable INNER JOIN inserted ON (noidentitytable.id = inserted.id) end else update noidentitytable set text = inserted.text, state = 'updated', updatedat = inserted.update ...Show All
.NET Development Out of memory exception (c#, .net 2003, large images)
Hi, I am developing an application (c#, .Net 2003, Framework 1.1) that deals with large images. The application captures multiple image frames and stitch them up into a large hige-res image. We are looking at 50+ frames and sometimes more than 100 frames of 1024x768 color images. I am also using double buffers for edit purposes. To get an idea of what this application does: beyond the image acquisition and stitching, it is very similar to Paint.Net ( http://www.getpaint.net/index2.html ) in providing tools to draw on top of the image. The program is hitting out of memory exceptions -- sometimes even with smaller images. Documentation on LOH seems to explain this observation well, especially with memory fragmentation a likely cause of ...Show All
Visual Studio Tools for Office VSTO SE Interior.Color property issue
I have an application developed using VSTO 2005; it works fine in Office 2003. now I downloaded the VSTO SE 2005 Beta runtime version and I ran the application on 2007 Microsoft Office System (on Win Vista) at first look it was great, it works; but I having an issue with one API property's Interior.Color (nameRange.Interior.Color), it fails when it is set from a other thread (not the main thread) e.g. start a thread to paint some cells while the application is showing a window with a progress bar. Any idea, comment to fix this issue/limitation/bug will be very welcome. Thanks, jr Is there any command to reset the interior fill so that the range takes back its default Excel sheet form ...Show All
Windows Forms wireless network Problems
Ok I have an HP laptop that I just did a complete reformat of the hard drive and reinstalled XP. I did all of the security updates and then installed my Office. everything was working great (or so I thought) Now my wireless network is on some kind of drug!!! It goes on and off at will and sometime will even tell me it is "not connected" but it really is connected... We had this problem on another computer with a USB wireless card and the solution was to turn off the "let windows manage my wireless networks" so I thought "HEY, this will work on my laptop!!" Wrong!!! well ok it work for a few hours, but now I am right back to where I was, with my network wireless dropping when even it wants and sometime comi ...Show All
Visual Basic Using objects on remote machine error.
Question from a newbie newbie... Hello, I'm doing an application with 3 different projects, an application for make the configuration, a website for managers to browse the stadistics and a logon script for pick some stats from users and manage network connections, location and other things in every logon. The website, application and script will use a common dll for make all the operations. The application works at the application part and website, still hanging some errors but all it's more or less working. Well, when I make a logon, the login script instances an object and fills the info in the object and gets its taks to do, if there is tasks in queue it makes them and put a log using other remote class with the result. It ...Show All
Visual C++ Identifying A Font In Use.
I would like to identify the font used in an arbitrary existing window. It appears to be not possible. WM_GETFONT will retrieve the currently used font's handle... but converting an HFONT into useful information about the font appears unsupported. GetTextFace requires an HDC and fetching an HDC from an HWND resets settings to defaults. GetTextMetrics and GetFontData suffer the same constraints. What am I overlooking This forum is for using VC++ as a tool, not for specific Win32 programming questions. I would ask this question in the MSDN discussion groups. In particular, here: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ui&lang=en&cr=US ...Show All
.NET Development oledb Error Opening Excel Document In ASP.Net 2.0
Having a problem importing an excel document after moving an asp.net 2.0 application to another server. It worked fine before moving it and I suspect it's a permissions problem on a TEMP directory Here's the error: System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\DEXTERDR\Desktop\Stock Options Template ROW Dec 2005.xls'. It is already opened exclusively by another user, or you need permission to view its data. at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool poo ...Show All
SQL Server Wierd XML results from 'Exec SQL Task"
Hi All, we got a problem that I hope you guys can help us with. We are trying to extract data from a SQL database in XML format to a variable (string) using an 'Execute SQL Task' In the task we are using an ADO.NET connection to the database which is fine and via direct input we are using this query. SELECT title, initials, surname, username, gender, emailaddress, addressline1, addressline2, addressline3, town, postcode, country, emailcontact, postalcontact, telephone FROM CRMCustRecords FOR XML path('customer'), root('CRMData'), ELEMENTS XSINIL In SSMS this is fine and returns an ok (to my eyes anyway!) XML resultset. <CRMData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <custom ...Show All
