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
G

Gindi Bar Yahav

@Gindi Bar Yahav
About
Posts
18
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ASP.NET C# MCPD Exam (70-562)
    G Gindi Bar Yahav

    Hey, I've registered to the ASP.NET 70-562 MCPD exam, and I wanted to know, did someone know about http://www.ucertify.com/[^]? Because I want to buy study guide and I wonder if that is a good one Thanks for you help, and sorry if its not in the correct place. Yahav.

    Gindi Bar Yahav - Web & Software developer.

    ASP.NET csharp asp-net com help tutorial

  • WIA initialize object problem
    G Gindi Bar Yahav

    Hey, I got a project to make an video application (that I can see myself on windows form). The problem is that I dont know how to do that kind of things, so I searched the net and found the WIA COM and thinking of using it. I found that article: WIA Scripting and .NET[^] But for some reason my computter says that the COM "WIALib" not exists... so I continued search and found that: http://www.codeguru.com/forum/showthread.php?t=439027[^] But for some reason, the line

    CommonDialogClass class1 = new CommonDialogClass();

    Gives me an problem

    Error 2 Interop type 'WIA.CommonDialogClass' cannot be embedded. Use the applicable interface instead. C:\Users\Yahav\Documents\Visual Studio 2010\Projects\ControlCamera\ControlCamera\Form1.cs 69 40 ControlCamera

    and the same for that:

    DeviceManager manager = new DeviceManagerClass();

    Someone can explain me why? Thank you very very moch! Yahav.

    Gindi Bar Yahav - Web & Software developer.

    C# csharp com help php visual-studio

  • Take data from a website and display in a program.
    G Gindi Bar Yahav

    You can use ADO.NET to create database for the website, and then connect to it with the C# application. or you can do someting that call "web service" - open new ASP.NET Web service in your Visual Stduio, there, you can define methods that after you can call to then with your C#. after you finish define, go to the C# project, and then on the solution explorer->referance of the project click left mouse, click "Web referance", and look for your web service address, then you can use all the methods you defined.

    Gindi Bar Yahav - Web & Software developer.

    C# csharp database learning

  • Convert Process to the orginal C# COM class
    G Gindi Bar Yahav

    Hey, I learning now to work with processes on the computer, and i wanted to know how can i thake the Process and convert it into the orginal class. for example Take a opening IE running, and from the Process getting the IE command like set website, or get for example a WindowsMediaPlayer that active, and switch the song. There is a way to do that? Thanks! Yahav.

    Gindi Bar Yahav - Web & Software developer.

    C# question csharp com tutorial learning

  • Win Form - resize form problem
    G Gindi Bar Yahav

    So there is no other way to "say" to C# - "I want that control (for example button) to resize automatic"?

    Gindi Bar Yahav - Web & Software developer.

    C# csharp help question

  • Win Form - resize form problem
    G Gindi Bar Yahav

    Hey, When I programed a new software in C# with Windows Form I got an "unsolved" problem that I hope you can help me with: I written a form, when I resizing it the form get bigger but the controls still the same. I wanted to know if there is a .NET built in command that can solve that probem? or i have to use the "Resize" event and set it myself?. And if yes - when i get the Resize event, can i know what is the last size before the resize and now? (like when i get the EventArgs e can i do someting like e.LastX or e.LastY)? Thanks you very moch!, Yahav.

    Gindi Bar Yahav - Web & Software developer.

    C# csharp help question

  • Web service problem - error when binding to datagrid [modified]
    G Gindi Bar Yahav

    Sorry about the hebrew... :$ Isolved the problem i enterd in the windows form into app.config and them edit

    <setting name="WindowsUniversityClient_UniversityWebReference_Service"
    serializeAs="String">
    <value>http://192.168.111.1/UniversityWebServices/Service.asmx</value>
    </setting>

    To:

    <setting name="WindowsUniversityClient_UniversityWebReference_Service"
    serializeAs="String">
    <value>http://192.168.111.1/UniversityWebServices/Service.asmx?AspxAutoDetectCookieSupport=1</value>
    </setting>

    Now, when he hav AspxAutoDectateCoolieSupport it gives me the results :D Thanks for your help!, Yahav.

    Gindi Bar Yahav - Web & Software developer.

    C# help csharp html wpf wcf

  • Web service problem - error when binding to datagrid [modified]
    G Gindi Bar Yahav

    Hey, I am programing a program that uses a Web Service to connect between the Server and WinAPP forms. I made the web service and active my IIS 7 (Using vista ultimate), then i enterd into my localost(using IP) and all go ok (check my defined methods and they returned void XML data) But when i combine that web service to WinAPP and them bind data to datagrid i got error:

    System.Net.WebException: ‏‏הבקשה נכשלה עם הודעת השגיאה:

    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="%2fUniversityWebServices%2fService.asmx%3fAspxAutoDetectCookieSupport%3d1">here</a>.</h2>
    </body></html>

    --.
    ב- System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    ב- System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    ב- WindowsUniversityClient.UniversityWebReference.Service.GetGradesByStudentId(Int32 id) ב- C:\Users\יהב\Desktop\UniversityTestOrgnizer\UniversityTestOrgnizer\WindowsUniversityClient\Web References\UniversityWebReference\Reference.cs:שורה 83
    ב- WindowsUniversityClient.Form1.searchgrades_btn_Click(Object sender, EventArgs e) ב- C:\Users\יהב\Desktop\UniversityTestOrgnizer\UniversityTestOrgnizer\WindowsUniversityClient\Form1.cs:שורה 24

    the code i userd

            UniversityWebReference.Service service = new WindowsUniversityClient.UniversityWebReference.Service();
            try
            {
                this.grades\_dataview.DataSource = service.GetGradesByStudentId(int.Parse(this.studentid\_txtbox.Text));
            }
            catch (FormatException format\_e)
            {
                MessageBox.Show(format\_e.Message, "נוצרה שגיאה במהלך הצגת הנתונים", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch(Exception ee)
            {
                MessageBox.Show(ee.Message, "נוצרה שגיאה במהלך הצגת הנתונים", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
    

    Gindi Bar Yahav - Web & Software defeloper.

    modified on Saturday, June 20, 2009 10:43 AM

    C# help csharp html wpf wcf

  • Problem using WinMain function with C++
    G Gindi Bar Yahav

    Thanks!! you solved me the problem. i clicked properties and the "charset" was unicode, so i changed to multy-byte charcters (its ok?) but now its compiling me with no error, now i can go back to learn, thanks.

    Gindi Bar Yahav - Web & Software defeloper.

    C / C++ / MFC help learning csharp c++ visual-studio

  • Problem using WinMain function with C++
    G Gindi Bar Yahav

    Hey, i hope you can help me with my question: I started learning working with DirectX, in the start i saw a codeexample for how open an empty window (without chosing winn app at the start of Visual Studio) but for some reson, the code makes me problems, hope you can say to me why code

    #include <windows.h>

    HINSTANCE hInst; // global handle to hold the application instance
    HWND wndHandle; // global variable to hold the window handle

    // forward declarations
    bool initWindow( HINSTANCE hInstance );
    LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM );

    int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow )
    {
    // Initialize the window
    if ( !initWindow( hInstance ) )
    {
    return false;
    }

    // main message loop:
    MSG msg;
    
    ZeroMemory( &msg, sizeof( msg ) );
    
    while( msg.message!=WM\_QUIT )
    {
    	// Check the message queue
    	while (GetMessage(&msg, wndHandle, 0, 0) )
    	{
    		TranslateMessage( &msg );
    		DispatchMessage( &msg );
    	}
    }
    
    return (int) msg.wParam;
    

    }

    bool initWindow( HINSTANCE hInstance )
    {
    WNDCLASSEX wcex;
    // Fill in the WNDCLASSEX structure. This describes how the window
    // will look to the system

    wcex.cbSize = sizeof(WNDCLASSEX); // the size of the structure
    wcex.style = CS\_HREDRAW | CS\_VREDRAW; // the class style
    wcex.lpfnWndProc = (WNDPROC)WndProc; // the window procedure callback
    wcex.cbClsExtra = 0; // extra bytes to allocate for this class
    wcex.cbWndExtra = 0; // extra bytes to allocate for this instance
    wcex.hInstance = hInstance; // handle to the application instance
    wcex.hIcon = 0; // icon to associate with the application
    wcex.hCursor = LoadCursor(NULL, IDC\_ARROW);// the default cursor
    wcex.hbrBackground = (HBRUSH)(COLOR\_WINDOW+1); // the background color
    wcex.lpszMenuName  = NULL; // the resource name for the menu
    wcex.lpszClassName = “DirectXExample”; // the class name being created
    wcex.hIconSm = 0; // the handle to the small icon
    RegisterClassEx( &wcex );
    // Create the window
    wndHandle = CreateWindow(
    	"DirectXExample",
    	"DirectXExample",
    	WS\_OVERLAPPEDWINDOW,
    	CW\_USEDEFAULT, // the starting x coordinate
    	CW\_USEDEFAULT, // the starting y coordinate
    	640, // the pixel width of the window
    	480, // the pixel height of the window
    	NULL, // the parent window; NULL for desktop
    	NULL, // the menu for the application; NULL for
    	hInstance, // the handle to the application instance
    	NULL); // no values passed to the windo
    
    C / C++ / MFC help learning csharp c++ visual-studio

  • Sending requst with sent cookies
    G Gindi Bar Yahav

    Hey, I want to ask for your help: i am in the middle of building a program using C#, the program have to read XML file from the net that including the information about the member that logind in (this is a website) and display it in the program. the problem is that when i do the requst it not send any cookies with the requst, so the xml return guest, how can i get with C# the cookies that was sendin the website to send them? example: i have loggind in the website with "gindi bar yahav", "123321" - the web set cookies on my computer, now i want to get those cookies with C# becuse i need to use them when i requst from the XML file. that was the code i used

            try
            {
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.xml\_file);
                request.Method = "GET";
                
                //  Fetch cookies
    
                CookieContainer web\_cookies = new CookieContainer();
                CookieContainer cookies = web\_cookies.GetCookies(new Uri("http://otaku-con.co.il"));
                request.CookieContainer = cookies;
                //  Send
                HttpWebResponse resp = (HttpWebResponse) request.GetResponse();
    
                st = resp.GetResponseStream();
                sr = new System.IO.StreamReader(st);
    
                // read all the text in it
                System.Windows.Forms.MessageBox.Show(sr.ReadToEnd().ToString());
            }
            catch(Exception e)
            {
                System.Windows.Forms.MessageBox.Show(e.ToString());
                System.Windows.Forms.Application.Exit();
            }
    

    when i get the message it gave me "Array()" what means i dont have any cookies (in the page i tried only to print the cookies [with PHP]) but when i go to the page with the browser i can see all my cookies. someone know what the problem? thanks alot, Yahav.

    Gindi Bar Yahav - Web & Software defeloper.

    C# help question csharp php dotnet

  • Cannot connect into SQL Server using C#
    G Gindi Bar Yahav

    i have tried it before, it dosent do any change, becuse i added @ before the connection string.

    Gindi Bar Yahav - Web & Software defeloper.

    C# help csharp visual-studio database sql-server

  • Cannot connect into SQL Server using C#
    G Gindi Bar Yahav

    thanks you very moch for your help, what i am looking for is a software database so i dont really i need very big database, but ill try to work with SQL server to learn it... the last qustion if you can help me is if you know where i can find database hosting

    Gindi Bar Yahav - Web & Software defeloper.

    C# help csharp visual-studio database sql-server

  • Cannot connect into SQL Server using C#
    G Gindi Bar Yahav

    thanks for the replay, umm i didnt know that this is not a SQL Server... i open new Console APP (to check this, acualy i am building a program to my website in WIN but now i need to learn it first.. i done it before with MYSQL but...) so~, i clicked on Add new item (in the sulution explorer) and them local database connection. umm... and them i saw the database in the database explorer and i could edit tables, add tables etc... if its not mysql, can you explin me where i can find the way to connect to that type of sql server?

    Gindi Bar Yahav - Web & Software defeloper.

    C# help csharp visual-studio database sql-server

  • Cannot connect into SQL Server using C#
    G Gindi Bar Yahav

    Bey guys, i have a little problem, so if you can help me ill thank you... i built a Sql server using Visual Stuido 2008 ( it created me a file name my_database.sdf ). now i am tring to connect to the sql server i have created, i using the code below:

    public void Connect()
    {
    this.han = new SqlConnection(@"Data Source=C:\Users\יהב\Documents\Visual Studio 2008\Projects\ADOtutorial\ADOtutorial\my_database.sdf;Persist Security Info=True;Application Name=ConnectDB");
    Console.WriteLine(this.han.ConnectionString);
    try
    {
    this.han.Open();
    }
    catch (NullReferenceException e)
    {
    Console.WriteLine(e);
    }
    catch (SqlException e)
    {
    Console.WriteLine(e);
    }
    }

    this is a code in class, the class using this.han to make theconnection, the connection string i have copied from the connection strind i got from VS when i did motify connection -> advance. but for some resons i cant connect the error i got:

    Data Source=C:\Users\יהב\Documents\Visual Studio 2008\Projects\ADOtutorial\ADOtu
    torial\my_database.sdf;Persist Security Info=True;Application Name=ConnectDB
    System.Data.SqlClient.SqlException: אירעה שגיאה הקשורה לרשת או שגיאה ספציפית למו
    פע במהלך יצירת חיבור ל- SQL Server. השרת לא נמצא או שאינו נגיש. ודא כי שם המופע
    נכון וכי SQL Server מוגדר לאפשר חיבורים מרוחקים. (provider: ממשקי רשת של SQL, e
    rror: 26 - שגיאה באיתור שרת/מופע שצוין)
    ב- System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exceptio
    n, Boolean breakConnection)
    ב- System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateOb
    ject stateObj)
    ב- System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInterna
    lConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boo
    lean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection
    owningObject)
    ב- System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo
    serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire
    , SqlConnection owningObject)
    ב- System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String hos
    t, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObjec
    t, SqlConnectionString connectionOptions, Int64 timerStart)
    ב- System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConn

    C# help csharp visual-studio database sql-server

  • PHP Exams
    G Gindi Bar Yahav

    As i know from isreal, the only way to do the PHP exam is to go to one of the avalable comanies and take the exam there... sorry

    Gindi Bar Yahav - Web & Software defeloper.

    Linux, Apache, MySQL, PHP

  • Connect to remote SQL Server
    G Gindi Bar Yahav

    Mabye it can be... but do you know a SQL server (I dont mind use mySql/MS Access/SQL Server) that i can connect with it? i searched the net and didnt find... (and its not like the host will say to me "i gives you the abillty to connect from other machine" ^^") Thanks you very moch for your answers, ill talk today to my host administrator and try to find the problem. Yahav.

    Gindi Bar Yahav - Web & Software defeloper.

    C# csharp help question php database

  • Connect to remote SQL Server
    G Gindi Bar Yahav

    Hey, my name is Yahav and i am a .NET programer (and PHP expert but never mind...) In my currect program, i am tring to connect to my website SQL server (server type - mySql). i have downloaded the dll C# lib to do that connect and i have got mySQL "test connection program" who checks the sql connection and give me to edit the program the link to download: http://dev.mysql.com/downloads/[^] the problem is when i entering my host address (pearservices.com) or the ip address 62.90.136.206 i got error: "host address {my home address} could not connect to this SQL server." ({my home address} = my home ip address) but when i entering localhost (mean my own mysql server that i have insalled on my computer) its works very well someone can explain me why i get this error, and how can i connect to remote server, if this is a problem with my website host, do you have a hosts that give me the abillty to do that? thanks you very motch, Yahav. P.S.: Sorry, my engish is not very well.

    Gindi Bar Yahav - Web & Software defeloper.

    C# csharp help question php database
  • Login

  • Don't have an account? Register

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