Getting Shell Command Output

223 byte By JustinMs66 at 2007-11-20 11:29:22
I have a compiled exe library that i need to use and i figured out how to make it not appear in another window by using ShellExecute() [well, not be visible anyway], but is there any way i can get the output of the program?

[RESOLVED] FindFirstFile Returns Wrong Value !

283 byte By dingo_kasper at 2007-11-20 11:29:44
Hello to All, <br/> i am Surprised to know that When i Use FindFirstFile() API to get the File size of a file. It returns wrong value if the file size if of greater then 2GB.<br/>It just returns a different value. <br/>Has anybody have any idea about that?<br/>Regards<br/>Dingo

Trackbar / slider qudstion

181 byte By Ali Imran at 2007-11-20 11:30:09
How to achieve such trackbar (with selection area in it)<br/> http://www.imageox.com/image/104736-track-sel.gif<br/>Any style to apply or what need to subclass?<br/>regards

AddRef and Release function of COM inteface

567 byte By George2 at 2007-11-20 11:30:19
Hello everyone,I have noticed a lot of COM samples that the function AddRef and Release function of COM inteface is not synchronized to make it thread safe when dealing with adding/decreasing reference count.Is it needed to synchronize AddRef and Release? Or the COM runtime underlying implementation...

Create dialog dynamically?

