|
The best way is to use the "Visual Studio.NET (2003) Command Prompt" in your Tools menu under "Start/Program Files/Visual Studio.NET". This will launch a command (cmd) window with all of the paths set etc. The nice thing is that they only exist for that session so you don't end up with masses of system or user path settings which is a bit Win95ey!!! (IMHO!!)
Shaun
|
|
|
|
|
leppie wrote:
It doesnt add the path by default (god knows why).
The old VS6 installation used to ask you if you wanted this to happen. I'm surprised they took this out in VS7 (I don't remember seeing that option in the install either...). But there's always the "Visual Studio Command Prompt" shortcut that VS.NET creates. I've put it on my shortcut bar for easy use
As for the .NET FrameworkSDK, it provides a 'corvars.bat' in the FrameworkSDK/bin directory that sets PATH to allow for easy usage of the compilers and tools that come with the SDK.
leppie wrote:
Windows operating systems still needs a reboot for PATH variables to take effect (no-one knows why).
The NT line doesn't require an OS reboot under these circumstances. When a new process starts, it gets its own copy of the current environment. This means that just the process will need to be restarted - not the whole OS. For instance, if you change PATH, all command lines you currently have open will continue to use the old PATH, but new ones you open will use the new PATH. You can force explorer to recognize new environment variable changes be using TaskManager to shut it down and restart it.
--
Russell Morris
"Have you gone mad Frink? Put down that science pole!"
|
|
|
|
|
Hi Steve,
You can use Start -> Programs -> Microsoft Visual Studio .NET -> Visual Studio .NET Command Prompt
(That will set all path variables necessary for .NET applications). Perhaps I think this is a batch file. We can copy necessary values and put them onto System Path as well. I have'nt tried that anyway, but should work too.
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
hi all,
the question is :
"Is there any support in .net to capture the ethernet packet moving on the network?"
regards
|
|
|
|
|
Somewere on this very site - name eludes me though
|
|
|
|
|
In my program ,I create a new Bitmap use
Bitmap bmp = new Bitmap(200,200);
and I use the GetPixel() method to get the color info.
the result is [Color A = 0 R = 0 B = 0 G = 0]
and then I save it use the bmp.Save("C:\\ss.bmp",ImageFormat.Bmp)
but when I reload it Use the Image.FromFile()
I found that the color change to
[Color A = 255 R = 0 B = 0 G = 0]
how can I resolve this problem?
|
|
|
|
|
I'm not sure, whether bmp file format does support alpha channel...
Try using other ImageFormat (maybe Png format can be better)
i'm only pointer to myself
|
|
|
|
|
Hi folks,
I'm working on a project using both clr and non clr-Modules. I try to load a C#-assembly dxnamically from a c++Module translated with the clr option. For that I'm using the .Net-Assembly class (System.Reflection.Assembly). In some cases I cannot call the function I'd like to. That depends on wheter some Objects are instantiated whithin it or not.
Here the code of the function I try to call via Reflection:
This works :
/////////////////////////
public void Init()
{
//Doc.Document doc = new Doc.Document
String txt = "hello";
}
/////////////////////////
this doesn't
/////////////////////////
public void Init()
{
Doc.Document doc = new Doc.Document;
String txt = "hello";
}
/////////////////////////
In case the critical line is there, I cannot even debug into the function, making it hard to find the error. Any Ideas ?
|
|
|
|
|
You're right, but I just wrote it down wrong from my memory, so the paranthesises are not the problem. The assemblies/modules all compile properly, so it's not a syntactical error. The assemblies/modules just do not work with each other. pitty
|
|
|
|
|
You're right, but I just wrote it down wrong from my memory, so the paranthesises are not the problem. The modules all compile properly, so it's not a syntactical error. The modules just do /do not work with each other depending on the code in the function called across the modules. pitty
|
|
|
|
|
How can I start a process under a profile different thant the one logged in? I know you can use the 'runas' utility, but there's no parameter for the password. I suppose I could launch 'runas' via Process.Start, redirect it's standard input, then send the password myself, but isn't there an easier way?
Thanks in advance.
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
|
|
|
|
|
The assemblies in the .NET Framework includes the metadata information with the assembly files and so no longer the component information is stored in the Registry.
So Is the Registry used only for application specific settings? But for even this situation we can use the configuration files (.config) or XML (new craze)
So what's the future of Registry in the .NET world? What I am missing?
Don't and drive.
|
|
|
|
|
The new OS in development at Microsoft does not have a registry, it is all database driven!.
No I am not talking about server 2003, I think the codename is sledgehammer or something like that.
So the answer to your question is it is going to disappear as we know it.
|
|
|
|
|
Is there a way in the framework to search for a string/phrase inside of a file on the filesystem. I need similar functionality to Windows Search. I was going to write a class to read file streams and search that way, but I figured that if the framework provided that functionality, why reinvent the wheel? So if you know of a function call inside of the framework that can accomplish this I would appreciate it.
Scott
|
|
|
|
|
Does anyone know where the documentation is for this? I have looked on the Internet, MS, Rotor, MSDN, etc. with no luck. Any ideas??
|
|
|
|
|
Mike_V wrote:
I have looked on the Internet, MS, Rotor, MSDN, etc. with no luck. Any ideas??
I wonder why you guys are always missing the obvious. The documentation is waiting for you on your hard drive. It comes with the .NET framework SDK : <framework SDK folder> \ Tools developers guide \ docs \ Assembly Metadata Unmanaged API.doc
|
|
|
|
|
Oops!
I didn't know about this folder. It looks like there are some interesting things here...
Thanks!
|
|
|
|
|
Ya'll listen up real good now, ya'hear?
I just spent the last 45 minutes yelling at the .NET Framework because it kept telling me that no public installer was found in my Windows Service code. Even though I had expressely coded in an installer, as per about twenty different articles instructions.
It then dawned on me; I had made the project in Visual Studio.NET 2003, but I was running INSTALLUTIL.exe from the .NET Framework v1.0 folder, not .NET Framework v1.1.
As soon as I swapped to v1.1 it worked beautifully.
I think the lesson I have learnt the most of late is; If you are going to use Visual Studio .NET 2003 then make sure all your deployment machines/servers are running the .NET Framework v1.1.
Paul Watson Bluegrass Cape Town, South Africa
brianwelsch wrote:
I find my day goes by more smoothly if I never question other peoples fantasies. My own disturb me enough.
|
|
|
|
|
Paul Watson wrote:
I think the lesson I have learnt the most of late is; If you are going to use Visual Studio .NET 2003 then make sure all your deployment machines/servers are running the .NET Framework v1.1
When you know that VS.NET 2003 always targets .NET 1.1 because of marketing reasons, you end up repeating for yourself that "marketing people rule developers .. marketing people rule developers ...", which shows quite well the mess in what we are now...
|
|
|
|
|
Thanks Paul.
Can you tell me if Service installation is any better than in 1.0?
I found in 1.0 that on subsequent installations it would not overwrite registry settings for usernames, passwords, executable location etc.
Robin
|
|
|
|
|
Robin Golden wrote:
Can you tell me if Service installation is any better than in 1.0?
I found in 1.0 that on subsequent installations it would not overwrite registry settings for usernames, passwords, executable location etc.
I had no problems with re-installing the Windows Service. Note though that I always did an un-install of the previous version first, then I installed the new version. Also the install script was very simple, the windows service I made was pretty contained in that it did not need any registry settings. All it needed was to be registered with Windows as a service and a username and password given (asked for during the installutil.exe running or it could be put in the Install script and it always picked up the change if there was one.)
Paul Watson Bluegrass Cape Town, South Africa
brianwelsch wrote:
I find my day goes by more smoothly if I never question other peoples fantasies. My own disturb me enough.
|
|
|
|
|
I just installed Visual Studio .NET 2002 a few months ago. I am using the C++ compiler almost exclusively for ATL,MFC,WTL and managed C++ apps. Why should I upgrade to Visual Studio .Net 2003? What REAL benefits do I get. My company has already rejected the .Net framework for now... So I only use the C++ compiler. Is the upgrade worth it?
Robert Greene
|
|
|
|
|
I upgraded and found that compiling a huge c++ project seems to be slightly faster, and overall the ide ui seems to be a bit less buggy, although strangely enough when you drag the vertical bar it still sometimes opens a new window to msdn unexpectely.
Also, it seems as though everything that used to compile with a linker warning about being deprecated in future is now in fact deprecated, so I had to re-jig a bit of code that used the old IOSTREAM library etc.
I guess it might also be a potential issue of paying more down the road to upgrade if you don't incrementally upgrade.
"Things are more like they are now than they ever were before."
-- Dwight Eisenhower
|
|
|
|
|
when call BitBlt in .NET, I came across a problem.
I want to copy a bitmap to another bitmap in memory using
BitBlt(dc, 100, 100, 60, 60, sc, 0, 0, SRCCOPY);
then draw it on screen in OnPaint(), but it display a black square with the same size of the source bitmap instead of the real bitmap. What is the possible problem in my call of BitBlt or is there something wrong somewhere else?
|
|
|
|
|
I think I may have mislead you when I mentioned BitBlt in our previous thread. You don't need to use BitBlt, the framework does it for you when have enabled the doublebuffer style bits (using SetStyle on the control/form). You can continue to do your drawing as you did before, once you finish your painting in OnPaint then the framework will take over and do what it needs to do for the double-buffer.
My apologies,
James
"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation
|
|
|
|