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
K

KARFER

@KARFER
About
Posts
31
Topics
23
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • PPPoe connection creation in c#
    K KARFER

    Hello Everyone, I want to create PPPoE Connection. I do this code but it doesn't work and i use the library DotRas (); When I run the code the error appear in the line:

    (RasEntry entry = RasEntry.CreateBroadbandEntry("osama",RasDevice.GetDeviceByName("(PPPoE Osama)",RasDeviceType.PPPoE)); )

    and the error is: Value cannot be null.Parameter name: device The is the Code...

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using DotRas;

    namespace WindowsFormsApplication2
    {

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
    
    
    
        private void button1\_Click(object sender, EventArgs e)
        {
            string path;
            path = RasPhoneBook.GetPhoneBookPath(RasPhoneBookType.User);
    
            using (RasPhoneBook pbk = new RasPhoneBook())
            {
                pbk.Open(path);
                
                RasEntry entry = RasEntry.CreateBroadbandEntry("osama",RasDevice.GetDeviceByName("(PPPoE Osama)",RasDeviceType.PPPoE));
                // Configure any options for your entry here via entry.Options
                pbk.Entries.Add(entry);
            }
    
    
            using (RasDialer dialer = new RasDialer()) 
            {
                dialer.EntryName = "Your Entry";
                dialer.PhoneBookPath = path;
                dialer.Credentials = new System.Net.NetworkCredential("User", "Password");
                dialer.Dial();
            }
        }
    }
    

    }

    If there is another way please tell me how.

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C# csharp linq graphics help

  • create PPPoe connection in c#
    K KARFER

    Hi All, How to create PPPoE connection after clicking button in c#. I have ready form with two textbox(username and password)fields. I want to create PPPoE Connection, place shortcut on desktop and copy username and password from fields to PPPoE connection after clicking button in form. Thanks for Helping.

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C# csharp tutorial

  • how to do function like cout
    K KARFER

    Hi all how to do function like cout<<"" but without using cout and with different name. I want to say how to create a print function without using cout and name it as you like. I hear that i can do it by overloading or overriding or anything else .. i don't know. Thank's

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C / C++ / MFC tutorial

  • overloading Console.write() [modified]
    K KARFER

    Thank's for reply but i want to say how to make new method like Console.write by overloading without using Console.write.

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C# tutorial

  • overloading Console.write() [modified]
    K KARFER

    Hi all how to do function like Console.write() but without using Console.write() and with different name. I want to say how to create a print function without using Console.write() and name it as you like. I hear that i can do it by overloading or overriding or anything else .. i don't know. Thank's

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    modified on Tuesday, February 1, 2011 11:50 AM

    C# tutorial

  • the command for run program exe
    K KARFER

    hi all please what the code in C# to run program .exe i mean i have button and i want when i press on the button any program exe i determined it run. Regards KARFER

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C# csharp

  • why not submit
    K KARFER

    thanks a lot Mr.Marc Firth it's working now thank you again Regrads KARFER

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    Linux, Apache, MySQL, PHP php com beta-testing code-review

  • why not submit
    K KARFER

    hi all i try to develope feedback system by php and i make two pages the first is feedback.php and this is it's code //this is feedback.php <form name="feedback" method="post" action="FeedBackCheck.php"> <table width="550" border="0" align="center" cellpadding="1" cellspacing="2"> <tr> <td colspan="2"><div align="center"> </div></td> </tr> <tr> <td width="114">&nbsp;</td> <td width="426">&nbsp;</td> </tr> <tr> <td>Name</td> <td><label> <input name="txtName" type="text" id="txtName" tabindex="0" size="54" maxlength="254" /> </label></td> </tr> <tr> <td>Subject</td> <td><label> <input name="txtSubject" type="text" id="txtSubject" tabindex="1" size="54" maxlength="254" /> </label></td> </tr> <tr> <td>Email</td> <td><label> <input name="txtEmail" type="text" id="txtEmail" tabindex="2" size="54" maxlength="254" /> </label></td> </tr> <tr> <td>Message</td> <td><label> <textarea name="txtMessage" cols="41" rows="7" id="EDITOR" tabindex="3"></textarea> </label></td> </tr> <tr> <td colspan="2"><label> <div align="center"> <input name="btnSend" type="submit" id="btnSend" tabindex="4" value="send" /> </div> </label></td> </tr> </table> </form> and the second page name FeedBackCheck.php and it's code $txtName = trim($_POST['txtName']); $txtSubject = trim($_POST['txtSubject']); $txtEmail = trim($_POST['txtEmail']); $txtMessage = trim($_POST["txtMessage"]); $txtDate = date('d-m-Y'); if ($btnSend == "send") { $to = "jameil_hamzh@yahoo.com"; $insertFe

    Linux, Apache, MySQL, PHP php com beta-testing code-review

  • SetWindowText function error
    K KARFER

    thank's for all replays -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C / C++ / MFC help

  • SetWindowText function error
    K KARFER

    Hi all #include HWND handle; int main () { handle = GetForegroundWindow(); SetWindowText(handle,"Hello!"); return 0; } When i compile my program it's not working and give me the error say Cannot convert parameter 2 from char[7] to LPCWSTR in SetWindowText function. Regards -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C / C++ / MFC help

  • The Progam Used to build websites
    K KARFER

    hi all what is the Progam that the developers used to build websites like yahoo and msn and google thank's all

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    Web Development question

  • Name of the program to use to desgin websites
    K KARFER

    Hi all i can develop website using Frontpage but i want to know if the expert web developer use this program or another program. if there is another program please listed them. Thank's

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    Web Development

  • select statement problem
    K KARFER

    Hello everyone I Add this tool "Microsoft ADO Data Control 6.0" dim dnsip As String ado.RecordSource = "select ip1,ip2,ip3,ip4 from DNSTable where hostname like ('dnshostname ') " dim dnsip as String dnsip = ado.RecordSource = "select ip1,ip2,ip3,ip4 from DNSTable where hostname like ('dnshostname ') " How i can store or save the retrieve select statment in variable like dnsip Thank you

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    Visual Basic help

  • Select statement to ADO control
    K KARFER

    hi all I Add this tool "Microsoft ADO Data Control 6.0" and connected it to my Database and i want to store the select statment in my variable like this: dim dnsip as String dnsip = ado.RecordSource = "select ip1,ip2,ip3,ip4 from DNSTable where hostname like ('dnshostname ') " This code does not store select statment in my variable dnsip How i can store the select statment in variable dnsip THANK'S

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    Visual Basic database

  • Move cursor to next textbox
    K KARFER

    Hi all I have 3 textbox in the form and i make the Property MaxLength to 3 and i want that when i enter 3 letter in first textbox the cursor move auto to the next and so on

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    Visual Basic

  • Convert array to pointers
    K KARFER

    Hello All I have This Code [assignment] and I want the user to control over the maximum size of CSet. using integer pointer instead of integer array and by constructor can specifies the desired size. #include <iostream> #include <conio.h> using namespace std; const int maxCard = 100; class CSet { private: int elems[maxCard]; int card; public: CSet() { card = 0; return; } bool Member (const int); void AddElem (const int); void RmvElem (const int); void Copy (CSet &); bool Equal (CSet &); void intersect (CSet &,CSet &); void Union (CSet &,CSet &); void print (); }; bool CSet::Member(const int elem) { for (register int i = 0;i < card;++i) if (elems[i] == elem) return true; return false; } void CSet::AddElem(const int elem) { if (Member(elem)) return; if (card < maxCard) elems[card++] = elem; else cout <<"Set Overflow"<<endl; } void CSet::RmvElem(const int elem) { for (register int i = 0;i <card;++i) if (elems[i] == elem) { for (;i<card - 1;++i) elems[i] = elems[i + 1]; --card; } } void CSet::Copy(CSet &set) { for (register int i =0;i<card;++i) set.elems[i] = elems[i]; set.card = card; return; } bool CSet::Equal(CSet &set) { if (card != set.card) return false; for (register int i = 0;i < card;++i) if (!set.Member(elems[i])) return false; return true; } void CSet::intersect(CSet & set,CSet &res) { res.card = 0; for (register int i = 0;i <card;++i) if (set.Member(elems[i])) res.elems[res.card++] = elems[i]; return; } void CSet::Union(CSet &set,CSet &res) { set.Copy(res); for (register int i=0;i <card;++i) res.AddElem(elems[i]); return; } void CSet::print() { cout <<"{"; for (int i=0;i<card-1;++i) cout <<elems[i] <<","; if (card > 0) cout <<elems[card - 1]; cout <<"}\n"; return; } int main () { CSet s1,s2,s3; s1.AddElem(10); s1.AddElem(20); s1.AddElem(30); s1.AddElem(40); s2.AddElem(30); s2.AddElem(50); s2.AddElem(10); s2.AddElem(60); cout <<"S1 = "; s1.print(); cout <<"\nS2 = "; s2.print(); cout <<endl; if (s1.Member(20)) cout <<"20 is in s1"<<endl; s1.intersect(s2,s3); cout <<"s1 intersection s2="; s3.print(); s1.Union(s2,s3)

    C / C++ / MFC data-structures

  • convert integer number to string text
    K KARFER

    Thank's For all

    Never put off till tomorrow what can be done today

    C / C++ / MFC

  • convert integer number to string text
    K KARFER

    O.K Thank's For all

    I'll Be There

    C / C++ / MFC

  • convert integer number to string text
    K KARFER

    Hi all please how i can convert integer number to string text like this (i entered 7 in keyboard and the output will be seven) thank's for all

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C / C++ / MFC

  • Delete Elements in arrays
    K KARFER

    Thank you for all things

    -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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