715 Topics
![]() | |
Hi .. this is my first post here... i have been trying to solve this problem for two days ..but no luck.. here is my problemm... I am using win32.. I can able to get notified on new device insertion and removal using DBT_DEVTYP_DEVICEINTERFACE [CODE]if ( DBT_DEVICEARRIVAL == wParam || … | |
I have the following function (from windows.h) which I am trying to use the Python C API to allow python to call it. This is the function: [code syntax=C] BOOL ReadConsoleOutputCharacter( HANDLE hConsoleOutput, (Type Handle to Change (use STD_OUTPUT)) LPTSTR lpCharacter, (char pointer to store Characters read) DWORD nLength, (length … | |
I want to make a native win32 program that simply moves the cursor to x=100 y=200 on the screen, and then clicks the left mouse button once. Where do I start? For once, Google got me nowhere. I use VC++ 2010 to compile. | |
Hi; I am making one small application which can store data to my online mysql server. But with c++ win32 how can I do it? Please help me. | |
I am working on a RedRat code project for my job these days. The RedRat is a device that can be used to control 16 IR outputs, and my plan is to use this for testing of STBs with my own program. +++++++++++++++++++++++++++ For those interested >> [url]http://www.redrat.co.uk/software/SDK/index.html[/url] +++++++++++++++++++++++++++ I've … | |
Hello, Recently I've been doing some Windows API programming and I came across a problem. I want to make a console program that accepts commands, when the command 'win' shows up it will create a window with some automated features. Lets say I had a command sendfile [file-path] [where]. I'd … | |
Hi, several applications use as much as CPU as they can while starting up. This takes one and sometimes several minutes. I'm using WinXpPro SP3. I suspect it is the registry or a service that is not started but should or maybe a replaced driver/DLL. It happens with and without … | |
Hey, I'm trying to set up a hook with the Managed Windows API ([url]http://mwinapi.sourceforge.net/);[/url] however, whenever I do, everything crashes, and I get an error message (0x0000000) for every program, which states that the memory could not be read or written to. It forces me to restart my computer (which … | |
hi! I add code example. when I run that, I get exceptions: [CODE] /******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this … | |
Hello I am trying to compile my project in VC++ Express Edition and get the error below. The project did compile fine before I reinstalled XP windows. But now when I have installed everything again, I receive this error. I dont understand what this can mean ? When clicking the … | |
Okay, this just makes me feel stupid. I'm pretty good at programming for the console so I figured I would try a Win32 program. Apparently I'm stupid because I cannot even compile hello world. Heres the code I copy and pasted. [CODE] #include <windows.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, … | |
Hey everybody, I am currently having difficulty using GetOpenFileName() and GetSaveFileName(). The keeps returning the error " undefined reference to `_GetOpenFileNameA@4' ". I can't seem to find a fault in my code, so is it the compiler or is it the code? I am using CodeBlocks. [CODE]void DoFileOpen(HWND hwnd) { … | |
Hey guys, I've recently started learning WinAPI and I want to make a Tic Tac Toe game with it but I have a problem I have a main window ("field") and 9 child windows ("tiles") and I want to make the tiles clickable so that a click calls the Beep() … | |
Good day my every one outthere, first let me start by saying that i am a complete novice to c++ programming. i got myself into some trouble while debugging a win32 program in 2008 V.studio. i did post this thread some 24 hours ago but no good result so far. … | |
Hello everybody, I am currently developping a GUI interface game for windows XP. I am currently having difficulty changing the background of a EDIT box created with CreateWindowEx(). It's default background is white (which is the color I want). But the user is not supposed to be able to adjust … | |
Good day my masters first let me start by saying that i am a complete novice to c++ programming. i got myself into some trouble while debugging a win32 program in 2008 V.studio. with this code line(with similar lines anyway): ::MessageBox (wndhnd, "Error!", "Exception Occured", MB_ICONINFORMATION | MB_OK); Here's the … | |
Is it possible to use child window created in Win32 API as a container for another windows (controls - buttons, edit fields etc.)? Or is there any other way how to use container in Win32 API? The goal is to create a simple user interface for application? | |
Hey everyone, I've been working on learning the Win32 API for C++ so that I can start programming windows programs. I haven't run into any issues until last night when I tried to include a menu in my basic window through resources. I'm using Visual C++ Express 2010 which doesn't … | |
have just "finished" learning C. By finished, I mean I have learned all the basics in plain vanilla C (command prompt style). I want to get into windows developement so that i can create something useful. What should be my next step? Should i be learning a object oriented language … | |
Hi there, recently I wrote a small C program utilising the Windows API to communicate with a device over the serial port (COM1, a real serial port of my PC). This worked fine, but I am aware of the fact that those real COM ports are replaced more and more … | |
Can anyone help how to develop simple GUI in Win API. The window should looks like "Options windows" in Firefox (Tools->Options). I would like to create something when I click on the button above(like in FF) the content in below will change. I know how to implement it, but I … | |
Hi. I have a richedit control and when dropping text from another control I would like to change the format of that text. I wonder which messages I should trap or how to do this in plain Winapi. (I have already subclassed the pasting message) Thank you. | |
Ok, so I'm done with my "Code Break" and I'm back in "action". A couple months ago I completely dropped programming to pay attention to other things in my life. I was only on the forums a brief period of time anyway, so most people probably don't remember me at … | |
This script uploads the pics in the specified directory into the specified album in picasa. The script requires gdata libraries installed. Check [I]code.google.com[/I]. I had written and tested the code in linux platform. Hasn't been tested in windows. Any suggestions to add more functionality, or add a UI or any … | |
I need to detect that joystick is unplugged during runtime. Using C++ Borland builder 5 enterprise edition. used windows api. Referred to [COLOR="red"]http://plib.sourceforge.net/js/index.html[/COLOR] Right now joystick once detected, it remains as plugged even though in the midst of the application i unplug the joystick. Goal: Is to stop processing the … | |
Hi, I had a query whether Windows multithreading API throw any Synchronization exception. If I am sharing a STL string between threads and the string is not guarded,will there be any synchronization exception. Another query is does STL container throw exceptions apart from memory violation Thanks in advance :-) | |
I am trying to store a single random number from 0 to 99 to a variable. This is what I used in my code to do that: [code]time_t t; time(&t); srand((unsigned int)t); int rTSB(rand() % 100);[/code] I am trying to make a single random picture show up when you start … | |
I have a problem with this Window Procedure. in new versions of Windows OS, when I run the program, at first everything is painted & then paintings disappear (until the window receives the next paint message) [CODE] long _stdcall WndProc ( HWND hwnd, unsigned msg, unsigned wParam, long lParam ) … | |
[QUOTE=William Hemsworth;792993][B]mouse_event[/B] is used to emulate mouse events, not to detect them. If you want to be able to detect mouse clicks anywhere (even if your window doesn't have focus), you will have to use something like windows hooks. If your using the Windows API and just want to be … | |
Hello, I have a program where after you login, I need it to re-design the whole window. Is there a way I can change the WndProc to make the code cleaner. Thanks. I have a case for the login if successful, so it will be put in there. | |
Im teaching myself the Win32 API, so im messing around learning functions and what not. So how do I change the text on the button if it is clicked? I cant figure it out. Thanks [code] #include <windows.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); const int … | |
This is the project of my program: [url]http://www.4shared.com/file/259396798/53d2a9dc/MRKtack.html[/url] it works in Visual C++ 2008 Express! please download & test it on your compiler. it is an API graphical program. It works in my Windows XP properly! but when I install it on Windows Seven/Vista there is a problem with painting! … | |
Hi, I'm trying to capture an audio stream from Axis IP camera. The audio data encoded as g.711 should be captured from the camera. I'm using the following http request: [code] Stream roughStream = null; string URLaudio = "http://5.123.220.228/axis-cgi/audio/receive.cgi?httptype=singlepart"; request = (HttpWebRequest)HttpWebRequest.Create(URLaudio); request.Credentials = new NetworkCredential("admin", "password"); request.Method = "GET"; … | |
So far no one has been able to tell me why this code is not working, or what I need to do to THIS code to make it work. Can someone simply show using MY code below where the problem is, and why it's not working properly? Problem: I am … | |
This simple class encapsulates the exAnimatewindow api call. I got tired of adding all the jazz to every form I need to use as a pop up, or any borderless forms I used. (Windows 7 and vista don't animate windows with no border by default) This class could easily be … | |
Can you please give me sample code of a Win32 console application that will hook to Windows through the API and listen for mouse clicks (all mouse clicks in the OS; not just the clicks on the app's window)? I looked high and low for this, but couldn't find it … | |
Hey all, I'm looking for some code (c#) that sets up new a user automatically in WinServer 2008. Does someone know such code? Where can I find the proper WinServer2008 API for that task? or any good tutorial for programming in csharp using windows server 2008 api ? (I'm totally … | |
[code] #include <windows.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { WNDCLASS myWindow; myWindow.cbClsExtra = 0; myWindow.cbWndExtra = 0; myWindow.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); myWindow.hCursor = LoadCursor(NULL, IDC_ARROW); myWindow.hIcon = NULL; myWindow.hInstance = hInstance; myWindow.lpfnWndProc = WndProc; myWindow.lpszClassName = … | |
First time posting; thanks for the welcome! Have been having all kinds of problelms lately (am in safe mode now) ran several programs (some things found; root kit?) ran Malwarebytes, SpyS&D, OIL, DDs, please checkk my logs; I tried deleting some things in HJT and they did not delete. I … Information Security api audio client-server dns flash google-api http-protocol microsoft-access microsoft-office microsoft-windows multimedia open-source pdf peer-to-peer posting-games social-media storage streaming-service tablet user-interface web-browser web-server window-manager windows-api windows-virus windows-vista | |
Forget it, i just solved it, jeje, sorry. Thanks, and god bless you | |
Hello. I am quite keen with the win32 api but am tired of the standard windows visual styles (XP/Vista/7) and am wondering how to create my own. Have googled but not found any information, just point me in the right direction. Thank you very much. | |
This is one mean function! I've tried everything I can think of. I registered a type library with LoadTypeLibEx() which is a really easy function to use. I mistakingly thought UnregisterTypeLib() would be routine. Its most decidedly not! The error I keep getting with FormatMessage() is... Error accessing the OLE … | |
I am dealing with multiple monitors in which i required to use EnumDisplayDevices() API. However, the linker gives me following error log (i am using VC++ 6.0) : [CODE]Linking... SourceCode.obj : error LNK2001: unresolved external symbol __imp__EnumDisplayDevicesA@16 Debug/AllianceProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/CODE] I tried … | |
a requirement was sent to me below: API should be in the form of static library. company xxx will link the library into a third party application to prevent any possible exposure of the code(dll) could they mean an import library? An import library is a library that automates the … | |
Hi @ all, b4 things get serious. :icon_smile: Im using MFC with VCPP 6. I have a simple dialoge based app. Im using a triggered event with which I want to update the content of a CEdit box. The ASSERT of IsWindow fails because m_hWind = 0, I figure this … | |
Trying to raise an event in an ActiveX control from a module (.bas file). Been trying to create a timer control that will go past the 1 minute limit of the vb6 timer.ocx. The Windows API SetTimer will do this. But wanted to create an Active X timer control that … | |
What's Up? OK, So this has been driving me crazy over the last few weeks, All I need to do is edit a file so that it runs without showing any windows (I.E Runs in background) The window is created by means of Delphi, (So WS_EX_TOOLWINDOW Won't work) The only … | |
Hi, Im trying to figure out(again) the best(fastest) way to handle file management..Im using Win32 api, so I always try to use the api routines(instead of the c++ ones), dont know if this is better, but I just feel it is better in this way.. ( On "windows internals" book, … | |
My client plays short ad videos on his computer through windows media player. He needs a software which can keep a track of the ads, he played for each day. He wants complete logs for the adds played.For example: If an add is played twice a day, for ten minutes … | |
Hi ,, I am using [B]GetProcessMemoryInfo[/B] windows api to get current memory usage by process.. It takes [B]PPROCESS_MEMORY_COUNTERS[/B] pointer as argument. I got value values in [B]PPROCESS_MEMORY_COUNTERS[/B] structure member after calling this api.. but what is the actual memory consumed by my process........ Is it [B]Working set size[/B] or [B]Page … |
The End.