715 Topics

Member Avatar for
Member Avatar for chintan_1671

I want to create a WIN32 API in C#. I was looking as to what would be the best option to create a new project for WIN32 API in C#. I saw that in C++ in Visual Studio, there is one option to create MFC Application but not in C#. …

Member Avatar for chintan_1671
0
174
Member Avatar for taylorc8

Hi, I'm trying to use an input device like a joystick as a mouse, and I've got some good behavior for desktop use by polling the state of the device in a loop and doing some work with the values, then using SendInput with some INPUT structures to make the …

0
103
Member Avatar for kerp

Hi everybody, this text turned out to be rather long and maybe not so clear, please excuse me. I'm currently using the winsock library to send and receive data in an application made with WinAPI, I'm not using MFC. I'm using asynchronous sockets (I think that's what it's called) which …

0
181
Member Avatar for slacke

Hi I am developing an application in Windows environment. I was used to program under linux with Kdevelop and I do miss a feature in the Dev-c++ now. In Kdevelop I can collapse all the functions in my code even the loops and if statements. So when I collapsed all …

Member Avatar for jonsca
0
393
Member Avatar for tomtetlaw

I am using Windows XP 32-bit, VC++ 2008 with OpenGL and the Windows API. When I run my program, it seems to work fine, but whenever I click anywhere on the title bar of the window, the program exits. I have no idea where to start to look for the …

Member Avatar for tomtetlaw
0
160
Member Avatar for dbwalters67

Hello, I would like to modify a value that is in a window of another application using Windows API. I am trying to use Spy++ to determine the particular handle/class, but, I haven't any luck. Attached should be some pictures. One is a snapshot of the window I want to …

Member Avatar for AndreRet
0
407
Member Avatar for tawes01

I'm using Dev-c++ to make a dialog-based app. I had it working, but now I am getting an error: An Access Violation (Segmentation Fault) raised in your program. I have narrowed it down to the winmain function: [CODE]int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow) { if (iCmdShow …

Member Avatar for tawes01
0
291
Member Avatar for lochnessmonster

say i execute an windows api function in my code to allocate memory in the specified process! How do i actually view/know this worked without checking getlasterror() or return codes? is there any other way i can do this in a easier/better manner? maybe runtime with a debugger? if so …

Member Avatar for Ancient Dragon
0
85
Member Avatar for micke

Hello, I have been reading tutorials on c++ for a while, and made a few simple applications. Now I've started looking at win32, and while all the tutorials I've looked at are quite good, they miss out on some simple points. I know how to make a window, a menu, …

Member Avatar for hiddepolen
0
215
Member Avatar for simoneaolson

