715 Topics

Member Avatar for
Member Avatar for newbgal

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 || …

Member Avatar for wisaacs
0
164
Member Avatar for hondros

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 …

Member Avatar for hondros
0
350
Member Avatar for morelve

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.

Member Avatar for Adak
0
3K
Member Avatar for svr2009wwe

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.

Member Avatar for tesuji
0
261
Member Avatar for memstick

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 …

Member Avatar for memstick
0
118
Member Avatar for u8sand

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 …

Member Avatar for nbaztec
0
194
Member Avatar for dnBunnie

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 …

Member Avatar for gerbil
0
233
Member Avatar for bbman

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 …

Member Avatar for bbman
0
405
Member Avatar for neti1987

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 …

Member Avatar for neti1987
0
285
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
285
Member Avatar for wade2462

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, …

Member Avatar for wade2462
0
342
Member Avatar for Graphix

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) { …

Member Avatar for Graphix
0
2K
Member Avatar for vadalaz

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() …

Member Avatar for thelamb
0
286
Member Avatar for Osas106

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. …

Member Avatar for Ketsuekiame
0
130
Member Avatar for Graphix

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 …

Member Avatar for gashtio
0
4K
Member Avatar for Osas106

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 …

Member Avatar for griswolf
0
111
Member Avatar for cecp

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?

Member Avatar for cecp
0
226
Member Avatar for dgr231

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 …

Member Avatar for mitrmkar
0
252
Member Avatar for stirredo

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 …

Member Avatar for Ancient Dragon
0
74
Member Avatar for friendfx

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 …

Member Avatar for Jason Guo
0
2K
Member Avatar for cecp

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 …

0
30
Member Avatar for strmstn

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.

0
124
Member Avatar for Maulth

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 …

Member Avatar for paulojrudi
0
389
Member Avatar for giri.pankaj

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 …

Member Avatar for giri.pankaj
0
375
Member Avatar for ranjita.cdt.esg

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 …

Member Avatar for Salem
0
99
Member Avatar for Sonali_86

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 :-)

Member Avatar for madhav_75
0
114
Member Avatar for slejeivw

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 …

Member Avatar for WolfPack
0
264
Member Avatar for CppBuilder2006

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 ) …

Member Avatar for CppBuilder2006
0
152
Member Avatar for harwester

[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 …

0
40
Member Avatar for daveoffy

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.

Member Avatar for strmstn
0
134
Member Avatar for LevyDee

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 …

Member Avatar for LevyDee
0
108
Member Avatar for CppBuilder2006

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! …

0
79
Member Avatar for micka10

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"; …

Member Avatar for micka10
0
757
Member Avatar for CodyOebel

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 …

Member Avatar for n.cramp
0
2K
Member Avatar for Diamonddrake

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 …

1
255
Member Avatar for mksafi

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 …

Member Avatar for mksafi
0
258
Member Avatar for adam2009

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 …

Member Avatar for adam2009
0
205
Member Avatar for LevyDee

[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 = …

Member Avatar for Ancient Dragon
0
85
Member Avatar for MassagePS

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 …

0
262
Member Avatar for pato wlmc
Member Avatar for strmstn

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.

Member Avatar for tetron
0
146
Member Avatar for Frederick2

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 …

Member Avatar for Frederick2
0
514
Member Avatar for Bhoot

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 …

Member Avatar for pdtx
0
340
Member Avatar for team_tip

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 …

Member Avatar for Ancient Dragon
0
119
Member Avatar for TaSkOnE

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 …

Member Avatar for TaSkOnE
0
2K
Member Avatar for hkdani

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 …

Member Avatar for vb5prgrmr
0
376
Member Avatar for Syphilis

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 …

Member Avatar for MosaicFuneral
0
160
Member Avatar for Icebone1000

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, …

Member Avatar for Ancient Dragon
0
257
Member Avatar for Emerald09

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 …

Member Avatar for Emerald09
0
106
Member Avatar for iamvish

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 …

Member Avatar for tetron
0
173

The End.