|
Thanks Hamid,
I finally found the root cause is, the application is built for mixed platforms and the DLL is built for x64. When I change them both to x64, it is fine.
regards,
George
|
|
|
|
|
Thanks for your answer.
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 )
|
|
|
|
|
Glad to share experience.
regards,
George
|
|
|
|
|
i am writing some code in c like
while(1)
{
printf("Hello");
}
how can i display in the same in an edit box using vc++
thanks
|
|
|
|
|
l_d wrote: how can i display in the same in an edit box using vc++
Use SetWindowText() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
But i want to diplay in while(1) i.e
infinite loop which i am not able to do.
|
|
|
|
|
/*
Assumes a Visual C++ 6.0 wizard generated dialog based application
with a multiline edit control.
*/
// .h file
CEdit m_editControl;
UINT m_Timer;
// .cpp file
BOOL CTest263Dlg::OnInitDialog()
{
CDialog::OnInitDialog();
// ****************************
// Other wizard generated code
// ****************************
// TODO: Add extra initialization here
m_Timer=(UINT)SetTimer(1,100,NULL);
return TRUE;
}
void CTest263Dlg::AddMessage(CString sMessage)
{
sMessage+="\r\n"; // Add carriage return linefeed pair
// Assuming a dialog based app with a multiline edit control
m_editControl.SetSel(0,-1);
m_editControl.SetSel(-1,-1); // Set caret to end of existing text
m_editControl.ReplaceSel(sMessage); // Append new message
}
void CTest263Dlg::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
if (nIDEvent==m_Timer) {
AddMessage("I can't frackin' believe that she was the 12th Cylon");
}
CDialog::OnTimer(nIDEvent);
}
|
|
|
|
|
bob16972 wrote: AddMessage("I can't frackin' believe that she was the 12th Cylon");
This signature was proudly tested on animals.
|
|
|
|
|
|
l_d wrote: ...which i am not able to do.
Why not?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
If I wanted to have a window that was a custom shape, e.g. a circle, how could I make the regions of the window that I do not want to see transparent?
|-------------|
|---/ \---|
|--| |--|
|--| |--|
|---\ /---|
|-------------|
Lame diagram, but I would like to make the areas composed of dashes transparent so that only the circular area of the window remains visible.
Thanks
|
|
|
|
|
|
An alternative to using window regions is to use layered windows[^].
p.s: You get 10 bonus points for the ASCII art.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
Probably you replied to the wrong post.
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]
|
|
|
|
|
Oups, sorry about that.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
Thanks guys, I'll have a look!
|
|
|
|
|
Using CStdioile::WriteString, the Unicode string (having Chinese characters) is not writing into a file.. any suggestions?
|
|
|
|
|
kiranin wrote: any suggestions?
What is it doing?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
iT IS NOT WRITING ANYTHING ....I HAVE STRING WHICH IS HAVING ENGLISH + CHINESE - WRITING ENGLISH STRING ONLY WHEN CHINESE STARTS ITS WRITES NOTHING
|
|
|
|
|
THERE IS NO NEED TO SHOUT AT HIM.
You said "failing".
But imagine you go to the doctor, and say "I am ill", and then say nothing else. Do you expect him to give you a cure for cancer?
Or when he says "Oh dear, that must be bad. What are your symptoms", you reply "I AM ILL"?
IN WHAT WAY is it failing?
Have you tried stepping into the CStdioFile::WriteFile yourself, and tracking your string to see where it goes wrong?
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
This is what I used in a project few days ago:
std::basic_string<TCHAR> sFileContent = _T("");
if (sizeof(TCHAR) > 1) // if wide char
sFileContent += 0xFEFF; // this header tells notepad to read file as Unicode
sFileContent += _T("My favorite Dave Attell quote: ");
sFileContent += _T("Yeah, I know, some people are against drunk driving, ");
sFileContent += _T("and I call those people 'the cops'. But you know, ");
sFileContent += _T("sometimes, you've just got no choice; those kids gotta get to school!");
// save to file routine
|
|
|
|
|
From MS page
Byte order mark Description
EF BB BF UTF-8
FF FE UTF-16, little endian
FE FF UTF-16, big endian
FF FE 00 00 UTF-32, little endian
00 00 FE FF UTF-32, big-endian
Note: Microsoft uses UTF-16, little endian byte order.
|
|
|
|
|
having the same problem here, someone to help ?
|
|
|
|
|
Need help on Wizard Model..
Like3 dialogs flowing from one to other (First Dialog (Changed data , some controls dynamically created) -> Second Dialog (Changed data , some controls dynamically created) -> Third Dialog)
And when i want to come back from Second dialog to first the changed data and dynamic controls should exist on first dialog ..
What is the best method to do so?
|
|
|
|
|
please, show me how to solve this problem .
I need to create 2 process as follow :
process 1: this process allows us to enter an expression .
process 2: this proces calculates the above expression and return result for 'process 1 '.
Use 'Message queue ' to interact between 2 above process.
chet la het
|
|
|
|