Kris M.'s Q&A profile
Visual C++ _except_handler4 gone on x64?
Hello, i'm trying to port an 32-bit app to x64 but it seems the default c exception handler isn't available on x64, so the code below compiles/links fine on win32 target, but i get this linker error: error LNK2019: unresolved external symbol _except_handler4 referenced in function wmain when compiling for x64 #include "stdafx.h" #include "windows.h" #define VC_HANDLER _except_handler4 //C's default exception handler EXCEPTION_DISPOSITION VC_HANDLER( struct _EXCEPTION_RECORD *ExceptionRecord, void * EstablisherFrame, struct _CONTEXT *ContextRecord, void * DispatcherContext ); int _tmain(int argc, _TCHAR* argv[]) { void * cpp_hdlr = VC_HANDLER; return 0; } Thanx alot for the ...Show All
Visual C# RadioButton
I have 2 radioButton "Woman and Man" and I want that these go to my data base... I create array string and stay: string sex = "'" + "radiobutton..text" + "'"; string [] text = new string [2]; text[0] = radioButton1.Text; text[1] = radioButton2.Text; But I when a debug my code I see a error: What the lines not is like the rows. Thank you a lot!!!! again Okay.. now I had more a problem I did it and my code stayed: //cria-se um novo comando mysql MySqlCommand com = new MySqlCommand(); try { com.Connection = Conexao_mysql(); StringBuilder query = new StringBuilder(); query.Append("INSERT INTO "); query.Append(tab ...Show All
Visual Studio Express Editions Making Application Start on Startup
Hi, how can I make my application start when a user logs on to windows (on start up) Okay, now I see what you mean, he wants the program to create an autorun entry during installation. Does this mean he doesn't want the end user to have control over it We'll have to disagree on this one, I prefer to add or delete the keys from within the program itself, usually within the preferences section of the application, that way users can decide the applications startup behaviour. I suppose it also depends of what type of application you are making. Sorry for any confusion earlier. ...Show All
Visual Studio Team System Checkin other users change from another workspace
There is a special situation with SCC I am facing , One user X checked out file $\project\code\user_x_file.cs and left for the day in USA . now in India another user Y has to work on that file and multiple checkout is disabled . The update are in user X laptop which he take home with him and it is no longer connected to any network. User X also has not shelve the file . If I don't want to wakeup the user X what could be solution I have following options 1) UNDO user X change I tried TF undo command to get this message The workspace USER_X_WS;USERX is not on this computer. Run get (get all if edits were undone) on the computer hosting that workspace to update it with the changes that have been made on the server. 2) Chec ...Show All
SQL Server i really need some help!!!!!!!
well......im from peru....i dont speak english too well.......but...i have the SQL express edition....but when i open it....i gotta to connect to a server.....but i dont have any server.....what do i should put to in "server name" and "authentication"...to star to use the SQL express edition.... well..if there are some grammathical mistakes....sorry...im learnin` english please answer me is an emergency!!!! Jaime servername AFAIK is usually: (local)\SQLExpress as for authentication as stated, depends on the type of authentication you have set up. If its Windows, then enter your username and password you use for Windows login. If its SQL user account, enter the username and password for the SQL user accou ...Show All
Visual Basic Strange character problem
Hello! I’m making a program which read quite large text files, and then converting them to .rtf documents to be read in for example Word. I ran into trouble the other day when a character couldn’t be read ( ) by my richtextbox object. I’m using the same function over and over, so I know it’s working, the problem arises when I pass a certain text file, or rather a certain string in the text file. When I do richtextbox.text = system.io.file.readalltext(tempfile), the readalltext() seems to interpret these characters as EOF, cause it stops reading even though there’s a HUGE part of the text remaining unread... The string looks like this if I open the textfile in Word: 0 96��321 Supposed to be 2 squares betwe ...Show All
Internet Explorer Development ASP Type Missmatch error
I have an access database with two tables Manufacturer and Software. I would like to open up a pop up (in VB SCRIPT) to add an other software and i pass a value of the ManID which in Manufacturer as PK an autonumber default to Long Integer and FK in Software as Number and defined as Long Integer as well . When i pass in the value, I first do a: mManID = CLng(rstType("ManID")) after i cast it i have the following function: Function popup(slink) dim mine mine = "addSoftware.asp ManID="+slink window.open "mine", "Add Software", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=800,height=600" End Function <a href="#" on ...Show All
SQL Server report server failed to initialize, access denied to 'c:\inetpub'.
At the last step of the Reporting Services installation after notification Reporting services has been successfully installed. A warning message that setup could not initialize the report server. When trying to connect to the REport manager get the following message Access denied to 'c:\inetpub'. Failed to start monitoring file changes... have checked the rights to the folder and in IIS and even granted temp access to everyone to test, still receiving the same error. please help! ...Show All
Visual Studio Express Editions Webbrowser Title Help needed
Hey i've been working hard on my browser lately and i've been testing it aswell as some other people and we've notcied that the title of the website dosen't show and over the past month i've tryed some things and been looking into stuff i was also wondering can you get the program's title with the website title for example halo2formbuddy Index - H2F-Browser Can anybody help me thanks. huh to set the Window title of your application (title bar): this.Text = " your app name - " + this.theWebBrowserControl.Document.Title ; and put this in the document_completed event is this what you are asking ...Show All
.NET Development Reading XML using XMLTextReader
Hi all, I'm a dev newbie and need some assistance with something i'm working on. I need to read through an XML file and output the values of only certain elements. Say my xml file looks something like this: <element id="1"> <text> Blah blah blah </text> </element> <element id="2"> <provide name="Access"> <defaulttext> Blah-di-blah </defaulttext> </element> So basically i will have a form where users can pick an a number, and this will be passed as a paramter into a function that reads through the xml file - so if you picked 1, then it will look for element id = 1, and then output the contents of the <text> tag. However, in some elements (as in eleme ...Show All
Audio and Video Development play lists
Dear sir, We want to know how to create play lists automatically in windows media player. And also how to use replay in windows media player. Thankyou. Sachini, For questions regarding Windows Media Player, a better forum is the Windows Media Player newsgroup at. http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx Windows Media Player is built on top of Media Foundation and it has its own separate SDK. -Sumedh ...Show All
Visual Studio Can not deploy VS 2005/CR .Net web site
I am having a hard time deploying an intranet web site using the version of Crystal Reports that is bundled with Visual Studio 2005. I have created a deployment project, and added the reference to CrystalReportsRedist2005_x86.msm. I then ran the Setup.exe on my server. This would not allow me to view the Crystal Report. I found information that I need to make sure that IIS had a Virtual Directory called CrystalReportWebFormViewer3, and this is where the images need to be housed. I created this Virtual Directory, and moved over all of the files that were on my development machine in the same file. I even made sure that the ASP User had rights to the folder. My reports seem to run, but I can not see any images that CR places on ...Show All
SQL Server Issues with 1.1 framework calling SQL 2005 CLR sprocs?
Are there any issues calling SQL 2005 CLR bases stored procedures and functions from a web application which uses the dotnet 1.1 framework I assume not, but would like advice from those who've been there... Thanks, Marie Hi, no there are nor problems. Even calling SP from other program with the MDAC stack does not bring any problems. You will not be able to use certain features as they are only supportedby the ADO.NET 2.0 framework (like query notification) but there any no problems with the "old" functionality. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Basic Generating numeric filenames
Hi! I am currently working on a small application that monitors the clipboard and checks wheter it contains an image. When it does contain a image, it saves it to a specified directory. My problem: I would like the program to generate filenames using numbers, e.g "1.jpg", "2.jpg", etc. I thought that maybe I could create a text file containing the previous number, and then use the ReadAllText function, but then you can't do any calculations with the string as it cannot be converted to an integer. Is there a way I could get the program to generate a numeric filename (with the .jpg extension) Thanks Johannes Hi, Use this code : Dim TempIndex As Integer = 0 Do TempIndex += 1 Loop Until My.Computer.FileSystem.F ...Show All
Visual Studio 2008 (Pre-release) Why the Collection Initializers Syntax Changes?
David Hayden reports on Charlie Calvert's post about changes in the January CTP that the syntax for collection initializers has changed from: List < Customer > listOfCustomers = new List < Customer > { { Id = 1 , Name = " Dave " , City = " Sarasota " }, { Id = 2 , Name = " John " , City = " Tampa " }, { Id = 3 , Name = " Abe " , City = " Miami " } }; to: List < Customer > listOfCustomers = new List < Customer > { new Customer { Id = 1 , Name = " Dave " , City = " Sarasota " }, new Customer { Id = 2 , Name = " John " , City = " Tampa " }, new Customer { Id ...Show All