884 byte By rambovn at 2007-11-20 11:30:23
Hallo,Now I have another problem :(I am working with a filter in DirectShow using Microsoft Visual C 8, I already created this Filter and now it's the time for creating its User Interface. My filter reads data in XML file, and try to process it. And my problem is how to create dialogs in my int...

Getting TreeItem on click, but C, WinApi

1695 byte By me-$-on at 2007-11-20 11:30:34
Hello.Since three months i've been trying to obtain the handle of a treeviewitem, to start recursive folder search just for that clicked folder, in order to speed up my tree-view.And i still don't know, how to make it .-My aim is, to load all immediate subfolders of a folder, which was hi...

Getting window text

322 byte By graphix at 2007-11-20 11:30:36
Hello,I am trying to figure how to get a text from a window that uses GDI to write it. The only option I have in mind is using an OCR algorithm and extract the text from a printscreen image.Is there a way to interact with an application an get the text from internal variables or something ?Thanks...

Non-draggable window creation -

349 byte By .pcbrainbuster at 2007-11-20 11:31:04
Sup guys,I finally got the custom design but now when the user drags the left of the window to the right, after a while the window starts dis-appearing(because it is going out of it's own region). How can I prevent this from happening, so that my application maintains a constant shape.Please te...

DllMain

983 byte By George2 at 2007-11-20 11:31:31
Hello everyone,From MSDN, http://msdn2.microsoft.com/en-us/library/ms682583.aspxparameter fdwReason of DllMain has four values,DLL_PROCESS_ATTACHDLL_PROCESS_DETACHDLL_THREAD_ATTACHDLL_THREAD_DETACHI think we could simply understand what MSDN described about the four values in the following way after...

Updating my window -

309 byte By .pcbrainbuster at 2007-11-20 11:32:21
Sup guys,This time I added lines in my program(that come out from 4 corners) that simply intersect at the point of the mouse but I need to know how to update the window through a mousemove message so that it would receive the paint message which houses my lines.Any ideas?Thanks....

Set Background Color of Window

546 byte By Ali Imran at 2007-11-20 11:33:01
A simple window created from scratch, I want to change its background color, BUT without disturbing other controls belonging to same class.I tried changing class long:SetClassLong(hwnd,GCL_HBRBACKGROUND,(long)CreateSolidBrush(0xFF6633));But this ^ resulted in, background color of all controls create...

need your recomendation

221 byte By Master. at 2007-11-20 11:33:08
Hi guys .. i need the most comprehensive and complete and also easy understanding book book for database programming with visual C/C++ ... <br/>i really need it for my semester project ...<br/>tanx in advance

static separator and color text

6310 byte By slk at 2007-11-20 11:33:40
I'm going to kill 2 birds with one stone here, as it doesn't make sense to make 2 topics. these two things are completely unrelated.firstly, I will ask if anyone here could please tell me how I can create a static separator control on a dialog with VC++ 6. I thought it would be as simple a...

Complete Product in C++ with moduels

1644 byte By Wolvorine at 2007-11-20 11:33:57
Hi,I am little confuse to start developing a new product which has little complicated details features need to be implemented in VC++.Product is something like , there are many kinds of different processes like monitoring user's activities including chat,emails, keys,snapshot and many many more...

Keeping a rectangle there for a certain amount of time -

212 byte By .pcbrainbuster at 2007-11-20 11:34:08
Sup people,<br/>What would be the best way of keeping your rectangle on your program for a certain amount of time and then removing it?<br/>I tried Sleep but it gave unexpected results.<br/>Thanks.

LValue?!?

369 byte By .pcbrainbuster at 2007-11-20 11:34:15
Sup dudes,Why is my program asking for an LValue?LRESULT CALLBACK WNDPROC...static char words[] = "dumb";static char originalwords[] = "dumb";...originalwords = words; // requires LValue which is already present...This is the basic layout of what went wrong in my program.Any ideas?Thanks....

Drawing in window

448 byte By John_M_Gough at 2007-11-20 11:34:25
Ive drawn an object using BeginPaint(), on certain key presses the object changes, but the window doesnt update the display untill i cover the window with another and then show it again.how do i get the window to repaint on every cycle without regardless of anything else( my structure has a repaint...

A project -

177 byte By .pcbrainbuster at 2007-11-20 11:34:27
Sup friends,<br/>I've decided to quit my current project because it seems to be pointless. Does anyone mind suggesting a new C++ Win32 project for me?<br/>Thanks.

Dialogue Boxes -

168 byte By .pcbrainbuster at 2007-11-20 11:34:30
Sup friends,<br/>Can anyone point me to some Dialogue Box tutorial? I'm asking because you lot have experience and know which sites are good.<br/>Thanks.

assert

544 byte By George2 at 2007-11-20 11:34:57
Hello everyone,I saw a couple of form of assert in code on Windows,1. ASSERT;2. assert;3. _ASSERT;4. _assert.Which one is the most correct to use? I saw people always define this to that, and I want to find the root one which is defined by Windows.I also saw people manually define assert to NULL if...

DragQueryFile filename problem

1118 byte By gbrooks3 at 2007-11-20 11:35:26
Hi, this is a really basic problem, but I hope someone can show me the correct way :)I am handling dropped files and want to get the filename aswell as the full path... int nFiles; char szTemp64x[500] = {0}; char path[1024] = {0}; GetDlgItemText(hwnd, IDC_PATH, path, 1024); switch (message) { case...

Intercept Minimize Messages

397 byte By kabilius at 2007-11-20 11:35:27
Hi all,I am trying to implement a "minimize to system tray" when I click on the top right minimize button; however, I do not know how to replace window's minimize function with my own.Do I need to make my own minimize button or can I just intercept the Minimize message and replace window's...

Simple issue -

3631 byte By .pcbrainbuster at 2007-11-20 11:35:37
Sup guys,What's wrong in the following code? -#include <windows.h>#include "Resource.h"const char *ClsName = "BasicApp";const char *WndName = "A Simple Window";LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg,WPARAM wParam, LPARAM lParam);HINSTANCE hInstance;int WINAPI WinMain(HINSTANCE hIns...

Resources -

590 byte By .pcbrainbuster at 2007-11-20 11:35:38
Sup friends,I recently learn how to work with resources and wondered if you lot could help me a little -Why is it the I've defined a cpp file, a rc file and a h file when all the compiler uses is the cpp and h file? In Borland C++ Builder 6 I include a file Resource.h and then in the project me...

new to win32 programming, need help

1164 byte By kvk at 2007-11-20 11:35:47
hello, This is Vamshi Kumar Kota, i am a graduate student. Till now i didn't work on windows programming and win32 API. Now i have to work on a project. The project is:1) i have 15 workstations - windows XP2) a winodows 2003 server and Sql server 2000.3) i have to connect 15 workstat...

CreateFont() height confusion

1719 byte By MrDoomMaster at 2007-11-20 11:35:53
Hi,I'm currently using CreateFont() to create fonts for my application. In the front-end, my application works with Twips which at SOME point needs to be converted to work with CreateFont(). The first parameter of CreateFont() is the height of the font in "logical units" which I have no idea ab...

DLL property

308 byte By George2 at 2007-11-20 11:36:11
Hello everyone,I am wondering how to set DLL property (when we select the DLL and using right click to choose properties), like version, language, company, etc.?Do we need to write some code or just need to configure something in Visual Studio 2005?thanks in advance,George...

WM_CTLCOLORSTATIC problem when using SS_ICON

1041 byte By Ali Imran at 2007-11-20 11:36:18
I have a static control that is child window of anyother button.button is subclassed, within subclass procedure of the button I recieve message WM_CTLCOLORSTATIC, which I process as follows:if(message == WM_CTLCOLORSTATIC) { SetBkMode((HDC)wParam,TRANSPARENT); return (LRESULT)(HBRUSH)G...

message localization

703 byte By George2 at 2007-11-20 11:36:30
Hello everyone,I want to print out and log localized message according to current locale of machine. For example, if I am always use MESSAGE_ERROR macro in my program, and I want to replace it with "Error" when the locale is en_US and be replaced with French if the locale if Fr.I am wondering whethe...

how to capture the event that clicked the COMBOBOXs down-arrow?

248 byte By aneird at 2007-11-20 11:37:57
i create a dialog that includes a COMBOBOX(IDD_COMBOBOX1),dialog's CallWindowProc is dlgproc function,dlgproc receives the WM_COMMAND event,does deal with the clicked down-arrow event in its parent window's dlgproc,how to write the code?

[RESOLVED] Get notified when Mouse stops moving

627 byte By kteegala at 2007-11-20 11:38:29
I want to get notified when the mouse stops moving for a certain amount of time (say 0.5 sec). From Msdn documentaion, it looks like wathcing for WM_MOUSEHOVER messages is the way to go. I'm using Spy++ to check WM_MOUSEHOVER messages but I can see such message only on one window (eclipse wind...

Pressing Tab moves cursor rather than moving to next text box

730 byte By dillydadally at 2007-11-20 11:38:52
Hi, there's probably some property value here that I'm missing or something, but I can't seem to figure it out. I'm creating a simple form with some small fields such as Name, Address, etc. Most are single-lined, but the address text box is multi-line (not sure if this matters)...

disable the the resize or move on dialogbox?

210 byte By mase at 2007-11-20 11:38:55
I'm still new learning the WinAPI so please don't mind me. For example if I just create dialog box, but then I don't want the user to drag it or change the size of it, so can I disable all that?

can i send CBN_CLOSEUP message to COMBOBOX?

18 byte By aneird at 2007-11-20 11:39:21
how to write code?

How to parse VBA script file in MFC ?

350 byte By paresh_chitte at 2007-11-20 11:39:29
How to parse VBA script file in MFC ?I want the following information from the VBA macro file,1. Number of modules in the script.2. Name of all the modules.3. All the function names in the given modules.Is there any scripting engine ?Any help would be appreciated.Thanks and Regards,Paresh....

How to subclass an edit control to catch the tab key

318 byte By dillydadally at 2007-11-20 11:40:39
Hi, I have a bunch of edit controls on a dialog box that I would like users to be able to tab between. I understand the best way to do this is to subclass the edit control to somehow catch the tab key and handle it. Does anyone know how to do this? I've never had to subclass a control before...

IAccessible problem

572 byte By Fester at 2007-11-20 11:41:08
Hi all!I'm implementing IAccessible interface for a custom list control. I've seen, that there is a different behavior for different role IDs.For example the client (narrator) calls the followed chain get_accRole -> get_accName -> get_accValue -> accLocation -> get_accChildCoun...

how to monitor exe and dll interactions?

811 byte By George2 at 2007-11-20 11:41:13
Hello everyone,Are there any tool or other methods which could be used to monitor which class/method exe is accessing a DLL?Now I met with an issue that when I provide the DLL I developed to a 3rd parth application, it will crash sometimes and I suspect the 3rd party application is invoking some cla...

small device copying program

364 byte By tootypegs at 2007-11-20 11:41:17
Hi, i plan to create a small program that can read a USB device and then create an exact image of this device (.dd image?? ive herd things about this). Anyway i think im in the correct section of the forum. Can anyone give me any advice on how create a copy of the device, point me in the direction o...

How to view all Process FullPath

1170 byte By Dunkel Kamui at 2007-11-20 11:41:41
Hi to all...ummm... I've a problem... I'm trying make a function that return me the list of all processes executing in a Win95 to Win Vista platform using EnumProcess() and GetModuleFileNameEx() functions of psapi.dll, or PROCESSENTRY32 struct...My problem is... in W2k and XP, (Vista... ee...

problem compiling resource file for dialog box

914 byte By verbal at 2007-11-20 11:41:49
i try to compile a simple windows application but when i try to add the code for the dialog box i get a syntax error in the resource file. The code for the dialog box is this:IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENUCAPTION "My About Box"FONT...

Pixel Perfect -

298 byte By .pcbrainbuster at 2007-11-20 11:42:01
Sup people,<br/>How do programmers get their programs to position everything so perfectly? For example a program may just consist of some text and a edit box and the programmer postions them both half way from the top and left with 10 pixels difference between the two things.<br/>Thanks.

Limit to control Entries

247 byte By Pravish at 2007-11-20 11:42:38
hi,<br/>I hv a dialog here that has over 100 static and edit control boxes.. I m not able to insert anymore edit control boxes.. if i hv to then i hv to delete some... is there any upperlimit to no. of control entries we can put in a dialog??

Dialog Background Color

491 byte By goobers at 2007-11-20 11:42:48
Hi, I have a question on how to color the background of a dialog multiple colors. Generally, for a single color throughout, I would create a solid brush with the color I desire, then use WM_CTLCOLORDLG to pain the background. What I am trying to do however, is have multple colors, a section of purpl...

[RESOLVED] How to assign a bitmap to a menu item?

1721 byte By gcsaba2 at 2007-11-20 11:42:50
I know that I'm supposed to use the SetMenuItemBitmaps() function, however in this specific case this doesn't work.I've created a COM object which adds a new menu item to the Windows popup menu when you right-click on any file. This works well and the menu is added. However, I want th...

Open/Save/Folder Dialogue -

126 byte By .pcbrainbuster at 2007-11-20 11:42:57
Sup dudes,<br/>Isn't there any default for those dialogues? Its anoyying to type down all the info.<br/>Thanks.

Communication between two programs?

437 byte By pirateninja at 2007-11-20 11:43:03
I need to communicate between two programs. One of the programs is in C++, however the other is in VB6. I need to pass the address of the hDC of a form in the VB6 program to my C++ program. I thought to save the address of the hDC to a file and read it in C++ but I don't know how to turn "-1409...

is there something Im missing?

939 byte By mase at 2007-11-20 11:43:07
I can not seem to get this to work in WinAPI because the error saying that my class member function is not defined even though I declare inside my class in the header file.I have three files: project.h, project.cpp, projectMain.cppproject.h where I create my class, member function and data. In memb...

32/64 bit compatibility issue

289 byte By _uj at 2007-11-20 11:43:08
There's a 32 bit as well as a 64 bit version of Windows Vista. <br/>Say a program is compiled to the Intel 64 architecture instruction set. Will it run on a 32 bit Vista?<br/>Say a program is compiled to the IA-32 architecture instruction set. Will it run on a 64 bit Vista?

Inverting regions -

117 byte By .pcbrainbuster at 2007-11-20 11:43:13
Sup guys,<br/>How would you let a user select a region(create it) and then invert the contents?<br/>Thanks.