|
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
|
|
|
|
|
Not at all, I am now doing my drawing in OnPaint().
What I want to use BitBlt is to realize some special kind of paint brushes.
The brush to be realized is going to draw a small bitmap repeatly.But it seems doesn't work well as I said in this Post.
Another problem is how to get the mouse position on client surface outof Mouse events.
Or can I change the OnMouseMove()'s time interval of getting the current mouse position?
Now the time interval cannot satisfy my need to make a nice brush, I would like this interval to be as small as I want(can be equal to my Timer tick interval as about 1ms) can I do this??
|
|
|
|
|
I use Control.MousePosition to get the current mouse position on screen, then use this.PointToClient(Control.MousePositon) to translate it to client relative coordinate.
But it seems the point sensor interval is still not satisfied me.
|
|
|
|
|
By the way,
I have realized a nice eraser that works well with my layers.
When the eraser tool is activited, my code sets the Graphics.CompositeMode to SourceCopy and set the color of a pen inside my eraser class to a ZERO alpha value. The SourceCopy mode makes sure that the new stroke with new alpha value could cover the existing things on the bitmap.
That works fine for my eraser, but I think, to realize a selection rectangle, I need a XOR operation or a copy-paste of covered region operation.
|
|
|
|
|
I am getting this message from a system that is using DIME over web services. It has been working fine for quite some time and then just today for some reason I keep getting this message:
----------------------------
Microsoft.Web.Services.Timestamp.TimestampFault: Message Expired
at Microsoft.Web.Services.Timestamp.TimestampInputFilter.ProcessMessage(SoapEnvelope envelope)
at Microsoft.Web.Services.Pipeline.ProcessInputMessage(SoapEnvelope envelope)
at Microsoft.Web.Services.WebServicesExtension.BeforeDeserializeServer(SoapMessage message)
----------------------------
None of the programming code on either machine has been changed. Have spent a little while digging but have not yet found out anything even remotely related.
Any guesses?
Rocky Moore <><
|
|
|
|
|
Found out that the computers were off more than five minutes from one another. I didn't dream they would have to be in sync time wise to work, but I changed the time on one of the machines to match the other and it is all happy again. Guess the first web service I should call is to get the time of the other machine and make sure they are in sync.
Rocky Moore <><
|
|
|
|
|
Hi all
Can someone plz explain how I add a file compiled as a module to a MC++ project. I have added the file to the linker (module to add), but I cant access the assembly.
ANy suggestions?
Hey leppie! Your "proof" seems brilliant and absurd at the same time. - Vikram Punathambekar 28 Apr '03
|
|
|
|
|
Yip this just a simple test im trying, dunno if its possible even.
Just had a look, and appears not to be possible. I seems modules are only access from outside the assembly. I just wish it was not so... mite be OK for a dll, but not a single exe.
Hey leppie! Your "proof" seems brilliant and absurd at the same time. - Vikram Punathambekar 28 Apr '03
|
|
|
|
|
Go to the assembly project that has the assembly manifest (modules don't have one), and go to the Linker input property page and add the name of the module in the Add Module to Assembly property.
$(OutDir)\Test.netmodule
Separate each module path with a semicolon (no spaces between).
If you want to reference an object in the netmodule from another assembly, place a #using <test.netmodule> in the code.
|
|
|
|