Everything is working perfectly but do not know this project.exe is giving me error. I tried to build new projects but still having same problem. Such a crazy headache......... :(
Saturday, 30 March 2013
Problem in project .exe file
Monday, 25 March 2013
CDirection issue Solved
Hi friends
Sorry for CDirection issue. I did something wrong. Actually I forgot to use namespace. That's why I was getting error. Anyways it is solved.
Thank you
Pankaj Sama
Thursday, 21 March 2013
Getting CDirection Error
Hi friends
I am doing my CMenuItem. I updated the cuigh.h as on wiki page but I am getting an error "Cdirection is not defined" in Cframe.h. But it is prototype in cuigh.h as
"enum CDirection {centre, left, right, up, down};
Can somebody help me with that. Looking forward for reply
Thanks
Pankaj Sama
I am doing my CMenuItem. I updated the cuigh.h as on wiki page but I am getting an error "Cdirection is not defined" in Cframe.h. But it is prototype in cuigh.h as
"enum CDirection {centre, left, right, up, down};
Can somebody help me with that. Looking forward for reply
Thanks
Pankaj Sama
Wednesday, 20 March 2013
Convert Bits value of a variable(any type) to Hex
Program is written in the purpose of Converting Bits value of a variable to Hex
#include <iostream>
using namespace std;
void bitDump(void* address, unsigned int size);
int main(){
long double ld = 12345.123456;
bitDump(&ld, sizeof(ld)); // print the bit pattern (cool if formatted)
return 0;
}
//Loop through size and convert each char to 8 binary digits.
void bitDump(void* var, unsigned int size){
char* addres = (char*) var;
int count = 1;
for(int i = 0; i < sizeof(size); i++){
unsigned int mask = 1 << 7;
while(m){//convert each char to 8 binary digits
printf("%d", !!(addres[i] & mask));
m = m >> 1;
if(count == 4)
{
putchar(' ');
cnt = 1;
}
else
{
count++;
}
}
putchar('\n');
}
BitPrint Function
Function to Print the Bits of a variable.....
void prnBits(unsigned int val)
{
unsigned int m = 1 << sizeof(val)*8 - 1;
while(m)
{
printf("%d\n", (val & m) && 1);
m = m >> 1;
}
}
SetBits Function
Fuction to set bits on given no of bit
void setBits(unsigned int&, int BitNo, bool value)
{
if(value)
{
v = v | (1 << (BitNo - 1));
}
else
{
v = v & ~(1 << (BitNo - 1));
}
}
Wednesday, 13 March 2013
Update cuigh.h and frame.h
Hi friends
I update the cuigh.h and frame.h in the master and did pull request. Please have a look on code and let me know about if it has any problem.
Regards
Pankaj Sama
I update the cuigh.h and frame.h in the master and did pull request. Please have a look on code and let me know about if it has any problem.
Regards
Pankaj Sama
Tuesday, 5 March 2013
C_BUTTON_HIT key
As given information in the CButton Implementation specification. The C_BUTTON_HIT Key is not defined in "cuigh.h" class. Can anybody let me know about this issue.
Thanks
Pankaj Sama
Subscribe to:
Posts (Atom)