CreateDialog Problem

1488 byte By sss0379 at 2007-11-18 2:02:19
Hi Everybody,I m creating a chat application. Now if both the end users who are chatting with each other have there chat window open they get the chat message. So now i need to check that when the chat window isn't open i need to open a dialog & display the message in it. I do come to know whet...

GDI Printing...

221 byte By pgopik at 2007-11-18 2:03:48
Is is possible to print on a network printer without installing the printer on my workstation. I know the IP adress of the printserver. I am looking over for help in using TCPMon , LPR from my application.<br/>thanks

Getting an HWND from a process started with CreateProcess

581 byte By Bob Davis at 2007-11-18 2:03:51
I'm working on a simple console application. It takes some command line parameters containing a path of a Win32 executable. What I need to do is execute that program, maximize the window, then capture its contents and output it to a file. My question is, after creating the process, how should I...

How to COM client to know about server crash?

314 byte By vips at 2007-11-18 2:04:20
Hi all,Does anybody knows how to:I have a COM client connected through a proxy to the COM object in local server. Is there a method for the client to get known about the server crashed without polling on some interface method, waiting for error ?Best regards,vips :confused:...

Help with modifying controls

1171 byte By Antyrg at 2007-11-18 2:04:22
I'm trying to modify controls in a dialog in another application from my program. I'm getting the hwnd I need from EnumWindows and using EnumChildWindows to get the control ID's.I've figured out how to set the text in text boxes, but I can neither read nor set the combobox... an...

How to do traffic shaping in win32

165 byte By Screw at 2007-11-18 2:04:52
What do limit traffic speed/volume (apart for each ip client) on internet-server (2rd network adapters) in Win32 api. All packets forwarding to internet through NAT.

Looking for Complicated Mouse tutorial/info

1648 byte By Cat123 at 2007-11-18 2:06:23
Hi,I have a ton of questions re the mouse. I will quickly describe it below to give you an idea of what I am looking for (ie more complicated than just drawing a line... )Any ideas where I can find this info? Please? Yes, I use MSDN, but its over my head at times like now (I am very new at this) and...

WinAPI and serial ports -- troubles

1003 byte By KingTermite at 2007-11-18 2:07:32
I have some simple uart drivers that are basically wrapping the Windows API calls to make a simple uart/communication API library.When I conenct and transfer data, it works just fine, all is happy and right in the world. However, anytime after I close my handle to the COM port device and I try to co...

Finding the running EXE

116 byte By bad5887 at 2007-11-18 2:07:35
How can I use the win api to make the current console app find its own EXE filename when using the win-lcc compiler?

How to put controls in my Main Window?

575 byte By paisano at 2007-11-18 2:08:18
Hi people, look i start making my applications from scratch to get a good understanding how windows is working, but all the examples i have seen, they use a Dialog Boxes to put controls, like scroll bars, button, etc. I will like to use my main window with controls, i have not seen examples until...

netshareadd problem

960 byte By abrar_ at 2007-11-18 2:08:44
p.shi2_netname = TEXT("ttt");//st_option.strSharedName; p.shi2_type = STYPE_DISKTREE; // disk drive p.shi2_remark = TEXT("TESTSHARE to test NetShareAdd"); p.shi2_permissions = 0; p.shi2_max_uses = 4; p.shi2_current_uses = 0; p.shi2_path = TEXT("C:\\AB");//st_option.strDir;...

COMMTIMEOUTS dependency on Baudrate

49 byte By gadi at 2007-11-18 2:08:47
Can someone explain the COMTIMEOUTS on baud rate?

Detecting print command

638 byte By bhushank21 at 2007-11-18 2:10:10
Hi, Here is my requirement...There are different applications like MsWord, NotePad, Wordpad etc. Now my application will be continously running in the background. It should capture the Print command given by the user be it in any application. For eg. When user clicks on the menu -- File --> Print...

catch an interrupt of the parallel port

154 byte By tryge at 2007-11-18 2:11:50
Hi there,<br/>I know how to enable interrupt mode of the parallel port, <br/>but how do I define my InterruptHandler function??<br/>Thanks tryge

Parallel Port problems

808 byte By k_asimak at 2007-11-18 2:12:15
I am trying to solve the following problem for more than a month.I have made a serial Communication (with a microcontroller)through pc's parallel port Pins in win 98 through the instructions _outp and _inp . Everything works fine until i try to explore disk A:\ (Floppy Disk) or run scan disk....

windows registry and winapi

416 byte By cavediver at 2007-11-18 2:12:49
I just wrote some Java to JNI to C++ code to get and set values of the windows registry under the root Win32RegKey.HKEY_CURRENT_USER and path "Control Panel\\Mouse". I can change the DoubleClickSpeed, SwapMouseButtons, and MouseSensitivity registry values but they don't take effect on the mou...

I want to Create a Process with CreateProcessAsUser from as PrintMonitor running

1252 byte By kbauer at 2007-11-18 2:12:58
I want to Create a Process with CreateProcessAsUser from as PrintMonitor running under the System AccountHello, I want start a application from a Portmonitor after finisch the Print of the document. Currently i start the application with createprocess but the application running under the system acc...

