Wout's Q&A profile
Visual Studio Express Editions locked up
no one in the other forums is answearing my question. someone on this forum asked me to post the error message and before I could the mods moved my thread to some useless forum. so heres a link..Hopefully somone can help , its really dishearting to get into programming only to have such a stupid problem. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=745207&SiteID=1 I had trouble with one of those temporary key files once when trying to publish. I just went into the solution explorer (show all files,) and right click deleted the file and proceeded with the publish with no problem. Might work for you. ...Show All
Visual C# Initializing struct members
Hi, I am having a structure, I want to initilaize the struct members, I dont want to use argument constructor as my client wont invoke it. no argument constructor is not allowing why there is no argument constructor in struct How shall i handle this problem Thanks, Benin. Struct doesn't accept no argument constructor because they are value types and the construction and destruction is handled in a particular way by the CLR. Btw, this is .NET philosophy. A possible solution for you is a simple use of the factory pattern, as the following example shows to you: struct FooBarStruct { int _c; public FooBarStruct( int c) { _c = c; } public static FooBarStruct GetAnInstance() { return new FooB ...Show All
Visual Studio An unknown error occured while copying files to your temporary folder. Setup will now exit.
VB Studio 2005 Pro I have made sure my Temp folder is empty and good to go....writeable, etc etc. I have 3 PCs and on the 2 main ones I get this error no matter what I try while attempting to install from a CD. On the 3rd PC which I do not use (my son's) it will open up and install. I cannot figure out the problem. I tried movnig all files to a folder on the HD and installing from there, but no use. There has to be a fix for this. Help Merid wrote: Here is what I did for a fix: I have ISO Buster, and had tried it 3-4 times with no luck. The program is a 2-disc setup...so, on a hunch I extracted all files and then the contents of s ...Show All
Visual C++ possible compiler bug: C++ exception handling crashes when fibers are in use
When a catch block inside a fiber contains a SwitchToFiber() API call, the next throw will crash in some internal, compiler generated code (near a call to IsExceptionObjectToBeDestroyed()). See test snippet below. It consistently crashes on on the marked line. If you move the SwitchToFiber() call after the catch(), it works fine. Tested with VC++7.1, VC++8.0, both debug / optimized and single-threaded / multi-theaded (/MT,/MD) compile options -- makes no difference. Regards, Andras #define _WIN32_WINNT 0x0400 #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdio.h> LPVOID lpFiber; LPVOID lpMainFiber; class Ex { }; void fiber_func(void *) { printf(" enter fiber_func\n"); try { printf(& ...Show All
Visual C# Schedule Event
Hi again... I need to run this every day at the same time or once a week on a predefined day and hour. How's it done Been through allot of research but couldn't make it work This is the event i need to schedule private void BackUp() { Cursor = Cursors .WaitCursor; SQLDMO. _SQLServer srv = new SQLDMO. SQLServerClass (); srv.Connect(server, username, password); SQLDMO. Backup bak = new SQLDMO. BackupClass (); bak.Devices = bak.Files; bak.Files = BackupFolder + database + ".bak" ; bak.Database = database; bak.SQLBackup(srv); this .Cursor = Cursors .Default; } catch ( Exception err) { this .Cursor = Cursors .Default; MessageBox .Show(err.Message, &quo ...Show All
SQL Server Need to convert NULL values to 0, (zero) in order to perform math calculations
Using a reporting services model/report builder we have two related tables: - Fundings, (parent) - Draws, (child) Report Builder reports that subtract "Total Fundings.Amount", (which is SUM(FundingAmount)) from "Total Draw Amount", (which is SUM(DrawAmount)) to get a balance work as expected except when there are no Draw rows, in which case a NULL is returned. Obviously we want to convert NULL values of "Total Draw Amount" to zero so that when subtracted from "Total Fundings.Amount" the correct value is displayed. I've searched for a function similar to COALESCE (Transact-SQL) in report builder but found nothing. Can anybody help me with this Thanks Bruce ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I protect my code when distributing it?
Having read the FAQ. I noticed that in order to share your game creations (and lets face it, you can't get recognised without sharing your games), you need to send the other person the entire uncompiled game. This includes sourcecode, graphics, music, sound etc. etc. They then compile the code and download it to their xbox360 account and then only if they too are on the games creation program. My key worry here is that you send them everything you have just worked incredibly hard to create. Presumably they can then send this stuff on to whoever they please and god forbid, even sell it on! It strikes me that there isn't much incentive to distribute things this way. How is Microsoft going to prevent the above scenario Is there going to be a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. use SurfaceLoader.SaveToStream() to get a Bitmap object...
Hi, I'm going to get the content of a Surface object into a GDI+ Bitmap object. The surface is X8R8G8B8 format. using (Stream stream = SurfaceLoader.SaveToStream(ImageFileFormat.Bmp, surface, rect)) { bm = new Bitmap(stream); } bm.Save("shot.bmp", System.Drawing.Imaging.ImageFormat.Bmp); At the last line, it throws a "generic GDI+ exception". I tried ImageFileFormat.Dib, it doesn't work either. But I found ImageFileFormat.Png works! I have no clue. Anybody knows why ...Show All
Visual Basic help please on print dialog
how on the push of a button do i bring up a pring dialog for pinting the contents of a text box. Maybe not the best code, but I had it laying around: Imports System.io Imports System.Drawing.Printing Public Class Form1 Private PrintPageSettings As New PageSettings Private StringToPrint As String Private PrintFont As New Font( "Arial" , 16) Private WithEvents pdoc As New PrintDocument ' For this code to work, You must insert one MENUSTRIP from the toolbox !!!!!!!!!!!! ' and make your menu item design names match the 'click event' code below. '(MnuPSetup_Click is for menu item, design name 'MnuPSetup') ' and of course add one ...Show All
SQL Server Xpath/Xquery to exclude elements from XML
Have spent hours now bashing my head against this, thought it was time to ask for help! I'm trying to get a record from SQL Server 2005 database containing an ID int field and an XML type field: "SELECT ID,XMLcontent FOR XML AUTO" works fine. However I need to filter some elements out of the XMLcontent field, I only want the English elements from the following XML: <description> <short> <en lang="en">Description in English</en> <es lang="es">Descripcion en espanol</es> </short> <long> <en lang="en">Description in English</en> <es lang="es">Descripcion en espanol</es> </long> </description> ...Show All
SQL Server Need sql script or statement to extract all relations from one tree
Suppose I have a table with relations (REL). In this table there are relations between parent en child, so the columns are: Rel_Id, parent_Id, child_Id. Example: 1, A, B 2, A, C 3, A, D 4, B, E 5, C, F 6, G, H 7, G, I 8, H, J I need a query which returns all relations from REL that are in the same tree as the input unit. In the example, giving D as input unit, it should return relations 1, 2, 3, 4 and 5, because A, B, C, E and F are (in)directly related to D and belong therefore to the same tree. Giving H as input, it should return relations 6, 7 and 8. (with a tree, I mean that a parent can have 0, 1 or more children and a child belongs at most one parent.) Thanks for your help in advance! The l ...Show All
SQL Server Database stress tester
Hello Are there any database stress testing tools like database hammer bundled with any editions of 2005 Or is there a resource kit somewhere that has one Thanks this is the closest thing from MSFT http://msdn.microsoft.com/vstudio/teamsystem/products/dbpro/ . ...Show All
Visual Studio ASP.NET Debugging with VS2005 and IE7
Hi All I just want to join up with my fellow developers on the massive issue on ASP.NET debugging on IE7. Since I switched to Vista early september I mainly developed WindowsForms apps with Visual Studio 2005 and everything seems to work OK. Now I'm primary focused on ASP.NET and had the horrorfying experience: ASP.NET debugging doesn't work with IE7 and Vista !! I'm using Vista RC2 (build 5744) and haven't switched to the RTM yet. I thing this is a huge issue: Vista and IE7 is released at this time, IE7 is part of critical updates on at least Windows Server 2003 R2. The big Q is: When can we expect MS to deliver and update to this issue Note: The error exists even in a small 1 page + 1 button website. Best regards, ...Show All
Visual C# Connection string for MS Access database having password to open
Hi every body I m try to make a windowns form application named" Persional Diary" using MS Access database and C# ( Oledb provider) because this is an example for low level secret infomation so that I set password to my Access file ( Using MS Access toolmenu / security...so no one could open without password) But then now I can not acess this database using c# anymore. Could you help me to modify the Connection String in this problem, or give me an another way Thank you DongMT, VietNam Thank you, Glenn Wilson as your guide, I take some info here and I will try it , I used to visit this site but dont know why I do not remember it ... Thank you ...Show All
SQL Server Msg 8621: The query processor ran out of stack space during query optimization
I got the above error when I tried to execute the following query delete from BUSINESS_ASSOCIATE where ba_name is null As you can see the query isn't exactly complicated. What the table does have is lots of dependancies. I got SSMS to show me all the dependancies and there are literally hundreds (maybe thousands - I'm not going to count them all) of dependant tables and i suspect that is what is causing the problem. So what do I do about it This is a valid data-model (industry standard in fact) but SQL won't let me delete data from this table and that's a huge problem for me. Any advice about how to progress would be welcomed. -Jamie Jamie Thomson wrote: Hi guys, I sure can. ...Show All
