User Profile

Collapse

Profile Sidebar

Collapse
mostafa110
mostafa110
Last Activity: Jul 4 '08, 10:44 AM
Joined: Oct 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Spoonfeeding removed, as well as links
    See more | Go to post

    Leave a comment:


  • Dear,
    for run word.exe through visual C++ project type below code:

    ShellExecute(Ge tSafeHwnd(),"op en","Word.exe", NULL,NULL,1);

    Be careful this function run programm that installed and be in Widows folder. if you run program or *.exe file that is not installed or in other folder you must determine destination. for example: "D:\\My folder\\Desktop \\Myprogram.exe ", and last argument show...
    See more | Go to post

    Leave a comment:


  • mostafa110
    replied to store data in a struct
    in C
    Dear,
    Type below code:

    typedef struct _EXAMPLE
    {
    int i;
    int c;
    }EXAMPLE;

    EXAMPLE GetSum(int k1,int k2)
    {
    EXAMPLE ex;
    ex.i=k1;
    ex.c=k2;
    return ex;
    }

    //CPP file
    EXAMPLE exx;
    exx=GetSum(20,3 0);
    cout<<"i"<<exx. i;
    cout<<"c"<<exx. c;

    Output
    ...
    See more | Go to post

    Leave a comment:


  • mostafa110
    replied to Program to add two numbers by using classes
    in C
    Dear,
    You must type blew code instead of your code:
    [code=cpp]
    class class1
    {
    public : void sum1(int,int);
    };

    void class1::sum1(in t C,int D) //Note here
    {
    int sum;
    sum=C+D;
    cout<<"sum="<su m;
    }
    void main()
    {
    int a=1,b=2;
    ...
    See more | Go to post

    Leave a comment:


  • mostafa110
    replied to How do I convert GetUserName to Lowercase?
    in C
    Use below code:
    spoonfeeding removed
    See more | Go to post

    Leave a comment:


  • mostafa110
    replied to Check memory
    in C
    Hello
    The below code used in MFC.
    You must type below code:
    __int64 Memstatus()
    {
    MEMORYSTATUS mem;
    GetMemoryStatus (&mem);
    return mem.dwAvailPhys ;
    }
    Other variables are :
    DWORD dwLength;
    DWORD dwMemoryLoad;
    SIZE_T dwTotalPhys; //Total physical memory installed on computer
    SIZE_T dwAvailPhys;
    SIZE_T dwTotalPageFile ;
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...