|
eheheh, are you getting angry ?!
thank you for you help (and thank you Mr MKHAEL Johnny)
TOXCCT >>> GEII power
|
|
|
|
|
I never get angry just wanted to help and you seemed not concerned
Anyway happy coding
and remember "When all else fails, read the instructions"
[^]
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Help me out!!!
this is troubling me....
------------------------------------------------------------
// confuDlg.h : header file
//
#pragma once
#include "Second.h"
// CconfuDlg dialog
class CconfuDlg : public CDialog
{
// Construction
CSecond second; //instance of CSecond
public:
CconfuDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_CONFU_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButton1();
};
------------------------------------------------------------
#pragma once
//#include "confuDlg.h"
// CSecond dialog
class CSecond : public CDHtmlDialog
{
DECLARE_DYNCREATE(CSecond)
public:
CSecond(CWnd* pParent = NULL); // standard constructor
virtual ~CSecond();
// Overrides
HRESULT OnButtonOK(IHTMLElement *pElement);
HRESULT OnButtonCancel(IHTMLElement *pElement);
// Dialog Data
enum { IDD = IDD_DIALOG2, IDH = IDR_HTML_SECOND };
protected:
CconfuDlg *papa; //pointer of the parent required
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
DECLARE_DHTML_EVENT_MAP()
};
------------------------------------------------------------
I require a pointer of the "CconfuDlg" in "CSecond"...but when i try to build the project, "CconfuDlg" is unknown in CSecond.
If i try to include "confuDlg.h" in "Second.h" ..i get a problem of redifinition
I require a pointer of CconfuDlg in CSecond..how to i work through
plzzz help me out
rakesh
|
|
|
|
|
In Second.h, add the following line before defining your CSecond class:
class CconfuDlg;
And then in confuDlg.h, include the file Second.h.
|
|
|
|
|
in your ConfuDlg.h, try to encapsulate all the code below the #pragma once with the following :
<font style="color:blue;">#if</font> !<font style="color:blue;">defined</font>(__CONFUDLG_H_INCLUDED__)
<font style="color:blue;">#define</font> __CONFUDLG_H_INCLUDED__
<font style="color:green;">
<font style="color:blue;">#endif</font> <font style="color:green;">// __CONFUDLG_H_INCLUDED__</font>
then, try again to include this file in your Second.h
also declare a Class CconfuDlg; before your CSecond class definition
TOXCCT >>> GEII power
|
|
|
|
|
That's what #pragma once does
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
i know, but....
TOXCCT >>> GEII power
|
|
|
|
|
hello,
thanx for u r reply....it worked out fine u r way.
it was nice to get the reply so soon ..imm after me posting the message.
i have another doubt ...is there a way of changing the order of the compilation of the files them self.
rakesh
|
|
|
|
|
Hum maybe a little explanation of my previous post .
When you use a class in another class (like you: CSecond in CconfuDlg so, NOT A POINTER), the compiler needs to know CconfuDlg, in order to 'construct' CSecond (because he needs to know the size of CconfuDlg, thus of CSecond to allocate memory for the object).
BUT if you use a POINTER to a class in another class (CconfuDlg* in CSecond), the compiler knows the size of the pointer (a pointer has always the same size), so he doesn't require to know the class CconfuDlg when constructing CSecond. But, you need to tell hil that this class exists and will be defined after (by adding the line class CconfuDlg; ).
In the second case, if the class is never declared after (and if you use some of its properties), the linker will throw errors telling that the methods you are callig are not defined.
Hope this is clear enough
|
|
|
|
|
hello,
thanx for u r reply....it worked out fine u r way.
it was nice to get the reply so soon ..imm after me posting the message.
i have another doubt ...is there a way of changing the order of the compilation of the files them self.
rakesh
|
|
|
|
|
rakeshgajula wrote:
is there a way of changing the order of the compilation of the files them self.
No I don't think so (I'm not sure...). But why do you want to do such a thing ? I mean, this is not important the order your files will be compiled, the linker will do the job of 'reorganizing' everything fine
|
|
|
|
|
In MFC CDialog is inherited publically from CWnd and in CWnd there is a Create function that takes 7 parameters ( the last one of which has a default value ).
Now surely you should be able to use this function within your derived CDialog class, but Visual C++ will not compile the code saying "error C2661: 'Create' : no overloaded function takes 7 parameters"
This is not important, I'm just curious.
|
|
|
|
|
If the CWnd::Create function is overridden in CDialog , you can in CDialog and derived classes use only the overridden versions. To force the non-overridden CWnd::Create call, use
CDerivedDialog dlg;<br />
dlg.CWnd::Create(...);
Robert-Antonio
"A flower walked around a meadow. She saw a beatiful human and plucked off his head."
|
|
|
|
|
It's urgent!!!
I am developing a dialog based application which controls powerpoint slideshow. My problem regarding the application is stated below:
Suppose a slide has five item within it. So my application will generate five buttons. Now if ActionButton3 is pressed then item3 will be executed and so on. I have tried to solve this by "Shapes" and "Shape" but I can't do so.
Faisal
|
|
|
|
|
Hi,
I want to intercept the Paste operation in the windows explorer so that i can do my own stuff, like pasting unsupported content.
How do i do that?
Thanx n Regards.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
How do you mean "catch" paste?
If you want to paste unsupported content between you app and explore you need to write youself a namespace extension. Seach CP for namespace to get you started. It's not a task for the faint hearted - and make sure before you even start you understand COM.
If you want to paste unsupported content between your app instance one and your app instance two - you can just register a custom clipboard format.
|
|
|
|
|
for your kind information i have implemented a namespace extention and its working fine... Yeah its not for faint hearted, but its quite easy for me now...
Thanx for your reply though.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
Thanks a lot!
|
|
|
|
|
I have recently decided to analyze the PurifyPlus product from Rational. As a result of installing and running the Purify against my main project, I found that due to applied service packs, I also needed to get the Platform SDK from Microsoft. The iso name btw is 2600.2096.7.PlatformSDK_xpsp2_idw.iso.
Now after applying the Platform SDK and following the directions to ensure that the correct environment is in place for Visual C++ 6.0, I compiled my project and now get the following error at the linker level:
shell32.lib(shguid.obj) : fatal error LNK1103: debugging information corrupt; recompile module
I can not find any information as yet. Any ideas?
Paul Kennedy
Father/Son/Husband/C Programmer
What else could you ask for?
|
|
|
|
|
I used to get this when trying to use the microsoft layer for unicode.
I actually tracked it down to the MSLU being built (incorrectly on MS's part) with VS 7.
See here
http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&threadm=5EE8080C-9886-46AA-8939-D22A2289B7E9%40microsoft.com&rnum=8&prev=/groups%3Fq%3DLNK1103%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3D5EE8080C-9886-46AA-8939-D22A2289B7E9%2540microsoft.com%26rnum%3D8
I'm not sure about your case though. Was it the Feb 2003 platform SDK you installed? I ask as i have a number of projects that link to that lib using that SDK and they all work. DOes it link ok on release build?
|
|
|
|
|
Hi all,
i'm facing problem with POST request to webserver.
The webserver goes into infinite wait and does not respond anything to the
client.
Get request is working fine.
sprintf(buff,"POST //cgi-bin/cgi.exe HTTP/1.1\r\nHost:
sabi\r\nTransfer-encoding: chunked\r\nContent-Type:
text/plain\r\n\r\n10\r\n1234567890123456\r\n0\r\n\r\n");
I'm using winsock for sockets .
Know that there has to be something wrong with the request packet.
Have looked a lot and could not get any sample request.
Any kind of suggestion / links will be greatly helpful.
Thanks in anticipation guys.
Rgds....
|
|
|
|
|
I suspect you need a Content-length header entry.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
It should not be.
Because the whole idea of specifying transfer encoding chunked is that content length is not needed and size of check preceeds the actual data of chunk. ( As per RFC 2616 - section 3.6.1)
pls correct me if i'm wrong as i'm relatively new to http programming.
Rgds,
|
|
|
|
|
My mistake, you are correct.
What server are you using? Do you know it supports chunked transfer? If it does do you need to configure the server to accept it?
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
maybe the packets sent back by the CGI don't arrive where they have to.
is the CGI-calling computer behind a server (on a LAN) without router ?
isn't the caller clicking the "STOP" button ?
do you have an idea of where it loops ? (breakpoints, etc...)
TOXCCT >>> GEII power
|
|
|
|