989 byte By
m0zzie at 2007-11-18 5:29:40
I've asked around so many places (IRC, other people, other forums, etc) on how I can change the color of a button WITHOUT using MFC, except they can't seem to grasp that "WITHOUT using MFC" part and keep reffering me to pages such as http://www.dev-archive.com/buttonctrl/ClrButton.html and...
789 byte By
mahanare at 2007-11-18 5:29:41
hi, As I failed miserably in working with CreateProcessAsUser(),now i am trying with CreateProcessWithLogonW() function.i included required lib and .h files according to MSDNClient: Included in Windows XP, Windows 2000 Professional.Server: Included in Windows .NET Server 2003, Windows 2000 Server.Un...
Hi , Can anyone clarify each of the following situations : A.dll and B.dll mentioned below are ATL/COM dlls developed using VC++ 6.0 1. We have a ATL/COM dll say A.dll instantiating another ATL/COM dll B.dll using CoCreateInstance. Once A.dll has completed using the methods of...
161 byte By
svv83 at 2007-11-18 5:32:39
Hello,<br/>How can I find out a workstation's cpu utilization (the various processes that are run) using win32 programming?<br/>Thanks,<br/>Vijaya
671 byte By
ranjan_j at 2007-11-18 5:32:41
Hi, I need to extract the information related to processes running in all user context even when I am not running in the administrator context. I am using OpenProcess call to get process handle. but this call fails when I am not in the administrator context and I try to open a pro...
Hello gurus, I'm dealing with some existing c++ code - a multi-threaded NT application. I have very little confidence in it's exception handling and I wandered what will be the best/easiest way to add some exception handling without digging into each and every module source code of this ap...
660 byte By
vgopalji at 2007-11-18 5:35:35
Hi All,Here, I want to replace the traditional Windows Logon Procedureslike Password based authentication with other mode of authentication process.Workaround:Would like to develop an application which has to replace the password based authentication with the smart card or external mode of authentic...
639 byte By
vgopalji at 2007-11-18 5:35:54
Hi All,Here, I want to replace the traditional Windows Logon Procedureslike Password based authentication with other mode of authentication process.Workaround:Would like to develop an application which has to replace the password based authentication with the smart card or external mode of authentic...
492 byte By
xargon at 2007-11-18 5:35:58
Hi everyone,I have a GDI question. I have an array of points representing a wave data that I want to display. However, I want to display it as a filled polygon. I do not know if you have played with CoolEdit or such wave editing software, but it displays the wave file as a filled polygon. Is there a...
1187 byte By
Mortis at 2007-11-18 5:36:03
I'm trying to make a list of thumbnails in a listview window. So far I can only make it work with resource bitmaps, when i try a hard coded jpg, i get get a blank image, with "hiya" under itIts probally something really dumb, but i just cant find it. If anyone could point it out i'd be ver...
hi folks,What I am trying to achieve is executing some binarycode on a remote NT/2k machine whose valid Admin/Passwd are with me. What I do is - WNetAddConnection2 to authenticate my self on remote machine- Open the Service Control Manager : OpenSCManager- Create a service & make it point to a bin...
Hi all,i want to know a generic way to get handle of a window on which the user is currently focusing(working)..iam using JOURNALRECORD hooks to capture messages (system wide) and the EVENTMSG member hwnd doesnot give us the handle...so wat is the other way around...i mean possibliy one generic way...
745 byte By
hawleyb at 2007-11-18 5:40:40
I'm new to PC programming so any help would be appreciated with this problem. I'm working on an application that requires me to verify and possibly set the audio drivers before starting the main program. I can already do this manually through the "Sounds and Multimedia Properties" dialog....
285 byte By
love2mao at 2007-11-18 5:41:03
e.g. test.avi (or something )<br/>I want to strip .avi part. The extention can be any other 2 or 3 letters combination. SO, I don't want to use CString::Remove() or CString::Replace()<br/>Is there a function specified for trimming extention of a filename string? Thank you!
541 byte By
Amn at 2007-11-18 5:42:27
We know and seen there is copying of files implemented in Windows Explorer - it copies files, or directories, a window pops up with "Copying files..." and some papers fly from here to there, along with a progress bar indicating operation status.I wonder if we can access and program this interface in...
I'm implementing spelling correction in an email client I'm writing when a user right clicks on a miss-spelt word. It brings up a pop-up menu with suggested corrections using:InsertMenu(hMenuPopup, 0xFFFFFFFF, MF_BYPOSITION | MF_STRING, MAKEWPARAM((WORD)ID_POPUP_SPELLING, (WORD)j), szAlter...
896 byte By
mahanare at 2007-11-18 5:42:38
actually The answe is "YES" onlyHi, I Have a specific requirement. I need more information about the source files of an .msi file. I need to do all this things through program (c++ or vc++) only. I read an article on how to extract files from a .cab file. But in the case where everything is embedded...
577 byte By
nihar15 at 2007-11-18 5:42:39
Hi,I am porting a 16-bit DOS code which uses the Interrupt 10hsubfunction 9 to Win32.I am using the Win32API function FillConsoleOutputAttribute(..) andWriteConsoleOutputCharacter(...) to replace Int10h( sub-func 9) whichwrites a character with attributes to the console.The 7th bit of the byte which...
303 byte By
pierre31 at 2007-11-18 5:42:56
Hi, I would like to write real time audio app.Using directx I can't go under ~25 ms..Or maybe I didn't suceed... who knows. So I'd like to know if it can be quicker using api or any other things I could be able to use...?And some links please...Thanks a lotPierre...
437 byte By
ranjan_j at 2007-11-18 5:43:28
Hi, I am facing a problem where I have a ping program which uses RAW sockets. Now my sendto call on this socket fails in scenarios where the pinging application is running in non administrator account. Microsoft says that for security reasons it will not allow this from windows 2K onwards....
464 byte By
xargon at 2007-11-18 5:43:52
Hi everyone,Can anyone point me to a pure WINAPI based tutorial, documentation or some source code on how to write DLLs in C++ that contain GDI functions.Basically, I want to be able to pass say the handle to a window from VB to this DLL and be able to draw on it.I do not need very complex examples,...
378 byte By
Gyannea at 2007-11-18 5:44:08
What happens if one calls a function in a class that starts a thread which then completes? I assume the thread is gone. Now next time one wants to run the function again, the thread has to be re-created. Will this cause some type of problem or is there something one should do upon thread termination...
373 byte By
SigEpUCI at 2007-11-18 5:44:55
I have a pointer (int*) that points to an array of elements.If i add the pointer to the watch window, as expected i only see the address of the beginning of the array. I seem to remember that there is a way to key the name in the watch window so it treats the pointer as an array and allows you to se...
1235 byte By
qwertq1 at 2007-11-18 5:45:37
Hello All!Hope someone can help me with my problem regarding printing.I have read all thread in this forum regarding printing and I have found a lot of different way to print out text but no one tells where to write all the stuff to make it work.I have made a dialogbase program and want to print out...
I have a USB interface modem. Everytime when I turn off the computer, I need to stop it first. And then it is safe to shut down the computer.Now I want to use a program to do this. Which function can I use?Please give me some hints or simple examples. Thanks!Regards,Freeman...
619 byte By
bb2003bb at 2007-11-18 5:46:41
Dear all,I wish to remember the view setting of CFileDialog in previous open such that next time CFileDialog appear, it is display in the previous selected view(style-detail view/thumbnail view/explorer view). I intended to save setting in a file, but now I don't know :1.) What I have to do as...
412 byte By
kmq4 at 2007-11-18 5:46:45
I am trying to make a C++ program, which can accept a wave file i.e a file with .wav extention for example abc.wav. I will read the wave file buffer by using the read function. then I want to save this file buffer with exact size of the wave file with a name starting with system date+Time for exampl...
hi Guruuus,I have one problem, i have selected text using coding. At the same time , i want to deselect the selction area.orselect the text without selecting color.To select a text , I have passed SendMessage(hwnd,WM_LBUTTONDOWN,0,lparam);lparam is combination of GetCursorPos(&pt); pt.x, pt.yanybody...
323 byte By
Sanai at 2007-11-18 5:47:13
i am using multithreading in my program but im unable to know when all the threads have finished their tasks ... and when they return to the main program so i can display that the program is now ready to exit or task completed ... and also how can i synchronise the threads so that i may not get any...
261 byte By
msanford at 2007-11-18 5:48:13
I am trying to figure out how to get a list of the directory names in a given directory. I have looked at all the faq's for searching for files with directories, but none seem to explain how to just get the directories. Thanks in advance for your thoughts.
299 byte By
waruna at 2007-11-18 5:48:34
I want to open a file with an selected application.<br/>Eg.<br/> sApplication = TextPad.exe<br/> sFile = C:\MyFile.txt<br/>How can I use ShellExecute to open this file with the application.<br/>If you can give me some direction to go that will be really appriciated.<br/>Thank you
280 byte By
waruna at 2007-11-18 5:48:36
Hi,<br/>I want to find what COM interfaces are implemented by browseui.dll . If you got any information, please let me know. <br/>Is there any way I can find out what COM interfaces are implemented by a DLL file. <br/>Any help really appreciated.<br/>Thank you
306 byte By
p8mode at 2007-11-18 5:48:38
Hello.For some reason I cant seem to find the definition a window handle (HWND), in MSDN , or the VC++ 6 headers. I thought it as just a (unsigned long) integer (pointer), but I cant seem to cast it to such. Can anybody please tell me where this structure is defined.Thanks in Advance.p8mode...
219 byte By
baldwin at 2007-11-18 5:48:48
Is there an API that I can call that will tell me what version of Windows is running on a remote machine? What about Service Pack Level?<br/>I need to determine if a server is NT 4.0 or W2k.<br/>TIA,<br/>-Jim
hi everybody:I'm reading Programming Windows Always see this : static TCHAR szAppName[]=TEXT("KeyView");I'm puzzled why "TCHAR" and Why "TEXT" and why not use standard c/c++ ?in MSDN it says " The TCHAR data type is a Win32 character string that can be used to describe ANSI, DBCS, or Unico...
How do I get the value from a slider?I tried:int ret = GetDlgItemInt(hwnd, IDC_SLIDER1, NULL, false);but all I get is 0. I'm pretty sure the slider is being set-up OK. I set the range from 0 to 1000 and the default value to 500. The bar is right in the middle when I open it....
Hai Friends; I am a new MFC Programmer.I need a help regarding Remote shutdown.Qn. In a LAN ,in one system I had logged in as a Network user with no admin rights.I have to shutdown a remote system in which i know a local user name and its password.How can ishutdown that system from my system. My Pro...
All,I need to be able to get the handle of a window by dragging a dropping an icon from my application's dialog box onto another applications window. (Very similar to the "find window" function of Spy++).Can someone please provide some insight into solving this?I'm using an MFC Dialog base...
201 byte By
watmore at 2007-11-18 5:50:44
TASK_FLAG_RUN_ONLY_IF_LOGGED_ON does not seem<br/>to be defined anywhere. Anyone know what's up with this?<br/>I want to use it with ITask::SetAccountInformation(L"", NULL).<br/>Thanks.
I'm creating a number of metafiles which may have an arbitrary frame size. They're layers of a printed circuit board. I create them on-the-fly so there's no way for me to know the frame size of them beforehand.I'd like to display them all at the same scale so I can overlay them...
Hi All.My problem is that I am trying to differentiate b/w Visual C' Command button, Checkbox and Radiobutton. my code looks like thatLONG lWndStyle=GetWindowLong(m_bHwnd,GWL_STYLE);int x;x=lWndStyle & (BS_PUSHBUTTON | BS_CHECKBOX | BS_RADIOBUTTON);switch(x){case BS_PUSHBUTTON:return "Command_B...
2498 byte By
xargon at 2007-11-18 5:51:35
Hi,I think I have hit the final roadblock in my bid to learn how to be comfortable with DLLs. I spend the whole of last night trying to figure this out, but to no avail.I wanted to create a custom window control which all it does is draws a rectangle and blits a bitmap in it. I did it without a DLL...
Hi,I wanted to place a ToolBar-CommonControl in a Window. I followed the description on the MSDN and everything went fine... until I pressed the maximize-button of the window:The Window has a initial size of 640 x 480, and when I press the maximize-button of it I expect the toolbar to resize itself...
463 byte By
VCDev at 2007-11-18 5:52:10
I don't want the user to activate another application window. As soon as the user selects another application window, the focus should come back to my application window. In other words, my application's window should always be the active/foreground window. Even if another application is s...
245 byte By
Somu at 2007-11-18 5:52:17
Hi,<br/> My application is using C++/Win32 APIs on Windows NT.<br/>Is it possible to take the snap shot of the process i.e. all the statistics that what it were doing,in what order threads were executed etc.?<br/>Regards<br/>Somu
Hi.I'm trying to get a snapshot of a window by sending it a WM_PRINT message.Why does the snapshot miss the window borders (and other parts as well) ?Isn't this way reliable, is it ?Then, how can I get a correct snopshot of a window which could be obscured by other windows ?Thanks in advan...
410 byte By
ktalinki at 2007-11-18 5:53:15
Hi, I am trying to program NT Lockout policy settings using NetUserModalsSet api and USER_MODALS_INFO_3 structure. But what I don't find is the setting api for the "No account lockout" setting in the Administrative Tools\User Manager\Policies\Account\Account Policies window, i.e completely s...
638 byte By
souldog at 2007-11-18 5:53:19
I would like to get the handle to the edit control of a combo box with the style CBS_DROPDOWN. Let me say that I am using VC 6.0 and this combo box is a CComboBox added to a dialog with the dialog editor.My attempt was to use pCB is a pointer to the combo boxCOMBOBOXINFO CBInfo;::GetComboBoxInfo(pC...
Hi all,iam writing an application which captures events using WH_JOURNALRECORD hook...now the problem is with keyboard messages i.e..multiple WM_KEYDOWN messages on single key press..it is due to repeat rate..iam trying to check bit 30 of LPARAM ..but the code is not working...can ne one tell how to...
541 byte By
mahanare at 2007-11-18 5:54:05
Hi, All.I want to develop a program for remote management of users on network(say it is based windows).What i want to do is: Supposing that I have the domain adminstrator authentication connect to a remote system(regarding this already some details are available on dev-archive) A...