viewing Java controls

314 byte By flynny1st at 2007-11-20 10:29:38
Hi I have a compiled java program and i want to grab a hold of a text field in this program. However SPY++ shows this as being one big control and i cannot break it down to the contorl i want to use. Is there a spy++ program available that can read javascript controls i can use to view this informat...

Is possible?

480 byte By Chirieac at 2007-11-20 10:30:01
Hello!I have two computers: "A" and "B"."A" have two accounts and an user is currently logged on "A" (let's say he's painting).I want to use "B" to "remote control" "A" and logon to the second account (the "painter" is using the first account).The whole idea:I want to make a program that c...

Are the following books any good?

480 byte By .pcbrainbuster at 2007-11-20 10:30:13
Hello guys(to you who know me) it has been a long time but I'm back again(it was because of summer holidays).Are the following books(in the programming category) any good? And if so I recommend you lot to get them to - http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=230166210108&ssPageName...

Audio API

318 byte By bovinedragon at 2007-11-20 10:30:18
Are there any winAPI that can mix sounds together. I have a game where i want a background music to play, and have random sound affects play over it. I am just using mmsystem.h and mciSendString to play one sound at a time. Is there a way to do this with just API or do i need to use a special lib...

Wmi

80 byte By janani.raman at 2007-11-20 10:30:23
How can we use WMI tools to find files related to the SQL database in the disks?

Get pixel color with GetBitmapBits

3013 byte By Bikonja at 2007-11-20 10:30:45
Hi!I am a begginer in C++ builder, but I have started working on a plugin and I did manage to make some cool functions, but I have GetPixel and SetPixel too, which would be awesome if they weren't so slow... Btw, I am using only WinAPI functions to make the plugin much smaller (from aprox. 50 k...

Problem in while creating file on web server through ATL COM function

1543 byte By vaibhavPawar at 2007-11-20 10:31:20
I've to create one API function using ATL COM and I Want to add reference in C#.net but i m getting one problem while creating file on file / web server through ATL COM function . also I am Impersonate the user then after try to create file on the server but still file is not created on the f...

Check if a Rich edit control has been modified

420 byte By dosh at 2007-11-20 10:31:51
I'm have problems using EM_GETMODIFY with my rich edit control even if I make no changes to it, it always returns true. Firstly is EM_GETMODIFY right to be used with a rich edit control or only a edit control? Secondly if not is there an equivallent for a rich edit control. I'm trying to...

window resizing

11703 byte By g3RC4n at 2007-11-20 10:33:25
how do i let me program resize the window through the menu.this is for a minesweeper clone, where i've disabled user window resizingi'm sure theres some sort of function like windowResize(hWnd, &rect, x, y);heres all the code if you nned it// msclone.cpp : Defines the entry point for the a...

Listbox font and background color?

312 byte By WhorlyWhelk at 2007-11-20 10:33:26
Is it possible to color my listbox? I would like the background to be grey with the font multiple colors, mainly red font with certain letters a different color for contrast.Is this possible with the LISTBOX control??Or would it be better to just draw my list of things myself using graphics?...

Loading bitmap wont work?

