|
[ Jûroehn ] wrote:
Just want to help people find their solutions and find mine.
And that's great. I was just pointing out that this isn't the right place for BCB questions or answers, because the people in this forum are expecting VC related ones (as you have by now probably noticed this yourself, going by one of the threads you answered a question in).
Believe me, everything I said was intended in a friendly manner, so please don't get huffy over it
Cheers,
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
Hi,
In my server program,i create 1 process and subprocesses for executing a program.I can see threadid for each process.Any number of people can connect to the server at same time.Each user will have their own instance of the program.
Is there anyway i can get the ParentProcess id for each child process?
Find processes which has same threadid?.I set the environment variable ThreadId when each user connect to the server.
Pls help..I'm strugling.
Thnks in adavnce.
|
|
|
|
|
On Windows2000 Platform,
I'd like to hook that screen-saver is starting, and input password to password edit box automatically.
q1. can i hook that screen-saver is starting ?
i have maked function that simulte ctrl - alt - del automatically.
But,
q2. can i input password to password edit box automatically ?
a
|
|
|
|
|
Hi,
I have a class, i don't want any other class to be derived form that.
How can i do this?
Regards
Neha
|
|
|
|
|
Make the constructor private.
|
|
|
|
|
Eventhough i make the contructor i can derive(Public) other class from that.
What i want is during Compile time itself it should give some error.
|
|
|
|
|
|
I gotta say 1st that I'm a nooB.
When ever I make a simple program, when its finished what its meant to do, it will close straight away, often being too fast to see the last output. As I said, i'm a nooB so I dunno how to stop it.
Can you help?
(e-mail)
|
|
|
|
|
It sounds like the program you have created is for the command prompt, and you are running it within the VisualStudio environment - a command prompt will be opened, your program will run, and the prompt will automatically close and thus you dont see much. Open a command prompt yourself, change to your programs directory, and run it from there rather than from VisualStudio
|
|
|
|
|
put a getchar(); to wait for keyboard activity
I am that is
|
|
|
|
|
add following:
(you have to include conio.h!)
<br />
printf("\nPress any key to continue...");<br />
<br />
while( !_kbhit() );<br />
<br />
_getch();<br />
Phil
|
|
|
|
|
Hi All....
How to get the currently logged on user of remote system??
I had been try out this by Netbios call. But the data that i receive in the NameBuffer are not consistent.... How to get it ? can u please help??
Thanks.
Regards,
A.Ilamparithi
|
|
|
|
|
Check out MSDN.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/network_management_functions.asp
Kuphryn
|
|
|
|
|
Hi Kuphryn,
Thanks for your help...
But, those APIs are not supporting All versions of windows... I need the code to work from Windows 95 to 2000,NT,XP....
Anyway thanks for ur valuable help
Regards,
A.Ilamparithi
|
|
|
|
|
can any one please tell me how to load a jpeg image from the resource , iam not being able to do that for quite a time now.
Please help me .
satadru.
|
|
|
|
|
Take a look at;
http://www.bcbdev.com/faqs/faq90.htm
Jeroen.
|
|
|
|
|
hi ,
thanks for the reply , since i am working in vc++ environment could you please refer some relevent sites as i am unable to understand what is TJPEGImage object as described in the site.... and also regarding the jpeg.hpp header file that they have included....
it would be realy helpful if its in the vc++ environment.
thanks .
satadru
|
|
|
|
|
Excuse me
This should help;
http://www.codeguru.com/bitmap/CPicture.html
(http://www.codeguru.com/bitmap/index.shtml)
J.
|
|
|
|
|
hi ,
that was really great .. now i need a bit of your advice..shud i draw these images in OnPaint message handler of a dialog based application ... and in that case how do i draw an image in the OnPaint of teh parent window from the child window..for example from the child window i select the desired picture to be loaded in the parent window ( to be drawn using OnPaint function, as the picture has to repainted on WM_PAINT message)
It would be very kind of you if u could please lend your aadvice.
Thanking you,
Satadru
|
|
|
|
|
Hi,
I am working on a problem has to do with manipulating large files. Essentially, the program will open up any give files and append, insert, and delete data from the file at random position.
What is the most efficient solution?
I have tried memory mapping, but it does not work as expect. Memory mapping works only when the program change a byte in the file. It does not work for inserting and delete bytes from the file at random position.
Thanks,
Kuphryn
|
|
|
|
|
Unfortunately there are no direct API's for inserting into and deleting parts from a file, file mapping is not be advisable because of large files.
Help yourself with constructing new files from the needed parts of your original files/data.
If your files are large compared to the available memory then you should use in a loop small chunks of data (~1MB) at a time in order to avoid unnecessery memory overhead.
Use SetFilePointer to mark the position of current reading/writing operation.
In order to not block the UI, put the whole operation into a worker thread.
Peter Molnar
|
|
|
|
|
|
I'm pretty much a complete newbie to the programming scene. I can't for the life of me work out how to play a wave file. Preferably during the startup of the application but even if it was on the press of a button. I have read about the PlaySound and DirectSound classes/functions (whatever they are) but cannot get them to work. Also i have come across what looks like a really good class (cSound) for download on this website but apparently it doesnt work in Windows XP, and i cant get that to work either. I need to know everything i would need to do (initialisation and all that) coz im completely lost and this is getting very frustrating. even a link to a class i can use or step by step tutorial would be a big help.
o and im using VC++.net
Cheers
jace
|
|
|
|
|
Whether you beleive or not it is really as easy to play a wave file from your app as writing the following:
sndPlaySound("c:\\yourwavetoplay.wav",SND_ASYNC);
Put it into your OnInitDialog override to play it on application startup.
However, in order to use it, you have to add the windows multimedia library to your project
So, BEFORE you call the above line, add to your code:
#include "mmsystem.h"
#pragma comment(lib,"Winmm.lib")
Peter Molnar
|
|
|
|
|
does anyone know the code for a calculator like the one microsoft uses in the accessories file I am interested in how they get the plus and equal buttons to add the values using only one edit box.
thanks JKohm
|
|
|
|