Mixing of sounds is driving me crazy

2611 byte By Horst at 2007-11-18 2:37:13
I have created a program using sockets and multimedia api in c-language.The problem I've got is:Sending the data across the network and replaying work fine.But sending data from two stations and mixing them for replay produces simply noise.I use a DWORD-array to store the added values of my cha...

Setting Msaccess 2000 Password Programatically

297 byte By nick666 at 2007-11-18 2:37:15
I need to set programatically a password to a MS-ACCESS 2000 database. How I can do that ? <br/>Source-code or links to it would be welcomed, especially that I do know COM/DCOM stuff. I believe that somehow the password is set by querying some MSACCESS interface .....<br/>10x in advance

Cleaning up Threads

983 byte By ejj at 2007-11-18 2:38:06
I'm starting to design a C application that will have (at the moment) 5 threads (a UI thread, and 4 IO threads). 2 of these threads will be performing synchronous Serial IO, and 2 socket communication.When the user clicks a 'Stop' button or closes the program, I need to clean up the...

Problem with ReadFIle

461 byte By m_nekkanti at 2007-11-18 2:38:47
I have RS232/485 converter and three meters connected to it.I am writing commands and reading data from the meters using writefile and readfile. Normally it is working fine. But one of the meter is not connected(offline) then it is giving problem. It is coming out of loop with out continuing readi...

Problems with bitmaps?