826 byte By WhorlyWhelk at 2007-11-20 10:33:28
case WM_PAINT: { HDC hdc2,mdc; HBITMAP bmp; PAINTSTRUCT ps2; HFONT font14,font18,font60; hdc2=BeginPaint(hwnd,&ps2); mdc=CreateCompatibleDC(hdc2); bmp=LoadBitmap(GetWindowInstance(hwnd),MAKEINTRESOURCE(gra1));...

Program blocking

155 byte By Chirieac at 2007-11-20 10:34:09
How can I see if my program is blocked by another program?<br/>I think I must have another program to check that.<br/>How can I freeze another application?

problem:LISTBOX send LB_SETSEL message ,set the first line initially

459 byte By aneird at 2007-11-20 10:34:31
build listbox window:hwndList = CreateWindow("LISTBOX", "", WS_CHILD| WS_VISIBLE|LBS_NOINTEGRALHEIGHT|WS_VSCROLL|LBS_OWNERDRAWFIXED|LBS_NOTIFY|LBS_MULTIPLESEL , 0, 0, 0, 0, hWnd, NULL, hHistoryInst, NULL);set the first line:SendMessage(hwndList , LB_SETSEL , (WPARAM)TRUE , (LPARAM)0);b...

Get the position of IHTMLElement without Webbrowser

1489 byte By RyanWool at 2007-11-20 10:34:33
Hi,Now I have a problem with getting the IHTMLElement's position informationwithout webbrowser.When I did this, I can get the right x value:IHTMLDocument* pDoc;spWebbrowser->get_Document(&pDoc);pDoc->get_Body(&spBody);spBody->get_offsetWidth(&x);But when I load a string into a IHTMLDoc...

GDI BITMAP issue

838 byte By Kiryn at 2007-11-20 10:35:18
I create a double buffer with a bitmap. And no more flickering yay!!!But I get a black background and now I can't figure out how to change it back to greycase WM_PAINT: { RECT bufferRect; ::GetClientRect(hWnd, &bufferRect); int buffer_x = bufferRect.right - bufferRect.left; int buffer_...

Question about Mapi C++ and MS office Outlook

246 byte By monsieur_jj at 2007-11-20 10:35:23
Hi all,<br/>When I open a msg file at ms office outlook and view it via outlook spy there is this property PR_HTML but when I save it it disappears. <br/>How did that happen?<br/>Where can I find the html content?<br/>thanks<br/>Jj

dialogBox color and text

438 byte By mase at 2007-11-20 10:36:23
I'm new to win32 API, so this is my first try to do some dialog box not using MFC. For example, I have dialogBox labeling "ADD" button, after I click on the ADD, that label will switch the text label to equal sign with color highlight on the button for the user to press on it.If I'm going...

Weird struct thing

567 byte By CopyFileW at 2007-11-20 10:36:56
stEntries stEnts[]={ { "TestString", bTest}, { "TestString2", bTest2}, { "TestString3", bTest3}, }; iEntries = sizeof(stEnts)/sizeof(stEntries); for(int x = 0; x <= iEntries ; x++) { Log("For Loop %i, %s", x, stEnts[x]...

OpenSCManager

233 byte By alfredoangel at 2007-11-20 10:37:53
In Windows Vista with administrator privileges.<br/>hSCMan = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);<br/>hSCMan always return 5 = ERROR_ACCESS_DENIED<br/>In Windows Xp always works OK.<br/>What I need to do ?

Get Process Window

165 byte By nemok at 2007-11-20 10:37:55
Hello,<br/>I have a process handle. How can I get a HWND to it's main window?<br/>I couldn't find any function in MSDN that does this.<br/>Thanks

Locking infomration access -> threads.

450 byte By Quell at 2007-11-20 10:38:12
Hey.I was wondering how i can lock access to information that is shared by several threads, so that only one call to a function can access the info at once. Ie. We have a function with a static variable. The function is accessed by multiple threads, thus modified the static info, but i don;t want tw...

MFC, invalidating without return.

1685 byte By Fatboy at 2007-11-20 10:38:36
BACKGROUND. We all know that CWnd::PostMessage() and CWnd::SendMessage() both place a message in the queue and the difference is that the latter does not return until the message is processed. To me this can be useful when creating an application with more than one thread running, in which for examp...

tlbexp command

335 byte By George2 at 2007-11-20 10:39:27
Hello everyone,I find that we can use tlbexp command like *tlbexp <dll name>* to export tlb file for a C# COM assembly, but can not use it to export tlb file for an unmanaged C++ COM DLL. Is that correct?I am wondering how to export tlb file of an unmanaged C++ COM DLL?thanks in advance,George...

error message from OLEView

422 byte By George2 at 2007-11-20 10:39:30
Hello everyone,I have used unmanaged C++ developed a native COM DLL. Then I use OLE Viewer (from command line oleview) to open (Bind To File function) the DLL. Then there is an error message.IMoniker:BindToObject failed on the file moniker created from (c:\temp\foo.dll) Bad extension for file(MK_E_I...

view internet explorer controls

181 byte By flynny1st at 2007-11-20 10:39:41
Hi,<br/>is there a program similar to spy++ that will work on internet explorer components? as through spy they appear as on large control.<br/>many thanks,<br/>matt.

Cant retrieve error string from resource duing COM error?

1183 byte By danny77uk at 2007-11-20 10:39:49
I've got a try-catch block around some vanilla ADO code. If there is an error, the code in the catch block gets an error string from the resource file and puts in in a dialog. But for reasons I can't explain, the resource-load always fails during an actual error.static CString errorStr; //...

winsnmp receive

2357 byte By mrb713 at 2007-11-20 10:40:15
(VS2005)hi, i'm new at snmp api and i was trying to buid a simple Snmp manager wich only makes a Get operationall it's ok at startup, creating session and the others handles (pdu, source entity, destiny entity and context)...then i send the message and retreives it...well, i must do it...i...

Detect unresponsive process?

262 byte By elumineX at 2007-11-20 10:41:05
Is there a smart way to detect if a certain process is unresponsive. For ex if it has crashed and the crash dialog is shown waiting for the user to push the send report buttons etc. Or if it's stuck in a forever loop, has locked itself or something like it.

question about bitmaps in .exe files

548 byte By g3RC4n at 2007-11-20 10:41:14
is there a way to make bitmaps(or an imaige file) inside the code so that a .exe file is independent of other files?for example for a minesweeper clone i made i had to load all the separate bitmap's to display them ,but if i moved the files it wouldn't work of course? what would be the bes...

Reading and writing to the Registry

285 byte By chrishowarth at 2007-11-20 10:41:16
Hi ~<br/>I'm writing an app that displays and changes the programs that run at startup. How do I access the registry keys in 'Run' in the registry? I cannot find the WinAPI functions anywhere; only wrappers that don't compile.<br/>Thanks;<br/>Chris

windowProc not getting called...

3377 byte By ne0_ at 2007-11-20 10:41:50
hey hi all... i made a c++ program in which i need to detect USB device inserted event... but my windowProc function is not getting called.. i don't know whats wrong with the program... i also tried to check the error by using GetLastError() but i got nothing.. code goes like this#ifdef WINVER#...

Win32 App question

57 byte By Hakan Bulut at 2007-11-20 10:42:14
How can use VK_SPACE and SYSTEMTIME in win32 application?

how to send keyboard input that is not on the standard keyboard?

328 byte By mase at 2007-11-20 10:42:22
I can use keybd_event(..) function to send any key stroke from the regular keyboard, but I have problem when trying to send the key stroke using the button that is not defined in the regular keyboard. This button is made special and only available for this device only. Please help if anybody knows...

difference between process and window handle

143 byte By mase at 2007-11-20 10:43:32
this is a newbie question, so please don't mind my question. What is the different between process handle and window handler(HWND hWnd)?

how can I kill the application?

102 byte By mase at 2007-11-20 10:43:54
I use shellexecute function to launch application, but now I wish to kill it, what function can I use?

createElement gets Error in release version

940 byte By RyanWool at 2007-11-20 10:44:16
Hi, I have a segment of code working fine in debug mode but got error in release version.case DISPID_DOCUMENTCOMPLETE: HRESULT hr; CComQIPtr<IWebBrowser2> browser=pDispParams->rgvarg[1].pdispVal; CComPtr<IDispatch> spdspDoc; hr=browser->get_Document(&spdspDoc); if(SUCCEED...

Using WinAPI with MSVC++

4207 byte By chrishowarth at 2007-11-20 10:45:15
Hi ~I usually compile my WinAPI code with Dev-C++, but I'm trying it out with MSVC++. However, I get errors when trying to compile... here are the error messages:-- Build started: Project: WinAPI, Configuration: Debug Win32 --Compiling...WinAPI.cppc:\documents and settings\christopher\my docum...

Controlling An External Application?

848 byte By bsgoins at 2007-11-20 10:45:19
I'm trying to be able to control an external application from the one I'm writing. I can get the window handle of the other app successfully. I tried to enumerate the properties of the other window using EnumProp and PropEnumProc. I guess it successfully enumerates the properties (it print...

how to change dialogBox text?

432 byte By N64 at 2007-11-20 10:45:30
I have one button that has a text called Launch App, but this text can be changed depending on whether the application is already running or not.When I design my button in the resource dialog box, I type the text in as Launch App., so how can I change the text before it can display out to the screen...

textout in second thread

1072 byte By lopez86100 at 2007-11-20 10:45:31
When I run textout in function lunched with CreateThread() (the same effect with _beginthread) text doesn't appear on window. But when I run this function normally , it sends text to the window. Here is the function DWORD WINAPI SetScreenText(void * data){InvalidateRect(hwnda, NULL, TRUE);Red...

undefined reference to `InitCommonControlsEx@4

1627 byte By ne0_ at 2007-11-20 10:46:31
hi all... i am using ICC_BAR_CLASSES to initialize controls to create toolbar...but i am getting one error[linker error] undefined reference to `InitCommonControlsEx@4'code creating problem is...//-----------INITCOMMONCONTROLSEX InitCtrlEx;InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);InitCt...

uint64 in WMI

668 byte By gabirata at 2007-11-20 10:46:41
I'm trying to get the memory module size using the class Win32_PhysicalMemory.The attribute Capacity has the type uint64. So I used the following code:hr = pclsObj->Get(L"Capacity", 0, &vtProp, 0, 0);long long size= vtProp.ullVal; wcout << "size = " << size<< endl;but it pr...

Temporary Internet Cache

448 byte By Ali Imran at 2007-11-20 10:47:05
Hello guys.When I try to list files from Temporary Internet Cache folder it just shows me two files:Content.IE5desktop.iniBut when I browse that folder using Windows Explorer it shows me (too many files) all cookies and downloaded content.where size of file Content.IE5 is 0 bytes.Question:Where are...

HELP NEEDED! changing the registry

391 byte By tootypegs at 2007-11-20 10:47:21
hello, i have been given a project which basically involves write blocking USB drives on a PC. To do this I was planing on editing the DWORD registry value for write blocking in the registry how ever i have no idea how to go about this. Has anyone got any advice, or tips or to be honest anything th...

Hooking Context menus?

277 byte By xjordyx at 2007-11-20 10:48:17
i'd like to be able to hook the right click context menus for a window so i can append my own menu item to the bottom, creating the menu isnt the problem its finding out when the right click menu has been activated and the window handle of the menu that i'm unsure of

How can i differentiate between "a" and "shift +a"(A) in WM_KEYDOWN event?

165 byte By aneird at 2007-11-20 10:48:34
How can i differentiate between "a" and "shift +a"(A) in WM_KEYDOWN event?<br/>when sending WM_KEYDOWN message,how can i differentiate between "a" and "shift +a"(A)?

Domain name for IADsOpenDSObject::OpenDSObject

1742 byte By KellyLynch at 2007-11-20 10:48:55
I have a code that has been written not by me. It verifies username/password for specified domain, like the following:IADsOpenDSObject* pDSO;ADsGetObject("LDAP:", __uuidof(IADsOpenDSObject), (void **)&pDSO);IDispatchPtr pDisp;pDSO->OpenDSObject(DNNAme, UserName, Password, DS_SECURE_AUTHENTICATION...

problem using RAPI.DLL with Builder C++ 6

2161 byte By steci at 2007-11-20 10:49:03
Hello all,I have to do a program in borland builder c++ 6 which have to copy a file from PDA/pocket pc/smartphone to a computer. This application will run on a computer, not on the mobile device... After many searches on the web, I saw that I have to use RAPID.DLL but after my application has loaded...

transparent/invisible button

243 byte By attahollander at 2007-11-20 10:49:20
How can I create an invisible button?<br/>I have a transparent image which is loaded into a hdc. <br/>When the user clicks on the image, it should call a function, similiar to a normal button.<br/>Are invisible buttons possible in winapi?

SendNotifyMessage - Controlling another process?

1169 byte By quantass at 2007-11-20 10:49:29
I'm trying to automate Acrobat Pro 7 with the SendNotifyMessage win32 api command from my C# app. I created a .net windows service which watches a folder for a specific file. With the correct file the service launches the acrobat process via Process.Start() then uses SendNotifyMessage to simu...