|
Richard MacCutchan wrote: each backslash in the path should be preceded by another in order for the character escape sequences to be correct
Forgot about that... I almost always just use the lib name in pragma comments and add the directory as a "library directory" (since the compiled libraries are usually kept together, in my case anyway).
|
|
|
|
|
Yes, me too. Interestingly when I tested this although my string was wrong, the actual escapes were valid (\f and \b) so the problem was not diagnosed by the compiler.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
|
Look at some of the articles here on CodeProject or search Google. Animation like this is not that difficult once you have learned the principles of Windows GDI[^] and/or GDI+[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
You should put a little bit of effort yourself to accomplish your task. Then we can help you understand any issues or questions you may have.
|
|
|
|
|
in win32api
if i resize the window i want all the things i have inside to move also ,how can i do that ?
thanks
|
|
|
|
|
One suggestion would be to walk through the list of all child windows and call MoveWindow() for each of them to place them in new positions. If you are looking for a single API call to do this, I don't beleive such a call exists.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
Chris Meech wrote: I don't beleive such a call exists.
I believe you're right...
|
|
|
|
|
|
Browse on Firefox... it's built in...
|
|
|
|
|
Chris is right... there's really no simple way of doing this... they have to be moved independently.
|
|
|
|
|
You have to move them yourself since there's nothing automatic in Win32 .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
See the Extras section of this article. It's MFC, but you should be able to accomplish the same thing with Win32.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Look up DeferWindowPos , BeginDeferWindowPos , and EndDeferWindowPos functions in MSDN.
Independent ACN Business Owner- Check out the possibilities for your future!
- Financial independance
- Full time or Part time
- In more than 20 countries through North America, Europe, Asia and the Pacific
- Featuring the ACN IRIS 5000 video phone. See the person you are talking to.
Within you lies the power for good - Use it!
modified 17-Jan-12 17:36pm.
|
|
|
|
|
wow i like this forum.
because i have an exam i dont have the time to check yours suggestion. i decide to limit the resize the window so i dont need to move anything.with this
case WM_GETMINMAXINFO:
{
LPMINMAXINFO pinfo =(LPMINMAXINFO)lParam;
if (pinfo!=NULL)
{
pinfo->ptMinTrackSize.x=750;
pinfo->ptMinTrackSize.y=550;
}
return 0 ;
}
thanks again
|
|
|
|
|
a1_shay wrote: wow i like this forum.
Glad you like it... now use it wisely...
|
|
|
|
|
Hi,
The following code compiles no probs...
typedef struct SLLNode_t
{
void* m_pData;
struct SLLNode_t* m_pNext;
};
void foo()
{
struct SLLNode_t* pNewNode = (struct SLLNode_t*)malloc(sizeof(struct SLLNode_t));
}
The following, with a call to assert, generates a an error C2143: syntax error : missing ';' before 'type'.
typedef struct SLLNode_t
{
void* m_pData;
struct SLLNode_t* m_pNext;
};
void foo()
{
assert(0 == 0);
struct SLLNode_t* pNewNode = (struct SLLNode_t*)malloc(sizeof(struct SLLNode_t));
}
assert is defined as follows...
#define assert(_Expression) (void)( (!!(_Expression)) || (_wassert(_CRT_WIDE(#_Expression), _CRT_WIDE(__FILE__), __LINE__), 0) )
What is wrong? How do I fix it?
Thanks - John.
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
__John_ wrote: What is wrong? In C programming language variable declarations must be at the beginning of the block.
__John_ wrote: How do I fix it? This way
void foo()
{
struct SLLNode_t* pNewNode = (struct SLLNode_t*)malloc(sizeof(struct SLLNode_t));
assert(0 == 0);
}
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You could do this -
void foo()
{
struct SLLNode_t* pNewNode = NULL;
assert(0 == 0);
pNewNode = (struct SLLNode_t*)malloc(sizeof(struct SLLNode_t));
}
|
|
|
|
|
Of course. However, it won't change program behaviour.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Normally assert is done before any processing is done.
That's what I meant to indicate.
|
|
|
|
|
Yes, I got that. I was just kidding a bit on 'assert(0==0) '.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Doh!
I've been doing C++ for too long and forgot that one.
Thanks guys, +5 all round.
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
You are welcome. And thank you too.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
May I ask, what is the purpose of:
assert(0 == 0);
??
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|