hi i have hooked into the keyboard events of an external screen.I have it so that when the user presses ctrl+a i capture the event and do some processing.However, i can potentially have more than one keyboard proc running at the same time (for example hooked into two instances of a window i hook int...
hi,<br/>can anybody tell, how can we display data according to terminal size using c++.Also is it possible to create scrollbars in terminal ?<br/>Renjith
457 byte By
Treva05 at 2007-11-20 10:49:57
Hi there, I'm self teaching C++ (I've had classes on Basic back in High School). I'm using Dev C++ And some books. I'm curious as to where to learn more about about windows applications, not dos programs. I don't really want to use Visual C++ to design my applications. A...
139 byte By
chals1 at 2007-11-20 10:51:20
Hello,<br/>I want to count how many pixels there are in a window.<br/>Is there another way apart from using GetPixel to access each pixel ?
443 byte By
steci at 2007-11-20 10:51:21
Hello all,could anyone can tell me where I can find the file "RAPI.LIB" to add it in my project borland builder C++ 6 ?I think that this file is in the windows mobile SDK package from microsoft, but it is necessary to install visual studio and service pack 2, and... So I have not visual studio and I...
482 byte By
Pravish at 2007-11-20 10:52:13
Hi, I am writing an application using Win32 api and using vc++ 6.0 under WinXp sp2.. I need to dynamically allocate a 9MB of space to store some .bmp image. I tried doing it with the 'new' operator but it seems to be failing since i m not getting the data. The space need to return me LPBYT...
3013 byte By
links at 2007-11-20 10:52:54
I'm busy writing some code to do a version check of Windows before my application runs.I've broken up the test into two seperate functions for compatibility reasons.The problem is that my app doesn't compile. I get the following error:"windows version.h(60) : error C2664: 'GetVer...
538 byte By
tacky at 2007-11-20 10:52:59
Hello, I have a little problem.I'm programming an on-screen keyboard. It is important that my form with my keyboard doesnt get focus if I press a button on it.The buttons are windows with BS_PUSHBUTTON style.I solved the problem for my main window. There for I set the return value of the messag...
372 byte By
mrb713 at 2007-11-20 10:53:22
Hi, i was reading about UPnP and its APIok, let's start!in MSDN specifies the requirements...DLL: Upnp.dll ...its okHeader: Upnp.h ...****!(no specifies any library)#include "Upnp.h"but it cant find the headercan somebody says why? not too much science, but im stacked at startits a library need...
1949 byte By
asalways at 2007-11-20 10:53:37
I'd like to load a bitmap as a background In WinMain, I do HWND hWnd=CreateWindow( __FILE__,"Lovely Dragon", (WS_OVERLAPPEDWINDOW ^ WS_THICKFRAME ^ WS_MAXIMIZEBOX) | WS_VISIBLE, CW_USEDEFAULT,CW_USEDEFAULT, rc.right-rc.left,rc.bottom-rc.top, NULL,NULL,hIns...
Dear Gurus,<br/> Greetings to you !!!<br/> Can any one guide me how to list out the Windows Event Log types (like ApplicationLog, SecurityLog, SysteLog and many) . Is there any API's available.<br/>Awaiting for your response..<br/>Suren.
Hi, I created a Window CE appliaction and I don't manage it to remove the title bar. I tried nearly all attributes of CreateWindow (~WS_Caption, WS_POPUP, ...) or SetWindowPos but it didn't work out. I cannot use the MFC neither I have the aygshell.lib (there something like SHFullScreen ex...
Hello, everyone.My research on how Win32 apps working is getting good. Soon I will be ready to begin my first "real" Win application. First I want to make a clone of Paint and spend all my free time on bitmap format.But first I'm want to know how I create a toolbox and you can move it around an...
Hi,I am having a weird problem with windows in a MDI-Application with BorderStyle bsToolWindow.I want those windows to stay inside the mainwindow of the MDI-Application. So I set the mainwindow as the Parent of the toolwindow.The constructor of the toolwindow looks like this (owner is the mainwindow...
699 byte By
jalway at 2007-11-20 10:55:45
I have Visual Studio.Net 2003, and created a Win32 based dialogbox application. I then used the resource editor to add controls. It worked fine, until I added a spin control. When that happened, the dialogbox returned a null handle, and did not display. If I remove the spin control, things...
391 byte By
sniped22 at 2007-11-20 10:55:56
I have a button that (when clicked) opens a GetOpenFileName() function with the appropriate fileopen struct.i have a variable (szFile) that holds the file name. I use the GetOpenFileName functions to return the bitmap's location. I want to create a bitmap area that will display the file who...
Everything seems to go fine when using memory mapped files, but problem is handle to map is completely empty.HANDLE hFile = CreateFile(infile, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);HANDLE hFileMap = CreateFileMapping(hFile, NULL, PAGE_READONLY, 0, filesize, NULL);PVOID...
Sup guys,<br/>Sorry for the confusing title :). How would you detect what the mouse is doing when your application has no focus in it? For example keyloggers are able to detect what window was given focus/clicked(this though is not my intension).<br/>Thanks.
1501 byte By
reenan at 2007-11-20 10:56:39
Hello,I am new to the world of windows programming. I am trying to figure out how the graphics system in windows actually work. From many articles, I read that the dlls have a particular code fragment for system call, as given below: mov eax, function_index lea edx,...
1788 byte By
gbrooks3 at 2007-11-20 10:57:26
Hi, Im looking to Drag a file onto an edit box on a dialog and then display the file path in that edit box.Here is my code :) // --- edit control section --- SetFocus(GetDlgItem(g_xsMainWindow->hDlg2, IDC_EDIT1)); DragAcceptFiles(GetDlgItem(g_xsMainWindow->hDlg2, IDC_EDIT1),true); //...
425 byte By
mase at 2007-11-20 10:57:43
First of all, I'm sorry to post this topic here because after I checked the Testing Forum section, but hardly any new respond so I'm posting the question here hopping will get respond quicker.I'm just looking for information about CXXtest for the C++ API, does anyone knows where I ca...
870 byte By
yuban at 2007-11-20 10:58:01
I am trying to present a simple square window above the "notification area" ( eg. above the clock at lower right of screen ). I want to do this to tell the user "Updates are available", etc. I have been able to ascertain that the correct term for this is "notification tile", which of course no one i...
Is there a way of manipulating the screen saver from C++ code using some API?If there is no other option, I can always modify the relevant registry entries directly, but I'm wondering if there is a "neater" solution available? (Much like you can set the desktop wallpaper using SystemParametersI...
2860 byte By
ne0_ at 2007-11-20 10:58:11
hi all,i am making a program in which i need to update the text in window...i am trying to do it by using WM_PAINT and calling function TextOut(..)... i am calling function SendMessage(hwnd, WM_PAINT,0,0) from some other location and this is working fine and window is getting message.. but i have a...
84 byte By
aneird at 2007-11-20 10:58:27
sub dialog has a "WM_KEYDOWN" event , whether the "WM_KEYDOWN" via to parent dialog,
925 byte By
simotix at 2007-11-20 10:59:06
I am having a problem with getting a windows hook to work with a multithreaded application. When I set the hook I tried doing GetProcessModule() but I can't do that for multithreading. So I tried making a function to pass the hInst that is in use when the Window is created (Line 177 of PingPon...
Guru's I have a list ctrl created through the Win32 API architecture. I am able to highlight a row in my list control by left clicking the row - as you would expect.However, does anyone know how I can have the same behaviour by doing right click on the row? So basically I like to right clic...
238 byte By
Rooting at 2007-11-20 10:59:29
hello friends<br/>i programm in c++, and i would to start whith WinAPI,<br/>i listened about QT and Gtk+ or gpl...<br/>in whoth method you suggest to start??..<br/>and a tutorial basic??..<br/>whot compiler do you suggest??..<br/>thanks!!
242 byte By
sniped22 at 2007-11-20 10:59:36
I want to generate (2) random numbers at the same time. This requires me to use a random function that isnt seeded by time. Can someone show me (and possibly implement in some sample code) how to use a good PRNG like openSSL.<br/>Thanks!
186 byte By
kprakash at 2007-11-20 11:00:17
Dear all,<br/>Is there a way to execute a vbscript available in a remote machine using Win API or any other means (ie not using WMI)?<br/>Thanks in advance.<br/>Prakash.K
Hi.<br/>I used the NOTIFYICONDATA struct ant Shell_NotifyIcon() to place an icon on the task bar. Now the question is how do I make a balloon popup to appear with a custom message?<br/>Thanks in advance.
Sup guys,Recently I found some tutorials on how to draw/paint using eighther WM_PAINT/Mouse Messages. In the following code for some reason when I try to draw on the desktop it simply makes a small line at the top left corner and when I click again it doesn't do anything when it should continue...
124 byte By
sockman at 2007-11-20 11:01:45
Hey there,<br/>I need to test if a file is currently opened by another process. How can I test this?<br/>Thanks all,<br/>Ben
Some times the bitblt and transparentblt function fails after performing them rapidly. the passed pointers seems to be ok. <br/>the GetLastError() returns sometimes 0 and sometimes 87.<br/>what might be the problem ?<br/>Thanks.
82 byte By
mase at 2007-11-20 11:03:06
base on the question above, does anyone have any suggestion for me to get started?
178 byte By
mase at 2007-11-20 11:04:36
I'm just wondering if the function Call Shell() in VB is the same as ShellExecute() in C++? but if not, does anyone know the C++ function that can be used as Call Shell() ?
1082 byte By
links at 2007-11-20 11:05:25
I have a .PNG file that I am using as background in my window by handling the WM_PAINT message.I've included the .PNG with the .EXE and everything works fine.I want to add the .PNG to my resource file and when the program executes it should write the .PNG to file and then use it as background.I...
Sup guys,I'm trying to understand how I can still have the mouse under my control even when it is not in my window. At the same time I'm also trying to figure out how to get the handle of a window the mouse is at.I have no idea to do the second objective while I have the begining code for...
I am trying to call a web service on Pocket PC (ARM processor) using HTTPSendRequest. But when doing InternetReadFile it is giving me incomplete string like thisxmlns:soap= http://schemas.xmlsoap.org/soap/envelop/xmlns:xsi = http://www.w2.org/2001/XMLSchema-instancexmlns:xsd=httpOn win32 my code wor...
Hello AllI have suddenly started getting "Damage: After normal block" error when my application terminates. See code below./************ Structures ****************/typedef struct varNode{ CString name; CString OID; ACCESS accessType; CString data; DATATYPE dataType;}VARNODE, *VARNODEPTR;/**********...
3940 byte By
Zaccheus at 2007-11-20 11:06:57
I would like to distribute my application for free under the MIT Licence ( http://www.opensource.org/licenses/mit-license.php)I would also ideally like to include the latest version of dbghelp.dll so that I get a complete stacktrace if the application ever crashes. However, the EULA for "Debugging To...
Sup guys,Nice title right :p? Ok now with buisness. Simply I need to know how to make Windows tell me what the mouse is doing even when it is not in my window. All I know is that I need to use SetWindwsHookEx as it supersedes SetWindowHook. I have searched Google but can't find a example.Thanks...
775 byte By
^NyAw^ at 2007-11-20 11:07:51
Hi,I'm tryingo to develop an application that have to be executed into a server without user logon, so I decided to create a windows service (using .NET framework) that calls my application(MFC). It fails because there is no window to open.My question is, could I rewrite my application to a con...
2028 byte By
zsbMich at 2007-11-20 11:08:22
Hey all.I am attempting to emulate mouse/keyboard/joystick messages which are generated based on data polled from a Wii remote/nunchuck.The nunchuck will control typical arrow or WASD movement, where as the Wiiremote will act as the mouse pointer and mouse buttons.The code related to the Wii device...
HiI want to monitor the "maximum memory usage" ("peak working set" in "process explorer") of a process, because I think it leaks quite a bit. But I cant find a method which returns this value, maybe you can help me.This is what I found so far, but the size I get isn't the same as the task manag...
1007 byte By
tcchiu at 2007-11-20 11:09:51
Hello, everyone.How to find the 16-bit counterpart "module database" of a 32-bit process on Windows 98?According to Matt Pietrek in Windows 95 System Programming Secrets, Win16 keeps a copy of executable's header in a segment known as a module database. The selector of this segment is called an...
706 byte By
tcchiu at 2007-11-20 11:09:52
Hello, everyone:I'm writing an executable packer. I encounter a problem if I compress the resource section (.rsrc) for the executables targeted on Windows 98. No problem on Windows XP.After the investigation with SoftICE, I've found the reason.On Windows 98, resource handling is "thunked"...
I want a program to move around and fill in fields on a web pagedisplayed by a browser, for example Firefox.The main program uses CreateProcess to start the Firefox browser.Firefox pops up and fills the whole screen and has input focus (is ready accept key and mouse input).MY idea is then to use Sen...
Dear Gurus, Greetings... i have a number to add in my math at 1st Std, the number is 123012301230123+ 123012301230123------- 2460246024602460 now i have to add this simple number using the computer. Can you tell me how do i accomplonish this... PROBLEM : The thing is i have to read the size o...
248 byte By
chals1 at 2007-11-20 11:11:11
Hi<br/>I have two transparent windows with WS_EX_LAYERED and 40% alpha.<br/>I'd like to see what is painted on one of the forms through the other on top, but this second form only displays what's below the first one.<br/>Some help please?