Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. RLMuller

    Problem building assembly for sample C# WinForm app

    Mike, I found the tweak: I modified the OutputType from "Exe" to "WinExe". Now I feel a little bit smarter :-) Regards, Richard
  2. RLMuller

    Problem building assembly for sample C# WinForm app

    Hi Mike, Thanks for your reply. I created a new solution as follows (BTW, I'm running the release version of VS.NET): 1. I created a blank solution. 2. Then right-clicked solution to add a new C# Empty Project. 3. Copied the sample's three .cs files to the proj. folder. 4. Right-clicked the...
  3. RLMuller

    Problem building assembly for sample C# WinForm app

    I got the following error message after building/running a sample TreeView C# example: mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "TreeViewCtl.resources" was...
  4. RLMuller

    vsvars32.bat ineffective - what's up?

    You're absolutely right, Chip. I glossed over the first few lines and focused on the command and ran with it. You said it so gently, that I probably needed something like: "Look Stupid, Microsoft provided you a command to do just what your want. RTFM!" {BG) I did notice that...
  5. RLMuller

    vsvars32.bat ineffective - what's up?

    Hi Chip, You may be interested that I got some additonal info from another forum: http, //www.artima.com/forums/flat.jsp?forum=76&thread=4141&start=0&msRange=15 : There is a "Visual Studio .Net Tools" sub-menu of the Visual Studio menu that is installed; it contains a Visual Studio...
  6. RLMuller

    vsvars32.bat ineffective - what's up?

    Thanks again, Chip, for your help. I stupidly tried to use Command.com instead of Cmd.exe. And I probably used the /k switch sometime in the dim past, but I'll be damned if I can remember when. In short, your advice worked perfectly unchanged. Again, thanks. The thing was really bugging me...
  7. RLMuller

    vsvars32.bat ineffective - what's up?

    Hi All, I wanted to be able to run csc.exe and use VS symbols within a newly opened Command window without having to run vsvars32.bat each time. I double-clicked vsvars32.bat from a Windows Explorer window, then opened a Command window and entered the command csc. I got the error message...
  8. RLMuller

    Access Win32 const DRIVE_FIXED - How to?

    Hi Chip, Just a few last words: FYI, a few minor details: The "C# Lang. Spec. (Based on Beta Content)" says the underlying type is "int" (Sec. 14.1), so ": int" is apparently redundant. The spec also says enums have default values 0, 1, ... (just like C, etc.)...
  9. RLMuller

    Access Win32 const DRIVE_FIXED - How to?

    Chip, I created an enumeration based on WinBase.h values and cast the DRIVE_TYPE element to an int. It worked fine as a substitute for PlatformInvokeKernel32.DRIVE_FIXED. What exactly is the "API Text Viewer utility?" I found the FindType utility in a VS.Net C# sample, which I...
  10. RLMuller

    Access Win32 const DRIVE_FIXED - How to?

    Chip, Many thanks for your reply. It exposes my stupidity, because I've searched many times through the headers for the Platform SDK, MFC and VC++ proper. I didn't think of it because I wanted to learn how the author of the example I copied managed to use the expression...
  11. RLMuller

    How to make a button the "default" on a form

    Chip, Thanks for your help. You were right on the mark, of course. Regards, Richard
  12. RLMuller

    Access Win32 const DRIVE_FIXED - How to?

    Hi, I downloaded a TreeView C# sample. It included the statement: if (PlatformInvokeKernel32.GetDriveType(drives[i]) == PlatformInvokeKernel32.DRIVE_FIXED) ... I found a declaration for PlatformInvokeKernel32: using System.Runtime.InteropServices; internal class PlatformInvokeKernel32 {...
  13. RLMuller

    Advantages of using C# over VB.Net

    I'm mainly a Visual C++ experience, but with lots of experience in other languages and OSs. To my mind VB and VC++ were very different, so the trip from the former to the latter was very steep. I haven't used VB.Net at all, but from what I read, it's pretty close to C#, which has dropped many...
  14. RLMuller

    Succint way to write multiple case values?

    Is there a more succinct way of writing the following: select (myInt) { case 1: case 2: case 3: ... Perhaps as: select(myInt) { case 1, 2, 3: ...
  15. RLMuller

    How to make a button the "default" on a form

    When I add buttons to a dialog in VC++, I can designate one as the default which will receive a click message when Return is pressed on any control. Where's its counterpart in C# forms?

Part and Inventory Search

Back
Top