|
Here I found very simple way of doing this:
void fff()
{
MessageBox(0,"ehlo","helo",0);
}
DWORD CALLBACK mhThread(LPVOID lpParam)
{
((void(*)(void)) lpParam)();
return 0;
}
CreateThread(0, 0, mhThread, fff, 0, 0);
but... can somebody explain what does this mean: ((void(*)(void)) lpParam)(); ? it looks confusing...
and thank you again for replies
|
|
|
|
|
Simply a cast to a function pointer, the function returning no value and accepting no args. Maybe this clearify a bit the code:
typedef void (*LPFUNC)(void);
void mhThread(void * lpParam)
{
LPFUNC lpFunc = (LPFUNC) lpParam;
(*lpFunc)();
}
|
|
|
|
|
Someone in their article instructed users to "remove all post processing call to upx...". What does that mean and how do I do that?
Thanks,
BP
|
|
|
|
|
that could mean the Post-Build Step in Project Settings.
|
|
|
|
|
Thanks Chris, I'll check it out.
|
|
|
|
|
Hey all,
I have a strange question to ask. I have an app that performs some functions when a user is logged in or logged out. The functions are performed in separate threads and a dummy window is created so it can be used as the parent for windows that are popped up during this functionality.
Here is my problem: after I updated one of my machines to IE7, this functionality will only work if I am logged in and I run it manually. In debugging, the call to SetWindowPos never returned, even though the values were good. Other times, I try to circumvent the code and it fails elsewhere. I am using CreateWindow to create the dummy window and it contains a good window handle.
Any ideas what might be causing this problem? Any thoughts on what I can look at? I am completely stumped, my application doesn't even use anything from IE7 but after the install (and eventual uninstall) it still has a hangup.
|
|
|
|
|
What is IE7?
LateNightsInNewry
|
|
|
|
|
LateNightsInNewry wrote: What is IE7?
Why, it's the next step up from IE6, of course!
|
|
|
|
|
So, Let's Cut the Crapp, what's IE0, other than the step up from IE-1
LateNightsInNewry
|
|
|
|
|
LateNightsInNewry wrote: So, Let's Cut the Crapp
OK Internet Explorer Version 7
|
|
|
|
|
Wow
|
|
|
|
|
|
I was wondered why you written IE7
|
|
|
|
|
Because....
LateNightsInNewry wrote: What is IE7?
|
|
|
|
|
can anybody help me in implementing blowfish algorithm for encryption/decryption between client and server in unix enviornment.
i dont have a clue how to do it..
-- modified at 15:08 Thursday 16th November, 2006
|
|
|
|
|
poklmnbjihgyurybdgsyrwpkdfjisgcdhwkuqihwvdgfacekg;hprkla;lfjgupweorutypqpwliorujmnxb.
There's a clue, but sorry it's encrypted.
Chris Meech
I am Canadian. [heard in a local bar]
I agree with you that my argument is useless. [Red Stateler]
Hey, I am part of a special bread, we are called smart people [Captain See Sharp]
The zen of the soapbox is hard to attain...[Jörgen Sigvardsson]
I wish I could remember what it was like to only have a short term memory.[David Kentley]
|
|
|
|
|
Wow - you got off lightly.
Please don't post programming questions in the lounge ( as it said in big red letters as you typed this ), I've moved this to the most likely place for you to get an answer ( on this Windows programming site ).
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
use Google to find the Crypto++ library.
|
|
|
|
|
|
Dear OMC79
I think your best chance is to subscribe to the course, attend the lectures, read the books, and try again next year.
LateNightsInNewry
|
|
|
|
|
Did you search on www.codeproject.com and www.codeguru.com
|
|
|
|
|
google
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Greetings,
I have an MDI with one view and a control dlg. I want the control dialog to be on the left so I give it the CBRS_LEFT setting. When it launches, it is momentarily on the left, then when the main view is drawn, it goes on top of the main view. How do I force it to stay on the left?
Thank you.
Sincerely,
BP
|
|
|
|
|
Cannot you please help me in my problem. I'm programming with VC++ 6.0 using MFC. I've placed a picture on the background of the object of CTreeCtrl class. I want elements of the tree to be transparent for user to see background through them. So, I want to see tree-structured text over the picture. Please help me.
|
|
|
|
|
You could probably derive a new class from CTreeCtrl and override the OnEraseBkgnd function. In OnEraseBkgnd, draw your background image to the CDC and return 1 to indicate you've handled it. Haven't tried it, but it theoretically should work.
- S
50 cups of coffee and you know it's on!
|
|
|
|