|
Hello,
I am trying to solve this problem many time ago, but yet no solution: how can i show a window (dialog from CDialog) with the topmost style (showing for the user) but without the focus?
Thanks,
Cris.
|
|
|
|
|
|
|
Hi guys,
I have a MPEG-2 transport stream with 2 pids (1 video, 1 audio) and I am looking for a way to convert it to a MPEG-2 program stream. I've been searching the internet for some time but most things I found were broken links. Does anyone know a good source for information?
Thanks for adivce,
Alex
Don't try it, just do it!
|
|
|
|
|
Hi,
I need to use a CString object in my dll,so i've included <afx.h> file.
the problem is that i get this error:
Compiling...
TCPlib.cpp
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
Error executing cl.exe.
when i don't include <afx.h> i don't get this error,but i can't use CString.
what should i do?
Regards,
Eli
|
|
|
|
|
1. Ensure thatm you're not including windows.h anywhere in you're dll
2. ensure you have a precompiled header - e.g. stdafx.h
3. add #include <afxwin.h> to stdafx.h
4. make sure you're project settings are set to include MFC
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^]
|
|
|
|
|
When you include a MFC header file you must not include windows.h.
MFC does include it!!
Furthermore you should better not use parts of MFC in an non-MFC application.
Don't try it, just do it!
|
|
|
|
|
Thanks for you prompt reply.
I need to make a regular dll with objects of MFC(i.e CString).
Which DLL workspace should i choose in the MSDEV?
regards,
Eli
|
|
|
|
|
If the program that will load the DLL might NOT be MFC, then choose MFC AppWizard (dll) as the project type. Then in Step 1 of the wizard, make sure you choose "Regular DLL with MFC statically linked". This will allow your DLL to use MFC but the parent application does not have to be an MFC program. Don't pass MFC objects between your DLL and your program, or you might experience memory issues and the created MFC objects are not necessarily from the same memory pools.
|
|
|
|
|
I have the same problem. But I can't solve it with these hints.
I've a COM-Client and Server. Both non-MFC. I can't find anywhere the windows.h.
|
|
|
|
|
If the problem is the 'windows.h' appearing in your files, is it possible both of you can try the include file dependency checker tool from CodeProject to see if that will help you locate it?
http://www.codeproject.com/useritems/includefinder.asp
|
|
|
|
|
Hello
I would like to add multiline text in the MFCGrid ... Is it possible to do such things without changing anything to the original code ?
Thanks for your help
Thierry
|
|
|
|
|
It already supports the display of multiline cells. You just have to clear the DT_SINGLELINE format.
pCell->SetFormat((pCell->GetFormat() & ~DT_SINGLELINE) | DT_WORDBREAK) Tooltips and in place editing need work though.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
In my project I have, say, three string tables for
language packs - English, French and German.
After building all string tables(having same ID)
into the .exe file, how can I control which
string table the program should use during the runtime?
That is to say, if I want the outcome to be of English
interface, is there any way of coding to manipulate
the choice of the string table used?
Great thanks in advance for your reply
|
|
|
|
|
How can I change the tooltip of the restore button on the titlebar to display
"Full screen" instead of "Restore Down"?
|
|
|
|
|
Have a look at WM_NCHITTEST and WM_NCMOUSEMOVE. Maybe you can handle then in your own functions and create a tooltip yourself.
Don't try it, just do it!
|
|
|
|
|
hi,,
Anyone familiar with the AESalgorithm
There is an implementation of the AES algorithm in the below link. If u download it..
http://www.thecodeproject.com/cpp/aes.asp
in Table.h
(1.) Why have they used s boxes in ‘int’s? why not
const int CRijndael::SBox[256] rather than ---const char CRijndael::SBox[256] and replace the negative values with positive?
(2.) What does
const int CRijndael::sm_T1[256] …. const int CRijndael::sm_T8[256] tables correspond to?
(3.) and const int CRijndael::sm_U1[256]…const int CRijndael::sm_U4[256] tables correspond to
(4.) also const int CRijndael::sm_shifts[3][4][2] tables correspond to?
tnx
|
|
|
|
|
Why not pose these same questions to the article itself? That way the author has a chance to respond.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
This is the third time you are asking that question!
Isn't it enough?
Don't try it, just do it!
|
|
|
|
|
well.the 2nd time actually.
Do u know the ans by any chance??;P
Vendy
|
|
|
|
|
hi dave..
i did post it.. nobody answers!!!
Vendy
|
|
|
|
|
Could anybody throw light on design time painting of an ATL composite control.
Regards,
D.Ramesh
Deekonda Ramesh
|
|
|
|
|
Dear Sir,
I have write a simple winsocket program on XP Pro SP2 with Visual studio net. 2003. All is fine.
But when running the program on other machine like XP Pro SP1 or Win2000 Pro SP4 or on XP Home edition, my program does not run due to ntdll.dll (function RtlIpv6StringToAddressExW does not exist in preview version of ntdll.dll)
And with the app dependency walker and can see the difference between those ntdll.dll.
I do not need to update my other system to XP Pro SP2; What can I else do.
Thank you in advanced.
Pierre Kande
|
|
|
|
|
It sounds like you are calling an API that was added in SP2. Your only choice is to not call it on pre-SP2 systems, and find/write some equivalent code to use on those systems.
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Thank you for your reply,
But I have resolved the problem. I have link my app to the all DLL of windows and not to the DLL install on my OS. and running the program in other system, all is fine.
This mistake is from MS, because it cause program build on XP Pro SP2 can run in older version if you link only with the old version dll.
have it in mind.
|
|
|
|