Click here to Skip to main content
15,891,204 members
Home / Discussions / C#
   

C#

 
Questionimage to PDF in C# 2008 Pin
vijaykumarp23-Sep-09 17:36
vijaykumarp23-Sep-09 17:36 
AnswerRe: image to PDF in C# 2008 Pin
Christian Graus23-Sep-09 18:16
protectorChristian Graus23-Sep-09 18:16 
GeneralRe: image to PDF in C# 2008 Pin
vijaykumarp23-Sep-09 21:39
vijaykumarp23-Sep-09 21:39 
QuestionConvertion image to PDF in C# 2008 Pin
vijaykumarp23-Sep-09 17:22
vijaykumarp23-Sep-09 17:22 
AnswerRe: Convertion image to PDF in C# 2008 Pin
Christian Graus23-Sep-09 18:17
protectorChristian Graus23-Sep-09 18:17 
QuestionProblems with getting UserDeletingRow event to work. Pin
gjx_junxian198923-Sep-09 17:06
gjx_junxian198923-Sep-09 17:06 
QuestionPOP3Temp folder ids not Found Pin
shobhit parasher23-Sep-09 13:05
shobhit parasher23-Sep-09 13:05 
QuestionHow to dynamically use C# 3.5 compiler Pin
pbalaga23-Sep-09 11:07
pbalaga23-Sep-09 11:07 
For several months I've used dynamic compiler in my app that mounted a dll on start-up. But today I came across a painful problem. The code that can be compiled trouble-free in vc#08 has syntax errors according to the 'dynamic' compiler (let me call it dynamic for distinction).

The piece of code in mind looks like this:

void foo()
{
//...
        ActorDescription actorDesc = new ActorDescription()
        {
            BodyDescription = new BodyDescription(70)
        };
//...
}


The dynamic compiler shows an error : "error CS1002: ; expected". After simple test I managed to find out that the dynamic compiler probably aims at an older framework and I'm trying to use newer syntax features.

In shortcut, what I was using is this:

System.CodeDom.Compiler.CodeDomProvider cdp =
      System.CodeDom.Compiler.CodeDomProvider.CreateProvider("CSharp");
  System.CodeDom.Compiler.CompilerResults cr = cdp.CompileAssemblyFromFile(parameters, fullPaths);


The functions above are contained by System.dll v2.0 library, so it's not surprising it won't work. Anyway, System.dll v3.5 doesn't exist. Where is the new set of methods to compile according to the newest c# specification? What's the workaround for this? I've been googling for a few hours with no answer.

Thanks in advance! Smile | :)
AnswerRe: How to dynamically use C# 3.5 compiler Pin
PIEBALDconsult23-Sep-09 12:07
mvePIEBALDconsult23-Sep-09 12:07 
GeneralRe: How to dynamically use C# 3.5 compiler Pin
pbalaga23-Sep-09 23:48
pbalaga23-Sep-09 23:48 
GeneralRe: How to dynamically use C# 3.5 compiler Pin
PIEBALDconsult24-Sep-09 4:35
mvePIEBALDconsult24-Sep-09 4:35 
GeneralRe: How to dynamically use C# 3.5 compiler Pin
pbalaga24-Sep-09 7:06
pbalaga24-Sep-09 7:06 
GeneralRe: How to dynamically use C# 3.5 compiler Pin
PIEBALDconsult24-Sep-09 7:08
mvePIEBALDconsult24-Sep-09 7:08 
QuestionHow to make a Custom Textbox Controll caputure the Parent's clickEvent [modified] Pin
Natural_Demon23-Sep-09 9:35
Natural_Demon23-Sep-09 9:35 
AnswerRe: How to make a Custom Textbox Controll caputure the Parent's clickEvent Pin
DaveyM6923-Sep-09 10:20
professionalDaveyM6923-Sep-09 10:20 
GeneralRe: How to make a Custom Textbox Controll caputure the Parent's clickEvent Pin
Natural_Demon23-Sep-09 10:47
Natural_Demon23-Sep-09 10:47 
GeneralRe: How to make a Custom Textbox Controll caputure the Parent's clickEvent Pin
Natural_Demon23-Sep-09 11:12
Natural_Demon23-Sep-09 11:12 
QuestionHow to display Multiple images in crystal report Pin
me_ariharan23-Sep-09 8:49
me_ariharan23-Sep-09 8:49 
AnswerRe: How to display Multiple images in crystal report Pin
Abhishek Sur23-Sep-09 10:35
professionalAbhishek Sur23-Sep-09 10:35 
QuestionError when opening demo projects Pin
Stieven23-Sep-09 8:26
Stieven23-Sep-09 8:26 
AnswerRe: Error when opening demo projects Pin
Luc Pattyn23-Sep-09 10:13
sitebuilderLuc Pattyn23-Sep-09 10:13 
GeneralRe: Error when opening demo projects Pin
Stieven23-Sep-09 10:21
Stieven23-Sep-09 10:21 
GeneralRe: Error when opening demo projects Pin
Luc Pattyn23-Sep-09 10:37
sitebuilderLuc Pattyn23-Sep-09 10:37 
GeneralRe: Error when opening demo projects Pin
Stieven24-Sep-09 1:37
Stieven24-Sep-09 1:37 
Questionstring is not recognized Pin
Rabia_Arif23-Sep-09 7:40
Rabia_Arif23-Sep-09 7:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.