|
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST,CStrSuburl);
|
|
|
|
|
Try like this
<br />
pFile->SendRequest(szHeaders,(LPVOID)(LPCTSTR)CStrQueryString,(DWORD)CStrQueryString.GetLength()); <br />
greatest thing is to do wot others think you cant suhredayan@omniquad.com
|
|
|
|
|
Hi all,
How can I change the Caption of all control on CFileDialog.
CFileDialog dlg(...);
...
...
...
ex:
"Open" -> "ads",
"Cancel" -> "ddd",
"Look in" -> "find in"...
Thanks all
|
|
|
|
|
You'll have do derive your own class from CFileDialog.
greatest thing is to do wot others think you cant suhredayan@omniquad.com
|
|
|
|
|
you could enumerate the child windows and then change them as you find them.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Is this of any help
CFileDialog vFileDlg (TRUE, "txt", "*.txt",OFN_FILEMUSTEXIST|OFN_HIDEREADONLY, vFilters);
//the next line changes the title
vFileDlg.m_ofn.lpstrTitle = "Your title here";
//the next line sets the default directory to start looking for the file
vFileDlg.m_ofn.lpstrInitialDir = "G:\\DirName\\DirName2";
if(vFileDlg.DoModal() == IDOK)
{
etc
Let me know if this helps..
Dave Collins
|
|
|
|
|
How to disable all the ASSERTS that come when u execute a program in Debug mode?I require it very urgently.
The ASSERT i m getting are in timecore.cpp and i have no idea how to remove them. But they are occurring so frequently that its difficult to operate on the debug mode application.
Any comiler setting or macro which would disable all ASSERTs from popping up?
Any ideas about ASSERTS in timecore.cpp?
|
|
|
|
|
The ASSERTs are telling you something, you should listen to them.
You could try redefining ASSERT, and see if that works out for you. Or undefine DEBUG, but then you may as well go to release mode.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Christian Graus wrote:
The ASSERTs are telling you something, you should listen to them
Uh huh Some of my friends complain when I sprinkle my code liberally with ASSERT and ASSERT_KINDOF but I almost never have problems with NULL pointers or pointers to objects of the wrong kind. Even the act of writing the assertion gets the background threads thinking about whether I'm calling something with the correct (and validated) pointers
Rob Manderson
http://www.mindprobes.net
Paul Watson wrote:What sense would you most dislike loosing?
Ian Darling replied.
Telepathy
Then I'd no longer be able to find out everyones dirty little secrets The Lounge, December 4 2003
|
|
|
|
|
Most ASSERT macros (I'm assuming you're using some Microsoft version of them) are enabled in debug compilations and then nullified for release versions. In other words, an ASSERT macro might be defined like this:
#ifdef _DEBUG
#define ASSERT(expr) ...some assert code...
#else
#define ASSERT(expr)
#endif
Notice how the second ASSERT defition has nothing after it. That's because in non-debug builds, you don't want assertions to do anything. So, to possibly answer your question, you should probably dig up where your ASSERT is being defined and do #undef _DEBUG (to undefine debug build). Unfortunately, that turns off most debug features since many things test against _DEBUG being defined. Either do that, or compile as release, or create your own ASSERT macro based on other example code.
HTH
|
|
|
|
|
ummmmm
how about fixing the cause of the ASSERT's?
just a wild stupid idea i know but im old fashioned like that
"there is no spoon" biz stuff about me
|
|
|
|
|
I already told him to do that in the previous post but he says he has no time to do that(that was 3-4 days back), if he had taken some time off to fix the problem then his prob would have been solved.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
Thnks,
I finally fixed the ASSERT.
|
|
|
|
|
Hello old chaps (and chapettes)
We have an extension DLL inside of which are a number of classes.
One or two of the classes are trying to use some of the other classes we export
However, it would seem that as the classes are marked for export and the compiler won't let us make use of the classes inside the dll.
is there a solution for this (other than having 1 dll per class and importing that)
can we keep all the classes in the one dll and make use of some of them internally?
regards
Bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
|
are you using _declspec(dllexport) macro or the DEF file to export your classes? Could u pls send me a sample line showing, how u try to export them?
Regards,
Buddhike de Silva
|
|
|
|
|
In VC6.0,when I debug my program Test that depends on a DLL,a message box always pops up with "Unhandled exception in Test.exe[MSCTF.DLL]:0XC0000005:Access Violation".But when executing it,the undesired thing doesn't emerge.Why???
Please help me!!!
Rap off for you,for me,for our human.
|
|
|
|
|
hi,
i just get frustrated about the problem,
i m trying to connect with the Server using Winsock
and then successfully able to send the packet usinf send() function but will not be able to receive the packet from server using recv() function.
just look at my code snippet.......
WSADATA wsaData;
long Error;
int iResult = WSAStartup(MAKEWORD(2,2), &wsaData);
if (iResult != NO_ERROR)
printf("Error at WSAStartup()\n");
// Create a SOCKET for connecting to server
SOCKET ConnectSocket;
ConnectSocket = socket(AF_INET, SOCK_STREAM, 0);
if (ConnectSocket == INVALID_SOCKET)
{
printf("Error at socket(): %ld\n", WSAGetLastError());
WSACleanup();
return;
}
// The sockaddr_in structure specifies the address family,
// IP address, and port of the server to be connected to.
char* localIP;
hostent* localHost;
int portNumber = 443;
localHost = gethostbyname("hostname");
localIP = inet_ntoa (*(struct in_addr *)*localHost->h_addr_list);
sockaddr_in clientService;
clientService.sin_family = AF_INET;
clientService.sin_addr.s_addr = inet_addr(localIP);
clientService.sin_port = htons(portNumber);
// Connect to server.
if ( connect(ConnectSocket,(SOCKADDR*)&clientService,sizeof(clientService)) == SOCKET_ERROR)
{
printf( "Failed to connect.\n" );
Error = WSAGetLastError();
printf("\n %ld \n",Error);
WSACleanup();
return;
}
// strcpy(sendbuf,"a400\ws.asp");
bytesSent = send(ConnectSocket,sendbuf,strlen(sendbuf),0);
printf("Bytes Sent: %ld\n", bytesSent );
bytesRecv = recv(ConnectSocket,recvbuf,bytesSent,0);
if (bytesRecv <= 0)
printf("\n Error : %d",WSAGetLastError());
WSACleanup();
|
|
|
|
|
Hi,
i think so u need to use the particular port for that pop3 port is 110 like that. try it.
Have A Nice Day
Murali.M
|
|
|
|
|
I have a program with 3 class (actually 4, but the last one will work if i can get the other 3 to work), let's call them A, B, and C. A uses both B and C as private data members, and B and C each use A as a private data member. Apparently i can't simply use include directives, since circular inclusions like that are prohibited. so i tried using foreward declarations, but that did nothing. then i tried using include directives for A, but foreward declarations for B and C. If i do that, then A works, but B and C each have a lot of errors. they don't register A as a declared class. any idea how i can fix this?
|
|
|
|
|
How do forward declarations 'not work' for you ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Anonymous wrote:
A uses both B and C as private data members, and B and C each use A as a private data member.
You can't do this. This basically creates a class that has an infinite size since A includes B which includes A which includes B etc. The way to do this is to include a pointer to A inside B and C, and then a forward declaration of A in the include files for B and C will work nicely.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
probably should have said this earlier, but that's what it is. the code itself is fine; the professor gave it to us to organize into separate files. in one file it compiles fine. it's just when i try to put them in separate files when the problems arise.
as for what i meant by 'not work', i should have said 'has errors'. pardon the confusion.
|
|
|
|
|
You are probably using forward declarations
but not using member pointers or references to those classes
class A;<br />
<br />
class B( {<br />
A* m_a;<br />
};<br />
<br />
class A {<br />
friend class B;<br />
...<br />
};
|
|
|
|
|
Hi, i have a SDI App(generated with app wizard) with a file menu bar that envokes another dialog class..
my prob is trying to get a pointer from the dialog class that is envoked from the menu bar back to the original main dialog class created by the app wizard.
that way i can access the main dialog windows data
Thanks
|
|
|
|