Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > BOOK: Professional C# 4.0 and .NET 4
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional C# 4.0 and .NET 4
This is the forum to discuss the Wrox book Professional C# 4.0 and .NET 4 by Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner; ISBN: 9780470502259
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 4.0 and .NET 4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 30th, 2010, 07:22 PM
Authorized User
 
Join Date: Nov 2008
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in getting the passed filename to Main Fn

Hi Everybody
I have written an application using the main fn like this " static void Main(string[] args)" so that when i double click on the file associated with my App it opens automatically my code is
Code:
private void MainFrm_Load(object sender, EventArgs e)
        {
                         
            string[] argus = System.Environment.GetCommandLineArgs();
            if(argus.Length>1)
                OpenMenu(argus[1]);
        }
,and it works fine but one problem
i got the opened file name like this
"D:\MyData~1\MyMain~1.pfb"
and it should be like this
"D:\My Data\My Main Phone Book.pbf"
and i don't know why pls any body has a solution for this
  #2 (permalink)  
Old September 3rd, 2010, 07:19 PM
Authorized User
 
Join Date: Nov 2008
Location: , , .
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey any body there
  #3 (permalink)  
Old September 28th, 2010, 01:22 PM
Registered User
 
Join Date: Sep 2010
Location: North of Dallas 30 Miles
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to convert short (8.3) name to long name format

Hello,

You are getting the short (8.3) name format back from windows. It is more than just a quick change to your code to convert the short name to a long name. I found this link by searching for "convert 8.3 file .Net C#"

Hope this helps,

Evan
  #4 (permalink)  
Old September 28th, 2010, 01:52 PM
Registered User
 
Join Date: Sep 2010
Location: North of Dallas 30 Miles
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Cool Difficult or Hard to Read Sections

Hello All,

I've read up to page 495 of Professional C# and .Net 4.0 over the last week. I will finish reading the book because I am learning the material.

I've found some sections to be difficult to read. Upto this point in the book the material has been very straight forward. Once I re-read the poorly written sections a few times, I was able to get the concepts and details. My gut feeling was the book was rushed to print without enough editing.

I did not keep up with the sections that were poorly written. But, today at lunch, I tripped over some very un-natural English. For example a sentence from page 493:

"The method TakesAWhile() needs at least the number of milliseconds passed with the second argument to finish because of the Thread.Sleep() method:"

"at least the number of milliseconds" - what is the range? What is the most it can take?

"number of milliseconds with the second argument" - Ok. <pause for dramatic effect> The second parameter in the function TakesAWhile() is named "ms". "ms" is short for milliseconds. So does this mean the function takes two arguments representing milliseconds? Nope. Looking at the code it is clear the method takes two parameters one being a counter, one being milliseconds.

As I said before, I'll finish the 1000 pages remaining because I am learning. I can see where people would be put off by the sections that are not well written.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ptoblem in getting the passed filename to Main Fn falcon eyes BOOK: Professional C# 4.0 and .NET 4 0 August 30th, 2010 07:03 PM
Problem with Inline Excel Output Filename Sir Guso ASP.NET 1.0 and 1.1 Professional 2 May 31st, 2007 08:26 PM
Anable/Disable main menu item problem Dmitriy Assembly Language 0 January 23rd, 2007 03:27 PM
Querystring problem the \ character not passed. u_heet General .NET 1 September 16th, 2004 11:25 AM
Use of one jscript fn, 1 VB fn on Button click bvrao VS.NET 2002/2003 2 January 12th, 2004 03:41 AM



All times are GMT -4. The time now is 10:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.