|
Chintan wrote:
But I want to make another application which runs on Client side. And whenever client chat initiate connection between client and server this new application should notify me about the connection made by client.
aka Proxy. Search CP articles for proxy.
lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
|
|
|
|
|
I have made an application that hosts webbrowser control.
The application has some problems in executing code that the frame window is moved. When the code is executed, noting is displayed and window is not moved.
Example script code is here.
<title>Test…
script test
When above code is executed, the frame window does not move and display noting.
Is there a way to fix this problem.
Thanks.
|
|
|
|
|
You answered yourself the question : you are using the web browser control, not a free Internet Explorer instance.
How low can you go ? (MS rant)
|
|
|
|
|
You need to process the DISPID_WINDOWMOVE events yourself.
Todd Smith
|
|
|
|
|
I appreciate for your reply.
Other events is occured, but the DISPID_WINDOWMOVE event is not occured.
I'm using DIID_DWebBrowserEvents2.
I think this event is occured when window was moved.
Thanks.
|
|
|
|
|
I work in an enviroment where there is no rosk of someone lifting the source code if I install the debug version of software on a machine and predictablility is more important.
The debug build of an application which works fine on a PC with VC++ 6.0 installed, yet if I run the same executable on a PC without VC++ 6.0 installed it exits immediately without doing anything.
MFC is included in the build as a static library, and source and target PCs run Win NT4 workstation.
Any ideas ?
Would you like to meet my teddy bear ?
|
|
|
|
|
The debug version links to different dlls ( the debug versions ). They are installed with VC. If you MUST go installing debug versions ( which will run slower, for a start ), do a static link, so the MFC stuff you need is included in the exe.
<edit>Oops, I see you've done a static link. I dunno then - the debug version of the C runtime library ( MSVCRT ) maybe ? </edit>
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
- Add a few message boxes in ::InitInstance().
- Load your app in MSDEV Dependency Walker, and check out the DLLs.
How low can you go ? (MS rant)
|
|
|
|
|
|
Rather than using the debug version, why not just build the release version with full debug symbols?
I disagree with your assertion that debug==predictability.
|
|
|
|
|
note that MS prohibits you from distributing the debug versions of their DLLs.
-c
"[it was..] one of those evenings when you feel that not only will there definitely be a revolution, but that the Association of Manufacturers will foot the bill."
-- Umberto Eco, Foucault's Pendulum
|
|
|
|
|
Dear All,
i have created xml stream in VC++ now i want to transfer
this xml stream to the server on sockets. i am using
CSocket class. plz if some one of you can guide
me how can i do this. if any code example is available
plz reffer it.
lodhi
|
|
|
|
|
The usual way is to use SOAP. Never done it in VC with MFC though.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
And why transfering a XML over a socket should be different from tranfering a "Hello, World" ?
lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
|
|
|
|
|
Daniel Turini wrote:
And why transfering a XML over a socket should be different from tranfering a "Hello, World" ?
good point
|
|
|
|
|
Hi folks,
I hope this is an appropriate place to pose this question as I'm looking for a C++ (maybe COM if needed) solution.
The situation is that I have a system running with a mirror disk set under Win2k Server. The server does not have a keyboard, mouse or monitor. It is not usually accessed remotely except via a web server. A dynamically generated page from the web server can tell be of problems with the system if I know the problem is there to add information about the fault.
I want to be able to detect when a mirror disk set is not working.
From what I understand, if there is an error while the OS is running related to the fault tollerance system then an event will be added to the system event log. This I can access using OpenEventLog(), etc. No problems there.
If the system fails while the OS is not running (i.e. the ribbon or power cable drops out of a drive while the hardware is being moved) then no event log entry is raised to show this when the OS starts up. This is a problem.
I've done some tests with a keybaord/monitor connected to the system and see that when the mirror set fails when the power is off the OS (or at least the administrators Disk Management utility) knows that the mirror set has failed because it shows the status of the volume and the status of the partitions making up the mirror set as being "Failed Redundancy".
So bottom line. My question really is how can I determine that the status of a mirror set programatically? I want to know if the status is "OK", "Failed Redundancy", "Regenerating", etc.
Again, I'm sorry is this is the wrong board. I considered putting it on the OS/Admin one but thought it too programing related for that.
---
Lee
|
|
|
|
|
I've found that Win2k Service Pack 2 helps me alittle. It now raises an event at startup when the mirror set has failed while the machine is powered down.
I'd still like to know how to access the state of the mirror set via some means other than the event log entries as there are no entries to show the set has been recovered.
---
Lee
|
|
|
|
|
Why can't I use static member variables inside member functions even using the scope resolution operator...???
I have the following and it won't work and i'm confused as to why not:
class myClass{
void MyFunc(){ myClass::m_myStatic = NULL; }
UINT m_myStatic;
};
UINT myClass::m_myStatic = NULL;
The above does work...but I get an unresolved external error when I try the extact same thing inside a member function...
Why can't I use static members inside non-static member functions...? I thought this is what the scope operator was for...???
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
1.) Add the static word to your static member!
static UINT m_myStatic;
2.) You don't need to write myClass::m_myStatic in your member function, just write m_myStatic .
void MyFunc(){ m_myStatic = NULL; }
class myClass
{
void MyFunc(){ m_myStatic = NULL; }
static UINT m_myStatic;
};
UINT myClass::m_myStatic = NULL;
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Sorry that was a typo I had the static keyword there I just missed while typing...
Anyways, I still get the unresolved error:
class myClass{
public:
static WNDPROC m_wndProc;
protected:
void SubclassMyWindow();
};
void myClass::SubclassMyWindow()
{
m_wndProc = NULL;
}
Even if I use the scope operator...whats going on...?
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
You don't have to clarify your variable with the scope operator because you're already inside your class scope:
class myClass
{
static UINT m_myStatic;
void MyFunc(void) { m_myStatic = NULL; }
};
You have to declare the member variable as static in your class definition before it's really static.
The implementation file is correct to initialze m_myStatic at runtime, but NULL is usually used for pointers, not integers, did you mean to use 0 (zero) instead?
-- ian
http://www.ian-space.com/
|
|
|
|
|
I think the problem is that you have to initialize your static variables like you have shown:
<br />
UINT myClass::m_myStatic = NULL;<br />
You can also assign them in member functions with no problems. You don't even need to scope it. But they have to be declared like the above, or else the compiler whines.
Does that make sense?
Even a broken clock is right twice a day.
|
|
|
|
|
Hi Navin thanks for the reply...
I got it working, thanx again!!!
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
1.
Please tell me what’s wrong with my program?
// IDD_DIALOG1 is ID OF Dialog
GetDlgItem(IDD_DIALOG1)->SetWindowText(_T(“The Dialog Caption”);
…..
2.
How can I get the dialog windows pointer?
|
|
|
|
|
Charlady wrote:
GetDlgItem(IDD_DIALOG1)->SetWindowText(_T(“The Dialog Caption”);
Forgive me it this turns out to be wrong as I am just hashing my through dialogs as of late but
Charlady wrote:
GetDlgItem(IDD_DIALOG1)->SetWindowText(_T(“The Dialog Caption”);
return the HANDLE in question. If you wanted it as a pointer I should think you would have no prolem assigned the HANDLE to a pointer. I do hope this helps, as I said... I'm just getting around to learning the nitty gritties of dialogs myself.
-Mel
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|