I am proficient in c++, however i know almost nothing regarding the windows api. What i want my program to do is intercept the CAPSLOCK key and ignore it (as if it weren't pressed in the first place) If the user presses SHIFT+CAPSLOCK it would toggle capslock on or off. …

Member Avatar for ixmike88
0
123
Member Avatar for chrishtones

Since __uuidof is a C++ only operator, how would I retrieve the GUID of an object in C?

Member Avatar for gerard4143
0
629
Member Avatar for SgtMe

Hi all. There have been several threads where people are asking, [B]"is there any way we can develop iPhone Apps on Windows, or without using Objective-C?" [/B]The main reason people ask this is because [I]they either cannot afford a Mac, or cannot afford all the additional costs one has to …

0
187
Member Avatar for Hawkpath

Hi, I'm trying to create a simple program in Win32 and I can't find how to accept input in the form of text. Like "What's your name: ___" then the user enters their name and my program can evaluate the input. I have already googled this for a long time, …

Member Avatar for Frederick2
0
504
Member Avatar for Micko

Hello, I'm playing with win API functions readFile and WriteFile. Is it possible to open file using CreateFile in binary mode just like using fopen standard C function. I tried with function WriteFile to write string to a file but it seems that file is opened in textual mode. What …

Member Avatar for progneer.soft
0
8K
Member Avatar for goodi8u

Hello, I am new to posting, but have searched these wonderful forums for a couple years. I am programming a game as a hobby. And I have been searching for a way to read what the user types. e.g. User types in "hello" and I can take that and send …

Member Avatar for goodi8u
0
248
Member Avatar for triumphost

SKIP to LINE 117 [CODE] #include <iostream> #include <windows.h> #include <fstream.h> #include <stdio.h> #include <stdlib.h> using namespace std; char n , p , m , L , F , E; int v , x , y , O , z , q , R; int main() { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 14); cout<<"This …

Member Avatar for WilliamW1979
0
191
Member Avatar for chiyuwang

In my programe I need to replace _open and _wopen by windows api function, I think the function OpenFile should be the one. Are their return values are same indeed, since _open/_wopen return int, while OpenFile return HFILE, and those enum type look confusing. Can anyone help with it? At …

Member Avatar for Ancient Dragon
0
86
Member Avatar for Alexkid

Hi there, Can anyone tell me how to change my win32 programs icon (top left). I'm running MSV C++ Express 2010, so i don't have MFC. Theres a few tutorials on how to do this but using resource files? Which apparently MSV doesn't support. I want to be able to …

Member Avatar for Alexkid
0
320
Member Avatar for AntonyLini

Hello All, It an urgent requirement. How can I use Google API for windows application. I am using visual studio 2010. and downloaded API and added the reference also. but on coding there is some translate client occurs and it requires some site. I just want to translate the text. …

Member Avatar for AntonyLini
0
507
Member Avatar for EricMack

[ATTACH=right]16919[/ATTACH]The good people at Mozilla have read our minds, again. The latest [URL="http://www.mozilla.com/en-US/firefox/beta/"]beta version of Firefox 4[/URL], released on Tuesday, has a new tool to help you get out from under that unruly pile of browser tabs. It's called 'Panorama,' a shortcut-accessible drag-and-drop workspace that allows you to move and …

Member Avatar for BruceAnd851
0
336
Member Avatar for Roobin

Hi! I have websitepanel installed on a Windows 2008 Server and i want to use the websitepanel API. What im trying to do is to add a user to websitepanel with php/nusoap. Im not so steady when it comes to soap. So i was wondering if someone in this beautiful …

Member Avatar for Roobin
0
204
Member Avatar for SpiritualMadMan

OK, By way of introduction I am a 58 year old 6 year Viet Nam Era (not in country) Navy Type who learned a lot of Electronics back in the 70's when the Navy Schools gave you the equivalent of an Associates Degree in Electronics. I am married with two …

Member Avatar for AndreRet
0
261
Member Avatar for tomtetlaw

What is the best way to convert a message that windows sends me to a printable ascii character?

0
55
Member Avatar for bigcat1969

Hi there, I'm an old programmer trying to get back into it and vastly confused. I know or at least knew how to program in C and found it fairly easy, but Windows programming has me stymied. Basically I'm trying to figure out Win32 Api and have started to get …

Member Avatar for William Hemsworth
1
2K
Member Avatar for tomtetlaw

What is the windows api virtual keycode for the ` key(the one next to the 1 key), i can't seem to find it anywhere on google or msdn.

Member Avatar for N1GHTS
0
91
Member Avatar for CodyOebel

Ok, I have code that needs to forever loop, and process. My code in the windows procedure has a case WM_LBUTTONDOWN: . I left click on the client area of the window and it processes the code accordingly. Now so that it keeps processing code at the end of the …

Member Avatar for LevyDee
0
166
Member Avatar for kerp

Hi I'm currently writing an Othello game using the Windows API. I have 3 classes in my program, the first class is simply called "Othello" and it handles almost everything. I also have a class called Field that's used to control which fields are black which are white etc. My …

Member Avatar for kerp
0
1K
Member Avatar for CodyOebel

I am programming in windows api, and I am familiar with using the ScreenToClient() function, and passing in a POINT structure variable for LPARAM with the coordinates defined in the point struct to simply send mouse clicks and so forth to the window in which I have the handle to. …

Member Avatar for CodyOebel
0
142
Member Avatar for sadaka

Hello again everyone, How are you all doing? I am an fairly familiar with C/C++. I have five books on my shelf about programming in C/C++ but none could provide me with a satisfactory solution to this one problem. I would like to graduate from the Hello World project in …

Member Avatar for sadaka
0
112
Member Avatar for CodyOebel

Ok I am doing some windows API programming that deals with two applications\windows. One window is my program, the other is a games window. I am building my application to output the coordinates to my applications screen. The coordinates are to be retrieved and are needs to be relative to …

Member Avatar for chococrack
0
274
Member Avatar for Saustin_Ben

Hi; I'm coding in C and I'm using the CreateFile function inside of Windows API which is: [CODE] HANDLE WINAPI CreateFile( __in LPCTSTR lpFileName, __in DWORD dwDesiredAccess, __in DWORD dwShareMode, __in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes, __in DWORD dwCreationDisposition, __in DWORD dwFlagsAndAttributes, __in_opt HANDLE hTemplateFile ); [/CODE] In the first argument, lpFieName will …

Member Avatar for hanvyj
0
153
Member Avatar for CodyOebel

Ok here is what I am doing! I got a game that I am hacking\creating auto healing macro. *I am using DEVC++ by BloodShed \ Also have CodeBlocks and Visual c++ *Using windows 32 API framework I understand some basics of windows API, and getting handles, and device contexts and …

Member Avatar for NicAx64
0
229
Member Avatar for PixelExchange

Does anyone know if it is possible to create a program which runs on windows.. but has a [b]Macintosh[/b] Window appearance? I would like to have a Mac. appearing window.. on windows.. Example: Instead of the close, minimize, and maximize being red, blue, and blue (Windows 7).. I would like …

Member Avatar for PixelExchange
0
102
Member Avatar for vinnieashken

I wanted to make Win32 API applications to get the natural look and feel of the operating system's visual styles. someone suggested i include [code=c] #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") [/code] in my code but he is using visual studio while am using codeblocks which just ignores the …

0
29
Member Avatar for caut_baia

Hi and thanks for reading.I'm trying to acces the master PLC of a CAN network using the windows api.It's become a nuisance since i cant' figure this out at all.I will try to be brief since i don't have the source code at hand. So i'm initializing a handle for …

Member Avatar for mike_2000_17
0
125
Member Avatar for =OTS=G-Man

Hello everyone, I am working on a C# app that uses the YouTube .NET API but have come up with an issue, and I'm not sure if its the .NET Wrapper or just something I'm Doing. Ok heres the problem, I request the list of videos the logged in user …

Member Avatar for =OTS=G-Man
0
560
Member Avatar for tycomps

Hi all, Win xp pro sp3, ie8. Firefox connects and is functional, internet explorer will not connect. Malwarebytes connects and updates no errors found in safe mode scan. Mcafee update fails with connection error and windows update will not connect. Below are associated logs, any help is greatly appreciated. Thanks …

Member Avatar for crunchie
0
274
Member Avatar for LevyDee

I am practicing Win32 API again, and for some reason, I am getting an error. [code] #include <windows.h> #include <windowsx.h> #define WSIZE = 400 #define HSIZE = 400 LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX …

Member Avatar for LevyDee
0
167
Member Avatar for lmbdx

Hi, I've developed a console app and a win32 api GUI. The GUI is only used to get input file path and output file path specified by the user, as simple as that. I now want to pass those file path and call the functions in my console app to …

Member Avatar for lmbdx
0
596
Member Avatar for Kshawn

I want to call a 'C'api called BUICInit() in vendors dll from java using JNI.but the generated function name using javah is java_classname_API().so I kept my own dll and from my dll i called vendors dll.. I used loadlibrary()/getprocaddress()..it is working but is there any possiblities with out using getprocaddress …

Member Avatar for Kshawn
0
241
Member Avatar for ylin333

How do you access a database from a C++ or Windows API program? :-/ I would like to be able to get data from a database as strings or something. I want to use a database so that it is easily changed from MS Access or something similar. Thanks in …

Member Avatar for ylin333
0
235
Member Avatar for Allophyl

I have been programming in C++ for a while now, though I have always only written programs with simple command-line interfaces, never a GUI. I have one such program right now which I would like to convert into a Windows application with a full-fledged GUI with customized graphics (for buttons, …

Member Avatar for Allophyl
0
131
Member Avatar for bernardo-b

Hello Yesterday I downloaded this: [B][COLOR="Red"]Infected Executable File Removed[/COLOR].[/B] My Panda antivirus didn't see anything wrong with it, but it is some sort of spyware or trojan. Since I ran it last night, my IE opens up sometimes with an IQ test page '=) Today I ran a quick scan …

Member Avatar for bernardo-b
0
456
Member Avatar for Schoorsteen

Hey there, I've been attempting some Win32 programming for a while now, but I just can't seem to find a function where I can get the HWND by the resource ID. Just an example: [CODE] CreateWindowEx(NULL, L"BUTTON", text, WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, x, y, width, height, parent, (HMENU)IDC_BUTTON_OK, GetModuleHandle(NULL), NULL); HWND btn = …

Member Avatar for Schoorsteen
0
4K
Member Avatar for Hand

Hello I'm trying to make a window with Windows API. Whenever I run my application, the buttons look like Windows 98 buttons. How do I make the buttons look like XP buttons on Windows XP and Win7 buttons on Windows 7? My compiler is Mingw. [CODE]CreateWindowEx( 0, "BUTTON", "OK", WS_TABSTOP …

Member Avatar for Ancient Dragon
0
214
Member Avatar for bbman

Hey, I have an API that can move windows. If I put the x co-ordinate higher that the horizontal resolution of the screen, it will move to the next monitor. I do not have multiple monitors, so I cannot test this myself. Would I use something like: [CODE] Screen[] screens …

0
69
Member Avatar for n.cramp

Hi all, having a bit of trouble with getting OpenGL picking to work in Win32. Note that pretty much the exact code works in GLUT, though i suspect that the reason i cant get it to work in Win32 is that it is not clear exactly how GLUT handles windowing …

0
88
Member Avatar for kerp

Hi! I've recently started to make some programs with the windows API using C++. The problem I'm having right now is that I've created an application, and now I want to share it with the world (or at least some selected few). I've coded the program on my laptop win …

Member Avatar for kerp
0
427
Member Avatar for dmane

Dear All, I am developing an app that will hook on to the ExtTextOutW and capture the text to be displayed on the screen and log it to a file. I am doing this on Windows XP and VC++ 2008. I have managed to do the above for a notepad …

0
116
Member Avatar for akj_1989

hello sir! i am a new user here. I am trying to compile a C code(for 32bit x86 systems) on VS2008 using Lindo API 6.1 for windows(x86) [URL="http://www.lindo.com/index.php?option=com_content&view=article&id=1&Itemid=9"]link[/URL]. My OS is Windows 7 Home Premium x64. After successfully compiling the code, when i run the exe file for debugging, I …

Member Avatar for wisaacs
0
95

The End.