|
Have MFC subclass it for you with a DDX_Control statment, if its based on a resource:
1. Derive a class from CListBox
2. Double click on the list box in the resource editor with CTRL held down
3. Select control
4. Select your new derived list box class
5. Give it a name
Then use class wizard to add a handler to your LB for WM_LBUTTONUP to your new LB
|
|
|
|
|
hi!
I have complete my app using mscomm32.ocx,then it runs ok on my machine (os:win2k) which installed vc studio 6.0.But it can't run on the other machine (os:win2k) without intalling vc studio 6.0.
especially I register this ocx in the other machine.
why?
thanks!
|
|
|
|
|
How can load bitmap into the dialog base......
|
|
|
|
|
Can any one tell me where can i get the latest SDK if i want to use this interface
IHTMLWindow4
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
I guess this must be in the platform sdk in webdevelopment section.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
Hi. Is everybody know how resolve NetBIOS name for some IP ?
PS Don't tell me about gethostbyaddr() . Need resolve NetBIOS rather than DNS.
Thanks
---Ranger---
|
|
|
|
|
i tried gethostbyname and it first querries a DNS server, if failed it scans for netbios!
don't use slogans like this again please!
---Ranger--- wrote:
PS Don't tell me about gethostbyaddr() . Need resolve NetBIOS rather than DNS.
Don't try it, just do it!
|
|
|
|
|
1. gehostbyaddr() too slowly for LAN (resolving timeout is too big)
2. Name rsolved by gethostaddr can be both DNS or NetBIOS.
I need ONLY NetBIOS names
---Ranger---
|
|
|
|
|
Does someone knows how the buffers of an AVI file are written in the file ?
I already search the Microsoft and google sites and I just can't find, maybe for incompetence. If some one knows or knows were can I find this information I will be greatfull. Thanks
|
|
|
|
|
>Does someone knows how the buffers of an AVI file are written in the file ?
please make clear , what do u mean by buffers of an AVI file are written in a file
r u trying to read an AVI file , writing its data in some other file.
or if u mean how to write AVI file?
if the case is later the there is a library available Vfw32.lib.
using AVI function of this libray you can create ur own AVI file by writing
AUDIO/VIDEO data in it.
like
0 AVIFileInit // for initializing AVI library
1 AVIFileOpen // for creating AVI File
2 AVIStreamCreate / for creating Audio/ video stream
3 AVIStreamWrite //for writing audio video data
5 AVIFileClose // for closing ur file
4 AVIFileExit / un initializing the library
Abhishek Srivastava
Software Engineer (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
I have tryed this functions, but I had a problem that is, I am trying to add one audio stream and one or more video streams, when I join one audio with one video this vfw functions works fine, when I try to join one audio with two videos the videos became scramble, it interleaves the video frames
Can you help me with that ?
|
|
|
|
|
I need to display a long block of scrollable text in a dialog. I tried using a read-only CEdit but it doesn't seem to allow more than ~65000 characters. Is there a way to increase the amount of text a CEdit can display? Or is there a different, more appropriate solution?
|
|
|
|
|
A CRichEdit can handle almost any amount of text.
Just remember to call AfxInitRichEdit before trying to display the dialog.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
I am trying to place a high resolution bitmap on a Picture control. I resize the image to fit on the picture control.
However I lose some resolution (its quite bad).
I did try and load the image as a jpg and gif and wmf but keep getting the error:
c:\Task_Emu\Task_Emu.rc(339): error RC2170 : bitmap file res\PrimaryFlight.gif is not in 3.00 format
I have looked at the properties of the Picture control and Bitmap (set to True colour).
Are they antthing I can do to get the bitmap (or jpg) displayed a bit better. I expect some lose of resolution, but just want it a bit better if possible
Regards,
Sweep123.
|
|
|
|
|
How much are you resizing it?
|
|
|
|
|
Quite a bit!
The original image was done in CoralDraw and converted to bmp format (size ~2.MB).
Other programs, Paint, PaintShopPro display the detail, its just the Picture control seems to break it up a bit.
All I want was a bit more detail if possible.
Does that help?
|
|
|
|
|
I'm not sure this will help, but you could try StretchBlt'ing the image to a DIBSection in RAM and displaying that.
|
|
|
|
|
Hi.
My question is how does a server knows if the connection is suddenly gone for example if the hardware connection is broken? Usually a server will send alive messages etc to the client so the client will know. But how does a server know if that side is gone when it is not shutdown "gracefully?"
Is there a function call to help with this?
Thanks in advance.
|
|
|
|
|
i suppose there will be "ping, pong" packets to ensure the client is still alive!
Don't try it, just do it!
|
|
|
|
|
If TCP connection goes down, your implementation will notice you (FD_CLOSE). But the timeouts are very long if e.g. the network cable was just disconnected, you prolly want to test on your own.
|
|
|
|
|
Hi
Can anybody help me? I have a https-file on a server in the internet and want to get the file.
The adress look like:
https://ss004.ak.se/http://ss005.ak...productLogo.gif
This is not the right adress is only a example.
I managed to get a CInternetSession pointer and with that I made a GetHttpConnection to get a pointer to CHttpConnection. With that pointer I know I need to make a OpenRequest() but from that point on I have no clue what to write next.
What do I have to do for that???
Thanks
D
|
|
|
|
|
Hi ,
i have also done the same thing once but using Wininet APIS
i can guide u how to use them.
To use the HTTP WinInet functions
Call the InternetOpen function to initialize an Internet handle.
InternetOpen creates the root HINTERNET handle used to establish the HTTP session. The HINTERNET is used by all subsequent functions.
Call InternetConnect using the HINTERNET returned by InternetOpen to create an HTTP session.
When calling InternetConnect, specify INTERNET_DEFAULT_HTTP for the nServerPort parameter and INTERNET_SERVICE_HTTP for the dwService parameter.
InternetConnect uses the handle returned by InternetOpen to create a specific HTTP session. InternetConnect initializes an HTTP session for the specified site, using the arguments passed to it and creates HINTERNET that is a branch off the root handle. InternetConnect does not attempt to access or establish a connection to the specified site.
Call HttpOpenRequest to open an HTTP request handle.
HttpOpenRequest uses the handle created by InternetConnect to establish a connection to the specified site.
Call HttpSendRequest using the handle created by the HttpOpenRequest to send an HTTP request to the HTTP server.
Call InternetReadFile to download data.
–Or–
Call InternetQueryDataAvailable to query how much data is available to be read by a subsequent call to InternetReadFile.
Call InternetCloseHandle to close the handle created by HttpOpenRequest.
Call InternetCloseHandle to close the HTTP session created by InternetConnect.
Call InternetCloseHandle to close the handle created by InternetOpen.
in this way u can download ur file
Abhishek Srivastava
Software Engineer (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
I did that too but it works only with http files if I am not wrong. It doesn't work with https web pages !
The problem is how to handle the SSL.
How can that be done in C++ ?
Especially if it is a page that need a login
Thank you very much for any answer !
Marcello
|
|
|
|
|
You could maybe use URLDownloadToCacheFile .
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
hi !
I have a control derived from CWnd and I create an instance of it on a dialog.
The problem is that the control does not get the keyboard focus when I click
on it. What am I missing ?
Thanks.
PS:I work with VC 5.
|
|
|
|