1252 byte By paisano at 2007-11-18 2:39:01
Hi people, iam having trouble with bitmaps, because i dont understand how can i display different bitmaps with outreplacing others. With this code: hdc = BeginPaint( hwnd, &ps ); memdc = CreateCompatibleDC( hdc ); SelectObject( memdc, hbit ); BitBlt( hdc, 10, 10, 256, 128, memdc,...

A silly question on critical sections and threads

881 byte By Granite Golem at 2007-11-18 2:39:27
Sorry for such a question, but I've read MSDN already and searched through the forums...I want to make a console application (so no MFC, only API functions) that organizes a second thread (for short time, not the entire process lifetime) and uses some data passed from the main thread. I found t...

printer driver installation support in .NET

543 byte By Parulb at 2007-11-18 2:39:47
Hi!I'm looking for the printer drivers installation APIs which are directly supported by .NET framework or if .NET does not provide any support through APIs is there any other way to install the printer drivers.Though it can be done using SDK APIS (AddPrinterDriver and AddPrinter etc), but then...

Where do I start?

333 byte By Mike Houghton at 2007-11-18 2:39:58
I joined this forum because I need help (really). Am trying to interface my C++ app to a USB driver because all I really need it to do is capture a still from from a webcam in my own (C++) domain. Having used WinAPI for VB, it may be easier to do what I want with API in C++ ? If so, what do I need t...

Windows-like copy files

262 byte By Patbcn at 2007-11-18 2:40:56
Hi!<br/>I just want to copy a file and have Windows to display the "Copying..." dialog with the progress bar and so while the file is being copied.<br/>I winder if there is some API or so which allows me to do that automatically...<br/>Thanks,<br/>Toni

Windows-like copy files

262 byte By Patbcn at 2007-11-18 2:40:57
Hi!<br/>I just want to copy a file and have Windows to display the "Copying..." dialog with the progress bar and so while the file is being copied.<br/>I winder if there is some API or so which allows me to do that automatically...<br/>Thanks,<br/>Toni

Gdi

299 byte By leoleo at 2007-11-18 2:43:27
Hi all,<br/>I am grabbing a frame from a media file using Direct SDK. I need to render(blit) this frame to a dialog's window area, in my application. How sld I do this? <br/>I am using Windows SDK for myapp.<br/>This is very urgent. Please reply soon if anyone can help.<br/>TIA.

<<How to create Database file in VC6?>>

318 byte By Skid_Row_VN at 2007-11-18 2:45:44
(non-MFC)I worked with DAO in VB4 but now,in VC6,......I want to create a new database file (*.mdb) then work with data in this: add, delete, edit, update..... but don't know what to create db file... Can you show me what can I do to slove this problem? what header file to include with?thank a...

Vc++

191 byte By vikashkr23 at 2007-11-18 2:45:46
hello Friend!!<br/> plz help me. I dont want to close the Dialog in VC++ with ESC or Enter key press of Keyboard.Anywau is having then Plz helpme.Where to write the code.<br/>Vikash

createProcess in a console pgm?

1841 byte By Cat123 at 2007-11-18 2:46:01
EDIT: Sorry , I can't delete this post. Problem solved. Frankly, I don't know how it got solved...I stuck in a system("child1.exe") to see if at least that would work. It did, I took it out and then the other worked. Sorry again.Hi,I'm not sure, is this possible? I include window.h an...

searching/changing string in a txt file

728 byte By ryan crey at 2007-11-18 2:47:52
Hello,i've a txt file and somewhere inside it i put--- xxx.txt -- content content content content content content content content content content content content content content content content content content content content content content content content content content content content $CHAN...

Physical Disk signature in Win9x and NT series

419 byte By Ixen at 2007-11-18 2:48:26
I have a question on how to unambiguously identify physical drive under all of the windows os's (beginning with W95 and WinNT4). I think the key (at least under NT series) is drive signature which could be retieved by many calls to QueryDosDevice, searching strings containing #STORAGE#Volume......

Direct Sound or Multimedia Sound?

1287 byte By Gyannea at 2007-11-18 2:49:01
The single most important aspect of my application is sending and receiving specific sounds over a radio. The tones and their lengths represent data bits, so accuracy is important.The question is which "interface" is gives superior control and accuracy with minimal overhead, Direct Sound or the Mult...

Sound buffer sizes /Stereo as 2 monos?

1352 byte By Gyannea at 2007-11-18 2:49:04
Two questions about the Windows Sound System:In DOS, double buffering the sound card had a limit on the buffer size due to the 64K limit of the DMA. In Windows, you set up your sound system giving it sample rate, channels, bits, etc., as well as creating buffers (two for double buffering). When the...

How do I get the tools ?

206 byte By Mike Houghton at 2007-11-18 2:49:15
According to MS I have to pay 2000 a year to MSDN to get WinAPI tools that I need. Is this the only legal way ? Can't I just buy some product that will give me those API hook etc ( like I did for VB) ?

Image Bounadary Calculation

505 byte By GREATMUTTU at 2007-11-18 2:49:37
HAI, I WANT CODE IN 'C' OR 'C++' OR 'VB' FOR BOUNDARY TRACING OF BINARY IMAGES . YOU CAN WRITE CODE USING THE FOLLOWING ALGORITHMS1.SQUARE TRACING ALGORITHMS 2.MOORE- NEIGHBOURHOOD ALGORITHMS3.RADIAL SWEEP ALGORITHMS THESE ALGORITHMS ARE USED FOR CALCULAT...

Serial port programming

403 byte By Scyla at 2007-11-18 2:49:40
Hello, i have a problem programming mu serial port:my code works in one of my machines, but in the other, when i try to receive, i get something like :$GPGGAAAAAAAA,,,,,,12222222.222222222222,,,,,,5555555555,,,So,i thought maybe it could be the DCB structure parameters, but i played with them and i...

Performance Parameters

153 byte By hellorachnag at 2007-11-18 2:50:59
Want to write a code to find out the performance parameters of an executable running as an NTService.For example the total thread count etc using VC ++6.

Creating a Window in Worker Thread

756 byte By usman999_1 at 2007-11-18 2:51:35
Hi *!I am working on an application that uses a sockects class to send and recive some data. I am doing it in a worker thread. Uptill now everything works fine. I want to run multiple instances of the same socket class at the same time. For that i am trying to implement a window with different contr...

WinAPI and webcams and C++

403 byte By Mike Houghton at 2007-11-18 2:52:22
Well, here I am right back at the beginning of my problem again. I find that I already have the SDK in my Builder 5 Pro edition. In it I find all the info about WinAPI. I still have not found anything that will let me use a still image from my USB webcam on a C++ form. Any pointers (direct or indexe...

Visual Studio, Environment vars in path?

430 byte By KingTermite at 2007-11-18 2:52:36
I'm trying to use environment variables for portions of paths in the project settings. Is this possible, and can anyone give an example?I'm trying something like this in the include paths:..\..\include,$(HI_REUSE_DIR)\includewith HI_REUSE_DIR being set as an evironment variable, but it doe...

read buffer(Serial comm)

335 byte By gadi at 2007-11-18 2:53:00
I m trying to write a program sending text file when the user can select the Rate-Serial Communication.How can i read all of the data in the buffer at once (not byte by byte) when the size of the data changes every time-according to the size of the file which was sent?*Sorry for this , but i m just...

sockets

393 byte By sampath_t at 2007-11-18 2:53:12
I am writing a client/server program using win32API.I need to send some data stored in a memory buffer (accessible using a pointer) by sockets.I was wondering whether do I have to convert the data initially in to a byte array and also do I have to divide the data in to packets.I have a working clien...

Client to Window Coordinates

191 byte By Myself dot NET at 2007-11-18 2:53:23
Anyone got a quick method of converting client area coordinates to window coordinates? Must I look at window styles and adjust manually for border, caption, etc.? [win32API/C]<br/>Thanks

Focus rectangle

119 byte By christem at 2007-11-18 2:53:44
Hello Everybody !!!<br/>How to hide focus rectangle ? Is it possible ?<br/>Please help me !<br/>Thanks: Miki.

Change system colors

342 byte By christem at 2007-11-18 2:53:47
Hi Everybody !!!I'd like to change the system colors in Windows and I did it successfully with a Windows API function: SetSysColors, but this function changes system colors in whole Windows but I need system colors to be changed only in my application ! Is it possible.Any ideas can be helpful....

System strings in current language

678 byte By ThomasSoeder at 2007-11-18 2:54:21
Hello, I have the following question:How can I find out the value of system strings like e. g. "Retry", "Abort",, "Cancel" ... in the language in which the system is currently running?In a dialog, I want to set the text of the Cancel button (IDCANCEL) according to the user's language. My progra...

problem with "int 3" under WinXP

341 byte By Darney at 2007-11-18 2:54:33
Such code:try { __asm int 3} catch(...) {}causes the program to interrupt by unhandled exception. It happens under XP only (not Win2000 nor Win9x).This code is the part of very big program, and I don't have complete source code. Why can it be, and what can affect structured exceptions behavior...

Special Effect: alphablending?

509 byte By paneb at 2007-11-18 2:55:10
hey guys,i am sure some of you guys have used sonique or the new opera 7, or even winamp3..for example, in sonique when you press a button, it looks like it is pushed down but slowly..another example, in opera 7, when you move over the tool bar buttons, they sem to be fading in or out..i was wonderi...

serial port send function problem

956 byte By Scyla at 2007-11-18 2:55:22
Hello, I'm writting an app for writing and reading to/from the serial port. The structure is similar to:recognizing data function1 or function2send command//First time, just powered on,the device must receive that command.//Once received that command by the device, it will answer with some data...

Instrumenting ATL Code using DevPartner BoundsChecker

560 byte By gauravsinghal at 2007-11-18 2:56:04
I am trying to Instrument the ATL Code provided by the Microsoft.Using the commandline functions given by Compuware's DevPartner BoundsChecker.I am not able to Instrument the MakeFiles Warning: code generation failed, retrying without instrumentationNon-CTI code generation succeededCommand I am...

Challenge: write to CMOS clock area

680 byte By gordonwd at 2007-11-18 2:56:33
Here's a real challenge: I have to port a piece of code from an old DOS program that made use of some unused bytes in the CMOS realtime clock area to get a couple of bytes of non-volatile memory (don't ask). On DOS or running in a Win9x DOS-box, this was done simply by directly using I/O p...

Send/Receive data via COM port (RS232)

240 byte By htrendafilov at 2007-11-18 2:58:12
Hi!<br/>Does someone have idea where can I find source example for asynchronous sending and receiving of data packages (10 - 30 bytes) via COM (RS232) port, or working example source which can help me to go 'deep' in this problem.

Protect a folder and files?

340 byte By Jim Bassett at 2007-11-18 2:58:35
Is there a way to protect a folder and it's files or to protect files directly such that the contents of that folder and it's files cannot be opened, or copied unless one had a password, etc.? We still want to be able to access the folder and it's files from an application that is awa...

Need a console app to boot machine

233 byte By kannanbalu at 2007-11-18 2:58:56
Hi,<br/>I'm looking for a console application (plain C/C++ without any Win32 API calls) that could reboot the machine. Is there any function available in interrupt 21h or any other that could do this?<br/>Thanks,<br/>Kannan

Directory name with spaces

260 byte By Bing Mou at 2007-11-18 2:59:02
The Windows API CreateDirectory() can create a directory like "C:\ test ". It contains space at the beginning and the end of the folder name.<br/>The question is how to delete it. <br/>RemoveDirectory() doesn't work with this kind of directory.

messanger service

243 byte By stajpus at 2007-11-18 2:59:05
how can I use the messanger service (in MS windows 2000/xp) to<br/>programmatically<br/>send and receive messages in a LAN?<br/>or how can I send messages thak can be received by the messanger service or winpopup (on win98)?<br/>thank you

creating a blank solution with a blank project

165 byte By gauravsinghal at 2007-11-18 2:59:14
I want to create a blank project in a solution in which i can add the IDL file i have with all the res , cpps and h files <br/>How can i do that <br/>TIA<br/>G.

List View Colors

210 byte By Bengi at 2007-11-18 2:59:19
does someone have a working non MFC, Fully API code to change colors in items (subItems), or just color a row without painting the entire list?<br/>I haven't seen one so far, its all MFC and thats a shame!

Icon in System Tray

387 byte By sambyal_rajeev at 2007-11-18 2:59:42
I am working on an ATL service. My problem is that I want to display an Icon whenever the service starts. Also on the click of icon it should display a menu from where I can stop the service.I tried using NOTIFYICON data structure but it requires parameters such as handle to the parent window and to...

Port RS-232 App from VC++ to EVC++

315 byte By D002199 at 2007-11-18 2:59:44
I have a COM port app wrote in VC++ which running fine under Windows NT/2000/XP. Recent day I tried to port it to Embedded VC++ 3.0 which will run on Windows CE 3.0.Compile & link no any error, but it can not successfully open the COM port.What's wrong? any idea?Thanks & Regards...

help me

3908 byte By arif_alig at 2007-11-18 3:00:35
plz help me i m using this code but it is not properly work on win-ME and 98 . but on 2000 it is work properly.plz helpme reply on arif_alig78@yahoo.co.in .----------code ------#include <windows.h>#define ID_TIMER 1HWND app_hwnd;int iIndex;TCHAR szWindowData[5000];LRESULT CALLBACK WndProc...

Soundcard Access denied?

1212 byte By Gyannea at 2007-11-18 3:01:46
Can anyone tell me why I get an "access denied" error when I try to open the sound card? I use: waveformatex.wFormatTag = WAVE_FORMAT_PCM; waveformatex.nChannels = 1; waveformatex.nSamplesPerSec = wave.samplerate; // 24000 waveformatex.nAvgBytesPerSec = wave.samplerate...

Whether and How to realize the Flows Control in local computer?

542 byte By alancz at 2007-11-18 3:02:13
Detail: Local computer sends several data flows to network, now I want to design a program to monitor the flows, and include setting the send-rate or other parameters. It should be noted that the flow control program is independent from other network application programs. I have browsed th...

waveOutReset()?

722 byte By Gyannea at 2007-11-18 3:04:25
My understanding is that the 'waveOutReset() API function stops the playing, sends a MM_WOM_DONE message and returns a value giving the status (error or not).However, if I haveMessageBox(some stuff);if(waveOutReset()){ MessageBox(blah, blah);}MessageBox(bha2, blah2);Only the first call to Mes...

Fast Updates for Digital Paint prog?

924 byte By CosmikMan at 2007-11-18 3:04:28
I'm developing a digital painting program at the moment and I'm not extremely well versed on the windows 32 API (non MFC). Anyway basically i have a digital painting program that stores pixel data in a 2d array. now i need a fairly fast way to go from that 2d array to the screen whenever u...