|
Is this due tomorrow?
I can tell you one thing... those <code></code> tags will not do at all.;P
-- modified at 0:16 Monday 15th May, 2006
|
|
|
|
|
|
makaveli_07 wrote: ...now i want to do the same thing as a application in MFC...
What feature of MFC do you need?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Can you show me a function to calculate logarithm of double in MFC?
|
|
|
|
|
log()
In the future, try searching the MSDN library.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
In what base? log() for natural logarithms and log10() for base-10 logarithms.
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"
|
|
|
|
|
I was wondering if there was a way to detect the physical ports of the computer through a program, I'm trying to find information about it but it seems there isn't much, can anyone help me?
just another one from the crowd
|
|
|
|
|
|
|
Hi,
i've been trying to learn how to send data to other computers, i've looked at this article:
http://www.codeproject.com/internet/Client_Server.asp
i can't understand why it "adds" new text to the old text. example: the server sends a message to a client saying "Testing" then the server sends another message to the client saying "Hi"... and the data recieved will read "Histing". it just replaces the letters...
i am probably overlooking something very obvious, but could someone take a look and tell me why it is doing this?
thanks in advance
|
|
|
|
|
That's because when you reuse the buffer and receive two bytes in the second message, the bytes are stored at the beginning of the buffer. Pay attention to the number of bytes that the read-socket call returns, don't assume everything is null-terminated.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I think it's better to send (length(str)+1) so that you can simply send the null char also and no need to add a seperate null to the str at the receiving section.
- NS -
|
|
|
|
|
I am debugging a directshow filter following the steps below:
1. Set a breakpoint at some function of interest
2. Compile a debug build of your filter
3. Make sure that this debug filter is registered and not your release build (regsvr32). You can setup a custom build step to ensure this is done.
4. Press F5
5. You should see a dialog that pops up asking for the executable to be used for the debugging session. Select GraphEdit. (If you do not see the dialog you need to modify your project configuration properties under Debugging)
6. Insert your filter and do what you want. When it hits a breakpoint you'll see it.
But as I went to step 5, error came out. I saw the popup dialog, but as I chose GraphEdit, error message popped up:
"Debugging information for 'graphedt.exe' cannot be found or does not match. No symbols loaded.
Do you want to continue debugging?"
Then whatever did I choose 'yes' or 'no', debugging stopped. I am using vs2005, DirectX9.0. Thanks for your help.
-- modified at 21:52 Sunday 14th May, 2006
|
|
|
|
|
Make sure you're debugging a debug and not a release build.
Steve
|
|
|
|
|
Thanks for your information. I am using the debug build, but I do not know why I got that error message. Thanks.
In detail what I am doing is as I pressed F5, a dialog popped up, and in the item 'Executable file name', I input \DXSDK\Bin\DXUtils\graphedt.exe, then I clicked OK, after that, the error message came out.
-- modified at 21:39 Sunday 14th May, 2006
|
|
|
|
|
That error won't cause any problems in debugging your filter, so you can just ignore it.
If you run GraphEdit manually (not in the debugger), does it work?
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"
|
|
|
|
|
Yes, you are right. Now I can debug the filter. Thank you very much.
|
|
|
|
|
Hi
I have a SDI application, within that i have a property sheet, which has several property pages
I need to pass my Document pointer to some of the property pages
I can pass the doc pointer to the sheet via DoModal OK like
ie.
CMyAppDoc* pDoc = GetDocument();
CMySheet dlg;
dlg.DoModal(pDoc);
however once at the sheet i need to pass it to some of the pages
does anyone know the correct way of doing this
i load each of my pages in the constructor in my property sheet
like
AddPage(&m_Page1);
Thanks
Si
|
|
|
|
|
put a call in your sheet that can take the pointer and pass it to all the pages:
void CMySheet::SetDocPtr(CDocument *pDoc)
{
m_page1.m_pDocPtr = pDoc;
..etc
}
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
thanks
|
|
|
|
|
how i give to a variable the numbers of tick (my Timer is on every 1000ms). so how i can give the number of seconds have passed at a variable
-- modified at 16:48 Sunday 14th May, 2006
|
|
|
|
|
use ctime.h and use st_time() and end_time()
|
|
|
|
|
makaveli_07 wrote: st_time() and end_time()
sorry i Can't able to find any information of these function in MSDN!
"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
|
|
|
|
|
Dear All
Can I compile C code on the Visual Studio 2003/2005?
If yes, please tell me how?
Thanks a lot
|
|
|
|
|
Yes, just name the files with a .c extension and they'll be treated as C files. There's also a compiler switch to force this behavior for any file (in case they don't have a .c extension and you can't rename them).
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|