|
Hello
I am a amature in programming with Borland c++ builder 5.
I wanted to make a dual player to play 2 songs simultaniusly.
That works.
The master volume controll does also work.
But the problem is i don´t have anny clue how to manipulate
the audio volume for the both songs seperately.
I can have 1 or to sound cards in the pc.
Actually i dont know wat to do because i also want to have a headphone
to prelisten each song i would like to play.
It is actually to create my own home PC discobar.
If annyone can give me a hint how and where to start or anny interesting links. Free to mail to koen.bielen@pandora.be
Greetings Koen
|
|
|
|
|
Hello!
I have a network connection which is unavailable (defined, but inaccessible) because this connection requires autentication. When I try to enter this connection, explorer asks me about a user and password. Anybody knows how to provide such functionality? Moreover GetLogicalDrives and GetLogicalDriveStrings do not return unautorised drives. I have managed to return it through shell interface, but I don't know how to force windows to display autorisation dialog.
Thanks for any suggestions
|
|
|
|
|
I'm pulling my hair out over this one!
I am trying to dynamically create an icon to display in the system tray. This icon acts like a mini-graph so I don't want to pre-create all possible icons.
I have a template icon resource that I want to use as a base. I have used GetIconInfo to retreive the icon's HBITMAP handles for the mask and color bitmaps. However, from here I don't know how I should get an appropriate DC to select the bitmap into.
Any suggestions?
Kelly Herald
Software Developer
MPC
|
|
|
|
|
Can you use the CreateIconIndirect API? It has a ICONINFO param which take HBITMAP as structur members. I think you can paint the bitmap and then create an icon form it.
The bitmap could be selected in a memory dc (use CreateCompatibleDC), then drawing can be done
|
|
|
|
|
I finally got it working. What I hadn't done was use the CreateCompatibleDC method.
Thank you.
Kelly Herald
Software Developer
MPC
|
|
|
|
|
I started with Microsoft's Development Environment 2002. I am trying to use an Extended combo box. I want to specify 'COMCTL32.LIB. is linked into my program. How do I do it. I can not find where I specify the library so it is linked into my program. What configuratio dialog, project setting dialog and how do I get to it.
Thanks,
SAK
|
|
|
|
|
Go to the project settings dialog and switch to the tab "Linker". There you will find an editbox with caption "Object-/Library-Modules" where you can enter "comctl32.lib".
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Thank you ...I think I must have a bad install....I cant seem to find this dialog box with the 'linker' tab. I have tried menu option 'Build > configuration manager' and 'Project > Properties' and dont see no tab. Should I be looking somewhere else for this dialog?
|
|
|
|
|
Project --> Settings, or Alt+F7.
|
|
|
|
|
Got it...thank you Guys,
Help was most appreciated.
SAK
|
|
|
|
|
You could also type #pragma comment(lib, "COMCTL32.LIB"); somewhere in your code, then COMCTL32.LIB is included by the linker
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Anders,
Anders Molin wrote:
You could also type #pragma comment(lib, "COMCTL32.LIB");
Another good suggestion...Thank you
|
|
|
|
|
I have a custom XML parser and I do the following
#import "msxml4.dll" named_guids
using namespace MSXML2;
hr=m_plDomDocument.CreateInstance("Msxml2.DOMDocument.4.0");
My machine has the updates and all works fine .
I need to transfer this code to a machine that is not conncted to net and doesnt have a CD rom drive.
I am unable to run my application because the CreateInstance Fails !
I guess what I am asking is that what is the distributable file (*.dll or *.ocx that I need ). Please help
|
|
|
|
|
Just make sure they have the right MSXML DLL that your app is using I think!?
Rickard Andersson8
Here is my card, contact me later!
UIN: 50302279
E-Mail: nikado@pc.nu
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
I did a little research on what MS had to say and they have instructions for redistribution with the msi files .
there are two methods of doing it
1. using the Visual studio enterprise tools installer
or
2 . using cab files .
I tried the first methods and seems stargithforward
all it does installs
msxml4.dll
msxml4r.dll
in the %windir%\system32
folder
|
|
|
|
|
Hey i've been trying to get drag and drop to work with my own data (had it working with text) i think i'm getting confused with pointers, here my lastest try, this is in a listview using WTL and the drag and drop classes from code project
DragData dragData;
.. get data from selected items and add it to dragData ..
..
medium.hGlobal = GlobalAlloc(GMEM_MOVEABLE, sizeof(dragData));
DragData *pMem = (DragData *)GlobalLock(medium.hGlobal);
(*pMem) = dragData;
GlobalUnlock(medium.hGlobal);
I'm not sure whats wrong but it always crashes i think its the (*pMem) = dragData; but i'm not sure why, i've tried many different way, sometimes i got it not to crash but then the data is never at the 'drop' end.
thanks for any help, been annoying me for awhile now, cya
Luke.
|
|
|
|
|
Hi,
I think you are right, when you think it`s the line (*pMem) = dragData.
Try this one instead : pMem = &dragData;
The difference is pMem is the address of some storage, which may be assigned.
(*pMem) is the storage itself, which may not be assigned, unless its a simple type (int, char etc. ) or it's assignment operator is overloaded.
The next thing is, pMem is the storage you get from the system, to put some values in. So my code will crash too.
So use a memory copy function like memcpy(pMem,&dragData,sizeof(dragData) .
I think this will do the job.
G. Steudtel
|
|
|
|
|
In addition to the other suggestion, you should get into the habit of checking return values, especially for dynamically allocated memory.
|
|
|
|
|
I think you ment to
<BR>DragData dragData;<BR>.. get data from selected items and add it to dragData ..<BR>..<BR><BR>medium.hGlobal = GlobalAlloc(GMEM_MOVEABLE, sizeof(dragData));<BR>DragData *pMem = (DragData *)GlobalLock(medium.hGlobal);<BR>
(*pMem)
= dragData;
//try coping memory, instead of passing stack(!?!?!?) variable
::memcpy(pMem, &dragData, sizeof(DragData));
GlobalUnlock(medium.hGlobal);
P.S. what is the reason for using GlobalAlloc?
|
|
|
|
|
Hi Guys
I have an app. that uses a Database and another that update it.
There is an easy way to implement that if the app that updates add a record , the applications that uses knows it? Or I can forget the 'easy' in my sentence?
Best Regards
|
|
|
|
|
Hi,
you should create a customs message and register it via RegisterWindowsMessage.
In the parameters you can hide the table/view as integer and the rowID (if any) as long value.
If you broadcast it via PostMessage(HWND_BROADCAST.....) or post it directly to your application is up to you.
Do not use SendMessage, because this will stop the sending application, till the message is processed.
Hope this helps.
G. Steudtel
|
|
|
|
|
Hi, you've been faster than light!!!!
I'll try it but I think is just what I need.
"Programming Reality is that some people goes in Ferrari and meanwhile I can't open my old car"
Best Regards and thanks.
DrPi
|
|
|
|
|
2 additional comments.
(1) If you want to send more than an integer, you can actually send a string. To do this, you should create an "atom" for the string. See GlobalAddAtom(). The receiver should destroy the atom after he's looked at it.
(2) Since registered messages are global, make sure they are unique. It seems unlikely that your name will clash with any other program. But you never know. We often use a GUID as part of the custom message name.
-p
|
|
|
|
|
Now I load a picture file using OleLoadPicture or OleLoadPicturePath, and I want to put the image to clipboard. but how can I? I've studied the methods of IPicture interface, but could not find anything helpful.
|
|
|
|
|
Can COleServerItem::CopyToClipboard might be of some help ? Create your server and copy your data to the clipboard.
~RaGE();
|
|
|
|