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...
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...
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...
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...
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...
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...
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.)...
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...
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...
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
{...
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...
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.