| | |
Compiling Problems code snippets
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2006
Posts: 179
Reputation:
Solved Threads: 2
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
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"
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
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
•
•
Join Date: Oct 2006
Posts: 179
Reputation:
Solved Threads: 2
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"
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
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
•
•
Join Date: Oct 2006
Posts: 179
Reputation:
Solved Threads: 2
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
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"
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!
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
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
![]() |
Similar Threads
- Code Snippets for whom? (DaniWeb Community Feedback)
- c code snippets (DaniWeb Community Feedback)
- Why are the Descriptions of Code Snippets in a Fixed Font? (DaniWeb Community Feedback)
- Perl in Code Snippets section? (DaniWeb Community Feedback)
- Blogs and Code Snippets sections :) (DaniWeb Community Feedback)
Other Threads in the C# Forum
- Previous Thread: c# help
- Next Thread: C# failing to drop stored procedure from SQL Server using SMO
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access algorithm array barchart bitmap box buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






