|
gothic_coder wrote: You mean to say before i write to the file i should write that byte order marker (BOM) first???
Yes. See:
http://en.wikipedia.org/wiki/Byte-order_mark[^]
As for mispelling my name... As you're not from the mother country, I'll forgive you. Once. Please warn all of your fellow countrymen to not make the same mistake...
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Iain Clarke wrote: As for mispelling my name... As you're not from the mother country
But he neverthless lives in the Empire...
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]
|
|
|
|
|
I have a following code for createing a thread. but it generate the error msg as:
error C2665: 'AfxBeginThread' : none of the 2 overloads could convert all the argument types
CWinThread* mpWinThread;
mpWinThread = AfxBeginThread(&CDataCapture::ThreadProc,NULL,0,0,NULL);
and ThreadProc function is as follow:
UINT ThreadProc(LPVOID pParam)
{
return 0;
}
I am not getting where is the actual problem.
Thanks,
Abhijit
|
|
|
|
|
Hello Abhijit,
As per your code snippet, ThreadProc is a global function and not the member of CDataCapture . Change the code snippet like this.
CWinThread* mpWinThread;
mpWinThread = AfxBeginThread(ThreadProc,NULL,0,0,NULL);
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
It seems that the ThreadProc function is a member function of a class. You can't do that unless the function is static.
|
|
|
|
|
Hi,
May i know how can i get all the key names and values for a section in an ini file....
|
|
|
|
|
Is this helpful GetPrivateProfileSectionNames ?
Regards,
Paresh.
|
|
|
|
|
pradeep455 wrote:
May i know how can i get all the key names and values for a section in an ini file....
I didn't think you could...
But I know the function to read from this is GetPrivateProfileString / Int, so while looking for that function in msn, I stumble across:
MSDN wrote:
The GetPrivateProfileSection function retrieves all the keys and values for the specified section of an initialization file.
Also, GetPrivateProfileSectionNames.
I hope that helps!
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
I've just noticed you posted the same question four hours before. You really should have more patience! People volunteer to answer these questions. Asking the same one again in a short time is not helpful to you...
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Sorry for posting again i did"nt got reply for my previous post so i have posted it again anyway ill not repeat this....
thanks...
|
|
|
|
|
It was only 4 hours! Give us a chance to sleep / eat / do the jobs that actually pay us...
Don't beat yourself up - you're not alone...
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
You do these works at 4 hours! it seems you are faster than a computer.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi
i am using a Text Control having caption as "SHOW" . i want to change to cursor when the user makes a mouse move over it . I am unable to do that .. Please provide the comments so that i can change the mouse from standard arrow to hand cursor.
|
|
|
|
|
You possibly need
SetClassLong(hTextWnd, GCL_HCURSOR, (LONG) LoadCursor(NULL,IDC_HAND)); see [^].
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]
modified on Tuesday, March 10, 2009 7:10 AM
|
|
|
|
|
Wouldn't that replace all STATIC's cursors, rather than just one particular one?
Cattivo Carlo, cattivo.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Iain Clarke wrote: Wouldn't that replace all STATIC's cursors, rather than just one particular one?
Yessir, that's done deliberately, of course, to maintain GUI consistency
Iain Clarke wrote: Cattivo Carlo, cattivo.
Carlo brutto e cattivo.
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]
|
|
|
|
|
If you're the Cattivo e Brutto, can I be the Bene[+]? We'll have our own spaghetti[*] western!
Signor Iain.
[+] No google help required for that one!
[*] insert chorus of groaning here.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Well I'll be 'il brutto e il cattivo' , you'll be 'il buono' (aka Iain-Clint) and the THHB 's action is completed, today.
BTW [^]
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]
|
|
|
|
|
Bene would have been fine if you hadn't gone and changed your mind about how to speak over the last 2000 years.
Sheesh, some people are so short term...
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
If you, crazy English people, didn't change your mind, we would share the same language, laws, etc...
--Carlo Augusto the Emperor.
BTW would still be 'bonus', not 'bene'.
BTW2 what county of England are you from?
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]
|
|
|
|
|
to you too!
As for BTW2...
Born: Kent.
Grew up: Middle east
Educated: Scotland / US.
Living: Herefordshire - but off to Sweden in a few weeks!
ps, Any Swedes want to give me a job!?
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Iain Clarke wrote: Living: Herefordshire - but off to Sweden in a few weeks!
ps, Any Swedes want to give me a job!?
WOW, are you going to live in Sweden?
Good luck & best wishes!
[edit] now we're awarded in the THHB's page [/edit].
[edit2] since I'm going to move in Herefordshire, could I apply for your current job (since you're leaving)?[/edit2]
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]
|
|
|
|
|
I'd reply to you more directly if I thought the [email] button worked...
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Can you email me on:
mm603008@spamcorptastic.com
It's a self destructing email address, so you'll need to be a little speedy!
If you'd rather stay private, I'll respect that too.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
yes its for a particular static text...
Now what i have done - i have done subclassing for a class
i which i have handle Mouse Move event
and i my project i have created an object of that class and used my static control in it.
|
|
|
|