|
This is getting rather anoying!
I have changed:
hr = pXMLHTTPReq->open( "POST", bstrURL, VARIANT_FALSE );
to:
hr = pXMLHTTPReq->open( "post", bstrURL, VARIANT_FALSE );
This changes the returned STATUS code from 405 "Method Not Implemented" to 501 and the resposeText I now get is: "This server does not implement the requested method". How else other than using the "post" method do we SEND XML to a HTTPS service?
|
|
|
|
|
i got crash when tried to close the dialog which is called by domodal
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
How are you trying to close it?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Can you show code snippet that you got error?
|
|
|
|
|
yes this is the code
BOOL CMyConnCustomInstall::OnCUSTInstall()
{
int MyConnecCheck = 0, ChatCheck = 0, PwdMgr = 0, Response = 0, nStatus = 0;
int EKMyConnDLSuccess = 0, EKChatDLSuccess = 0, EKPwdMgrDLSuccess = 0;
CFileOperation *fileOpr = new CFileOperation();
m_Downloading = 1;
BeginWaitCursor();
if(m_Ekpass==1)
{
//Check if the Tools are already installed
PwdMgr = ToolExistCheck(EKPWDMGR, "EKPassword Manager");
//Downloading
if(PwdMgr)
EKPwdMgrDLSuccess = Download(EKPWDMGR, "EKPassword Manager");
//Installing
if(PwdMgr && (EKPwdMgrDLSuccess == DLSUCCEED))
{
nStatus = InstallTools(EKPWDMGR, "EKPassword Manager");
if(nStatus == DLSUCCEED)
InstallPackages(EKPWDMGR, "EKPassword Manager");
}
this->EndDialog(0);
}
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Why you use of this code
CFileOperation *fileOpr = new CFileOperation();
|
|
|
|
|
Hi,
have you tried to insert your own "stop"-points with AfxMessageBox () to see where it exactly crushes?
And, on the other hand...
this->EndDialog(0);
void EndDialog( int nResult );
Parameters
nResult: Contains the value to be returned from the dialog box to the caller of DoModal.
Why don't you use a simple "return 0;" ??
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
I got some crashes in the same moments.
In my case it was because I tried to free things in the destructor of the dialog and, as the window doesn't exists at that moment... I got assertions while trying to delete contents of members.
Maybe...
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
but i got this only in release mode.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
|
deeps_cute wrote: i got crash...
Which is fairly meaningless. What exactly is happening?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
deeps_cute wrote: i got crash when tried to close the dialog which is called by domodal
have you handlled all dynamic memory allocation and Thread closure before closing of dialog box!
"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 and You
|
|
|
|
|
Hi all,
I have a requirement in which i need to get all the unique user's records from my table. I tried the following query in the Open() function. but it is throwing an error saying:
---------------------------
TestDB
---------------------------
Error retrieving record.
---------------------------
OK
---------------------------
I'm using a SDI application with ODBC connectivity.
m_pSet->Open(CRecordset::dynaset , _T("SELECT User FROM UserPass GROUP BY User;"));
Thanks in Advance.
Rajesh
|
|
|
|
|
Rajesh_Parameswaran wrote: m_pSet->Open(CRecordset::dynaset , _T("SELECT User FROM UserPass GROUP BY User;"));
If you suspect that the GROUP BY clause is the culprit, have you tried the query without it?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The definition of structure xdr_pos in XDR.h file is like this
typedef struct {
enum xdr_op x_op; /* operation; fast additional param */
struct xdr_ops {
bool_t (*x_getlong)(); /* get a long from underlying stream */
bool_t (*x_putlong)(); /* put a long to " */
bool_t (*x_getbytes)();/* get some bytes from " */
bool_t (*x_putbytes)();/* put some bytes to " */
u_long (*x_getpostn)();/* returns bytes off from beginning */
bool_t (*x_setpostn)();/* lets you reposition the stream */
long * (*x_inline)(); /* buf quick ptr to buffered data */
void (*x_destroy)(); /* free privates of this xdr_stream */
} *x_ops;
caddr_t x_public; /* users' data */
caddr_t x_private; /* pointer to private data */
caddr_t x_base; /* private used for position info */
int x_handy; /* extra private word */
} XDR;
The declaration of variable of the type xdr_ops in the file xdrposix.c is like this
static struct xdr_ops xdrposix_ops;
But i am getting compiler error like this
Error 7 error C2079: 'xdrposix_ops' uses undefined struct 'xdr_ops' d:\cougar_io_development\cougar\core\libraries\cplusplus\dlls\andi.vs8\xdrposix.c 284
What is the reason? How to resolve this?
Regards, Eswari
|
|
|
|
|
C++ or C compiler?
See here [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
thank you. it worked. Basically the dll is written in c. But i am porting to VC++2005. But i am getting different error.
Error 12 error C2197: 'int (__cdecl *)(void)' : too many arguments for call d:\cougar_io_development\cougar\core\libraries\cplusplus\dlls\andi.vs8\xdrfloat.c 88
for the line (XDR_PUTLONG(xdrs, (long *)fp));
where the definition is like this in the header file.
#define XDR_PUTLONG(xdrs, longp) \
(*(xdrs)->x_ops->x_putlong)(xdrs, longp)
one more doubt. The same dll i am able to built in debug mode successfully without any code changes. Why changes are required in release mode.
Any help is appreciated.
|
|
|
|
|
hi All,
I have one Activex exe project in VB.
now, i want same thing in VC++.
pls help me how to create Activex exe in VC++??
Praveen Rao
|
|
|
|
|
ggdfgdfg wrote: hi All,
I have one Activex exe project in VB.
now, i want same thing in VC++.
pls help me how to create Activex exe in VC++??
Click here[^] (How NOT to ask a question)
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
|
Hi all,
I have developed a win32 console application, that has a notify icon in the taskbar. The problem is that I'm using the file name to load the icon, so if the ico file is not present, the icon can not be loaded.
For example:
...
niData.uFlags = NIF_ICON|NIF_MESSAGE|NIF_TIP;
LPTSTR szFileName = "SlotClient.ico";
niData.hIcon = (HICON)LoadImage( NULL,
szFileName,
IMAGE_ICON,
0,
0,
LR_CREATEDIBSECTION | LR_DEFAULTSIZE | LR_LOADFROMFILE );
strcpy(niData.szTip,"Application Running");
SetConsoleTitle((LPCSTR)"Test Application");
HWND hWnd = FindWindow(NULL, (LPCTSTR)"Test Application");
niData.hWnd = hWnd;
BOOL rc = Shell_NotifyIcon(NIM_ADD,&niData);
...
Q:How can I load an icon out of the dynamic link library 'user32.dll' so that when I can't find the .ico, I can load another one from the dll.
Many Thanks.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
The best thing to do would be to display the icon that the system thinks is associated with that file type. Use SHGetFileInfo() with uFlags = SHGFI_ICON | SHGFI_LARGEICON (or HGFI_SMALLICON ).
|
|
|
|
|
Try using ExtractIcon API.
Regards,
Paresh.
|
|
|
|
|
Hi,
Thank you for the reply. Just one question if I may, how do I go about getting the handle to the instance of the application, seeing that I use a console application.
Many Thanks
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
GetModuleHandle(NULL)
HMODULE s and HINSTANCE s are the same beast in Win32 (a difference used to exist in the Win16 days) so feel free to cast between them.
Steve
|
|
|
|