ComboBox Notification Problems

1037 byte By Fromethius at 2007-11-20 8:54:17
Hello everyone and thank you for taking the time to read my post,I have this code: case WM_COMMAND: { switch(LOWORD(wParam)) { case hwndCombo: { switch(HIWORD(wParam)) {...

Overlapping one Window to another Window Using Win32 API

398 byte By gobindakole at 2007-11-20 8:54:19
Hi Friends I need an application like that: Overlap One Window's client area to another Window's client area, means I have title bar, menu bar of backgraund's Window and only Cliet area of foreground's Window using Win32 API. As user's point of view they have only...

Problem about WINDOW GDI

697 byte By cayido at 2007-11-20 8:54:33
I did a short paint project like mspaint.exe.I have a problem about drawline with stretch-out line,some function like as folling:WM_LBUTTON DOWN: drawline, confirm a start pointWM_MOUSEMOVE: a single line is drawn where end point is Cursor's positionWM_LBUTTONUP: drawline completeI have problem...

Portuser.cpp to get TCP/UDP tables with PIDS for pre-XP

171 byte By akhin at 2007-11-20 8:55:43
Can anybody give me a working version of portuser.cpp of Gary Nebbet, <br/>i mean i must compile it properly with DDK2000/XP and PlatformSDK.<br/>Thank you very much.

About list the opened file handles.

7910 byte By TimiXu at 2007-11-20 8:55:59
I write a programe to list the opened file handles. There is source code.It can be compiled by vc6.0 as console project.#include <windows.h>#define NTAPI __stdcalltypedef LONG NTSTATUS;#define IN#define OUT#define OPTIONAL#define SystemHandleInformation 16typedef struct _HANDLE_E...

Using resources in your application

657 byte By Fromethius at 2007-11-20 8:56:38
How come, whenever I use a resource, I have to define it as an integral and call the integer's value to use it?For example, I have this:CONTROL "",IDC_COMBOBOX,"ComboBox",0x50010003,8,90,62,111Then I define it like this:#define IDC_COMBOBOX 30000I can use this in my main.cpp like this:MAKEINTRE...

Triple buffering?

1417 byte By Coder Noob at 2007-11-20 8:56:55
Hi. I'm making a 2D map editor and trying to update the window that shows the map. Anyway, the way I have it now works good, but there is a lot of flicker because I clear the screen to a white color and then update it. This is how I do it now.Pseudocodebegin Create Device Context Create Memor...

Input Method Development

254 byte By leejwen at 2007-11-20 8:57:08
I'm planning to develop my special Input Method by VC++ based on Windows+PC. Is there any SDK or DDK support to make thing easier, or Just use Visual Studio?<br/>Please be specific, sorry, I'm old programmer and not expert of VC++ and Windows.

Changing the DEFPUSHBUTTON...

565 byte By WhorlyWhelk at 2007-11-20 8:57:09
I got a bunch of buttons in a dialog box (my main window) and when one is entered I want to change the DEFPUSHBUTTON to a different one.I tried to do this: SendMessage(log,BM_SETSTYLE,BS_PUSHBUTTON|BS_TEXT|WS_CHILD|WS_TABSTOP,TRUE);SendMessage(play,BM_SETSTYLE,BS_DEFPUSHBUTTON|BS_TEXT|WS_CH...

RegLoadKey Privilege Problem

1481 byte By akhin at 2007-11-20 8:57:11
I try to use RegLoadKey with HKEY_LOCAL_MACHINE hive, but it returns ERROR_ACCESS_DENIED ,the code below works for HKEY_CURRENT_USER hive , i couldnt figure out why it didnt for also HKEY_LOCAL_MACHINEalthough i am setting privilige defined as msdn ( http://msdn2.microsoft.com/en-us/library/ms7248...

installed softwares via registry

128 byte By akhin at 2007-11-20 8:57:25
How can i get list of installed softwares on system via Registry ( in my project i mustnt use MSI)<br/>Thank you very much

PACL,PSID Leakage Problem

2538 byte By akhin at 2007-11-20 8:57:47
In my main scope i declare my pointer variables :...PSID ownerSid = NULL ;PACL pDACL = NULL ; ownerSid = GetOwnerSIDFromFile (path);pDACL = GetDACLFromFile (path);if(ownerSid) FreeSid(ownerSid);if(pDACL) LocalFree(pDACL);...PSID and PACL still cause leakages altgough i try to release them. How can i...

GDI+ with Win32 API Dev-C++

878 byte By Fromethius at 2007-11-20 8:58:22
I have Windows XP with Dev-C++. I created a Windows Application and added #include <gdiplus.h> to the top of the file. I made sure I had gdiplus.h and all the files it required in my include folder. However, when I try to run the application. I get these errors: http://rafb.net/p/wD4DPa78.html...

Loading PNG Files

367 byte By Fromethius at 2007-11-20 8:58:32
All week now I have been searching for a good way to load and display PNG files. Every solution I try never works.So now I am posting on the forums. I am not looking for a huge library. In fact, I'm not looking for a library at all. All I want to do is do easily be able to load and display PNG...

Directshow VMR9 Filter

257 byte By akhin at 2007-11-20 8:58:52
I am using VMR9 Filter for video rendering. But i must do some arrangements on this filter like :<br/>"YUV mixing mode", "dynamic decimation", and "dynamic switch to BOB"<br/>How can i set them on VMR9 Filter via directshow code ?<br/>BEST REGARDS

Get location of element by IHTMLElement in the HTML?

1144 byte By dc_2000 at 2007-11-20 8:58:59
Hi everyone: I'm trying to isolate all <SCRIPT></SCRIPT> tags inside an HTML document. I can easily find the beginning of the SCRIPT tag (by simply using a text search function on HTML text) but to find its end one needs to parse the contents of the script itself. In light of this,...

conditions

416 byte By style at 2007-11-20 8:59:14
Hello,I do image processing on bitmaps. I have a question about edge conditions.For example I use diffrent masks:1,1,11,1,11,1,1or 0,1,00,1,00,1,0or1,1,1,1,11,1,1,1,11,1,1,1,11,1,1,1,11,1,1,1,1and I have a problem with defining edge conditions of filtration. And I would like to ask: what edge condit...

too many pipes?

1102 byte By jlewicki at 2007-11-20 8:59:31
I'm fooling around with pipes and I've got a basic duplex working. The server opens a child(cmd.exe) and then pings a server with 1 count. I take this information and output it on the parent, notifying if the server that i just pinged is still available.My intention is to get this server m...

Unresolved token error with the winapi

643 byte By blahblahblah5038 at 2007-11-20 8:59:57
I am writing a program that is still in its very early stages, and I have already encountered some errors where I wouldn't have expected them.One of the main things that the program needs to be able to do is recognize pixel colors from the screen. So the first thing i did was to find someone el...

VMR9 & SampleGrabber at the same time , how ?

475 byte By akhin at 2007-11-20 9:00:03
http://msdn2.microsoft.com/en-us/library/ms786690.aspxIt says : Include Qedit.h. This header file is not compatible with Microsoft Direct3D headers later than version 7.My application must do both VMR9 rendering and sample grabbing. But there are many problems when i include d3d9.h+vmr9.h with qedit...

Keywords that I dont understand

458 byte By C#er at 2007-11-20 9:00:15
Hi fellowsI'm programming C++ approximately 1 1/2 year, and I programming for windows too. But some keywords I don't know exactly what they are and when I use them. That's my question:What the meaning of terms and when I use them:__stdcall__pascal__fastcall__thiscallinlineIt seems tha...

How to detect concurrent user

573 byte By garage at 2007-11-20 9:00:34
Hi All,I have following scenario.Application name : test.exeuser1 has logged into the system and executed the application.Now, without closing the application he simply locks the system (CTRL+ALT+DEL).Now, user2 logs into the same system and tries to execute the test.exe application. At this point,...

PSID Leakage Problem , please check the code

1363 byte By akhin at 2007-11-20 9:00:50
I am doing everything for allocating and freeing sid structure but it always gives leakages please check the code :BOOL GetAll (char* sFileOrFolderName ){ DWORD dwRtnCode = 0; PSID ownerSid = NULL; HANDLE hFile; hFile = CreateFile( sFileOrFolderName, GENERIC_READ,...

Getting SACL & Privilege Problem

1407 byte By akhin at 2007-11-20 9:00:54
I cant get SACL structure of a file , however i call a function : Privilege(SE_SECURITY_NAME,TRUE);How can i get sacl ??BOOL Privilege(LPTSTR pszPrivilege, BOOL bEnable){ HANDLE hToken; TOKEN_PRIVILEGES tp; // // obtain the token, first check the thread and then the process...

How to find Directory Permissions?

354 byte By inform.srk at 2007-11-20 9:01:01
Hi,Can anybody tell me any API or sample code snippet to find out the Directory access permissions, to find out whether or not a directory have write protection.I found "GetNamedSecurityInfo" API, but don't know how to use it.I want this in both Window and linux.Any help will be appreciated.Tha...

Problem with spy++ and getwindowtext

238 byte By mcnamara at 2007-11-20 9:01:15
Hello,<br/>I use FindWindow to find one of the displayed windows. Then I try to get its title by calling GetWindoText but I'm getting empty string. However if I use spy++ then it displays title of the window. What's the problem?

Display process ICONs on ClistCtrl

1491 byte By spacefuxx at 2007-11-20 9:01:20
Hello everyone,i'm programing an MCF process viewer. By now, everything works fine except that the ICONS of the processes don't show up (just an empty room). I am using the ExtractIconEx API call for getting the ICON's.This is a screenshot on which you can see what i mean: http://www.i...

Thread syncronization

2252 byte By C#er at 2007-11-20 9:01:26
Hi for allI've created a program that triggers some threads.I don't get to use the syncronization. Some threads are triggered before others.I created a class called ResourceObject. This is a simple class with a boolean value and a CRITICAL_SECTION value:ResourceObject::ResourceObject(){...

Adding new lines when setting Edit box text

520 byte By chrishowarth at 2007-11-20 9:01:49
Hello ~I am trying to set the text in my multi-lined Edit control using Send Message (WM_SETTEXT). I am trying to get my Edit control to fill up with JavaScript code, with each parameter a variable that has just been set via a dialog. Obviously, I do not want all this code appearing on one line.A...

Saving an image file to a directory with GDI+

1118 byte By Fromethius at 2007-11-20 9:01:52
Hello everyone and thank you for taking the time to read my postI am running Visual C++ 2005 and I'm having some trouble with GDI+.I have two bitmaps:Bitmap* pngFrame;Bitmap* pngEmblem;I initialized them in a function I use, and I can display them no problem like this:PAINTSTRUCT ps; BeginPaint...

How to write to Windows event log

375 byte By garage at 2007-11-20 9:02:09
Hi,I am using C++ on Vista.Can anyone suggest me the steps to write to the Windows event log.What will be the value in 1st parameter of EventRegister(). Where from I will get the GUID. My one is not COM based application. 100% Windows application w/o any use of MFC also.Can anyone direct me to any s...

Problem with DialogBox as main window..

687 byte By WhorlyWhelk at 2007-11-20 9:02:39
Okay I narrowed this down.I got a dialogbox as my main window. Inside that box I have a Web Browser embedded. When I open a page with a interactive Java applet inside the browser, and then give focus to some other program or window, my program will freeze and crash.If I don't lose focus my prog...

EM_CHARFROMPOS API not working with MBCS or DBCS

177 byte By sajid.pk at 2007-11-20 9:02:44
Hi,<br/>EM_CHARFROMPOS api don't seem to work with double byte characterset. whenever I call these functions I get wrong int values returned... <br/>any idea why?

minimize window by dragging it to the task bar

290 byte By epyk at 2007-11-20 9:03:00
i want to know how to minimize any program to the taskbar just by dragging and dropping the title bar to the taskbar. this would have to work on any open window, so im thinking it would have to be a shell add-on. im not sure this is my first attempt to create a non-program specific method.

Determining which app is using serial port

420 byte By icefield at 2007-11-20 9:03:29
I've spent a good while trying to figure out if there is a way to determine what applications has opened a handle to a serial port that is unavailable (owing to already being in use). CreateFile can tell if a COM port exists, even if in use, and I've looked at QueryDosDevice to see if ther...

This dumb sound!

406 byte By WhorlyWhelk at 2007-11-20 9:03:59
I subclassed my combobox edit and my edit controls so when you hit TAB or RETURN it acts does what I want.But when you use the keys, it makes that sound every time. All I do is use SetFocus and SendMessage to move focus to different controls or click buttons. Any ideas to remove this sound? I'm...

pragma dataseg for dlls

236 byte By jayapalchandran at 2007-11-20 9:04:02
i am writing a global hook that is a hook in a dll... do i have to use the pragma datasegment statement to use a global variable... like i want to send an window handle to the dll or the hook handle... is pragma the only way to do that?

Writing global hooks in Dev-c++ IDE

371 byte By jayapalchandran at 2007-11-20 9:04:03
i started doing windows programs using Dev-C++ IDE. I am creating a global keyboard hook for testing purpose... it is not working properly... so i got a doubt like dev-c++ may not be completely support writing global hooks in it... i dont want to use visual c++ because i want the code to be in Win32...

What is .lib and .dll

376 byte By bidesh at 2007-11-20 9:04:22
Hi all,i need to develop a COM dll from a static lib. can anyone please tell me what are the steps required. i know a how to make dll but don't know much about static lib. please explain the concepts of .lib file and .dll file. is it possible that .lib can be used alone to write an application...

Changing stream resolution

156 byte By akhin at 2007-11-20 9:04:27
How can i change video resolution using sample grabber ?<br/>Does VMR9 renderer supply a ready method for this operation ?<br/>Thank you very much

What would be the best way to store

2899 byte By chrishowarth at 2007-11-20 9:04:52
Hello ~I am trying to store the value returned from an Edit Box using GetDlgItemText. I retrieve the data from the Edit Box and store it to a character array. However, this does not seem to be returning anything! I also think that there must be a more efficient way of doing this, especially as I...

IcmpSendEcho problem

2968 byte By jlewicki at 2007-11-20 9:05:00
I'm trying to ping a computer on the network, but I'm receiving a 11001 error(no such host is known). Any help si extremely appreciated:below are 2 outputs and the code:Output:CreatePipe: The operation completed successfully. File created.ip: 16777343IcmpSendEcho: No such host is kn...

Bitmap display

407 byte By vsspro at 2007-11-20 9:05:17
Hi, I am working in a project which needs to do different sorts of things with bitmaps.I have to zoom in and zoom out and also I have to scroll a bitmap if it is larger than window dimensions .My problem is with scrolling.I am not able to find the max value and it is scrolling past the bitmap whi...

Get Executable Path using GetModuleFileName

570 byte By flynny1st at 2007-11-20 9:06:03
Hi,I'm having trouble finding a windows executable string from the HWND.It seems to work ok if i try and get the string of the process but is i try this on another window (for example on internet explorer window). it returns nonsense.this is how i'm doing itchar path[500];HINSTANCE__* foun...

casting/converting a dotted ip address from IPAddr

5207 byte By jlewicki at 2007-11-20 9:06:43
In order to use IcmpSendEcho, you need to take a dotted ip address "127.0.0.1" and run it through inet_addr() so it is of the IPAddr format. I want to convert this IPAddr format back to the dotted form.I've searched the forums and googled multiple times but to no avail. These are some of the th...

Application Try Icon events

549 byte By sader at 2007-11-20 9:06:48
I wont minimize my appliciotion to try icons bar (near windows clock) when I close it (when I click nice red button [ x ] :)) but the point is that I wont just minimize application not to exit from it.Also I have another problem I am trying minimize application to try icons bar when it starts, but...

Where in registry?

1154 byte By Y0rkieP at 2007-11-20 9:06:50
Hi all, I program as a hobby and learning on my way. Ive been learning c++, winAPI & simple to moderate GDI. Ive made several clockfaces as bmp's, which are selectable and used TransparectBlt to draw them. After re-learning some maths, I used Lineto with sin / cos to draw the hands. Also I h...

Cant get SACL

2364 byte By akhin at 2007-11-20 9:07:10
I cant get SACL of an existing file on my system with this code. GetNamedSecurityInfo returns 0 (ERROR_SUCCESS) , which meansthere is no error in execution of it but pSACL still becomes 0x00000000and IsValidAcl(pSACL) returns FALSE .#include <windows.h>#include <aclapi.h>unsigned long...

Changing the back and fore color of a control

1093 byte By Vitucho at 2007-11-20 9:07:23
Hi!.I know how to change the control back and fore color of a window class, but only when inside the parent window procedure by cachting the message WM_CTLCOLOR{SHORT NAME OF CONTROL}: and establishing SetTextColor((HDC)wParam,A COLOREF to the fore color (text color));SetBkColor((HDC)wParam,A COLORE...

CreateFileW -> Weird parameters

229 byte By Quell at 2007-11-20 9:09:19
Hey.<br/>I was lookg at some source and and the filename fro the CreateFileW was specified as:<br/>"pathfilea:filebnopath".<br/>ie.<br/>"c:\...\filea:fileb"<br/>What exactly does the ":" do in between the file names?<br/>Thx