|
Requirements are 'the app needs to do x'
Features are 'we added y to the app, and this deals with requirement x'
It's probably largely semantic, but I'm sure it keeps some consultants in a job.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Thanks's for your answer,
but I still are unable to catch the point probably ))
As I understand you, Requirements are from the user and Features are from the implementation. Am I right?
Let me try an example:
We have 3 user requirements:
R1: Read configdata from file after startup
R2: Store configdata to file at closing
I have the following implementation (-features)
I1: Search file from directory-tree
I2: Read config-file
I3: Interpret config-file
I4: Write config-file
This means:
R1 is implemented by I1 and I2 and I3
R2 is implemented by I1 and I4.
For getting traceability now, I have to check which requirement is implemented by which feature.
Is my thinking right in some way?
With kind regards
|
|
|
|
|
Dear experts,
may be I have a stupid question for the experts.
During my complete sw-career, if I had to parse some information from a text-file, I wrote some hand-crafted functions/classes which were full of (stringcompare, if-then-else-constructs, nested "for"-loops, ....). Finally this code was always totally unmaintainable and unreusable.
An example: Getting the include-structure of a c++ - based program can easily get complicated, because the active include-files get constrained on nested defines.
Now I read something on grammars and parsers which are used for compiler-construction. This seems to be very interesting to a lot of practical problems (not only to my include-structure-parsing-problem).
Due to my beginners level of knowhow I have some questions:
1.
Which links/books are available for beginners?
2.
Is there a way to automatically create a parser solely from a grammar?
3.
Is there any C# - Example available anywhere (e.b. at Codeproject)
Kind Regards
|
|
|
|
|
Tomerland wrote: 1.
Which links/books are available for beginners?
I did a module on compilers at uni, and the text book[^] was quite useful. It's the only book I've ever read on the subject though, so I don't know how it compares. It has several chapters on grammars, parsers and syntax trees.
Tomerland wrote:
2.
Is there a way to automatically create a parser solely from a grammar?
The classic tool is Yacc[^]. It generates parsers (in C) from grammars. I'm sure if you look around there will be ports for whatever languages you use.
Check out here for some other compiler related tools.
http://dinosaur.compilertools.net/[^]
http://catalog.compilertools.net/lexparse.html[^]
There's Irony[^] for .net. It generates compilers for domain specific languages, when given a grammar. (There's also a CP article on it's use here[^]). I haven't tried this out yet, but it's been on my list of interesting things to look at for at least 6 months
There's also an article on a tiny parser generator[^] app posted only a few days ago.
Simon
|
|
|
|
|
Thank you very much for your help,
a very nice overview
With very kind Regards
|
|
|
|
|
You might like to look at COCO/R (type into Google and will be the first hit) for generating from grammars. Its my tool of choice because the syntax is easy to learn and its ported to lots of languages (i.e. it can generate C#, Java......)
Chris
|
|
|
|
|
|
Hi all..
I have registered dll using RegAsm...
as..
RegAsm.exe E:\Sharepoint_080808\Testing_new\Src\Sharepoint_API\Sharepoint_API\bin\Debug\Sharepoint_API.dll /tlb:Sharepoint_API.tlb /codebase
and created .tlb file....
How can i unregister the dll again..
thank you
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.1434
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
Syntax: RegAsm AssemblyName [Options]
Options:
/unregister Unregister types
/tlb[:FileName] Export the assembly to the specified type library
and register it
/regfile[:FileName] Generate a reg file with the specified name
instead of registering the types. This option
cannot be used with the /u or /tlb options
/codebase Set the code base in the registry
/registered Only refer to already registered type libraries
/asmpath:Directory Look for assembly references here
/nologo Prevents RegAsm from displaying logo
/silent Silent mode. Prevents displaying of success messages
/verbose Displays extra information
/? or /help Display this usage message
|
|
|
|
|
HI..
Thank you very much...
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Hi,
I have developed a Excel2003 addin program in .net2008, but the problem is i unable to deploy it in my client's computer i have developed the setup it also runs but my addin does not add in the addins collection .Please help me
Regards
|
|
|
|
|
did u check on your on machine if it work properly
then in Client machine go to Help>about MsExcel>DisableItem i Think it is disabled automatically my MSEXCEL. Enable it from there.
wasim khan
|
|
|
|
|
No it isn't disabled in my client system.
does any one had deployed Excel addin2003 using .net2008.
|
|
|
|
|
How is it possible to give the name of the machine to this code so that it runs against the machine name?
Thanks
This code is fine for my machine where I am developing but I would like to give it a machine name on the network and so the code runs gives information on that machine.
How is this done please?
//Create WMI Class
ManagementClass mc = new ManagementClass("Win32_Processor");
//Populate class with Processor objects
ManagementObjectCollection moc = mc.GetInstances();
//Iterate through logical processors
foreach (ManagementObject mo in moc)
...
|
|
|
|
|
not all machine gives the information u want, it depent on the vandor of the device
But from the thing i understood from u, u want to connect via local network and ske the comupetr to give u his name??
if so u can ask it by using the GetHostName() feunction in the tcp/ip classes
Have Fun
Never forget it
|
|
|
|
|
What about something like this:
ManagementObjectSearcher mySearcher = new ManagementObjectSearcher("\\\\remotemachinename\\root\\cimv2", "SELECT * from Win32_Processor");
foreach (ManagementBaseObject obj in mySearcher.Get())
{
...
}
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I'm trying to create a program that converts an image file(PNG,GIF,JPG,JPEG) to an Icon file.
using the Bitmap class, i tried saving it something like
Bitmap bitmap = new Bitmap(imageSource);
bitmap.save("test.ico", ImageFormat.Icon);
The result, I was able to produce a .ICO file. Ok here's the problem, I wanted to use the Icon for my Application in C# so I click on the ICON properties of the FORM and It let me browsed the location of the ICON file I want to use. So I used the recently converted image and BAM!! ERROR!!!.. I dont know why.. but if i use other icon files it is working.. am suspecting I did something wrong with the code.
|
|
|
|
|
If I am correct, .NET does not natively support exporting to .ico. You can probably get the same effect of what you are doing by renaming the extension of a bmp to ico. Then you can emulate the appearance of an ico but it will be unusable. I believe their are a few articles on this site that may be able to help you with converting images to an ico.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
This works - it's code I found on the internet in VB which I've converted to C#. It's a bit messy so could probably be tidied up a bit but it's a starter.
Bitmap myBitmap = new Bitmap(@"c:\pic.jpg");
Bitmap bmp = new Bitmap(32, 32);
Graphics g = Graphics.FromImage(bmp);
g.DrawImage(myBitmap, 0, 0, 32, 32);
IntPtr HIcon = bmp.GetHicon();
Icon newIcon = System.Drawing.Icon.FromHandle(HIcon);
FileStream stream = new FileStream(@"c:\pic.ico", FileMode.Create);
newIcon.Save(stream);
stream.Dispose();
g.Dispose();
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
|
We have an ASP.NET forum. And, it's easy to integrate Google maps to your site.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hello everyone,
When we sending Http request, does the fields (key/value pair) in Http header (througt POST) or the key=value pairs in URL after ? (in Http GET) case sensitive or case in-sensitive? I can not find a standard document mentions this point.
thanks in advance,
George
|
|
|
|
|
You may want to search for the word "case" or "sensitive" in
this document:
HTTP 1.1[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark!
In section "4.2 Message Headers", seems the document does not cover whether values are case sensitive or case in-sensitive, it only mentions the header names are case in-sensitive -- "names are case-insensitive.". Any comments?
regards,
George
|
|
|
|
|
George_George wrote: it only mentions the header names are case in-sensitive -- "names are case-insensitive.". Any comments?
Section 14 has the details for all the headers.
From section 2.1 (which states how to read the details in
section 14):
""literals"...Quotation marks surround literal text. Unless stated
otherwise, the text is case-insensitive."
So from that I would assume all case-insensitive unless it
states otherwise in section 14.x
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|