Shabby's Q&A profile
Visual Studio Express Editions Rich text box help needed!!
I'm pretty new to VB2005 Express and I'm trying to make an app with a rich text box and have no idea on how to code the 'save file dialog', the 'open file dialog', the 'font dialog', or the 'print dialog'. I would really appreciate help. All works great now, but when I highlight any text, or click in the text box, an unhandled exeption occurs and this is the error i get: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr w ...Show All
Visual Studio Express Editions commandline compilation
Hi! I have a visual studio C++ 2005 project. Is there any way to compile it in commandline without using the IDE http://msdn2.microsoft.com/en-us/library/ms235639(VS.80).aspx That should help you. ...Show All
Visual C# Setting reference conditions in Build configurations
Does anyone know how to configure a project or solution build to conditionally pick up specific copies of DLLs maintianed in other solutions I'm referencing several DLLs which are built in other solutions as class libraries. When I build in DEBUG configuration mode, I want to pick up the debug copies of the DLLs. When I build in RELEASE mode I want to pick up the release copies. I'm using VS2005 C#. All my solutions maintain built projects in the standard VS paths. Example ..\MyProject\bin\Debug ..\MyProject\bin\Release I appreciate any advice or pointers. Thanks. Hans, Thanks, that's a great hidden secret to know. It works well when the class library DLLs are in another p ...Show All
Visual Basic Impersonation and Win 2003?
I have a class library created with VS 2005 on Framework 2.0 that I use for our Windows desktop apps to validate a user against Active Directory. The Impersonate function uses a valid generic AD user to log in. I'll copy in the basic code in question below. It seems to work fine on the XP machines that I have tested it on. However one major use for it will involve installing it along with an app on a server so that users at distant locations can use remote desktop or something like Dameware remote control to run it on the server. The server OS is Win 2003. The LogIn function fails when I run it on the server. The machines are all in the same domain. Is this a security thing with 2003 or something else Thanks. <Assembly: SecurityPerm ...Show All
Visual C# Q: Creating a simple keylogger
Hello everybody, is there a way to create a simple keylogger in c#. This means to record every key pressed and write them down in a file....More or less that's it! Any ideas. With all the respect, chire Thank you very much guys. Appreciate the help. I ain't no script kiddie, but hey, I ain't gonna lie to ya...I am going to need this to record everything, even usernames and passwords. Do not get me wrong...someone smart has said: Get to know your enemy... peace out brothers, chire ...Show All
SQL Server Can I access SQL Server 2005 via a Window XP pro workgroup network?
Hi, I am new to SQL Server and I am trying to install SQL Server 2005 Express or Stnadard Edition on a computer runing XP pro on a XP's workgroup network using a router. Can I access the the database from another computer running XP pro on the same network If I can, what setting do I need when installing SQL 2005 in order to do this Any help is appricated. Make only sure that you enable remote connections, see the Screencast for this on my site for a detailed explanation. HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# Creating controls at runtime vice dropping Controls at Design Time???
I'm not so new at C# but I'm still a beginner! I'm very confused about the above subject ... I am a former VB (and COBOL) programmer and, I'm confused as to why or when to drop controls on a windows form and when to create them at run time Are there do's and don'ts for this, or is this feature available for the "hard-nosed" programmer who likes to fully control the app When I wrote VB apps for instance, I would not use the Data control (unless I absolutly had to) because I wanted more control over the data and how it was displayed and edited. Yeah, more coding and work but I knew what was happening when. Any information that will help clear this muddled mind of mine would be appreciated! Thank you Greg ...Show All
SQL Server Error from sys.dm_db_index_physical_stats "No exceptions should be raised by this code"
I'm setting up a routine to do some reindexing. To get the info I need I'm trying to use the new function. The DB I think is causing the problem does pass DBCC CHECKDB. I'm not sure why I'm getting this but can not find anyone else that is getting this same error. When I run this.... SELECT * FROM sys.dm_db_index_physical_stats (NULL, NULL, NULL, NULL, 'detailed' ) I get this.... Location: qxcntxt.cpp:954 Expression: !"No exceptions should be raised by this code" SPID: 236 Process ID: 1060 Msg 0, Level 11, State 0, Line 0 A severe error occurred on the current command. The results, if any, should be discarded. Msg 0, Level 20, State 0, Line 0 A severe error occurred on the current ...Show All
SQL Server SQL Analysis Services Service does not start
I have installed SQL Server 2005 Standard Edition for use with Team Foundation Server. I have verified the installation according to the documentation, and all is well except that the Analysis Services Service is not started. When I click Start, I see the progress bar as if it is starting, but it stops shortly after, saying that "Some services stop if there is nothing to do". Team Foundation Server requires that this service be started for the installation to succeed. How do I get the service to stay started Thanks in advance. What logon account you are using for Analysis Services serivce Try changing it to the domain user account. Edward. -- This posting is provided "AS IS&quo ...Show All
Visual Studio Express Editions Flash screen timer
Before I start my application in form1, I want to show a splashscreen for 3 seconds, how can I make it jump to the application in 3 seconds you would really have to implement it yourself. The guideline/instructions given arent really hard :-) You just have to work out which form to show first and perform the operation Which form is showing first splash screen or main form ...Show All
Visual C++ problem with moving project from vc++2003 to vc++2005
hello all, i am porting my projects from vc++2003 to vc++2005 express and having several problems. I want to use some libs that are old and compiled with vc++2003. is that even possible, or any kind of workaround to my problem i know that there have been some changes concerning the iostream implementation, i am not sure thou if this does affect me or not. any comments appreciated. i checked my project settings and i compiled everything with /MDd thank you very much the errors i am getting are: msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,st ...Show All
.NET Development Sending an email through a web service
Hi, I need some help with the Web Service security. I have a web service that picks up a file from a folder (any folder, network, local etc) and sends it using SMTP to a mail recipient. When I browse to a file on my machine, example C:\Temp\File1.doc and invoke the web service call passing the file, the system is able to attach the selected file and the email is sent successfully. However, if I point to any file in C:\Document and Settings\... or on the network, say \\ServerName\ShareName\File.doc, the system is unable to attach the file to the mail message being created. The error message is 'Invalid attachment'. I have enabled Anonymous Access for the web service and cleared all the other checkboxes in the Authenticated acc ...Show All
Visual C# How to get cube role from Analysis Services
Dear All, Recently I want to learn How to get cube role from Analysis Services by .NET while I can't find better ways, so would you give me advice,and thank you very much! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Power of XBOX360 - raw triangle power
Hi, I was wondering if it was possible to compare the graphics power of XBOX360 to any of current gfx cards. Say, if it`s capable of rendering same amount of triangles as e.g. GF6800 does. The old XBOX was usually compared to GF3 in terms of graphics performance. The reason I ask is, that I would like to know the general boundaries of the raw gfx power, since I`m planning on converting some of my current games to XNA (and later to XBOX360) as soon as it becomes available. Currently I`m pushing the GF6800 card to its limits, which means I`m rendering a range of 0.5M-1.0M triangles (all unique, non-instanced) per frame and it seems that GF6800 starts to slow down when it crosses 1M barrier. No pixel shaders there, just Vertex Shader ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The reverse of Quaternion.CreateFromAxisAngle?
So if I have a quaternion, how would I extract the axis and angle(s) from it Here you go: public static void ToAxisAngle(ref Quaternion q, out Vector3 axis, out float angle) { angle = (float)Math.Acos(q.W); float ooScale = 1.0f / (float)Math.Sin(angle); angle *= 2.0f; axis = new Vector3(-q.X * ooScale, -q.Y * ooScale, -q.Z * ooScale); } ...Show All
