prabh's Profile User Rating: -----

Reputation: 3 Apprentice
Group:
Contributors
Active Posts:
381 (0.18 per day)
Joined:
27-December 08
Profile Views:
10,822
Last Active:
User is offline Aug 29 2014 02:12 AM
Currently:
Offline

Previous Fields

Country:
IN
OS Preference:
Windows
Favorite Browser:
Mozilla
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Toyota
Dream Kudos:
25

Latest Visitors

Icon   prabh Oh yeah..........

Posts I've Made

  1. In Topic: raising events

    Posted 28 Jan 2014

    Thanks for your reply but this is not what I want.
    I don't want to directly update any control like lables.

    Quote

    I want to send Updated value to my form whenever DownloadProgressEvent is invoked.


    Like we do it using WebClient
    webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
    


    I know it can be done using delegates to send MyEventArgs, but I don't know how.
  2. In Topic: I want some information about writing data into binary files in C++

    Posted 2 Oct 2012

    I posted a snippet on Dreamincode.net you can check that if it works.
    My snippet
  3. In Topic: First attempt using header files, dosent work :/

    Posted 2 Oct 2012

    Look for comments i put.
    Your main.cpp should look something like this
    #include <iostream>
    #include "header.h"
    using namespace std;
    
    int main()
    {
    // the correct way
        int x= 0;
        int y= 0;
        int z = 0;
        cout << "Hello world!" << endl;
        while(1){
    // to update your x,y and z you should call your function
            example(x,x,z);
    	        cout<<"X: "<<x<<endl<<"Y: "<<y<<endl<<"Z: "<<z<<endl; //The x,y,z decleared in header.h
    	    }
        return 0;
    }
    
    

    header.h
    #ifndef HEADER_H_INCLUDED
    #define HEADER_H_INCLUDED
    #include <windows.h>
    
    int example( int x,int y,int z){
    
        if(GetAsyncKeyState(VK_UP)){y++;}
        if(GetAsyncKeyState(VK_DOWN)){y--;}
        if(GetAsyncKeyState(VK_RIGHT)){x++;}
        if(GetAsyncKeyState(VK_LEFT)){x++;}
        if(GetAsyncKeyState(VK_TAB)){z=1;}
        if(GetAsyncKeyState(VK_SPACE)){z=2;}
        if(GetAsyncKeyState(VK_SHIFT)){z=3;}
    
        return(0);
    }
    
    #endif // HEADER_H_INCLUDED
    
    
    
    

    This code compiled, but thats a horrible way to use while loop.
    You need to learn a lot buddy.

My Information

Member Title:
D.I.C Regular
Age:
22 years old
Birthday:
April 23, 1992
Gender:
Location:
New Delhi/India
Interests:
<<<<<<<<<<<<<<<<,,,,Gaming, Hacking,Game Hacking,Programming,electronics,computer hardware
eating,i dont sleep(i sleep on week ends),Music,
Movies(action+science fiction),,
and at last on T.V
1.History channel
Man moment and machine ,aushwitz ,tudors,boyz toyz
Dogfights
2.Discovery channel every thing>>>>>>>>>>>>>>>Fuck these things now i don't have time for them

time learn the basics of direct3d
Full Name:
Prabh Jot
Years Programming:
4
Programming Languages:
C/C++
VB.NET
C#.net
LilleBit of VC++ and Java
php
html

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://
ICQ:
ICQ  3

Comments

Page 1 of 1
  1. Photo

    sri Harsha Icon

    22 Apr 2010 - 06:57
    how to give tutorials ...
Page 1 of 1