|
Ganesh_T wrote: I am getting problem while using InternetOpenURL in Wndoe service.
To determine why access to the service was denied you can use InternetGetLastResponseInfo()or you can also use GetLastError() to retrieve a specific error message.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
See the Return Values section here.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It's just a warning, but i wonder why it even pops up ? According to teh Documentation, size_t is unsigned int. So why does my compiler warn me every time want them implicitly casted ? They are the same, or aren't they ?
|
|
|
|
|
Mr.Brainley wrote: It's just a warning, but i wonder why it even pops up ? According to teh Documentation, size_t is unsigned int. So why does my compiler warn me every time want them implicitly casted ? They are the same, or aren't they ?
Use sizeof to find the size of the size_t variable, is it 8 bytes or 4 bytes?
|
|
|
|
|
insn't size_t an __int64 instead ?
|
|
|
|
|
toxcct wrote: insn't size_t an __int64 instead ?
No it's traditionally typedef'ed as UINT. But I have seen in some headers it being typedef'ed as __int64.
|
|
|
|
|
Well, since my usually strings are not longer than 256, i just use an explicit cast to supress the warning. It's probably best like that, since that apparently would change with the SDK-Version one uses. Thanks for your replies.
|
|
|
|
|
CrtDefs.h:
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef _W64 unsigned int size_t;
#endif
#define _SIZE_T_DEFINED
#endif
...cmk
Save the whales - collect the whole set
|
|
|
|
|
hey you guys,
the problem is that i have 2 classes (say A,B) ,
class A have a pointer on class B
<br />
class A<br />
{ B* b;};<br />
and class B have a member variable for type class A
<br />
class B<br />
{A a;};<br />
this is seems to be a problem and the compiler retrun an error say
'a' uses undefined class 'A' although i am declaring the header of A
<br />
#include "A.h"<br />
class B<br />
{A a;};<br />
anybody have any idea abt wat might be the problem here
thnx 4 ur time and concern
learn, learn, and learn
|
|
|
|
|
singersinger wrote: this is seems to be a problem and the compiler retrun an error say
'a' uses undefined class 'A' although i am declaring the header of A
Mr Compiler is right.
You need to forward declare class B, which tells the compiler that there is a class called B, and he needn't worry about it.
class B;
class A
{ B* b;};
class B
{A a;};
|
|
|
|
|
Your problem is that a is not defined yet, as the compiler correctly says.
The first thing it does when compiling A is go to B and compile that, and thus it does not know that class A exists yet.
THe solution to this is to add the prototype to A before including B.
e.g.
<br />
class A;<br />
<br />
#inlcude "B.h"<br />
<br />
class A<br />
{ B* b;};<br />
<br />
|
|
|
|
|
wheelerbarry wrote:
class A;
#inlcude "B.h"
class A
{ B* b;};
with this, you will have include problems.
in B.h you will need to have include guards
#ifndef _B_H_
#define _B_H_
class B
{
};
#endif
and in A.h it is good practice ( IMO, YMMV ) to also add include guards :
#ifndef _A_H_
#define _A_H_
#ifndef _B_H_
#include "b.h"
#endif
class A
{
B* b;
};
#endif
IMO, using forward declaration is the best approach to that problem unless B is not a pointer.
|
|
|
|
|
guys, thnx alot 4 ur fast reply
but still this doesn't solve the problem, i don't know why
---------------------
learn, learn, and learn
|
|
|
|
|
#pragma once
class B;
#include "B.h"
class A
{
B* b;
};
#pragma once
#include "A.h"
class B
{
A a;
};
#include "B.h"
void main( void )
{
B bb;
}
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have applied a skin to window by scanning a bitmap and creating a HRGN from it. I then call SetDIBitsToDevice() to draw the image. All works fine except for when the window is moved. There is an unsightly black flicker around the edges of the bitmap, they are only there when the window is being moved, almost as if the image is being drawn to the wrong place.
I have little experience with bitmaps and the gdi, I wonder if anybody could point out a possible cause for this.
|
|
|
|
|
waldermort wrote: There is an unsightly black flicker around the edges of the bitmap, they are only there when the window is being moved, almost as if the image is being drawn to the wrong place.
You might be drawing slightly outside the window. I am not sure though. I did have a similar kind of problem some time back.
|
|
|
|
|
If that was the case then the origional making color in the bitmap should be showing (which is red) instead of this black. I have been playing around with the code and narrowed it down to the WS_EX_LAYERED for which I am using to fade in and fade out. For some reason it is replacing my selected NULL_BRUSH for the background with a BLACK_BRUSH .
|
|
|
|
|
As I suspected, the WS_EX_LAYERED extended style causes a lot of flicker. As soon as the animation is complete I remove the extended style and the problem goes away.
|
|
|
|
|
waldermort wrote: As soon as the animation is complete I remove the extended style and the problem goes away.
That's clever.
|
|
|
|
|
Hi there,
I am searching for free download of c++ compiler for 64 bit. I tried hard to search it but i couldn't. Can u help me out plz? It's realy urgent.
Thank You in advance,
-- moved at 8:46 Thursday 14th September, 2006
|
|
|
|
|
It's interesting to me that people looking for stuff for free always feel their request is 'urgent'
Visual C++ 2005 Express Edition is free, doesn't that do 64 bit ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for reply. generally those people are asking for free who r not doing such thing that will give any profit back to him/her they just want to test something. I am doing such a thing cause if anybody else want to work on the samething and i have the solution then i can provide him/her. I cant be sure but it may be one of them will be u. So never underestimate those people who wants some free though its urgent.
i was asking that i dont want the inbuild compiler is there any else?
Thank you once again. Hope u understand what i want to tell.
|
|
|
|
|
|
Chris,
Christian Graus wrote: isual C++ 2005 Express Edition is free, doesn't that do 64 bit ?
No
Check it here!!![^]
-Sarath.
"Unhappiness is best defined as the difference between our talents and our expectations" - Edward De Bono
|
|
|
|
|
Christian Graus wrote: It's interesting to me that people looking for stuff for free always feel their request is 'urgent'
I need a free IDE NOW! I must have it ASAP! I can't pay a single cent for it, but I need it yesterday!
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|