User Profile
Collapse
-
Spoonfeeding removed, as well as links -
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...Leave a comment:
-
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
...Leave a comment:
-
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;
...Leave a comment:
-
-
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 ;
...Leave a comment:
No activity results to display
Show More
Leave a comment: