Michael Morrissey's Q&A profile
.NET Development More elegant search suitable derived class
Hi, In my project I use following hierarchy of class (class descriptions simplified for this example): public class Message { public static bool TryParse(string s) {} } public class Message00: Message { public new static bool TryParse(string s){} public Message00(string s) { } } ...... public class MessageKT: Message { public new static bool TryParse(string s){} public MessageKT(string s) { } } So I have base class and a lot of derived classes. Each derived class have its own method (TryParse) to check if parameter string suitable for this class (based on string signature unique for ...Show All
Visual Studio Team System Three problems with Team Build: read-only paths, missing include paths and huge checkouts
Hi, I hope you can help me with this problem: I set up a Team Build-Server. Basically, it works, my small test-project is building fine. But with our real C++-application there are some problems: - Some of our projects are generating libs as output-files and have a common folder set as the folder where the final .lib should be stored. This folder is not under source-control, because it is empty. Now, when one of these projects is built, it tries to create this folder but it fails, because its parent-folder is read-only. I created a work-around and checked this empty folder in. But I think that's not very nice. - Our projects requ ...Show All
Visual Studio Express Editions Including graphic files as part of project/build ?
Hi there, How does one include support graphic files as part of a project i.e. I have some default graphic files that I need to link into the project to ensure they are distributed as part of the application and are set-up in pre-specified folders. This is for Visual Studio VB Express by the way. MRW Hi Again, Ok, I followed your advice and set-up folders within the project. Added the graphics OK. However, now I need to reference the graphics in my application. I am not sure how to create the "portable" path reference that will always point to the files irrespective of how the project get built. e.g. picturebox1.imagelocation = Is th ...Show All
SQL Server Error creating new SSIS project
In my local client installation of the BI tools, I get the following error when simply creating an SSIS project and the default empty Package tries to display on the screen. Index (zero based) must be greater than or equal to zero and less than the size of the argument list. I can use the Reporting Services designer with no problems, and I can use SSIS from the client tools on the server. It is just on my local PC that I get this error. I have completely uninstalled all the tools and reinstalled with no luck. PLEASE HELP! If anyone can help, please reply. I am unable to use SSIS AT ALL right now be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. CreateFontResource/AddFontResorce issue
I use the CreateScalableFontResource (et al) API calls to make use of a font that I distribute with some of my games that are in C++ (not using DirectX) so I am familiar with how it works. However, when I try to do the same thing in C# with Managed DirectX, it doesn't work. I am not sure if the issue is on the C# (.Net) side or with the Managed DirectX code. The function all execute successfully, but when I attempt to create a font using the name of the new font, it doesn't find it and uses an existing font. If I manually install the font file, then it is recognized, so the code using the font is working. It seems that Windows is not b ...Show All
Visual Studio Express Editions Back Button?
Can I have a Code example for a back button in a web browser. Also a progress bar. Hey IYou Guys Want To Know How To Put A Progress Bar In Well I Have One All You Have To Do Is Put A Progress Bar In You Windows App And Name It "Progress" And Put This In You WebBrowser As 'Progress Changed Decloration" And Your Done Dim p, d, t As Integer d = e.CurrentProgress t = e.MaximumProgress If t < 1 Then t = 1 p = Int(d / t) * 100 If p > 100 Or p < 0 Then Exit Sub Progress.Value = p End Sub If It Does Not Work Make Sure Your Progr ...Show All
Visual Basic Best way to plot points along a curve (oh yeah, AND to draw the curve)
Hello again people. I am writing an application that requires a function to draw a curve that is plotted between two points where the user can specify the amount of curvature of the line between the two points. (If that makes sense). Once this has been processed, I need to be able to break down that curve into an infinite number of points and find the perpendicular normal angle of each of those points. I know, I know, it's enough to make your head explode, but I know it can be done, but I don't even have a clue where to begin :-( Hopefully you fine people can give me a bit of assistance. (Just for a bit of background, I'm ...Show All
Visual J# Kinda lost here. =(
Ok.. well... I doing a small application for the first time in visual j# and I'm having trouble with some idea that I have, hope someone can help me. I have a MonthCalendar1 and i want to get the selected date in some sort of variable or something I can use to store it and use it or compare it later.. I've been reading a lot since yesterday but Ijust can get an answer... Thanks! Use DateTime dt = monthCalendar1.get_SelectionStart(); to get currently selected Date from the Calendar. ...Show All
Visual Studio Team System Good God what a mess!!!!
well it's getting better but the install / setup process for TFS is still way to hard IMHO! for example the notes in beta 3 say "after installing Share point and Report services test to see that they are both working" but when I did the steps as given SSRS web UI fails to work... then I found a blog post that says to go into the admin of SPPS and exclude the report server folders... ok now the test works... so start to install the main TFS and I get an error telling me that SPPS is not configured right!!!!!! dang it just build an installer that loads and configures all the bits..... Hey I know it's "Beta" but please ...Show All
SQL Server UDM Information
where can I find good information of creating a report model with UDM, and build a report with it in report builder ...Show All
Visual Basic Calling API with "void *"
I declare a function in VB6 thusly: Private Declare Sub CopyPtrFromStruct Lib "kernel32" Alias "RtlMoveMemory" ( ByVal ptr As Integer , ByRef Struct As Any, ByVal cb As Integer ) and call it: CopyPtrFromStruct(mxcd.paDetails, Struct, Len(Struct)) What should I change the "Any" to in order for this to work I tried Integer, but then got the compiler error "Struct cannot be converted to Integer." Thanx! ---Mike Here's how your declaration should look like: .cf { font-family: Courier New; font-size: 10pt; color: #575757; backgro ...Show All
Visual C# VS 2003 Tabs switching
Hi I have a question about MDI tab switching. In VS 2003 IDE, if I have more than four MDI tabs, and these tabs can be switched using Ctrl+Tab. When I try to switch the tabs for the first time, it works fine. i.e., from left to right. However, if I try this action again, it switches in the random order. Is this behavior a known one or I am missing something Thanks, Hi James, Thanks for your help. Cheerz ...Show All
Visual Basic Questions?
HELLO! I AM NITESH MENON AND I HAVE SOME QUESTIONS. I HAVE BEEN USING VB FOR 3 DAYS AND NEED HELP. QUESTION 1- When using a web browser is there a way to go back to the previous page in VB (like back in internet explorer) QUESTION 2- When using a web browser is there a way to go back to the next page in VB (like forward in internet explorer) QUESTION 3- How can I display another form other than the main one. QUESTION 4- How do I save a configuration so when a user uses the program again he has the same settings. QUESTION 5- How do I make a web browser the default one QUESTION 6- How do I make an option menu. QUESTION 7- How ...Show All
Visual C++ Error Application failed to initialize properly 0xc0150002
I'm traying to compile a solution with VS 2005 RC1 but I get the following error Application failed to initialize properly 0xc0150002, the projects inside my solution all are configure to generate an EMBEDED MANIFEST. I used NTSD and I get the following error LdrpWalkImportDescriptor( ) failed to probe xx.dll for its manifest I review the Event Viewer and I found the following error Dependent Assembly Microsoft.VC80.DebugCRT could not be found and Last Error was The referenced assembly is not installed on your system. Source SideBySide Please help me Thanks in advance had this same problem with s ...Show All
Visual C++ New CRT model? Somone please explain it?
Going from forum to forum, I notice that the term "new CRT model" is often used. What does it mean Someone please explain it to me in a simple manner. Or please tell me where related information is available. It seems to me that many runtime problems find their roots in this concept. Thank you very much. Ted, Thank you for taking your time. Everything you provide me with is interesting and useful! Ted. wrote: I don't know the syntax of the others (e.g. TypeLib, interface, etc) as it has been very very hard to find any documentation for it. I only figured this out by using MSI ...Show All
