Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

DarkSorrow38

@DarkSorrow38
About
Posts
30
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GMail SMTP Outgoing Problem
    D DarkSorrow38

    The problem is that noting happens. I believe connection is not getting established.

    Web Development csharp com sysadmin help

  • GMail SMTP Outgoing Problem
    D DarkSorrow38

    In the following code snippet if I change the port number from 587 to any other (even to 465 as mentioned over the net) the mail sending attempts fail.

            string from1 = "from\_e-mail";
            string to1   = "to\_e-mail";
            string subject = "Test";
            const string password = "xxxxxxxx";
            string body = "Hello World";
            smtp.Host = "smtp.gmail.com";
            smtp.Port = 587;
            smtp.EnableSsl = true;
            smtp.UseDefaultCredentials = false;
            smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
            smtp.Credentials = new NetworkCredential(from1, password);
            smtp.Timeout = 20000000;
            smtp.Send(from1, to1, subject, body);
    

    Any Suggestion

    Web Development csharp com sysadmin help

  • C to SQL Connentivity
    D DarkSorrow38

    I have taken the command from SQL The Complete Reference.

    C / C++ / MFC database sql-server sysadmin

  • C to SQL Connentivity
    D DarkSorrow38

    The error i recieve while compiling

    Compiling ..\SOURCE\SQL.C
    Error ..\SOURCE\SQL.C 15: Undefined symbol 'execl'
    Error ..\SOURCE\SQL.C 15: Statement missing ;
    Error ..\SOURCE\SQL.C 16: Statement missing ;

    C / C++ / MFC database sql-server sysadmin

  • C to SQL Connentivity
    D DarkSorrow38

    I have written a C program to insert a row in SQL Server 2000 but it seems not to work.

    #include<stdio.h>
    #include<conio.h>

    int main(void)
    {
    int number;
    char fname[80], lname[80];
    clrscr();
    printf("Enter a number : ");
    scanf("%d",&number);
    printf("Enter your first name : ");
    scanf("%s",fname);
    printf("Enter your last name : ");
    scanf("%s",lname);
    execl sql include sqlca;
    execl sql insert into Table1
    values(number,",'",fname,"','",lname,"'");
    getch();
    return 0;
    }

    C / C++ / MFC database sql-server sysadmin

  • J2METext Field Problem
    D DarkSorrow38

    I want a event where i can delete the text in the text field when ever the user selects(enter) text field to write data, i.e. the text field should be blanked whenever the user clicks on it.

    Java help

  • How execute Command Prompt(Ms-DOS) commands through C#
    D DarkSorrow38

    Computafreak, The statement you gave gives a file not found exception.

    C# csharp

  • How to create setup projects
    D DarkSorrow38

    Thank You, Mark.

    C# sysadmin tutorial workspace

  • How to create setup projects
    D DarkSorrow38

    Khosnur, I have completed till this step(before i posted the problem) but now there are three folders in list view appearing. Now what should i do?

    C# sysadmin tutorial workspace

  • How to create setup projects
    D DarkSorrow38

    I have completed a simple windows project and wish to deploy it. I wish to create a proper installer like those that appear in professional applications. I don't wish to use the publish option form project properties as it just creates an executable. I also tried the Setup and Deployment project in other project type but got confused and messed up.

    C# sysadmin tutorial workspace

  • How execute Command Prompt(Ms-DOS) commands through C#
    D DarkSorrow38

    I am trying to execute Command Prompt(Ms-DOS) commands through C# like shutdown -s -t 0(and several other commands) by creating an object of System.Diagnostic.Process class. When the Start method is executed a new Command Prompt window opens but the command does not execute.

    // code procedure
    public static void ExecuteCommand()
    {
    Process p = new Process("cmd.exe", "shutdown -s -t 0");
    p.CreateNoWindow = true;
    p.UseShellExecute = false;
    p.Start();
    }

    I have imported the System.Diagnostic namespace. Banking establishments are more dangerous than standing armies.

    C# csharp

  • Good book for C/C++/VC++2008
    D DarkSorrow38

    Can anyone suggest a good study book for C/C++/VC++2008. The book should be intermidiate/advanced. My background is that i have read Programming in C by Byron S. Gottfried.

    C / C++ / MFC c++ learning

  • Compiler Design in C
    D DarkSorrow38

    I have compiler design in C practicals and i have encountered a problem. This goes as : We have to take n number of productions(string) from user. Each production is of different size. I want the array size for each production to be dynamic with exact size as that of the entered string. There should not be any blank elements in array as it would spoil the output. How this can be achieved. I am someone who not so good in C.

    C / C++ / MFC design data-structures help

  • How to copy execuitable
    D DarkSorrow38

    I was practicing coping files in C# console application. I have only one execuitable and i am trying to copy that execuitable using File.Copy method inside that execuitable. I know this sounds stupid but can be done and if yes how.

    C# csharp tutorial

  • Source Code Encryption
    D DarkSorrow38

    Don't know about Web Application however i encrypt windows appilcation using Java. If you wish i can give you a whole bunch of security keys.

    C# security

  • How to kill process using C#?
    D DarkSorrow38

    I don't have a anti-virus software installed currently and the virus is not letting the anti-virus software install one.

    C# csharp tutorial question

  • How to kill process using C#?
    D DarkSorrow38

    My computer is affected by a virus 'regsvr.exe' which slows down the machine by eating proccessors time. I have to explicitly kill it from the process tab in the task manager. For this reason i want to create a executiable that would kill its process. Also specify how to put my executiable in the startup menu.

    C# csharp tutorial question

  • C# for Linux
    D DarkSorrow38

    Recently a friend told me that their is a compiler aviable for C# that enables us to generate execuitable for a C# program written in windows to be executed in Linux (i.e. the .cs file written in windows while the execuitable are generated for linux). Is it true? If true which compiler, is it a freeware and where can i find it. I have also noted that when i open my .cs file in gedit (a text editor) in Ubuntu (a linux based operating system), all the keywords that would high lighted(marked in different color) in VS2K8(Visual Studio 2008) IDE are also high lighted in this text editor. Why is this so?

    C# csharp visual-studio linux question

  • File Permission
    D DarkSorrow38

    OriginalGriff, Yes, i had considered FileInfo i = new FileInfo(@"C:\Test.txt"); i.Attributes += FileAttributes.ReadOnly; But this gives an error Operator ' += ' cannot be applied to operands of type 'System.IO.FileAttributes' and 'System.IO.FileAttributes'. Luc Pattyn, ThankYou. Your suggestion worked.

    C# json help

  • File Permission
    D DarkSorrow38

    I was just trying to give file premission to my dummy files but encountered a problem. I found out that only the last applied permission is imposed on the file while rest are overriden or not applied.

    using System;
    using System.IO;
    public class RegistryEditor
    {
    public static void Main()
    {
    try
    {
    FileInfo f = new FileInfo(@"C:\Test.txt");
    f.Attributes = FileAttributes.System;
    FileInfo f1 = new FileInfo(@"C:\Test.txt");
    f1.Attributes = FileAttributes.ReadOnly;
    FileInfo f2 = new FileInfo(@"C:\Test.txt");
    f2.Attributes = FileAttributes.Hidden;
    FileInfo i = new FileInfo(@"C:\Test1.txt");
    i.Attributes = FileAttributes.System;
    i.Attributes = FileAttributes.Hidden;
    i.Attributes = FileAttributes.ReadOnly;
    }
    catch (Exception ex)
    {
    Console.Write(ex.ToString());
    }
    }
    }

    Banking establishments are more dangerous then standing armies.

    C# json help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups