|
The VC6.0 does not make response!
Rap off for you,for me,for our human.
|
|
|
|
|
In the forum,I haven't found the funcion to only list own posted messages?
Please help!
Rap off for you,for me,for our human.
|
|
|
|
|
Go to your profile (click on your name in the upper-lefthand corner, next to "Search"), then click on "Messages Posted".
- Mike
|
|
|
|
|
Hi,
I am working on a project in which I am getting the DIBs and text data from TCP/IP sockets. I have to overlay this text on the DIBs.
But restriction is that I can not use the CDC:: DrawText() and CDC:: TextOut() methods. Reason is that my original data is coming from a TCP/IP socket as DIBs. If I use a DC object to overlay the text then I might loose the original colors of the DIB if current display settings has lesser colors then the origibal DIBs. I need a method which overlay the text on DIBs itself, without loosing any color/display info. Is there any API available to overlay text on DIBs without loosing any color info?????????????????????????
I have an approach: I will create a transparent Bitmap, overlay the text using CDC:: DrawText() / TextOut() at given positions on that transparent Bitmap and then use GetDIBBits() to get the DIB of transparent bitmap. This DIB has text overlayed on it. Now I will merge my original DIB with this transparent DIB. It will have text overlayed on original DIB. This way, my text will be overlayed on the original DIBs and I will also not loose any information of the original DIBs. Is there any way to merge two DIBs??????????????????????????
Pls help me out. I can not loose the colors of my image.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pls reply me directly at: 'swal' at 'momentum-tech' dot 'com'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
Hello people
well i am really having a hard time handling BMPs. My object is to get the RGB values from a BITMAP image which can anything like a 8 16 or 24 bit image. for simplicity i am using just the 24 bit BMP i have used BITMAP HBITMAP and CBitmap class in the end i got the bytes from the 24 bit image like this
BYTE *pix = (BYTE*)bm.bmBits;
where bm is of type BITMAP but something is wrong when i am drawing the pixels on the screen using the setPixel function i image is not drawn correctly and i dont seem to figure out the problem please help me i need the RGB values for an IMAGE PROCESSING PROJECT i am finding it really hard to get the values and please do not refer to me packages like cximage and stuff i dont want to use any library just tell me how to get the RGB values from a BMP file
|
|
|
|
|
add the bmp to ur resources
then
CBitmap bm;
bm.LoadBitmap(IDC_BITMAP1);
in onpaint
CDC memDC;
memDC.CreateCompatibleDC(&dc);
memDC.SelectObject(&bm);
dc.BitBlt(0,0,width,height,&memDC,0,0,SRCCOPY);
|
|
|
|
|
hello,im looking for some information regarding executing files in c++,i have used the WinExec() function to execute files in a certain directory,however this file will only execute programs with the .exe file extension.
so if i want to open a file like soandso.txt how do i associate it with a program like notepad,or why dosent the .txt file open with its default asscociated Program?
for instance if i wanted to open a .pdf file,and im using the WinExec function why wouldnt the .pdf file automatically run in say adobe acrobat reader,or another e-book reader.
do i need to pass the file name as a parameter to a program or something?
any information would greatly be appriciated.
chris
|
|
|
|
|
|
yep,this looks like the agsact kind of function i am looking for!
thanks m8t
chris
|
|
|
|
|
how i got started was the C++ for dummies u should buy it
|
|
|
|
|
wow,thats really good advice....you got a link by any chance,i hate paying 4 stuff like that....
|
|
|
|
|
hi there,
how do you convert
"0x3a" to an integer (note the quotes)
atoi doesn't work
any ideas ?
CString str = "3a";
how to convert it in to decimal
|
|
|
|
|
|
My application connects to the internet using functions in ras32.dll
I would like to know if my system is connected to the ineternet?
I've used the following code but it returns false both when connected or disconnected
Online()
{
BOOL bRet;
DWORD dwState = 0;
DWORD dwSize = sizeof(DWORD);
bRet = InternetQueryOption(NULL,
INTERNET_OPTION_CONNECTED_STATE, &dwState, &dwSize)
&& (dwState & INTERNET_STATE_CONNECTED);
return bRet;
}
|
|
|
|
|
|
I am trying to make a backup utility for outlook
i found many password recovery tools , but nothing about how all this stuff was developed , what is the format of these pst files
thanks
Willy
|
|
|
|
|
i know we can write program for macintosh using Microsoft Visual c++ crosss platfrom edition.
but there are one or two problems.
1)Latest version for cross platfrom edition i found is 4.0 that is with respect to MFC4.0(Microsoft visual c++ 4.0 cross platfrom edition) .So what about the latest compiler version such as 5.0,6.0,7.0
2)Second question where can i get this comiler(specially for free)
so can anyone help.
3)Every articale i found in msdn and other sources about Programming macintosh has been writtn in 90's(95,96) .
what is the reason of it.
No Worries!
|
|
|
|
|
|
This is the first time I am working with UNIX, and I have some problems related to threads.
I wish to have a timer class, which works fine as it does in WIN. So I created one, using signals, and now when the time interval is expired, I need to invoke a fn. say,
void OnTimer( int ProcessID );
When this Timer object is created, I am creating a new thread for the signals to execute, means this timer is running in a seperate thread. But the OnTimer fn. needs to be invoked from the thread that created the object. So I would like to know, is there any way by which I can get the CurrentThread handle ( main thread / the thread that created the object ), and make it to invoke the OnTimer fn.
Your suggestions are appreciated!!!
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
I got the fn. to get the thread handle which is pthread_self( ), But still I dont know how to make it to invoke the OnTimer fn.
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
Not sure exactly what you are trying to do here. Why do you want the timer in another thread, but the function called in the original thread? It's a bit excessive just to create a thread for the purpose of sleeping. How many timers are you likely to have running at once? Signals and threads dont really mix very well, so I wouldnt rely on that method. If you must have a seperate timer thread, then you need to look at some way of notifying the original thread - look at condition variables, or pipes, to achieve this. However, as your parent thread will need to be explicitly waiting for this notification, it may as well perform the timer itself and so not require a seperate thread.
|
|
|
|
|
Thanks for the reply.
If I am not going for a seperate thread, then the signals/timer would block the main thread. Thats why I decided to go for threads. Now my problem is not with notifying the main thread, But I need to invoke a method in the scope of main thread, and my main thread is not waiting for any notifications( If it were, then I would have gone for pthread_join ). The parent thread would still be working with some other tasks, and in btw, the timer object has to sent an interrupt like message ( by invoking some fns say OnTimer(...) ), and that fn. invocation has to be in the scope of the main thread.
It shud work some what like the OnTimer( ... ) msg in windows which is send by the framework when the SetTimer(...) is called, and the interval has expired.
Once again thanks for the suggestion Johnny...
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
You should re-design your application to work with the UNIX/POSIX threading model instead of trying to build a Windows emulation layer. Use condition variables and mutexes to synchronize the threads.
If you need a platform-independent interface, use Boost threads
|
|
|
|
|
errrrr mouse hook?
u should be enumerating all processes etc
"there is no spoon" biz stuff about me
|
|
|
|
|
That's true. But thing is that to get confidence I am just trapping one process at a time, using mouse. So that I should have good insight into hooking before integrating it with project. I am trying to get information like Handle of the winow, name of the window ..
|
|
|
|