|
Wow. At this rate, it'll take you more than 6 months just to figure out what kind of a project you want to do...
|
|
|
|
|
edisicon wrote: prefer to do a project on this topic for 6 months.is this enough
for 6 months to do?
Yup - but only if you give up eating, sleeping and breathing.
edisicon wrote: How many modules should come under this project?
is it difficult to complete in 6 months?
One. If I were you, I'd do it in one giant function. Don't let your professor put you off - make it monolithic, nest those if statements 30 deep, and remember goto is your friend.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|
|
Pete O'Hanlon wrote: one giant function. [...] and remember goto is your friend
I remember *cough cough* years ago work on a data entry 'form' in COBOL that had to handle special navigation keys as well as normal entry. All one big inline procedure that basically looped around a screen paint and single key capture, followed by a Doris load of IF ... commands.
Tabbing forward or backwards was easy, it was the 'short cut' keys beween the fields on the multiple pages. Frogging hysterical!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Better yet - do it in Visual Basic. Then he can use On Error Resume Next!
|
|
|
|
|
Hello,
How we can convert an Word file to pdf with microsoft office 2007,
thank you verry mutch.
|
|
|
|
|
http://www.codeproject.com/KB/cs/sertf2pdf.aspx[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hello there.
I'm going to create a Bitmap with a written string on it in specific Font, But I don't want to install the font.
I'm going to load a font from a *.ttf file.
How can I do it ?
Thank you.
|
|
|
|
|
<a href="http://msdn.microsoft.com/en-us/library/system.drawing.text.privatefontcollection.aspx">System.Drawing.Text.PrivateFontCollection</a>[<a href="http://msdn.microsoft.com/en-us/library/system.drawing.text.privatefontcollection.aspx" target="_blank" title="New Window">^</a>]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
As we all know, the DSOFile.dll works well on all types of files.
I wrote an app that works well on XP based systems (getting and writing file properties, summary and custom).
However, this is not working on Windows 7.
Looking at file properties on Windows 7 shows Tags property (instead of keyword? not sure).
Any ideas?
|
|
|
|
|
Hi!
I have made a synchronization program for an Sql server express Db and a sql server ce 3.5 Db. I am doing some testing now and one thing confuses me. I am testing to make a delete on one row in Express and an update on the same row in the CE Db (the row with the same data, not the same row ID of course). What confuses me is that this works without crashing. Updating a row that has been deleted in the Express Db should throw an exception, shouldn't it?
I am getting the data first from the Express Db with SqlDataAdapter, then replacing the itemArray and finally using SqlCommandbuilder.getUpdateCommand() and adapter.Update().
Is it the commandbuilder that ignores this or what?
Thanks for your help,
Jacob
|
|
|
|
|
Are you using Microsoft's Sync Framework ??
If yes then it is been taken care Microsoft's Sync Framework , if not if it is a query base update then in most case the query with a were clause at the end (update table where id = ? ) if sql does not find a record it does not update anything and move ahead , it is not necessary for for sql to update something.
I hope this is understandable
-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com
|
|
|
|
|
Hi yes, of course. Thank you.
No, I didn't understand the synchronization examples using Microsoft's Sync Framework that I've found here and when googling so I made it myself.
|
|
|
|
|
Hi Jacob,
I ya know Microsoft's sycn framework is bit hard to understand , but some times proves worth all the time you put in , anyways if your problem is solved without using it , its gr8 , any thing which works fine is fine
-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com
|
|
|
|
|
You might check the return value, it should equal the number of rows affected.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Good Morning!
Currently i'm dealing with a Point to Point Protocol through Gsm Connection to access remote system equipments.
Recently i've detected a faulty situation regarding the use of FCS calculation. I'm using rfc code to achieve that objective.
Sometimes, when i'm sending commands to the remote system, there's no kind of response. Through a more patient analysis, i saw that when a packet is like this one:
0xFF, 0x03, 0x40, 0x41, 0x00, 0x00, 0x00, 0x01, 0x00, 0x10, 0x0B, 0x0B
The FCS isn't correct -> Note that the last two bytes are equal and the FCS calculator doesn't consider the last one.
Anyone could help me with this in order to solve it?
Best regards.
|
|
|
|
|
I know nothing about this - but google turned up this example[^]... maybe it will help?
Scrub that, a bit more research reveals there are many ways of doing this, and even different RFCs, so it seems it depends on which one you're using, and how you've created that implementation in your code.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
modified on Friday, March 13, 2009 6:21 AM
|
|
|
|
|
Hi All,
I need to compare a string to a regular expression to determine if the string is in this format. I am setting the string equal to a line read from a file.
Once i have read the line i want to compare it to a regx to determine if the string is formatted as follows:
Date Time (5-10 spaces) 123-12-123456
An example line:
09-02-2009 10:33 001-01-218913
The code i have currently is:
strFile = "C:\\test.txt";
using (StreamReader srTlog = new StreamReader(new FileStream(strFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)))
{
while ((strLine = srTlog.ReadLine()) != null)
{
Regex pattern=new Regex("NOT SURE WHAT GOES HERE");
if(pattern.IsMatch(strToCheck))
{
}
}
}
I would appreciate any help.
Thanks
|
|
|
|
|
string patternStr = @"^\d{2}-\d{2}-\d{4} \d{2}:\d{2} \d{3}-\d{2}-\d{6}$";
^ is beginning of line
$ is end of line
\d is any digit
It should match the given string, although it will also match strings with invalid dates such as 99-99-2009 34:10 123-45-123456
But if you know that the datestring will always be correct and the important thing is the last bit, the pattern above should work fine (didnt test it though).
|
|
|
|
|
Regex rx = new Regex(@"([1-9]|0[1-9]|[12][0-9]|3[01])[- /.]([1-9]|0[1-9]|1[012])[- /.]((19|20)\d\d|\d\d)");
string text = fileName;
MatchCollection matches = rx.Matches(text);
if (matches.Count > 1)
DoST();
foreach (Match match in matches)
{
textBoxDocumentDate.Text = match.Value;
}
|
|
|
|
|
Why go through the hassle of using regex? Just use DateTime.ParseExact , and handle the bool return value.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi you all,
I am currently teaching myself C# and .Net. This works fine so long but now I have a question:
I experimented a bit with the hash codes of objects and when I ran my example app I had to notice that string does not behave like I expected. But first the example:
string s1 = "teststring";
string s2 = s1;
Console.WriteLine(s1 + " " + s1.GetHashCode());
Console.WriteLine(s2 + " " + s2.GetHashCode());
s2 = "changed";
Console.WriteLine(s1 + " " + s1.GetHashCode());
Console.WriteLine(s2 + " " + s2.GetHashCode());
The result I expected was that s2 will point to the same string object as s1. Therefore changing s2 would result in changing the same object that both string references point to, i.e. that both strings have the same values. But the output of the code is the following:
teststring -1549391391
teststring -1549391391
teststring -1549391391
changed 114681301
So I just have a simple question: Why?
Would be happy to get some help on this.
Thank you in advance!
|
|
|
|
|
The confusion comes from the fact that the string is immutable. When you change the value of s2, it's actually a whole new string object that is created. If it had changed the contents of the memory that s2 was pointing to, it would have changed s1 too.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Thank you! It's getting clearer 
|
|
|
|
|
No problem
We've all been there at some point on this one!
There are reasons why the string class is like this - a reference type that behaves like a value type. Research it if you're interested, but it's down to the fact that a string isn't really a string, it's a null terminated char array - i.e. each character is stored in ajacent memory locations with a null character at the end to dertermine where the string finishes.
It is possible to create a mutable string by using 'unsafe', 'fixed' and pointers to manipulte the contents of the array in memory but it's not advised.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|