84 Topics

Member Avatar for
Member Avatar for cambalinho

heres a sample of using pointers on VB6: Option Explicit Private Const BI_RGB = 0 Private Const CBM_INIT = &H4 Private Const DIB_RGB_COLORS = 0 Private Const USE_BITMAP_ALPHA = &H1000000 Private Type BITMAPINFOHEADER biSize As Long biWidth As Long biHeight As Long biPlanes As Integer biBitCount As Integer biCompression As …

0
86
Member Avatar for cambalinho

i did a class for the timer precision using the timeSetEvent(). of course i can have more than 7 instances from the Timer class(with 200ms or something so small). is these a limitation or what? class Timer { private: static unsigned int TimerCount; UINT_PTR timerid; UINT m_uResolution=0; unsigned int TimerID=0; …

0
274
Member Avatar for Mr.M

Hi Dw. I'm new to C++ nor Win32 app dev. I want my app to stay open or running even if I'm not interacting with it. And how to write a close call. In VB to close it you just right: Close() How can I achieve these two? Also how …

Member Avatar for tinstaafl
0
239
Member Avatar for cambalinho

i have my own region class: class region { private: BYTE* Get24BitPixels(HBITMAP pBitmap, WORD *pwWidth, WORD *pwHeight) { // a bitmap object just to get bitmap width and height BITMAP bmpBmp; // pointer to original bitmap info LPBITMAPINFO pbmiInfo; // bitmap info will hold the new 24bit bitmap info BITMAPINFO …

0
151
Member Avatar for Habib_7

I'm learning win32 programming from [Here](http://www.functionx.com/win32/Lesson03.htm) and I have problem in part of tutorial about string table it gives me this error: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with …

Member Avatar for Habib_7
0
309
Member Avatar for vegaseat

Using the Python win32 extensions it is relatively simple to copy to and from the clipboard. Sorry. the Windows OS is a requirement.

0
2K
Member Avatar for mitchems

It's been a long while since I've been here. I am trying to use Win32 IEAutomation to automate IE to login to SharePoint, read some information, download some files and some other junk. I installed WIN32 IEAutomation. When I run the simple script: use Win32::IEAutomation; my $ie = Win32::IEAutomation->new( visible …

Member Avatar for mitchems
0
537
Member Avatar for tohtori.o

I'm trying to do the following: 1. get username typed into the userField 2. make a SEARCH mysql_query with the username as a variable I'm having a hard time getting past phase 2 since mysql_query takes a const char* as the query string, and I can only get username as …

Member Avatar for Ancient Dragon
0
284
Member Avatar for TheNewKid

Hey everyone, I am working on a win32 project right now and I have a few buttons that I wanted to change how they look so I gave them the BS_OWNERDRAW property and drew them myself. Now sense I am using ownerdraw there is no visual indication of when someoone …

Member Avatar for tinstaafl
0
288
Member Avatar for skyyadav

How to know the name of process in the other process? or who started that process.

Member Avatar for richieking
0
140
Member Avatar for skyyadav

In my program the commands are on left hand side , I want to move thses buttons to middle of window on click of mouse. I wrote this code n=but buttons are disappearing. Any solution case WM_LBUTTONDOWN: RECT buttonScreenRect; GetWindowRect(hButton, &buttonScreenRect); POINT buttonClientPoint; //buttonClientPoint.x = hButton.left; buttonClientPoint.x = buttonScreenRect.left; buttonClientPoint.y …

0
115
Member Avatar for skyyadav
Member Avatar for skyyadav

Write a minimal terminal emulator which will basically just transmit all characters typed on the keyboard to the serial port and display all characters received via the serial port. Include a set of menu items that will allow a user to: ï‚· Select, modify or set the communication parameters such …

Member Avatar for Ancient Dragon
0
225
Member Avatar for sudesh.yadav.104

I want to create two textboxes on my window. I used this code case WM_CREATE: hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT("sending"), WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER | ES_LEFT, 15, 15, 200, 300, hwnd, NULL, NULL, NULL); hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT("Receiving"), WS_CHILD | WS_VISIBLE | WS_BORDER, 220, 15, 100, …

Member Avatar for sudesh.yadav.104
0
211
Member Avatar for TheNewKid

Hey everyone. I am working on learning how to make some different controls with win32 and at the moment I amt trying to make a combobox with small images next to each option. However when I run my code the options are there but the images are missing. Can anyone …

Member Avatar for mitrmkar
0
339
Member Avatar for Kastarla

So I was working on my computer and everything was fine and then all of a sudden it restarts itself and i get this error about the win32 file. It tells me that my computer cant boot because of a missing or corrupr win32 file and to use yhe repair …

Member Avatar for Little Relhok
0
383
Member Avatar for sujan.dasmahapa

I am writing a pure C based win32 applications. I have drawn line. Now i want to translate that line, move the line whereved user wants to move on screen. Then again I drawn another line, I am drawing multiple lines. I have created rectangle region for each line and …

Member Avatar for Ancient Dragon
0
348
Member Avatar for lemongardens

hi ı have an exam can you give some examples about win32 especially main part of programme thnks

Member Avatar for Ancient Dragon
0
133
Member Avatar for amvx86

I need some help with this one. i have a few code samples I have found on the internet, however, when I attempt to use them I get errors, and nothing really works. What I'm trying to do is get the text of a message box, and the contents of …

Member Avatar for amvx86
0
938
Member Avatar for Ecaz

Ok, so I'm not having a problem but I didn't know where else to place this question. I'm just now "re-learning" C++, I never got into GUI programming before and it's been almost 4 years since I last touched this language. Anyways, my question is simply, do you code a …

Member Avatar for Ecaz
0
372
Member Avatar for amvx86

Hey everyone, I hate posting in forums asking people for help, and then searching for hours and wanting to throw my computer out the window because I can never seem to find the resources I need for programming. I feel that in vb 6 everything was well documented and now …

Member Avatar for tinstaafl
0
381
Member Avatar for venky019

Hi, I have to open and read multiple files which are in same folders. I can search and collect the whole size of those files. But the problem is with when I'm copying the files to a buffer. How can I read the multiple files? I'm using this example for …

Member Avatar for venky019
0
443
Member Avatar for Martje

Hey guys, I am having a problem where i want to print a image and a simple string. i would want that when i print i get this on paper : [Click Here For Image](http://img339.imageshack.us/img339/9308/wiw.png) I looked up printDocument, printDialog and printPreviewControl from MSDN and got a few examples but …

Member Avatar for tinstaafl
0
344
Member Avatar for PixelExchange

Hello everyone. I would like to know if it is possible to double buffer a .png image using GDI+ Can anyone help me? Below is the code I used to display a png image with alpha transparency, however, I do not know how to double buffer it! Please help. DrawPng …

Member Avatar for owenransen
0
690
Member Avatar for kirenemook12

Hello everyone I am trying to make a app. witch uses windows that pop-up if a button is pressed. the problem is, i don't know how to make more than one window. Can anyone tell me how to do that? I am using Microsoft Visual Studio 2010 Express, in a …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for raphael1

I got win32 application, that runs a infinite for loop, which increment a value inside the loop. the problem am having is that my application become unresponsive and uses alot of CPU when compiled. case IDM_ROTATION: for(int i = 0; i < 4; i++) { i = 0; rotation += …

Member Avatar for tinstaafl
0
236
Member Avatar for anuran

i'm trying to create a splitmenu but haven't found any tutorial, i would like to know after creating a splitmenu button with createwindow function, how to populate the menu and what will be the change in switch case of callback function?

Member Avatar for Ancient Dragon
0
327
Member Avatar for NicAx64

Circuit, [Circuit Diagram](https://picasaweb.google.com/116591322380497799116/December52012#) Video: [Video](http://www.youtube.com/watch?v=qGoM_ydAtBc)

0
474
Member Avatar for WolfShield

Hello everyone, I am working my way through the Forger's Win32 tutorial and am on the "Creating a Simple Application" part currently. I am using C++ (instead of C in the tutorial) and the WinGW compiler. When I compile the below code I get this error: main.cpp: In function 'LRESULT …

Member Avatar for ravenous
0
576
Member Avatar for ktsangop

Hi everybody! I am having some trouble running a detached process using CreateProcess function in C++. I have been using the following function to spawn processes in c++ for years now havnig no trouble. I have used it with console applications, mfc apps, dialog based ... etc : StartProc(char *callprogram, …

Member Avatar for ktsangop
0
809

The End.