|
pablomartin wrote: I offer web hosting in exchange for help!
Nah, I would accept just money... 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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini f you change of the idea, just tellme please.
Best regards !
|
|
|
|
|
|
Hello,
I created MFC application in VS 2008. In that i write CD using API/function like;
HasRecordableDrive(),GetRecorderDriveLetter(),Burn() methods.
When application run, Burn method will open CD Writing Wizard.
In step 1, CD Name edit box is there, where we can give CD Name. In that user can change the cd name.
I want to set this CD Name through programatically.
How can i set this option programmaticaly?Abhijit
|
|
|
|
|
It is not possible using the ICDBurn interface.
Here is an open source library for CD/DVD creation - InfraRecorder[^]
|
|
|
|
|
Hello Sir,
I download the InfraRecorder.exe and install it.
Now how can i use the API of InfraRecorder in my own application...Abhijit
|
|
|
|
|
|
How to import 2 file .3ds (3dmax7) to VC6 by gl.h
.3ds has got map,aminate simple
Not engine!!
Or export .max to ...?
Have link download tool export for 3dsmax 7 ?
Thanks
Tuan,college 8 Vietnammodified on Sunday, February 14, 2010 10:56 PM
|
|
|
|
|
Google '3ds model loader'. L u n a t i c F r i n g e
|
|
|
|
|
The enter key is not recognized at all, I tried the following:
LRESULT MyWeBrowser::PostMessage( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL & bParsed )
{
switch( uMsg ) {
case WM_KEYDOWN:
{
if (wParam == VK_RETURN) {
MessageBoxW(this->m_Hwnd,L"hello",L"hello",MB_OK);
}
}
break;
}
}
But it doesn't work, any help?
|
|
|
|
|
this stuff is better handled in PreTranslateMessage. Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hello all,
I am working on my homework and I am having issues. When I added a third box to the equation, the total volume in bytes went from 24bytes down to 8bytes. This is not right, when adding another box to my program it should increase in size. But all I had to do was add a third box and calculate the Length, Width, and Height of the third added box. Then calculate the total volume for all three boxes.
Sounds very simple but after adding my third box and changing the code a little bit, I am having issues. I do not understand why it is not adding the two boxVolume1 + boxVolume3 together and then displaying it.
The source is listed below. Thank you all to can contribute to pointing out why this program is not working correctly.
#include <iomanip>
#include <iostream>
using std::cout;
using std::endl;
class CBox
{
public:
double m_Length;
double m_Width;
double m_Height;
};
int main()
{
CBox box1;
CBox box2;
CBox box3;
double boxVolume1 = 0.0;
double boxVolume3 = 0.0;
double volumetotal = 0.0;
box1.m_Height = 18.0;
box1.m_Length = 78.0;
box1.m_Width = 24.0;
box2.m_Height = box1.m_Height - 10;
box2.m_Length = box1.m_Length/2.0;
box2.m_Width = 0.25*box1.m_Length;
box3.m_Height = 108.0;
box3.m_Length = 32.0;
box3.m_Width = 18.0;
boxVolume1 = box1.m_Height*box1.m_Length*box1.m_Width;
boxVolume3 = box3.m_Height*box3.m_Length*box3.m_Width;
cout << endl
<< "Volume of box1 = " << boxVolume1;
cout << endl
<< "Volume of box3 = " << boxVolume3;
cout << endl
<< "box2 has sides which total "
<< box2.m_Height+ box2.m_Length+ box2.m_Width
<< " inches.";
volumetotal = boxVolume1+boxVolume3;
cout << volumetotal;
cout << endl
<< "A CBox object occupies "
<< sizeof volumetotal << " bytes.";
cout <<endl;
return 0;
}
|
|
|
|
|
rbwest86 wrote: sizeof volumetotal
sizeof volumetotal is always 8 whatever value it contains (in the range allowed for double s, of course, see [^]).
Adding values to volumetotal cannot change its size in memory (it changes just the bit pattern in memory).
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: is always 8 a constant, often 8
FTFY
The good old Data General machines had 36-bit words holding five 7-bit bytes plus a flag bit, so they would store a double in slightly more than 10 bytes. Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
|
|
|
|
|
Klingon developers aren't allowed to talk with someone who thinks there are 7 bits bytes. 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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Klingon developers aren't allowed to talk with someone who thinks there are 7 bits bytes.
If that is true, you've just proven yourself not to be a Klingon developer. Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
|
|
|
|
|
thank you everyone. I figured out what the problem was.
Thank you all again.
|
|
|
|
|
I want to realize the toolbars and windows as follows:
but I only get this result now:
how to do it?
anyone can tell me the answer?
Thanks a lot!
|
|
|
|
|
|
Thank you!
I download the VC2008FeaturePack.exe(322M),but can't install.
I use the chinese version, the System Requirements says:
"Support for systems with non-English versions of Visual Studio 2008 installed will be available in Visual Studio 2008 Service Pack 1. "
So I download the VS2008SP1CHSX1512981.iso(898M), It's too big to install. It need 6G disk space to install. but I have only 4G in my C: disk
Other BBS friends advice me to use:
1. Xtreme Toolkit Pro
2. WTL
3. DirectUI
I don't know these, but I'll try all above.
This is it. Anyone else has other advices?
|
|
|
|
|
Hiya,
I want to basically perform a bulk copy to a SQL server remotely via VC++ client.
Just dont know what library to pull in,maybe sqlncli.msi and use the sqlncli.dll (sql 2008 native client).
I wanted to build an MFC application to use this dll. I'm not sure if this is what I want and how to use
it. Guidance is needed on this and a steady hand.
Much appreciated if somebody can shed some light on how to do this in VC++?
Thanks,
garyc
|
|
|
|
|
Sql native client should do, install it and look for examples.
OLEDB and ODBC providers are good as well, look here http://msdn.microsoft.com/en-us/library/ms130809.aspx
|
|
|
|
|
Hi everyone.
I've got a code snippet which looks like this
CInternetSession session(_T("MyAgent"));
CHttpConnection *pConn = NULL;
pConn = session.GetHttpConnection(_T("www.google.com"),
(INTERNET_PORT)INTERNET_DEFAULT_HTTP_PORT); // function in wininet.dll
......
delete pConn;
The last delete operator works fine. The problem is that it shouldn't, because the exe from which I call wininet.dll function is linked with CRT statically, so the delete operator should look for pConn in it's CRT's run time heap and shouldn't find it. Please share any ideas.
Thanks in advance.
|
|
|
|
|
here's the source for CInternetSession::GetHttpConnection:
CHttpConnection* CInternetSession::GetHttpConnection(LPCTSTR pstrServer,
DWORD dwFlags, INTERNET_PORT nPort ,
LPCTSTR pstrUserName , LPCTSTR pstrPassword )
{
ASSERT(AfxIsValidString(pstrServer));
ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0);
CHttpConnection* pReturn = new CHttpConnection(this, pstrServer,
dwFlags, nPort, pstrUserName, pstrPassword, m_dwContext);
return pReturn;
}
it's allocated on the caller's heap, not in WinInet.DLL
that's in VC6's MFC\SRC\Inet.cpp
|
|
|
|
|
Tnank you very much for your reply, but please take a look at this text whick I took from Jeffrey Richter's "Windows via C++"
VOID EXEFunc() {
PVOID pv = DLLFunc();
// Access the storage pointed to by pv...
// Assumes that pv is in EXE's C/C++ run-time heap
free(pv);
}
PVOID DLLFunc() {
// Allocate block from DLL's C/C++ run-time heap
return(malloc(100));
}
So, what do you think? Does the preceding code work correctly? Is the block allocated by the DLL's function freed by the EXE's function? The answer is: maybe. The code shown does not give you enough information. If both the EXE and the DLL link to the DLL C/C++ run-time library, the code works just fine. However, if one or both of the modules link to the static C/C++ run-time library, the call to free fails. I have seen developers write code similar to this too many times, and it has burned them all...
|
|
|
|