|
ganesh.dp wrote: bit more problem now, there is no compilation error but no transparent or color change is happened..
Have you set WS_EX_LAYERED style? This style is necessary for the SetLayeredWindowAttributes() function to work.
|
|
|
|
|
i got it...
thanx a lot...
|
|
|
|
|
Can any one help me where i can get c++ source code for Casino War game. It should be with the below logic
1)Game Engine
2)Client
3)Server Object
IF it wont be avilable over net..can any one help me to understand how to do a casino war game with C++, which should have a)game engine b) client and c)server object.
if nothing is avilable ..pl let me know where i can get these information.
Thanks,
Nandu
|
|
|
|
|
When I Compile my project I got this Warning
"warning C4819: The file contains a character that cannot be represented in the current code page (874). Save the file in Unicode format to prevent data loss"
I want to solve this problem, Please advise
How can I save the file in Unicode format
|
|
|
|
|
Does this page[^] help? It's talking about how to save files with different encodings in VS2005, using the File Save dialog.
|
|
|
|
|
VS editor now supports Unicode characters as well (for strings to be used in the code). If you don't know what Unicode is, I suggest you to please read up on that.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi all,
I have a list control in which there can be very large number of items and there can be very few items also.....
Property of my list is that it is almost sorted.....
So, i wanted to know that which sorting alogorithm will best suit this situation.....
Thanks in advance
|
|
|
|
|
hi,
u Want to sort list on what basis? Is it a image list??
Samir
|
|
|
|
|
no it just contain integers...
|
|
|
|
|
VCProgrammer wrote: So, i wanted to know that which sorting alogorithm will best suit this situation
The one you don't have to write yourself - the sort algorithm[^] in the C++ standard library is pretty much good enough for most cases.
BTW - can you quantify your "very large number of items"? My very old and slow iBook will sort a million (random) integers in 200 milliseconds using std::sort - that's reasonably quick...
|
|
|
|
|
Hi!
I want to custom-draw menubar in MFC dialog based application.I need the sample code.
Pls help me..............
Thanks & Regards,
Anitha
<div class="ForumMod">modified on Saturday, January 24, 2009 12:51 AM</div>
|
|
|
|
|
Check if this link help u
http://edndoc.esri.com/arcobjects/9.0/Samples/Application_Framework/Custom_MultiItem_and_Menu/CustomMultiItemAndMenu.htm
|
|
|
|
|
|
I need in Dialog based application not in SDI.
|
|
|
|
|
Why not rejig your dialog based app into a non-document SDI app which uses a form view? That gives you the control layout capabilities of a dialog, together with the menu, toolbar and command routing capabilities of SDI.
This page[^] gives good advice, including tips for converting a dialog based app to SDI.
|
|
|
|
|
Hi,
I have created modeless dialogs in MFC using CreateDialog() and dialog is successfully shown.
void ParentDialog::OnButton1()
{
HWND retcode = CreateDialogParam(NULL,
MAKEINTRESOURCE(IDD_DIALOG2),
NULL,
MainWndProc);
}
In message handler, added the following
int APIENTRY MainWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
case WM_INITDIALOG:
ShowWindow(hwnd, SW_SHOW);
UpdateWindow(hwnd);
return TRUE;
break;
case WM_COMMAND:
if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
{
DestroyWindow(hwnd);
return TRUE;
}
break;
}
return FALSE;
}
After dialogs are displayed, when I am pressing hot keys or escape from the child dialogs, it is not working.
Please help me.
Thanks in advance.
Vinoth
|
|
|
|
|
Hi. ive created a simple BHO(browser helper object) with ATL.
im handling the ondocumentcomplete event and i want to capture the mouse position in the document , i know that there is a really good javascript functions that do that, but the question is can i use in some way javascript code in my ATL project?
|
|
|
|
|
The GetCursorPos API can do that for you.
«_Superman_»
|
|
|
|
|
getting the mouse position is only part of what i want to do, so i need to know can i use javascript or must i use c++ code to achive javascript functionality.
|
|
|
|
|
Microsoft does have a script engine that you can use to run VBScript and JScript from C++, but that is an overkill.
I'm sure all that javascript does can be done in C/C++.
And that would be the way to go on Performance, Size etc.
«_Superman_»
|
|
|
|
|
I have a CLR Application where I am trying to write a .NET wrapper over calls made to native C++ Library. I am using VS 2008 but libraries are compiled in VS2003 or 2005. I am getting some linker errors on linking. Strangely, every error is 1 of these 3 unresolved external symbol ones -
1. std::locale::facet::_Register
2. std::ctype&::_Getcat
3. std::strstream::strstream
Details of the errors -
error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall std::strstream::~strstream(void)" (__imp_??1strstream@std@@UAE@XZ)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<unsigned short>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@G@std@@SAIPAPBVfacet@locale@2@@Z)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<unsigned short>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@G@std@@SAIPAPBVfacet@locale@2@@Z)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::strstream::strstream(char *,int,int)" (__imp_??0strstream@std@@QAE@PADHH@Z)
Thanks a lot for the help.
Amit
|
|
|
|
|
AFAIK, mixing different runtime models will work some time, but not supported. I am not sure though.
|
|
|
|
|
Member 5703905 wrote: I am using VS 2008 but libraries are compiled in VS2003 or 2005
Make sure you know which one it is, (VS2003 or 2005), 'cause you're going to have to link to its C++ runtime library (MSVCP71 - VS2003 - or MSVCP80 - VS2005). Even then, it might not work, because of mismatches in the C run-time library versions.
|
|
|
|
|
Hi,
I would like to write an application which would let me use remote control from my TV card to turn on some apps like music player. The receiver of signals from my rc is connected to TV card. There is also an application which receives the messages when I press some button on remote control. The problem is that, I can't catch all messages using the WH_GETMESSAGE hook and WM_USER parameter for MSG structure. I mean, when I press buttons which are responsible for turning on TV and radio, my application receives a message, but if I press another button like "1" or "Mute", nothing happens. I also have tried using WM_COMMAND and it works, but only if the TV is turned on. And here is my question: Is this possible to catch somehow messages connected with another buttons when my TV is turned off?
Thanks in advance and sorry for my english.
modified on Friday, January 23, 2009 2:43 PM
|
|
|
|
|
First of all, tell me if i am right or wrong: You made a program which hooks into the other application -probably one you got with your TV card- to catch messages (and perform your bidding) it sends itself when the remote control is invoked. If so, you could try using Spy++ to see what messages are being sent when certain buttons are pressed for starters. But it can also be that that certain program will only respond to certain remote-keyhits when an application it knows about is running and responds to these, that's why your commands work only when you TV program is running. What is that proggie you are hooking into?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|