Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looking for help querying active directory Pin
Dave Kreskowiak23-May-12 12:09
mveDave Kreskowiak23-May-12 12:09 
GeneralRe: Looking for help querying active directory Pin
turbosupramk323-May-12 14:29
turbosupramk323-May-12 14:29 
AnswerRe: Looking for help querying active directory Pin
randprin24-May-12 2:16
randprin24-May-12 2:16 
GeneralRe: Looking for help querying active directory Pin
turbosupramk324-May-12 9:33
turbosupramk324-May-12 9:33 
GeneralRe: Looking for help querying active directory Pin
turbosupramk329-May-12 4:35
turbosupramk329-May-12 4:35 
QuestionUsing ADWS in .Net Pin
Member 254690323-May-12 6:40
Member 254690323-May-12 6:40 
AnswerRe: Using ADWS in .Net Pin
Ravi Bhavnani23-May-12 9:33
professionalRavi Bhavnani23-May-12 9:33 
GeneralRe: Using ADWS in .Net Pin
Member 254690323-May-12 9:59
Member 254690323-May-12 9:59 
GeneralSystem.IO Project for beginners Pin
bdeklerk23-May-12 2:28
bdeklerk23-May-12 2:28 
GeneralRe: System.IO Project for beginners Pin
ddecoy23-May-12 3:31
ddecoy23-May-12 3:31 
AnswerRe: System.IO Project for beginners Pin
Eddy Vluggen23-May-12 10:42
professionalEddy Vluggen23-May-12 10:42 
QuestionCrystal reports not working on win 7 - 64bit. help Pin
Waqas Ahmad Abbasi22-May-12 19:38
Waqas Ahmad Abbasi22-May-12 19:38 
AnswerRe: Crystal reports not working on win 7 - 64bit. help Pin
Bernhard Hiller22-May-12 22:10
Bernhard Hiller22-May-12 22:10 
AnswerRe: Crystal reports not working on win 7 - 64bit. help Pin
Sandeep Mewara22-May-12 23:38
mveSandeep Mewara22-May-12 23:38 
QuestionProblem in merging two files -pcl file Pin
shamypnr22-May-12 19:15
shamypnr22-May-12 19:15 
I have two pcl files containing logos in each. I need to merge the file into a single pcl file. Iam able to merge the same but the problem is i get the two logos one after the other. I need the two logos to appear on the same line at top of the pcl file instead of one below the other. Iam using the code below to achieve what iam getting.
public void fileMerger(string inputFile, string outputFileName,string filetype )
{
{
#region get PCL file from inputFile
String ftype = "*." + filetype;
string[] tmpfiles = Directory.GetFiles(inputFile, ftype);
#endregion get PCL file from inputFile
FileStream output = new FileStream(outputFileName, FileMode.OpenOrCreate);
#region start Processing
foreach (string tempInput in tmpfiles)
{
FileStream inputfiles = new FileStream(tempInput, FileMode.Open);


if (inputFile.EndsWith(Environment.NewLine))
{
inputFile = inputFile.TrimEnd(Environment.NewLine.ToCharArray());
}
//Library.Utils.FlashMessage("inputfiles", "read");
CopyStream(output, inputfiles);
}
#endregion start Processing
}
}

C#
void CopyStream(Stream destination, Stream source)
      {
          int count;
          byte[] buffer = new byte[1000000];
          while ((count = source.Read(buffer, 0, buffer.Length)) > 0)
          {


              destination.Write(buffer, 0, count);

          }



      }


Please help..

modified 25-May-12 5:49am.

AnswerRe: Problem in merging two files - images Pin
Richard MacCutchan22-May-12 22:43
mveRichard MacCutchan22-May-12 22:43 
Questionsoftware copy protection Pin
Alex Nguyen1222-May-12 12:35
Alex Nguyen1222-May-12 12:35 
AnswerRe: software copy protection Pin
Dave Kreskowiak22-May-12 13:46
mveDave Kreskowiak22-May-12 13:46 
GeneralRe: software copy protection Pin
Bernhard Hiller22-May-12 22:18
Bernhard Hiller22-May-12 22:18 
AnswerRe: software copy protection Pin
Eddy Vluggen23-May-12 0:25
professionalEddy Vluggen23-May-12 0:25 
GeneralRe: software copy protection Pin
Bernhard Hiller23-May-12 4:02
Bernhard Hiller23-May-12 4:02 
AnswerRe: software copy protection Pin
Eddy Vluggen23-May-12 9:02
professionalEddy Vluggen23-May-12 9:02 
GeneralRe: software copy protection Pin
Dave Kreskowiak23-May-12 2:21
mveDave Kreskowiak23-May-12 2:21 
GeneralRe: software copy protection Pin
jschell23-May-12 10:21
jschell23-May-12 10:21 
AnswerRe: software copy protection Pin
Cracked-Down23-May-12 1:52
Cracked-Down23-May-12 1:52 

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.