|
Hi,
I have a MFC based resource dll,it works fine in Debug mode,But it doesn't in release.The OS i work on is Windows ME.Could anyone help me to make the release build to work fine?
Regards
Neha
|
|
|
|
|
Could you be more specific abt the problem you are facing ?
|
|
|
|
|
Ok,I have a MFC based dll.This dll is been launched from an application.If i build a dll in debug mode ,it works fine.But if i build it in release mode,it crashes.for both debug & release settings options are same.
|
|
|
|
|
i think he meant "can you be more specific about what kind of errors you are getting?"
the easiest way to see where its goofing up is to log certain checkpoints to a text file ... or include debug info in the release build but that might still change the behaviour of certain very subtle bugs
"... and so i said to him ... if it don't dance and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
yea.,u got to give the exact details of the errors, so that i will be easy to fix the problem.
Try debugging in release mode.
or go thru'
http://www.codeproject.com/debug/releasemode.asp
for more details..
rgds,
ravi
|
|
|
|
|
I want to download a site, but how to change the asp file to htm file?
thank you very much.
|
|
|
|
|
Any particular site you had in mind?
cheers,
Chris Maunder
|
|
|
|
|
|
now, codeproject.
if i want to download the page:http://www.codeproject.com/system/hooksys.asp, how can i change it to htm in my soft?
thank you.
zl
|
|
|
|
|
Only open the page, with the IE and make a Save As of it, in html format....
Regards
Carlos Antollini.
www.wanakostudios.com
Sonork ID 100.10529 cantollini
|
|
|
|
|
I don't want to use ie, but how to realize it in a software?
|
|
|
|
|
Connect to port 80, send the HTTP request, get back the entire HTTP content and save to a file with an html extension and ShellExecute the file to open it in IE
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
thank you very much.
|
|
|
|
|
Chris
How big is the problem where people use web grabbing software to try and download the entire CP site?
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Dear friends,
The default window menu in MDI has the following items:
1. New Window
2. Cascade
3. Title
4. Arrage Icons
5. (document names)
Document name can select the corresponding child window and brings it to the top.
I would like to put the "document names" in other menu (not the default window menu).
Would you please give me a suggestion ?
Thanks a lot !
Eric Lee
|
|
|
|
|
Does anyone know how to implement the STL sort function or the knows a website that tells you how to implement it.
Thank you,
Juanito
|
|
|
|
|
sort takes two iterates and an instance of the type.
sort(I i1, I i2, T t1)
{
while (i1 != i2)
{
if ( *i1 == t1)
return i1;
++i1;
}
return i1;
}
Actually, the STL code is provided with your compiler, so you can see exactly how they did it, it's in algorithm. I doubt it's much different to the above though.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
sort(I i1, I i2, T t1)
{
while (i1 != i2)
{
if ( *i1 == t1)
return i1;
++i1;
}
return i1;
}
Man, what is that? Seems like a search routine.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Ooops....
I guess I should look more closely....
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Okay. I have determine one major problem, or should I say characteristic of WSASend and/or WSARecv.
For some reason, I cannot call WSASend one after another. For example, let say I call WSASend to send a 4 byte buffer to the client indicating the size of the incoming data. That works find and the client receives the first WSASend package without problems. However, for some reason I cannot call WSASend the second time to send the actual package. The error on the *sending* side is WSAEFAULT:
// WSAEFAULT: "Bad address"
The error on the *receiving* side is WSAEWOULDBLOCK:
// WSAEWOULDBLOCK: "Resource temporarily unavailable"
The bottomline is I cannot send two data buffer consecutively. I am using the WSAAsyncSelect I/O Mode. Is there a specific specification that I missed as far as sending and receiving?
Please message me if you have any ideas.
Thanks,
Kuphryn
|
|
|
|
|
kuphryn wrote:
// WSAEFAULT: "Bad address" More specifically, this means: The lpBuffers, lpNumberOfBytesSent, lpOverlapped, lpCompletionRoutine parameter is not totally contained in a valid part of the user address space. Check the pointers you pass to WSASend.
kuphryn wrote:
// WSAEWOULDBLOCK: "Resource temporarily unavailable"
This simply means that there's no incoming data to be read.
|
|
|
|
|
In asynchronous mode, you shouldn't be continuously calling WSASend or WSARecv , but instead you're supposed to issue only one call to WSASend (WSARecv ) after being notified with FD_WRITE (FD_READ ). Check your documentation for WSAAsyncSelect . Also, you might want to take a look at Warren Young's Winsock Programmer's FAQ.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks.
I am developing the program under WindowsXP and Athlon 750mhz.
I am very, very close to getting everything working as planned. Here is my progress. The program sends data perfectly (I believe). For example:
// Given WSABUF dataHDR, dataMessage
- send header buffer (dataHDR.Buf = data size)
- send data buffer (dataMessage.Buf = message)
// Given WSABUF inHDR, inMessage
- receive header buffer (inHDR = data size)
- use atol() to convert inHDR.Buf into an integer data size
- receive data buffer (inMessage.Buf = message)
Okay. I checked the actual receive size after calling WSARecv for the data buffer. The receive size is accurate, i.e. it received the exact number of byte that was sent. However, I cannot extract all characters from inMessage.Buf.
I use this code to extract the characters from inMessage.Buf
// CString message;
// message += *inMessage.Buf
The problem is the code above only extracts the *first* character in inMessage.Buf. I have considered that maybe only one character or byte is inside of inMessage.Buf; however, according to the check I did above on the actual received size, everything seems accurate.
Am I not converting inMessage.Buf correctly?
Kuphryn
|
|
|
|
|
Can some please tell how I can get a list of the available drives on a system (preferably CD drives). Is there an iteretor that I can using or something like that?
thanks,
Vic
|
|
|
|
|
Use GetLogicalDriveStrings to get a list of the drive letters.
Then use GetDriveType and check the return value for DRIVE_CDROM.
Like it or not, I'm right.
|
|
|
|