Hi ~I've being trying to implement an essential dialog into my program and it won't work. MENUSTYLE is the name of my dialog. Here is my main.cpp file:/*{ 2007 Elixir Software. Menu code Milonic.com*/#include <windows.h>#include "defines.h"const char g_szClassName[] = "myWindowCl...
Hi all,I am inspecting a crash dump from a customer and the current worker thread fails with the following call stack:> ntdll.dll!ExpInterlockedPopEntrySListFault() 09c3f7f4() ntdll.dll!RtlAllocateHeap() + 0x14e ntdll.dll!RtlAllocateHeap() + 0xe2 msvcr71.dll!_heap_alloc(unsigned int si...
689 byte By
polarsun at 2007-11-20 8:39:23
Hi All,I have ActiveX control displaying list of installed Windows hotfixes in a browser window. Currently it uses HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix key and works fine on Windows XP and older.But on Vista the key does not exist. I've found 2 ways to implemen...
232 byte By
hansipet at 2007-11-20 8:39:48
Hello,<br/>for a debugging framework I need a high resolution time. If possible with a accuracy of less than 1 ms. The time should be an absolute time..<br/>What is the best time for that?<br/>Best regards<br/>Hansjrg
Hi, i am creating a radio application which is able to play songs according to channel selection. i want to show an animated picture while song are playing . picture is just same like in winamp right side top corner Up and down moving bars.. how can i implement that winamp moving bars in my applicat...
Hi,I have an array of windows i've hooked into each has an array of buttons to be added. i'm adding the buttons and the mouse hooks ok.the problem is if i add multiple buttons then only the last button is entering the callback function.is it possible to add more than one mouse hook to a c...
133 byte By
yaniv_av at 2007-11-20 8:40:39
Hi, <br/>How can I retrieve in my C++ win32 app (non MFC!) the active logged-on user name (not ID - name string)?<br/>10X !
1015 byte By
phalaris at 2007-11-20 8:40:48
Hi everyone, this is my first post here..The problem I have is this:I'm trying to pass a multi-byte string into a function that expects a unicode string. I'm using VS 2005 (Developer), and when I try to change my configuration settings for mutli-byte encoding, the program crashes..The alte...
hiplease look at http://support.microsoft.com/kb/200174i can not compile this codewhat is the "#include <edk.h>"what is : Mapi32.lib Version.lib Edkdebug.lib Edkmapi.lib Edkutils.lib Addrlkup.lib Edkguid.lib Rulecls.lib Msvcrt.lib please help me...
1681 byte By
rutu at 2007-11-20 8:41:24
hi, I have downloaded a source code from SWFTOOLS for converting jpgs to swf. This code is compiling but it showing some linking error. jpeg2swf.obj : error LNK2001: unresolved external symbol _swf_SetRGBjpeg2swf.obj : error LNK2001: unresolved external symbol _swf_InsertTagjpeg2swf.obj : erro...
Hi,<br/> i cant able to load a .gif file to a picture control...<br/>plz help suggest some solution.
723 byte By
yaniv_av at 2007-11-20 8:42:31
Hi, How can I set (change) an attribute within an XML file via MSXML ?suppose the XML have an entry like: <user> <id name="aaa"> </id></user> and I want to change the attribute value "name" from "aaa" to "bbb".suppose I have the following code:IXMLDOMNodePtr XPathParser::...
520 byte By
SSkillZ at 2007-11-20 8:42:41
Hello, I already have a C\C++ app that has a win32 API only based GUI, now I want to add winsocks sockets to it, but the GUI functions block,Should I use a multithreading to solve it (Thread for Sockets, and thread for GUI)? and if so is there a good guide/web site that explains them in C\C++?Or use...
203 byte By
mcnamara at 2007-11-20 8:42:52
Hello<br/>I'm using GetProcessImageFileName api to get executable path but GetProcessImageFileName returns the path in device form. Can you please tell me how to convert it into drive letter? Thanks
651 byte By
sader at 2007-11-20 8:42:53
Here's the situation.I have long string with fiew linebreak simbols '\n' but I can't show that string right way inside StringGrid cell.Instead of geting that*------*| First line || Second line || Third line |*------*I am geting this*------*| First lineSecond ||...
nonononono
922 byte By
Corpse at 2007-11-20 8:43:27
HeyI want to read every file in a directory and cut it out afterwards. Therefore I want to use FindFirstFile. My code looks like the following: string path;string fullPath;HANDLE hFile;WIN32_FIND_DATA fileInformation; //FILE_PATTERN = const string "kev*"//baseDirectory = stringpath = baseDirectory...
Man this stuff is confusing. It helps me to understand if I know what the letters are supposed to mean.<br/>For starters can someone tell me what "WPARAM", "LPARAM", "LPSTR", and "IDC" stand for? <br/>:)
11300 byte By
ne0n82 at 2007-11-20 8:45:00
hello everyone im trying to compile a small DLL and im including imagehlp.hi get a very long list of errors apprently stemming from wincrypt.h does anyone have any info on this ? heres the errors1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\wincrypt.h(37) : error C2146: synt...
Hi,I want to disable the double click event on the title bar of a window i've hooked into. (the reason i have done this is because i dont want the user to be able to minimize the window, which i have set to be maximized).I hooked into the window WH_MOUSE events no problem. However the WM_LBUTTO...
Anyone have an example of how to add an item to my combo box list and also how to read what is the text in the edit part of the box?I am very new to this. Here is my combo box. HWND combo1;switch(message){case WM_CREATE:...combo1 = CreateWindow( "COMBOBOX","test",WS_VISIBLE | WS_CHILD...
228 byte By
skapta at 2007-11-20 8:46:45
How shall I read a disk file without loading the whole file in the memory. I am trying to read a big disk file without over burdening the user memory space .<br/>I would like to read it in chunks. Any ideas <br/>Regards<br/>Mike
870 byte By
kabilius at 2007-11-20 8:47:10
Greetings all,I am trying to set a maximum size of my window, but I am running into an error.Here is my window code: hwnd = CreateWindowEx( WS_EX_CLIENTEDGE, g_szClassName, "Count", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 200, NULL,...
hi there<br/>1. tell me a good book/resource about API.<br/>2. i've made a mouse hook but i don't know how to intercept messages from a different window. I know the handle under my mouse pointer but i wish to listen the messages from that window. How can i do that?
I'm using an application to do a very tedious mundane and boring job for long periods of time, and so I'm trying to write a program that will do it for me. I've managed to get the app's HWND using EnumWindows(), and I know sending a message to the app works because WM_CLOSE works...
901 byte By
kabilius at 2007-11-20 8:47:51
Greetings,I am having a problem with the color of my static control.The main window has a white background color, and the static control has a "read only" color. My goal is for the static control to blend in, so I want to change the static control's color to white. I tried to use SS_WHITEFRAME...
632 byte By
mhansen at 2007-11-20 8:47:58
I have written a nonMFC windows application which can generate a metafile for pasting into MS-Word, MS-Excel I would like to be able to paste into these applications such that I can right click->My application-> edit to launch my application and edit this object and then paste it back on cl...
208 byte By
akhin at 2007-11-20 8:48:02
If I have 2 windows on my computer - on drive C: and drive D:. <br/>I want to run my application from drive C: ,and access to registry on Drive D:<br/>How can i achive this ?<br/>THANK YOU VERY MUCH
In the MSDN they have the WM_TAB message but it says that is undefined when I try to use it.<br/>I also tried VK_TAB, but no avail.<br/>I need to be able to TAB through buttons and edits. <br/>Any ideas? ^^
684 byte By
jalway at 2007-11-20 8:48:37
Hello,Im trying to get sound input from any typical Windows source, for instance, Windows Media Player, Real Audio, a mic, a Youtube.com Video, etc. I tried using waveInOpen() from Windows Multimedia library, and was only able to figure out how to get microphone input from the soundcard.How can I...
http://www.dev-archive.com/Cpp/I-N/ieprogram/article.php/c4379/I want to use this in my program.However I don't want the webbrowser part to be the full size of my window. There is a tiny little change I need to make in the DLL to change the position.webBrowser2->lpVtbl->put_Left(webBrowse...
Hi, I have an edit control and it is read only edit control. I changed its text color so whatever i want to display in this edit control i display the text in according to my colcor selection. but the thing i want to do is i want to disable the text box so that cursor will not display in the read o...
Hi,I want to get hold of a window handle from an external program. The way i am doing this is to enumerate the child windows of the window i've hooked into.I know that the handle i need is child 39. To get it i simply iterate through til the 39 element in the EnumChildProc and return the handle...
62 byte By
akhin at 2007-11-20 8:50:07
What is the path and name of physical file to store registry ?
224 byte By
akhin at 2007-11-20 8:50:08
How can i access PS/2 ,for ex capturing datas of mouse : will it require upper-level filters to PS/2 mouse device drivers or can i do it via user-mode with IOCTLs or perhaps ReadFile/WriteFile ?<br/>Thank you very much
547 byte By
tim_moor at 2007-11-20 8:50:18
I use Microsoft Win32 API to play wave audio. I have two questions may be someone can help me.1) How can I control volume? Function waveOutSetVolume() works, but it does not control absolute volume level. There is master volume control somewhere. How to change master volume?2)My applica...
791 byte By
messycan at 2007-11-20 8:50:31
I was just wondering how you guys do it to keep track of data in your win32 application. do you create all the data in the WinMain, then keep track of it by passing it to lets say, the message pump? The design has my very confused on how I should start a project. Lets say I have a struct in my pro...
I want to exit and pop up an error at the start of winmain.<br/>There is no window created yet.<br/>Can I do it somehow?
Hi,In my application i have one dialog and it has no title bar. so i created one minimize button on that dialog to minimize my application.but when application is up and when i press the appication toolbar button i want my dialog to minimize so how can i maximize and minimize my application from too...
489 byte By
akhin at 2007-11-20 8:52:08
I want to develop a program with features below : 1. The usb mass storage device should not be recognised by the windows operating system as a removable storage device at all. i.e. in the standard windows explorer the new removable drive should not be visible2. But my program must recognise it , an...
425 byte By
kabilius at 2007-11-20 8:52:20
Greetings,I am trying to make my application to play sound. I know there is a PlaySound() function which can easily accomplish it. However, I realized that this method requires a music file to exist on the computer.I am wondering if it is possible to embed the music file into an application, so I do...
3145 byte By
akhin at 2007-11-20 8:52:30
I am trying to do it with MSI , but i do something wrong in the code below , publisher names dont always match with product names , can you browse it ?Function just fills struct :#define VERSION_LEN 16#define CODE_LEN 39#define NAME_LEN 256#define PUBLISHER_LEN 256#define PATH_LEN 256#define MSI_LE...
I am developing virtual printer driver In window vista operation system which run under spooler service.Now i want Process List of currnt login user from my this printer driver Or we can say that i want Process list of current login user from window service i got the current user session id from WTS...
Hi, In my application i have a main dialog without title mar so i explecitly created one close button and one minimize button on thta application is working well but i want my dialog to get minimized from tool bar when user click from tool bar it get minimized and when i click again it restore it it...
Hi,I've added a couple of buttons to an external program move them accordingly when the window resize event WM_SIZING is called. this is working fine and my coords are changing as i want them. However when i resize the window the buttons aren't repainted straight away. they remain in the o...
does anyone have an idea about DACL on windows file systemi used "GetNamedSecurityInfo" for getting the dacl info but every time i get null value for sidOwner , sidGroup, DACL.its shows some value for the security descriptor but when i try to get DACL info byGetSecurityDescriptorDacl() it shows NUL...
533 byte By
yaniv_av at 2007-11-20 8:53:32
Hi, How should I use mutex to protect a code/resource between processes ?I mean, how to call the "Create" function in order to perform processes-safe and not onlt threads-safe...the function have 3 parameters, but I don't realy understood what should I use for the processes-safe.HANDLE CreateMu...
(I am assuming that a Combo Box can be text-only?)Hi ~I am trying to include in my dialog box a Combo Box for selecting a transition style for the Javascript menu my application generates. I cannot find the data anywhere on MSDN.I create my controls through the function where I type in a class name...
666 byte By
mcnamara at 2007-11-20 8:53:48
Hello,In my program I have a variable which stores hwnd of a window. In order to close that window I use Postmessage and WM_Close but there is a problem. When the program is launched second time hwnd of the window that was closed is the same and the window is not shown at all. Consequently IsWindowV...
133 byte By
akhin at 2007-11-20 8:54:00
Do you know a method or a ready big code snippet to convert DWORDs defined in winerror.h<br/> retrieved by GetLastError, to strings ?