Quantcast
Channel: CodeGuru Forums - C++ and WinAPI
Browsing all 583 articles
Browse latest View live
↧

VC++ SendMessage API to VB6 Application

Hi folks, I write a small tool to SendMessage with LB_ADDSTRING to a listbox in VB6 application. New item has successfully inserted into target listbox. But characters become ????. What's wrong with...

View Article


Update a record with ADODataset

Goodmorning I am using a database in access 2007 and c++ builder 2007. I have a problem and i want some help. I have a dbgrid on my simple application and the user find a record and click on it. When...

View Article


StringGrid,Memo

Goodmorning I want some help. I have a stringgrid with some values inside. 1 8,2 2 8,3 3 8,7 4 10,1 So my question is how i can take these fields to a memo component...any ideas;;;;; is it simple;;;;;;...

View Article

winsock recv() problem

Im making a rat program and the recv function is not receiving. here is my code Code: #include <windows.h> #include  <stdlib.h> #include <stdio.h> #include <winsock2.h> #include...

View Article

Button Control with Layered Transparent PNGs

Is it possible to use a combination of PNG images (with transparency) as the graphic for a button control? For example, let's say I have 3 PNG files: main.png, transparent1.png, and transparent2.png. I...

View Article


Does DefWindowProc while processing WM_ERASEBKGND use update region?

Hi, I process WM_ERASEBKGND message for WS_CHILD window: Code:   case WM_ERASEBKGND:     GetUpdateRect(hWnd,&urect,FALSE);     //........... In urect i always get {0,0,0,0}. That's why I ask: does...

View Article

StringGrid,delete last row

Goodmorning I have a small problem with my application. I have an Edit1 from where i put values in StringGrid. I want to make a button where i will put the above code. with this button the user will...

View Article

Create backup database from button

Goodmorning. I have an application and a database in C++ Builder 2007 and Access 2007. I want to create a button in my application that will check if the file of database today exist and will make a...

View Article


Create directory with date

Goodmorning I want little help Code: AnsiString S=DateToStr(Date());         char *test=S.c_str();   CreateDirectory("c:\\Monday"+test, NULL); i made the upper code and i want to create a directory...

View Article


Basic classes to develop console programs

I am fairly new to C++ programming and wish to start learning the language properly. Recently I have started to write some classes that allow me to create console programs. The issue I am having is...

View Article

Combobox Problem, new Window, new Combobox

Hello. I am trying to find a solution to my Problem. What i want is to create a Combobox, when i select a value, it has to open a new Pop up window. Problem is, that when i select it, the new Window...

View Article

Gwlp_userdata

I have to call GetWindowLongPtr() with GWLP_USERDATA to redraw my tabcontrols. "Retrieves the user data associated with the window. This data is intended for use by the application that created the...

View Article

OpenGL with C++ Application GLUT.DLL Problem

I try to Build one Application by Using OpenGL... But every time I try to check the Application I got this message GLUT.DLL is missed.. I checked the folder c/Windows/System32 I found the file is...

View Article


[RESOLVED] How make line insteed item of menu?

I think such AppendMenu(menu_file, MF_STRING, 1002, L"-"); but it only insert "-". How correctly? Thanks

View Article

Graphics glitches in Win32 main window Skinning while updating STATIC controls

Graphics glitches in Win32 main window Skinning while updating few STATIC controls periodically. I am in desperate need of a solution or a pointer to what may be wrong. I am skinning an app as follows:...

View Article


[RESOLVED] date & time (non static) in statusbar

hi all, I'm trying to place the date and time in my statusbar, but the time does not change and remains static, I think I need a loop or something, I google it and found several ways to get time from...

View Article

Why do GlobalAlloc fail?

Hello, I try to allocate approx. 50MB of memory for a DIB: hDIB= GlobalAlloc(GHND,dw /*approx 50MB*/); It fails. But Windows task manager told me that more than 500MB available. The OS is win xp....

View Article


A little help! WM_PAINT + BMP

Hiho, I just want to put a background image in my app, apparently works well but not, after a few clicks to resize it, my pc slow down, and I do not see the problem or may be my code wrong...accept...

View Article

How do access a variable updated in a cpp file to another cpp file?

Hi, I have two cpp files.I m updating a value of an integer in one cpp file and i want to perform a specific function in the second file as per to the value updated in the first file. ie I m initialing...

View Article

Audio Endpoint Device Removal Detection

Does anyone have a working example of this http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx I've tried the code posted here http://social.msdn.microsoft.com/For...7-01f0de038b07 but it does not...

View Article
Browsing all 583 articles
Browse latest View live