qsnet's Q&A profile
Visual Studio Express Editions Compiling Error
Ok, I'm an aspiring C++ programmer. I've read up on it, and finally downloaded Visual C++ 2005 Express Edition so I could actually do something with my knowledge. But it's not compliling...and this is the way I was shown how to do "helloworld": #include <iostream> using namespace std; int main() { cout << "Hello World\n"; return 0; } I get this error message: fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source Well, yeah, I did forget to add it. But where would I add it...and why does it need it It's really ...Show All
Visual Basic Direct Input & Joystick
Hi, I have an application developed in VisB 6.0 that makes use of the DirectX 8 Direct Input Joystick Code sample on the MSDN. Importing just this simple code example into VisB 2005 does not Update sucessfully. Is there a .Net Framework CLS Class or code snippet or sample program that demonstrates Initializing and polling a Joystick TIA Horse I'm afraid I only know of a C# sample - if you can read that, i know that at least the June 2005 DX SDK has a sample for Joystick polling. ...Show All
Visual C# blocked zip files using zipsharp library
I had a program created in C#.net that zips a folder up for me automatically. We used the zipsharp library and it seems to work great execpt when you try to open it using windows to extract the files from the zip. If you try to extract the files you get a message saying "windows has blocked access to these files to protect your computer" and it tells you you can fix this by right clicking the zip file and go to properties and check the "unblock" box and all will be fixed. However there is no "unblock" option anywhere. I can use winzip or winrar to open and extract the file just fine but windows will not work. It seems to be somet ...Show All
Visual C# Socket question.
When I close a socket in the server side, I found the client will receive some empty data automatically, even though I haven't sent anything in my code. I also found that some empty data will also be sent to the server automatically if I close a client side socket. These two cases could be reasonable since there may be some acknowledgement to be sent arround. Upon closing a server side socket by calling its Close(), it's wired to see that ReceiveDataFromClientCallBack() will be called id the socket is a work socket. And the AcceptClientCallBack() will be also be called if the socket is a listner socket. Anybody can explain this W ...Show All
Windows Forms Making a UserControl behave like a Timer control at design time
I have a UserControl in C# that I want to behave like the Timer control, and other controls behave. That is, at design time, when the user places the control on a form, it drops down to the window below the form instead, and just shows its name. Also, at runtime, it doesn't display anything. Does anyone know how to do this ...Show All
Visual Studio Team System How to backup VSTS project?
Which databases are VSTS used in SQL Server Could I just need to backup those database Or there are other files or settings should I backup at the same time Thanks! Ok, this is probably an obvious question, but to backup the ADAM datastore, do I just need to backup the BISGSS folder under C:\program files\MS ADAM directory Thanks, ~slee ...Show All
SQL Server Error Connection to MSDE with SQL JDBC Driver
Connecting to SQL Server with SQL Server Driver for JDBC is OK. Trying to connect to same database, installed under MSDE, i get error "Error establishing socket". It looks like the JDBC Driver only supports full SQL Server 2000 and not MSDE D, What JDBC driver are you using If the driver you are using supported only TCP connection, make sure that TCP is enabled on the server side for MSDE. ...Show All
Windows Live Developer Forums Edit Issues
I'm having some issues with my editPost implementation. The first is that each time I edit a post the dateCreated moves back 5 hours. I am at GMT -5 which leads me to believe that the adjustment is being applied somewhere but I'm not doing it myself so I'm not certain as to where it is happening. I'm assigning the dateCreated value of the post I get from getPost to the dateCreated value of the post I'm assigning via the editPost. Along the way both DateTime.Parse and DateTime.ToString are used at least twice which leads me to believe they aren't changing it or the difference would be 10 or more hours not 5. Flow goes like this: 1) xml ...Show All
Software Development for Windows Vista Overlapping UI bug
I've got a problem with a set of UI widgets that no longer work properly in Vista. I've got a ComboBox control...a pulldown arrow on the right and a region to display the setting on the left. Overlapping the left of this control is an Edit into which the user can type. Our software uses the combination of the ComboBox with an Edit on top of it for a very specific purpose. A ComboBox alone will not do the job. In Vista, I see that whenever I mouse over the Edit control, the control appears to fade away to the background color. I think it's the ComboBox control underneath this Edit control that is causing the problem. However, ...Show All
Software Development for Windows Vista Designer re-hosting and XAML only workflows
I'd like to change the Designer Re- hosting example to cater for XAML only workflows. Can anyone give me any advice to get me going I have some custom root workflow activities (compiled) and have xaml workflows that use these, but when I attempt to load them into the example it doesn't even get off the ground because the WorkflowMarkupSerializer can't deserialize the xaml (returns null). I had added the assemblies etc. I have got a bit further by modifying the PerformLoad so that the serializer uses the IDesignerSerializationManager that is passed into it. This enables it to deserialize the XAML with my custom types that I added ...Show All
.NET Development VB.NET Window Application associates with SQL Server
I have a simple VB.NET Window Application, initially I program it WITHOUT having any database connection. It (the .exe) runs fine in my local PC and network shared. When I add a database connection string to the program. A simple DSN-Less database connection string using ODBC Provider to SQL Server. Without any query, just merely try to connect to database. It runs fine in my local PC without any error BUT it returns security error when runs in network shared . The security error is " The application attempted to perform an operation notallowed by the security policy. The operation required the SecurityException. To grant this ap ...Show All
Visual Basic Slow ReadOnlyCollection
Hi all, When I try to search all files recursively (to use with the copy command), with the following code: Dim c As Integer Dim files As ReadOnlyCollection(Of String) files = My.Computer.FileSystem.GetFiles("C:\", FileIO.SearchOption.SearchAllSubDirectories, "*.*") For c = 0 To files.Count ListBox1.Items.Add(files(c)) Next It takes way too long to collect the files into the collection, when I have lots of dirs / files. Is there a quicker way. In VB6, I used to recursively call a function, however I was hoping there was a better way in VB2005. The above code is simple and ...Show All
.NET Development .NET Assembly Security
Hi all, just a quick question. Since there is a .NET Reflector written by LR which disassemble an exe/dll file, i can't find anything nor a better solution to get secure. How are we suppose to write a secure .NET app since it can be disassemble Is there a way to do it or perhaps possibility Or what's your recommendation / suggestion Regards, David [.NET NEWBIES] Hi David, The best way to protect an Assembly from beeing decompiled is to use an obfuscator like Dotfuscator from PreEmptive Soluctions. It does basically rename all your non public and internal types so nobody else can understand it's meaning easily. You still can de ...Show All
Visual C# Interaction between two forms fails
I have a projects (WindowsApplication2) with two forms. There are two linkLabel on Form1. I want to click on one of them, close the form Form1 and have this action to open Form2. I want to accomplish everything with one click only. The first form (Form1) may close or become invisible, it does not matter. I haven't been able to do it. The following code compiles but I get a runtime error message when I click on linkLabel1 "It is invalid to start a second message loop on a single thread. Use Application.RunDialog or Form.ShowDialog instead." When I click on linkLabel2 the second form does not appear either. The first form ...Show All
Visual Basic Creating a byte array from a stream
How can I do this I've tried... Dim AccountToUpload As Byte() = System.Text.Encoding.Default.GetBytes(AccountUploadStream.ReadByte) ...but my result it -1. The stream is declared as... Dim AccountUploadStream As System.IO.MemoryStream = New System.IO.MemoryStream Any ideas The data stored in the stream is an XML document. Thanks. Try this code: Module Module1 Sub Main() Dim AccountUploadStream As System.IO.MemoryStream = New System.IO.MemoryStream( New Byte (99) {}) Dim ByteReader As New IO.BinaryReader(AccountUploadStream) Dim AccountToUpload As Byte () = ByteRea ...Show All
