|
I agree with ThatsAlok subclass is easy you need to id of buttons of File Dialog.
|
|
|
|
|
I try to add lzh header and lzh extend header before a file in order to make a lzh file manually. According to lzh format, I use "-ld0-" and level 0x01 so i can avoid to write compress codes. But after i add this header to a file, there is wrong when i open it with winrar. The Message is that file was damanged. I think the problem maybe take place in two ways:
1. I don't know hwo to get the checksum in lzh header.
2. CRC-16 maybe is wrong, i just copy the code from internet.
Can someone give me advice in this topic, some demonstrated codes are best.
Thanks.
|
|
|
|
|
I've tested in ActiveX test container which runs very well,when user have register such control,it runs quickly.But when I've use web to automatically register this control,it always represents red x on web.By the way,I use MFC activeX with MFC share DLL and open all the access right for activex control,meanwhile, I've add the server ip to trusted zone.Can somebody give me a help?
Later buggers harm more.
|
|
|
|
|
I think u r using a cab file for downloading the activex.
Is your control getting downloaded, jus check it in
Tools->Internet Options->General->View Objects in ur browser
This is the place your ActiveX once downloaded gets displayed.
UnRegister previous ActiveX registered , u can use regsvr32 -u cmd
|
|
|
|
|
ActiveX controls must exist on the machine your browser resides on (Downloading if necessary if the "codebase=" contains a valid path to the cab when not already installed on users machine). ActiveX controls, by default, have access to anything an executable has access to so when running them from within a browser, security restrictions kick in and protect people from running ActiveX controls that are not declared "Safe for scripting" in the registry. The control can also implement a specific interface to be "safe for scripting" if the programmer desires.
If you run the .htm file with an .hta extension on your local machine, browser security should not restrict you.
If this is not an option, then you will likely need to research the security restriction for ActiveX controls in browser based environments. Be forewarned, ActiveX controls are easy security breaches so their value in the web world was quickly diminished in the late 90's.
|
|
|
|
|
Thanks a lot
Later buggers harm more.
|
|
|
|
|
|
Does this your answer?
CString str;
m_edit.GetWindowText(str);
m_Combo.AddString(str);
|
|
|
|
|
im not getting in this code..
plz help me..
|
|
|
|
|
vikramkarthik wrote: plz help me..
what is the problem
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
ThatsAlok wrote: what is the problem
i think this[^] is the problem
|
|
|
|
|
toxcct wrote: think this[^] is the problem
he he he, i just want to know what problem he is facing by implementing same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
CString strText;
m_edtBox.GetWindowText(strText);
m_cmbString.Addstring(strText);
c im using VC++ 6.0, in this if i type this code means im not getting GeTWindowText option itself.what i can do..
vikram
|
|
|
|
|
vikramkarthik wrote: im using VC++ 6.0, in this if i type this code means im not getting GeTWindowText option itself.what i can do..
vikram
actually m_edtBox is of type CEditBox and m_cmbString is of CComboBox, you have to associate that with each control!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
|
humm.. create two control variable associated each with EditBox and Combo Box.
CString strText;
m_edtBox.GetWindowText(strText);
m_cmbString.Addstring(strText);
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
i tried and i got the answer..
vikram
|
|
|
|
|
it's all right.. you can vote for that message [hiding my face under table]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
start by learing how to ask a question correctly on the forum, then ask it good.
|
|
|
|
|
|
Hi,
I want to show a dialog in a thread(modeless).
Because I want to update controls after showing in the same thread.
Please help me.
Thanks.
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
dSolariuM wrote: I want to show a dialog in a thread(modeless).
Because I want to update controls after showing in the same thread
how are you managing the lifetime of the Modeless dialog box! or you stoping the Worker Thread till modelless dialog finishes!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Does this thread for update controls?
|
|
|
|
|
I have developed a server-client application to monitor various processes and other stuff on a LAN , and there is an option for "remote desktop view" which enables the administrator running the server application to remotely view the desktop of the selected client, and this is done by capturing the client desktop writing the DIB into a bitmap file and sending that image file through socket to server and displaying it on the server and the process is repeated again and again after a delay of 2 sec , but the problem is that after displaying 25-30 images the process halts and no further action takes place , neither images are captured on client or stored in bmps or stored in bmp files at server or refreshed at display window at server.
I have checked for proper release of DCs I have used but am unable to understand the reason for this saturation.
rahul
|
|
|
|
|
You first need to find out where the problem actually is - is the client side not sending the bitmaps, is the server side not displaying them, or is the client sending them but they never even get to the server? Is one of the applications starting to spin (consume CPU cycles but is doing nothing?), or is it hanging (not consuming any CPU cycles)? Is the data connection going down?
There are several places where things can go wrong, and for several reasons. First is to identify the location of the problem, and then narrow-down possible causes.
One tip - I once had a memory leak in a C/S DB-based that read bitmaps from the database and rendered them as bitmaps - I was not releasing the IStream -based object's memory that OleDB used to get the binary data to me and after a few images the OleDB layer would go into a spin.
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|