v-lijieh's Q&A profile
Visual Basic My first program?
Hello, I have just downloaded this new Visual Basic Beta thing, I have made a window containing some words, and was wondering how I could 1. Hide the window from the ctrl alt del list. 2. When i press the button it opens another window (a duplicate) 3. Be not able to close the window (remove the X) 4. And do anything else which would disable you from closing the box (disable Alt+F4 or something) This is my first program, it's jus ...Show All
Visual C++ Property Sheets - A problem
Compiler: Visual Studio.NET 2002 Hi everyone, I am having trouble teaching myself Property Sheets. I thought I grasped the ideas but I get a 'First-chance exception' in the Output window when debugging. I do not think I am doing anything special, my code is: CPropertySheet propsheet(_T("Property Sheet")); MyPage pageFirst; // derived from CPropertyPage MyPage2 pageSecond; // derived from CPropertyPage propsheet.AddPage(& ...Show All
Visual Studio Team System List a user's activity...
Is it possible to list the history of a certain user's activity in Team Foundation; like [when] he checked in/out [which] files etc. Also, can I prevent certain users from merging code, only one person can merge If so, then what do I do when they want to check in files that are not merged, should they overwrite and the merger rolls back or what Thank you, Sammy With respect to preventing users from "merging c ...Show All
Visual Studio 2008 (Pre-release) ShowDialog question
Hey all: I need some help in figuring out how the ShowDialog method works in WinFX. In the code below, I have a loop that shows a Window called Login as a Modal dialog using the ShowDialog method. If the model returns a DialogResult of false, then the code loops and shows the login form again. The problem is that when the code loops, even though ShowDialog is called again, the code is not blocked and continues to execute. Any ideas why Do I ...Show All
Visual C++ Error spawning "Cmd.exe"
Hi! I wrote this piece of code because I want to use the Graphic Engine OGRE.... In a tutorial I found this piece of sample code: #include "ExampleApplication.h" class TutorialApplication : public ExampleApplication { protected : public : TutorialApplication() { } ~TutorialApplication() { } protected : void createScene( void ) { } }; #if OGRE_PLATFORM == OGRE_PLATFOR ...Show All
SQL Server BULK INSERT /BCP with UDT
Dear all, I tried to do BULK INSERT / BCP of a table with a UDT column there. The data file looks like this: (Tab, \n, second column is the UDT column) 9556987 C,C,0.84 4974588 9845355 C,C,0.84 4974588 9556988 A,C,0.82 4974589 9845356 A,C,0.82 4974589 9556989 A,T,0.90 4974590 This is the SQL: BULK INSERT dbo.TEST FROM 'E:\My Documents\Visual Studio 2005\Projects\Genotype\Genotype_UDT\BULK_in1.txt' WITH ( KEEPIDENTITY, KEEPNUL ...Show All
Visual Basic ArrayTypeMismatchException with generic arrays
In the following example a System.ArrayTypeMismatchException with message "Attempted to access an element as a type incompatible with the array." is raised in the Test2 method when I attempt to get the element of the array (i.e., arr(0)). Is this a bug If not, can somebody please explain why Test2 is invalid whereas the equivalent non-generic version (i.e., Test1) is valid Thanks, Lance Public Interface IClass1 End Int ...Show All
Visual C++ DLL fails to load been compiled with VC2005 despite of correct set of manifests. Error 126.
Hello. I'm compiling quite simple DLL with VC 2005. And it fails to load on my system. Before I have compiled this DLL using VC 2003 - everything was ok and I have not changed any line of code since then. At first I was getting message that MSVCR80.DLL could not be found, but after maybe 50 faults message boxes do not appear any more and it fails to load silently. Every time I'm getting error 126 ("Module not found"). I've tried different varian ...Show All
Visual C# Accessing the .exe project from .dlls
Hi folks A raw newbie question. I can't figure out how to make accessors in forms within the .exe project visible to class libraries in the same assembly. For example, I'd like the .dlls to be able to set status messages on the main form. I'm pretty sure I've set suitable access levels. What am I missing Thanks Geoff Hi Bruce Thanks for responding. Before we get down to specifics, I tried to do a quick spike to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# Game Examples I would like to see....
Hi, I posted this same list on a couple other forums without any replies. Eventually I ended up submitting my own first example and of course it gets marked as resolved. Plegh! Like a number of other beginner's to game programming, I am having a difficult time deconstructing the Microsoft examples. They always throw in the whole kitchen sink! I would like to see some very rudimentary code samples which each do one simple thing. The Di ...Show All
SQL Server How to scale down database diagram to fit into a page for SQL 2005?
In sql 2000 enterprise manager, diagram, I can right click and get page setup where I can shrink the size of the diagram to fit page. In the SQL 2005 diagram, How can I adjust the size of the image printed on paper Did Microsoft take this useful feature away I figured it out and wrote this doc for my development team. How To Use Diagram In SQL 2005 Stephan Loh The Database Desi ...Show All
Visual Basic Visual Studio 2005 1.1 .Net framework Compatibility
I have an VB application written in Visual Studio 2003 using the 1.1 .Net framework. I am wondering if I will be able to work with and run this app after installing Visual Studio 2005 without myself or my users upgrade to the 2.0 .Net framework. No, If you convert the project to 2005, you will have to install .NET Framework 2.0 on the systems that want to use the application. You will need 2.0 to install VS 2005. Is there a reason not to in ...Show All
Visual Studio Express Editions Do you recommend that I use the free VB Express 2005 beta?
Just wondering. Do you know if the beta expires, because I probably can't afford to buy the release. Harry, I moved this to a new thread as it was a different question. Yes the beta does expire so you won't be able to use it after the RTM has been released. The Express versions will be rather cheap, only US$49. ...Show All
Visual C++ cannot debug "Hello world!"
Hi, I created a win32 console application starting with an empty project using Visual Studio 2005. I then added a cpp file and typed in the following code: #include <iostream> using namespace std; int main() { cout << "Hello world!\n"; return 0; } When I try to run the program by pressing "Start Debugging" (F5), a console window appears then I get a popup saying : " ...Show All
Visual C# Enum
SegmentInformation segInfo = SegmentInformation.XLine | SegmentInformation.YLabel; [ FlagsAttribute ] public enum SegmentInformation { XLine = 1 , YLine = 2 , XLabel = 4 , YLabel = 8 , HypLabel = 16 } How do i get the values XLine and YLabel out of the segInfo variable easily You don't. Not easily, that is. You have to set up a bit mask and use the bitwise AND operator: c ...Show All
