Thanks
Alex Cutovoi
Posts
-
Reading a bluetooth -
Reading a bluetoothHi for all I've bought a simple bluetooth external device(like Asus WL-BTD201 Bluetooth dongle). I want to create a single program to read it but I haven't any idea what I need to do. Is there a free library that I can use? I've read something like bluetooth have a stack(???). Things like WIDCOMM stack. Honestly I have any idea how can I do this. Someone can help. Thanks for support.
-
Video CaptureTHHHHHAAAAAAANNNNNKKKKKSSSSSS..... Very helpful
-
Video CaptureVery thanks again. In the last days, I was searching a site that seems to sourceforge and now I found. Very helpful. BTW, is there other sites like these
-
Video CaptureSounds interesting for me. Thanks Rajesh...
-
Video CaptureThanks for your answer ramid. I'll look. What I want is to create an implementation more generic, that works on Windows and Linux. Again, thanks
-
Video CaptureI know this, but this implementation is for windows. What I want to do is to create an implementation that works in linux too.... A generic thing, ok?
-
Video CaptureMy real intention is to select an area of the desktop(or other window) and record until I want to stop. After this I'll save in any format. Something like Camstudio but much more simple.
-
Video CaptureHi for all Does anyone knows a free API for video screen capture?
-
For everyone who wants to answerI'm a C++ programmer about 2 years. My question is not about to solve a specific trouble. I'm being scared with the crescent growing of languages like C# and Java. What I would like to know of anyone is the following: These languages will definitely substitute C++? In any kind of market. I've readed some news that game industry are thiking to adopt a unique hardware(something like a setupbox) and develop games to it. The programming language I think, will occur the same. If this hardware have an virtual machine inside it, java and C# are natural choices to develop games. so, what do you think about that?
-
MDI app doesn't closeThanks for your post man. I'll look the code.
-
MDI app doesn't closeman, I would be very happy if you point me out some errors about the messages that are not handled correctly. I'm a little bit new in MDI with Win32. The strange is in my machine, this code works fine. But in other 2 machines not.
-
MDI app doesn't closeSure, I post now. The first code is for the message loop:
WPARAM TemplateWindow::MessageLoop() { while(!m_bQuit) { if(PeekMessage(&msg, m_hwnd, NULL, NULL, PM_REMOVE)) { if(msg.message == WM_QUIT) { if(m_uiType == MDI)DestroyWindow(m_hwndFrame); m_bQuit = true; //UnregisterClass(wnd.lpszClassName, m_hInstance); break; } else { if(m_uiType == MDI) { if(!TranslateMDISysAccel(m_hwndFrame, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } if(m_uiType == SDI) { TranslateMessage(&msg); DispatchMessage(&msg); } } } else if(m_uiChildCount > 0) { SendMessage(childsInfo[0].hwnd, WM_PAINT, NULL, NULL); } SwapBuffers(m_hdc); } return msg.wParam; }
And the following codes is the callback for my windows. Look at the codes. Again, thanks for your help.#ifndef CALLBACKS_H #define CALLBACKS_H #include #include #include #include WindowInfo windowInfos; //this is a struct that have the hwnd, hdc and the hglrc of child //windows GLUquadricObj * Cilinder; unsigned int uiList = 0; int iValueSelected = -1; HINSTANCE hRichEdit; //HINSTANCE used to load theRichEdit's dll control HWND g_hwndClient, FrameHwnd, RenderHwnd, InstructHwnd, DialogHwnd; LRESULT CALLBACK MainWindowCallback(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK InstructorWindowCallback(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK RenderWindowCallback(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK DialogWindowCallback(HWND, UINT, WPARAM, LPARAM); static bool bShow = false, bTrue = false; /*Instructor callback. Just a single callback defined to a richedit*/ LRESULT CALLBACK InstructorWindowCallback(HWND hwnd, UINT uiMessage, WPARAM wParam, LPARAM lParam) { HWND textBox = NULL, editBox = NULL; HFONT textFont = 0; switch(uiMessage) { case WM_CREATE: { RECT richEditSize; hRichEdit = LoadLibrary("RichEd20.dll"); InstructHwnd = hwnd; GetClientRect(hwnd, &richEditSize); HINSTANCE hInst = ((LPCREATESTRUCT)lParam)->hInstance; if(hRichEdit != NULL) { editBox = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("RICHEDIT20A"), "", WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_HSCROLL|
-
MDI app doesn't closeEither the WM_CLOSE and the WM_NCDESTROY stops on the place that I show to you. The code below is the code when it's debugged.
7E41DACF push 0 7E41DAD1 push 0Ch 7E41DAD3 pop edx 7E41DAD4 lea ecx,[ebp-0Ch] 7E41DAD7 mov dword ptr [ebp-0Ch],edi 7E41DADA call 7E4194A4 <==that is the place where it stops
This thing is confusing my brain. -
MDI app doesn't closeWell Mike, I made the changes that you said to me, nut unhapilly it doesn't work. Any other suggestion? Thanks for the support man.
-
MDI app doesn't closeRight, can you say what messages I need to handle to increase the code?
-
MDI app doesn't closeMark, the window is destroyed, but when I look in the task manager the process continues in there. Do I need to close the mdi childs first? One of them is create with the RichEdit style. Is there a relation between the loaded dll("RichEd20.dll") and this fact? I putting the PeekMessage because in the RenderHwnd(an HWND that modified to receive OpenGL), I have some images that should be show in this window. I'm sending the WM_PAINT because if I don't do this, the RenderHwnd remains static, the WM_PAINT message is just processed if I move the window. Because this fact occurs, I send the WM_PAINT.
-
MDI app doesn't closeHi for all I'm developing a single MDI app. I have the following matter: When I click the close button on the parent window, teorically it will send a WM_CLOSE and process the PostQuitMessage(0). But this is not occuring. What I really want to know is how can I close and MDI app carrectly. Look at the code below. This is the code of a class that I've create to create windows:
/*Loop da janela*/ WPARAM TemplateWindow::MessageLoop() { while(!m_bQuit) { if(PeekMessage(&msg, m_hwnd, NULL, NULL, PM_REMOVE)) { if(msg.message == WM_QUIT) { if(m_uiType == MDI)DestroyWindow(m_hwndFrame); m_bQuit = true; //UnregisterClass(wnd.lpszClassName, m_hInstance); break; } else { if(m_uiType == MDI) { if(!TranslateMDISysAccel(m_hwndFrame, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } if(m_uiType == SDI) { TranslateMessage(&msg); DispatchMessage(&msg); } } } else if(m_uiChildCount > 0) { SendMessage(childsInfo[0].hwnd, WM_PAINT, NULL, NULL); } SwapBuffers(m_hdc); } return msg.wParam; }
This is my code in the callback of the main window:LRESULT CALLBACK MainWindowCallback(HWND hwnd, UINT uiMessage, WPARAM wParam, LPARAM lParam) { HMENU hMainMenu; hMainMenu = CreateMenu(); static int siRuler = IDM_NEWRULER, siText = IDM_NEWTEXT, siNodule = IDM_NEWNODULE, siPath = IDM_NEWRULERPATH; switch(uiMessage) { case WM_CREATE: { ... break; } case WM_CLOSE: { delete TextMenu; delete RulerMenu; delete PathMenu; delete NoduleMenu; delete ProceedingMenu; delete ScreenShotMenu; PostQuitMessage(0); break; } ... default: return DefFrameProc(hwnd, g_hwndClient, uiMessage, wParam, lParam); } }
The WM_CLOSE message is processed, BUT the PostQuitMessage(0) not. It process some part of this function. I'm debugging the app and when it enters in this part: 7E419483 call 7E418860 The app doesn't process, it doesn't freeze, just doesn't continue to process other register. Anyone can help. -
boost questionShure. I'm having problems with building of the Boost.thread I don't understand what's going on. In the docs, the following is written:
Building should be possible with the default configuration. If you are running into problems, it might be wise to adjust your local settings of Boost.Build though. Typically you will need to get your user-config.jam file to reflect your environment, i.e. used toolsets. Please refer to the Boost.Build documentation to learn how to do this. To create the libraries you need to open a command shell and change to the boost_root directory. From there you give the command bjam --toolset=mytoolset stage --with-thread Replace mytoolset with the name of your toolset, e.g. msvc-7.1 . This will compile and put the libraries into the stage directory which is just below the boost_root directory. Boost.Build by default will generate static and dynamic variants for debug and release.
When I execute these steps the bjam say that the stage directory is not found and it will be created. But in the end of the process the folder is not created neither the libs. Can you help? Thanks again -
Thread syncronization Win32You're right, but unhapilly I solved my problem. Thanks