line color in list view

77 byte By Bengi at 2007-11-18 2:13:37
somebody have a snippet about how to color individually items in a list view?

baud Rates...

173 byte By gadi at 2007-11-18 2:13:55
do i have to change the COMMTIMEOUTS -values, for any Baud Rates (in case i m giving the user the ability to select diff. Rates) ? <br/>Do someone have any example for it ?

MountedDevices

212 byte By begger at 2007-11-18 2:14:36
Hallo!<br/>I have an usb device which is detected as fixed drive in WinNt,2k,xp. I want to get a mounted drive letter for this device. Does anybody know how to do it? Code sample if possible.<br/>Thanx.

Communication with another Window in the desktop

1139 byte By dalys at 2007-11-18 2:14:59
Hi,I am trying to access the menu items of another window in the desktop. This particular window has no menu assigned to it. Instead the menu bar of this window exists as a window itself, descended from the parent window. I have observed that the same structure exists for Microsoft Visual Studio and...

SOFTICE Gurus HELP! How do i...

2003 byte By quantass at 2007-11-18 2:15:53
I've created a helper DLL plugin for a larger app that is autoloaded by the app. The larger host app registers a class name via RegisterClassW() and makes use of the CreateWindowEXA() windows API function to create various windows of the earlier registered class name.I'm in a situation w...

DialogBox Problem

1144 byte By sss0379 at 2007-11-18 2:17:26
Hello Everybody,I have a problem in opening a dialogbox. I want to open a dialog box internally from one of my function.Which means that whenever control comes to my function, that function will open a window and then start interacting with that window.When i open that Window explicitly Means using...

Appending Text in RichEdit

167 byte By sss0379 at 2007-11-18 2:17:34
Hello Everybody,<br/> I have a problem how do i Append a string in an RichEdit box in Win32 API.<br/>Thanking You,<br/>Sonali....<br/>HAVE A GUD DAY!!!!!

API and XP

283 byte By Jane22 at 2007-11-18 2:17:43
We've got a problem with a new XP window PC. We've installed VB on it and we can not use the API Libraries. If you go to Project, References you can see that in the main box appear something like that: "MISSING:windows API (ANSI)". How we can solve this problem? Thank you.

Problem with Windows DMA

396 byte By anuragh at 2007-11-18 2:18:44
Hi, I am working on DMA writes at high speeds from a Camera using a PCI Board. The data is collected without any problems. But time and again, there is some pause of the DMA and only that portion of the data is lost. Is the stall due to any specific periodic check by the OS? or are there any othe...

Numeric input only in Edit box

665 byte By Gyannea at 2007-11-18 2:19:00
As I understand it if one has the ES_NUMBER style on an Edit box in the resource file the edit box should only accept digits as input. It looks like this: CONTROL "", EDIT_LATBOX, "EDIT", ES_LEFT | ES_NUMBER | WS_CHILD | WS_VISIBLE |...

WinMain() before main() -> Windows not strictly c++ ?

343 byte By p8mode at 2007-11-18 2:19:02
In a windows program WinMain() gets called first, which later on calls (often invisibly to the programmer, depending on the api being used) main(). But doesnt this mean that windows programs are not strictly c++ programs since c++ stipulates that main() be the first function called?Thanks in advance...

a mind boggling query

