Compiling Problems code snippets

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 179
Reputation: HLA91 is an unknown quantity at this point 
Solved Threads: 2
HLA91 HLA91 is offline Offline
Junior Poster

Compiling Problems code snippets

 
0
  #1
Oct 16th, 2007
Hi all
I am trying to compile some of the snippets on this site and only some of them work and I was thinknig wether its because I have a different version of .NET framwork installed would this affect it?
I have V1.1
2.0
3.0
3.5
All installed on 1 machine I dont know why should I get rid of some and keep just one, if so which one, also if I compiled on 1 version would it run on other versions?

Many thanks

HLA91
Last edited by HLA91; Oct 16th, 2007 at 6:05 pm.
You know your a geek, if you introduce your wife as "mylady@home.wife"
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Compiling Problems code snippets

 
0
  #2
Oct 16th, 2007
give us example of snippets which work and which don't
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 179
Reputation: HLA91 is an unknown quantity at this point 
Solved Threads: 2
HLA91 HLA91 is offline Offline
Junior Poster

Re: Compiling Problems code snippets

 
0
  #3
Oct 17th, 2007
Tha application manager doesn't work when it compiles there is an error, the US navy clock works fine, the one to open the cd tray doesn't work again error when compiling. They are the only ones I have tried so far.
Last edited by HLA91; Oct 17th, 2007 at 3:13 am.
You know your a geek, if you introduce your wife as "mylady@home.wife"
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Compiling Problems code snippets

 
0
  #4
Oct 17th, 2007
give me links for codes or codes themselves
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 179
Reputation: HLA91 is an unknown quantity at this point 
Solved Threads: 2
HLA91 HLA91 is offline Offline
Junior Poster

Re: Compiling Problems code snippets

 
0
  #5
Oct 17th, 2007
http://www.daniweb.com/code/snippet350.html
Thats the open/close cd tray
When I try to compile it says
cd.cs<9,12> :error CS1518: Expected Class, delegate, enum, interface or struct

http://www.daniweb.com/code/snippet436.html
Thats the process manager and the error code is the same apart from <19,12> instead of <9,12> as before

Many thanks

HLA91
You know your a geek, if you introduce your wife as "mylady@home.wife"
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Compiling Problems code snippets

 
0
  #6
Oct 17th, 2007
CD tray....
TAKE CARE about copying the code you'll find there are some codes copied wrong take code line line
Create form then add 2 buttons and assign click event handlers to click1 and click2 method
It will work!

Thats the process manager....
You've before compiling this code to adjust namespace names or create the windows application with Process_Manager name
second to add in the form ListView control with name lvwProcesses, TextBox control with name txtMachine and Button control with name cmdRefersh and give in click event handler this method cmdRefersh_Click
It will work!
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 179
Reputation: HLA91 is an unknown quantity at this point 
Solved Threads: 2
HLA91 HLA91 is offline Offline
Junior Poster

Re: Compiling Problems code snippets

 
0
  #7
Oct 18th, 2007
OK thankyou being the noob I am I thought I could just copy paste & compile, thanks for your help

HLA91
You know your a geek, if you introduce your wife as "mylady@home.wife"
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC