274 byte By
kpartha at 2007-12-5 22:13:43
I am trying simple task manager where I want to display the list of the process .<br/>I would like to display each process's command line argument.<br/>How can I get the process command line arguments. I have the process handle.<br/>Thank you in advance.
Hi Guru,Assuming I have an edit box and "send" button. After typing something in the edit box, I can send it either pressing ENTER or click SEND button.How can I implement the "Pressing ENTER" action, without clicking SEND button ?Meaning that Pressing Enter after finishing typing in edit box will h...
810 byte By
AbinLee at 2007-12-4 10:39:26
Hi..I wanna get the smbios structure in Win32 environment (95-Xp)I heard four methods to do this:1. Use direct memory access. Smbios information stores from 0x0000f000, we can parse this area into useful data. But it can't be implemented with 32bits application in NT+ envirnoment because of OS&...
I have a perfectly working namespace extension to windows explorer. Now I want the right window (The shellview) to be split into two rows (dynamically) and filled with two listviews in the panes. I've found SplitterWnd does this in a dialog-based program but here all I have is the IShellView in...
i currently doing this multiple inheritat progam but it does not seem to complie even though errors seem the non existance. or maybe i just too dumb to spot them.<br/>file is attached, your help will be blessed!
What is difference between call by reference in c and call by reference in c++?
I just wrote a program and would like a better way of outputting text to the screen. I used to fool around with wsprintf quite often, but that's quite unsafe considering that a buffer overflow can easily occur. I tried to use the StringCbPrintf and wnsprintf functions, but unfortunately, none w...
579 byte By
George2 at 2007-11-25 11:50:03
Hello everyone,I am using Visual Studio 2005 to develop C++ DLL (in-process COM). There is a setting in Linker --> Input called Module definition file. This setting makes me confused,1. I have tried that if input a file name (.def), then the generated DLL be larger than the time when we leave the...
Hello, <br/>Does anyone know of any decent tutorials on the subject of using interrupts in windows XP?<br/>Is there a particular reason why none of the API programming tutorials I read, mention the use of interrups?<br/>Thankyou<br/>Regards Newbie
Waz up guys,<br/>How would go round making things like circles(Ellipse()) and rectangles(Rectangle()) transparent so that only their borders are visible?<br/>Thanks.
317 byte By
genossa at 2007-11-25 11:48:57
Hello everyone!Have a couple of tricky questions here1. Is there a way to get the vendor name of the installed PnP monitor?2. Is there a way to get the vendor name of the installed PnP monitor having its Vendor ID and Product Identifier from the EDID data block?Thanks,Gennadii...
580 byte By
thomus07 at 2007-11-25 11:48:14
Dear brothers,I am new to win32 programming.I have used NetQuerydisplayInformation to retreive infomation about users and groups. I could retreive all details of users of my local system or server using NET_DISPLAY_USER . But the NET_DISPLAY_GROUP structure could not give the full group details of...
410 byte By
Quell at 2007-11-25 11:48:00
Hey.I was wondering how to id say a tree ctrl in another program, and then query some information from it? I was thinking about injecting a DLL into the running process but i am not sure where to get the documentation for controls such as ListBox, to get the currently selected item. I was unable to...
392 byte By
mase at 2007-11-25 11:47:58
I just finished searching the threads and I find that I have to use InvalidateRect to repaint the textout, which it works if I have only one line of text displaying, but I have 5lines of texts so when i drag that window displaying texts off the screen or cover it up by another window, my texts get e...
707 byte By
dentiol at 2007-11-25 11:46:34
I am trying to avoid screen blinking so I tried this code: hDC = BeginPaint(hwnd, &ps); HDC memoryHDC = CreateCompatibleDC(hDC); HBITMAP hMemoryBmp = CreateCompatibleBitmap(hDC, 700, 700); HBITMAP hOldBmp = (HBITMAP)SelectObject(memoryHDC, hMemoryBmp); // // // painting...
605 byte By
George2 at 2007-11-25 11:45:37
Hello everyone,I asked a related question about when DllRegisterServer is called and my question is answered. Now I am thinking that when DllUnregisterServer will be called?It is reasonable to understand that during installation process or when we set Register Output to Yes in Visual Studio 2005, du...
211 byte By
ali_5680 at 2007-11-25 11:45:17
hey..<br/>i am using C++ (wxWindows for GUI)--I have an image file in RAW format ...i have read the file into a 2-D array, <br/>how that data is to be used to display the image on a control?<br/>thanks
653 byte By
George2 at 2007-11-25 11:44:05
Hello everyone,I am wondering when function DllRegisterServer will be invoked? I am using Visual Studio 2005 to develop an in-process native (unmanaged) C++ COM. I am wondering when it will be invoked?1. During the build process or during the DLL initialization process?2. I find this function only w...
196 byte By
Lazze at 2007-11-25 11:43:22
Hi<br/>I'm looking for a method to find out the users screen resolution when starting the program.<br/>Anyone have any ideas about how to find this out?<br/>Thanks<br/>// Lasse
Sup guys,<br/>How would you let a user select a region(create it) and then invert the contents?<br/>Thanks.
289 byte By
_uj at 2007-11-25 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?
939 byte By
mase at 2007-11-25 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...
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...
Sup dudes,<br/>Isn't there any default for those dialogues? Its anoyying to type down all the info.<br/>Thanks.
1721 byte By
gcsaba2 at 2007-11-25 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...
491 byte By
goobers at 2007-11-25 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...
247 byte By
Pravish at 2007-11-25 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??
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.
914 byte By
verbal at 2007-11-25 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...
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...
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...
811 byte By
George2 at 2007-11-25 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...
572 byte By
Fester at 2007-11-25 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...
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...
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....
18 byte By
aneird at 2007-11-25 11:39:21
how to write code?
210 byte By
mase at 2007-11-25 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?
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)...
627 byte By
kteegala at 2007-11-25 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...
248 byte By
aneird at 2007-11-25 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?
703 byte By
George2 at 2007-11-25 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...
1041 byte By
Ali Imran at 2007-11-25 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...
308 byte By
George2 at 2007-11-25 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...
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...
1164 byte By
kvk at 2007-11-25 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...
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...
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...
397 byte By
kabilius at 2007-11-25 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...
1118 byte By
gbrooks3 at 2007-11-25 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...
544 byte By
George2 at 2007-11-25 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...