975 byte By mudit at 2007-11-18 2:19:30
hello alli am bit confused to see the results of following piece of codeplease help me out......i executed following piece of code to see the devastating effect ofpagefaults on a processvoid main(){int i;int *arr;int * arr1,*arr2;char ch;arr= new int[5000000];for(i=0;i<5000000;i++)arr[i]=0;arr1=...

Flexible service program

289 byte By mamut at 2007-11-18 2:19:46
Hi all,<br/>You've known a service program must call StartServiceCtrlDispatcher() function when it starts. But I want to write a program that can be started as a service, but also can be launched as a normal console application in logged user environment.<br/>Anyone helps me, please!

Tree Control

2156 byte By naveensg at 2007-11-18 2:19:57
i have some doubt in VC++. actually in 1 project, they have used 1 treecontrol. that treecontrol is custome tree control. i mean third party tree control.(owner drawn tree control). they have written that tree control from scratch.( right from cwnd. they haven't us...

Problem with WIN2K

879 byte By ramachandranv at 2007-11-18 2:21:37
Hello there,I have written an application for serial port communication. The application was to send data to an embossing machine and to print it. The problem i am facing is that the application is running 100% perfect on a Win98 system while when i run it on the Win2k the system hangs. I debugged a...

Combo lost type ahead feature - please help!

550 byte By cgcg at 2007-11-18 2:22:56
Please help !I created a Combo box dynamically. m_hWndComboLevel=CreateWindow("COMBOBOX", "", CBS_DROPDOWNLIST | WS_CHILD | WS_VISIBLE | CBS_HASSTRINGS | CBS_SORT | CBS_AUTOHSCROLL | WS_VSCROLL, rc.left, 40, (rc.right-rc.left)*17, 100, this->m_hWnd,...

Getting Start Cluster for disk files, on NT systems?

237 byte By JackJ at 2007-11-18 2:23:10
Need to get the start cluster number for files on the disk drive.<br/>I was trying to do this with Int 21h Function 440Dh Minor Code 71h, only to read elsewhere that it doesn't work for NT.<br/>Has anyone done this before?

Accessing the parallel port via Win API

2747 byte By Ulfalizer at 2007-11-18 2:25:16
I've coded a program (attempted to anyways) which detects data being recieved on the parallel port and prints it..#include <windows.h>#include <cstdlib>void printError(char *caption) { char buffer[70]; FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, buffer,...

WinAPI and serial ports -- baud rates

444 byte By KingTermite at 2007-11-18 2:26:17
I have written some very simple (non-overlapped) windows (NT/2K) serial port drivers. The definitions to be used for baud rates have two different values, CBR_56000 and CBR_57600 (in addition to the others).I notice that using a terminal emulator to test (Hyperterminal) set at 57600, I can connect t...

Serial Programming Question

1607 byte By ejj at 2007-11-18 2:26:20
First off, I'd like to express how impress I am with this board. I hadn't visited the dev-archive.com site for several years, and never knew that this board was here! Its an awsome resouce!Now, my question:I've done quite a bit of windows programming, but and pretty much new to Seri...

How can I include a toolbar in the tab order of a dialog box?

534 byte By stefan_tzanev at 2007-11-18 2:26:39
Hello,I create several toolbars in the WM_INITDIALOG handler of a modal dialog box.Although the toolbars have WS_TABSTOP style set, I cannot include them in the tab order. That is, when navigating among dialog box controls with TAB key the toolbars never get the focus.What should I do to enable tabs...

highlight tab control text

353 byte By ryan crey at 2007-11-18 2:28:16
Hello,i'd like to when the user passes the mouse over the tab control text, that it change its color to light blue as if it were highlighted, all examples i found were using MFC and confusing, can anyone tell me which apis i should lookup for..or give me any examples of doing that without using...

Uart Flush Buffer

671 byte By KingTermite at 2007-11-18 2:30:33
For some RS232 serial drivers, the flushbuffer() function reads all data until there is none such that the input buffer is free. What are your opinions on the output buffer? Should a flushbuffer() function wait until the output buffer is free too? My guess is no, since that is dependant on the other...

header file

174 byte By spatnaik at 2007-11-18 2:30:39
Hi,<br/>How do I get a copy of ntddcdrm.h.<br/>I am calling a method DeviceIoControl(...) in one of my application.<br/>Please pass if you have one.<br/>-Espee

Fast File Information: WINAPI vs C++

1150 byte By xygorn at 2007-11-18 2:31:19
Hello,I am looking for a fast way to create a data structure to hold a directory tree and information on files in the directory tree. As the filesystem that is being loaded into the data structure is large, speed is a significant issue.I am aware of three possible techniques to get the information...

How to set share permissions for shared folder programmatically?

207 byte By maggiezhao at 2007-11-18 2:31:31
I use <br/>net share <br/>to share a folder from command line, but<br/>I don't know how to set share permissions for shared folder (not permission for security) programmatically?<br/>Thanks a lot!

Successively deleting registry values

1925 byte By danshap at 2007-11-18 2:32:13
I'm trying to iteratively remove registry values from a registry key. The following snippet is where my process is breaking. I think it has to do with me not resetting the string buffer when I make my second call (any subsequent call) to RegEnumValue. I haven't done much C++ programming...

read buffer

90 byte By gadi at 2007-11-18 2:33:16
Is there any way of reading data out of input buffer without using COMMTIMEOUTS structure?

Chid window within console window

385 byte By Gato at 2007-11-18 2:33:34
Child window of console application. When WriteConsole(), their contents are overwritten. The only way I found of avoid this was to create it with GetDesktopWindow() as parent and, for always seeing it, use HWND_TOPMOST. Very, very, very ugly and nasty. Child window, of course, with WS_CLIPCHILDEN...

CommTimeout structure

163 byte By KingTermite at 2007-11-18 2:33:55
I accidentally hit "new thread" instead of "reply". Can a mod please delete this for me since when I tried it said I didn't have permission.<br/>Thanks.

add monitor

189 byte By pralaydesai at 2007-11-18 2:36:30
I want to add monitor and under that monitor i want to add virtual port on windows NT and 2000.<br/> Can any one help me?<br/>Thanks in advance,<br/>Regards,<br/>Pralay

LAN connection status - urgent

319 byte By David Bajgar at 2007-11-18 2:36:37
Hi all,How can I detect that the LAN network cable was unplugged? I found similar threads in this forum with advice: using OnClose message of the sockets. But it does not work if no client is connected. And I need to find out the network status anytime.Any ideas, please?Thanks in advance,David...

zlib: appending file to zip

848 byte By ryan crey at 2007-11-18 2:36:48
Hello, im using zlib and trying to append a file to a zip that has already 1 file, im using minigzip which comes as example in zlib, the only thing i changed is:void file_compress(file, mode)char *file;char *mode;{local char outfile[MAX_NAME_LEN];FILE *in;gzFile out;// strcpy(outfile, file);// strca...