|
Thanks for your help
but the problem here is that we have distributed system and we want to keep track for any changes happend in any medule and update system version, if that mean that we must track it Mmanually or there is an Automatic way to update system version
|
|
|
|
|
The <a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemreflectionassemblyclasstopic.asp?frame=true" rel="nofollow">Assembly</a>[<a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemreflectionassemblyclasstopic.asp?frame=true" target="_blank" rel="nofollow" title="New Window">^</a>] class contains methods for getting other modules too. It's just as easy to get their version numbers.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for your reply
we have a very huge distributed system and we make a lot of updates, a lot of bugs fixing and a lot of adding new features so I want to know if there is a versioning method rather than Assembly version to keep track with the system versions (major, minor, SPs) for every change and every update we made
Please if you know or have any paper talking about this subject, please inform me asap
|
|
|
|
|
Why would the same information be stored somewhere else? There is no place else that this information is stored. It's either use the Assembly class, or implement your own version system and write your own classes for it.
You could make something that automatically creates a Major, Minor, and revision number for your application, but it's not a good idea. You're better off managing it manually so you don't run into any mysterious versioning issues because some version number changed in a module that you didn't expect.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
i just want to configure my adapter such that i can update information to Access db. but i got this error from the OleDbdataAdapter>> Could not determine which columns uniquely identify the rows for....
i already spent the past few hours finding online solutions but to no avail, mainly because the forum dicussions stopped halfway and the language is not the same as mine.
just to check with you:
since i can already get the selected data out from db using parameterized query, does that mean that if i can update successfully, my updates will return to the EXACT table fields it came from?
please, please help me to get this part going....
it's urgent!
i really appreciate any help!
thanks in advance!
-- modified at 5:20 Monday 29th August, 2005
|
|
|
|
|
Do you fetch the primary key from the table? Do you have a primary key?
---
b { font-weight: normal; }
|
|
|
|
|
oh yes, i forgot to mention about the error i got in Access. i've a field named IDno and this field is added to each and every of my tables.
is it ok or correct to let all tables have IDno as pk? i thought it's ok so i tried.. i let table1 have IDno as pk. but then when i tried to let IDno be pk in table2, it gives me error regarding duplicate pk so im stuck now...
if i dont use IDno, i donno what is best used as primary key in table2 and the rest of my tables.
there's a button on the toolbar called Index Name, so i typed "PrimaryKey" and selected "IDno", hoping that through this way, perhaps table2 can have IDno as pk. does this way make IDno a pk? i doubt so..
i doubt so because if IDno is made to be a pk in my table now, how come i still get the same error as before i tried typing "PrimaryKey" and selecting "IDno" in Index Name?
the error is: Could not determine which columns uniquely identify the rows for "table2". for table1, things are fine, i used OleDbAdapter and generated all the statements successfully. but doing this table2 gives me error, i just want to use OleDbAdapter to build update and delete functions too. i donno why it failed. it succeeded in generating Select and Insert statements...
so what's wrong? i really have no idea what's wrong.
please help.
i really need some guidance.
thanks!
-- modified at 3:08 Tuesday 30th August, 2005
|
|
|
|
|
Hi guys & girls,
I would like to know if there is any API which handles RTP & RTCP in C# like the JMF in Java? I have to develop a small RTP & RTCP Client in C# for a university project and as I'm allowed to use already existing code (In fact I have to use it, if there exists any), I would like to know if there is any? I didn't really found anything in google, but maybe I just searched for the wrong words.
I hope anyone can help me.
greetings
Stampede
|
|
|
|
|
Hi
I m also working on same type of project in c#.
If you know how to make RTCP Packet and send it to participents of session?
Please send me code or link here or saurabh.patel@quadinfotech.com
Thanks
|
|
|
|
|
hi all
u forget me as usual any way
i need some 1 who deal with datagrid befor tell me how can i sort data by specific column in datagridview
watting for ur replay
|
|
|
|
|
Hi All, i Have a problem in C#. Description is as follows
I play a .wav file in C#, but i want that its output should go to input Device (i.e Microphone) instead of output device(speaker). In simple i want to record the file which i play
Can i do that in C#?
Muhammad Imran
|
|
|
|
|
You want to put a cable between the microphone and the sound out, and record as you play ? Why not just copy the file ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
The problem with me is that its all going on run time, when some event occurs i want to do which i ask in problem
Muhammad Imran
|
|
|
|
|
Sounds like a lousy solution to any problem. What are you really trying to do with this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I'm trying to get a base64 string from an image to place inside a WordProcessingML xml document. I need to save the image to a stream after it's generated through asp.net, that is, I'm not able to use the file system. For some reason, I seem to get a different string loading something from the file system and using file streams and binary readers, as opposed to when I use Image.Save and a memory stream. I've pasted some sample code below, it's not my actual code that I'm working with but simulates the situation. The two methods generate different strings from the same image file. If I reverse the process, and take the two generated strings and load them into an image, both work fine. No doubt there is some obvious encoding issue or something that I'm sadly unaware of so if anyone had any ideas that'd be great.
FileStream fs = File.OpenRead(@"C:\temp\chart.png");
BinaryReader br = new BinaryReader(fs);
string pngString = Convert.ToBase64String(br.ReadBytes((int)fs.Length));
MemoryStream memStream = new MemoryStream();
Image image = Image.FromFile(@"C:\temp\chart.png");
image.Save(memStream,System.Drawing.Imaging.ImageFormat.Png);
string memString = Convert.ToBase64String(memStream.GetBuffer());
Thanks,
Matt
|
|
|
|
|
if you do an image.Save to a binaryWriter do you get the same files? There is a form of image.Save which takes encoding parameters. You probably have to set these to match the original file.
|
|
|
|
|
|
Hi Andy,
I didn't actually even save the image programatically, as I mentioned the snippet I've pasted in isn't the actual code I'm working with it's just a test that I wrote up to see what the problem was in my actual code. The image on disk has just been saved straight from a browser so I could use it in the test. Don't know if this makes any difference to you?
Thanks,
Matt
|
|
|
|
|
I don't think the image object makes any promises about Load() and Save() generating the exact same bits. I just suggested a test to verify that.
Unless you have to use the image object to manipulate the image in some way I would just deal with it as a stream. That's how I've always dealt with them in WordprocessingML documents.
I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
|
|
|
|
|
|
Yeah my actual code does deal with it as a stream but it generates the same string as the Image.Save(memoryStream) method. Basically I'm using a third party charting component which has a save method which is able to save to a stream, I assume it uses the same method as the Image.Save does as it generates the same base64 string. I was hoping if i could get to the bottom of the reason I am getting two different strings I could take that solution to my actual code.
I can see now that the string is exactly the same, except the file IO method has more bytes on the end that are missing from the other method.
|
|
|
|
|
Hi
I have two forms, main form and login form, I need both forms to load at the start of my application (login form in front of main). The user shouild not be able to switch focus to the main form intil a successful login is accomplished. I'm loading both forms from a main method of another class. I played around with Application.run and ShowDialog methods without achieving wanted results. Any ideas are appriciated.
Thank you
|
|
|
|
|
Using application.run you can load your login form before the main form.
What you are describing sounds like you want to use ShowDialog in the activated or paint event to set an authentication token in the main form. That way you will have both forms on the screen at the same time.
|
|
|
|
|
What I would do is run the main form normally, and then handle the Activated event for the form, and if it's the first time, display the dialog.
bool firstTime = true;
protected override void OnActivated(EventArgs e)
{
if(firstTime)
{
firstTime = false;
LoginForm form = new LoginForm();
form.ShowDialog(this);
}
} That should work, displaying the main form and the login form on top of it.
But, my real solution would be to implement a main form with everything disabled if no user is logged in. This way a user can log in, then log out, and then another user log in without terminating your app, and only the corresponding menu items would be enabled.
And then, in the Activated event for the first time, simulate that the Log In menu item was selected. This way, if the user can't log in (invalid user or password), the application does not have to end.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
If I understood correctly, both suggestions involve controling the displaying of the login form from within the main form. Is there a way to accomplish the same thing (displaying both forms) from a 'static void Main() ' method from a third class- the class that I'll use to start the application.
Thank you in advance
|
|
|
|