|
For those who are still using VS6, it appears that Service Pack 6 was released yesterday. I hope this is not a repost - if so I'll delete this message.
|
|
|
|
|
was using with SP5 for a while and now... SP6
I was born intelligent Education ruined me!.
|
|
|
|
|
|
ilmcuts wrote:
I hope this is not a repost - if so I'll delete this message.
so what, only thing that would happen is the post will get downvoted :-p
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
|
Really? The last I'd heard, about 6 months ago, was that MS had no plans to release any further service packs! This is good news - thanks!
Will Build Nuclear Missile For Food - No Target Too Small
|
|
|
|
|
How many additional errors this time?
I'm really anxious.
Don't try it, just do it! 
|
|
|
|
|
Hi All,
I have a CMDIChildWnd application where each child window loads a CFormView.FormView contains some edit controls,comboxes etc.(note:edit boxes,comboboxes are standard MFC controls)
when i double click on any edit box to select the contents,the focus is always going to first control in the tab order.I dont have OnLButtonDbClick() method in my code.
Please some one tell me what might may be the possible reason.
Thanks in advance...
|
|
|
|
|
I'm implementing my own version of the Explorer 'New' menu.
'Create Shortcut' and 'Create Briefcase' are both stored in the registry as REG_EXPAND_SZ strings.
I've used ExpandEnvironmentStrings to translate things like %SystemRoot% to c:\winnt\system32.
My problem is the %1, %2 parameters.
I've succesfully ran the 'create shortcut' command supplying the directory under-which I want the shortcut to be created in instead of %1. When I try to play the same trick on the Briefcase item it does nothing.
What does the !d! in :
%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\syncui.dll,Briefcase_Create %2!d! %1 translate to ? What are the rules for %1 %2 and %x ?
Is there a 'normal' way to execute this commands, without hacks ?
Thanks
|
|
|
|
|
Hi All,
I read ther article by VGirish, on how to use CScrollView and scroll bmp's in an MDI appln. I tried it out but it does not work. Can any one tell me how do i scroll a bmp using CScrollView in an SDI application.
Thanks and regards,
Salil.
|
|
|
|
|
I have created a dll file and 2 lib files using VC++6.0. I have a tester application which test the functions in these dll and lib files. Now I want to debug my project using vc7.0. I have the .NET framework 1.1 installed(I don't have the MDE). How can I compile the project from the command prompt(cl.exe)? Is there any article which gives me information on this.
I have seen the options given in MSDN. Can anyone give me some sample commands. I have tried certain options, but it gives me an error, undeclared, in Program Files\Visual Studio\vc98\Include\Utility.
Can anyone help me pls..
Thanks
Vini
|
|
|
|
|
Hi Friends,
I have some quries regarding the Class Memory layouts.
Please consider the following questions for each example
question 1: Class Memory layout along with size
question 2: Number of vatables and there contents.
question 3: Number of Vptrs.
------------------------------------------------------------
Examples:
class Normal{
}; //Layout /Size??
------------------------------------------------------------
class Base{
public :
void Function(void){
}
};
class Derived :public Base{
void Function(void){
}
}; //How Function Overriding Works? Depends Upon Pointer type? How?
//Like Base class pointer will call base class functions? and derive class pointer will call derived class functions?
------------------------------------------------------------
class Normal{
public:
virtual void Function(void){
}
}; //Layout of VTABLE along with VPTR
------------------------------------------------------------
class Base{
public :
virtual void Function(void){
}
};
class Derived :public Base{
void Function(void){
}
}; // How many vtables and vptrs? Where? What will be the exact layout?
------------------------------------------------------------
class Base{
public :
virtual void Function(void){
}
};
class Derived :public Base{
virtual void Function(void){
}
}; // Now if I declared virtual function in derived class then?
//what will be layout along with vptr?
------------------------------------------------------------
class Base{
public :
virtual void Function(void){
}
};
class Derived :public Base{
void Function(void){
}
virtual void Function1(void){
}
}; // Now if I declared some other virtual function in derived class then?
//what will be layout along with vptr?
------------------------------------------------------------
class Base{
public :
virtual void Function(void){
}
};
class Base2{
public :
virtual void Function1(void){
}
};
class Derived :public Base,public Base2{
};// Here What if I have 2 base classes along with virtual function ?
------------------------------------------------------------
class Base{
public :
virtual void Function(void){
}
};
class Base2{
public :
virtual void Function1(void){
}
};
class Derived :public Base,public Base2{
virtual void Function2(void){
}
};// Here What if I have 2 base classes along with virtual function also my derived
//class has it's own virtual function so How many vptrs/vtables?
VikramS
|
|
|
|
|
Read the book : "Inside C++ Object Model", by Stanley Lippman, and you will get a clear picture about all the three questions of yours.
Maxwell Chen
|
|
|
|
|
Very often when enabling the flag OFN_ALLOWMULTISELECT allows one to multiple select a number of files in a current folder.
However there's a limit where one can select a number of files and thereafter... the dialog hangs on you. I would like to find out a more economical method of dynamically allocating memory for this kind of situation. I derived the CFileDialog to a new class and gave it a new variable TCHAR* m_varString;
I override the OnFolderChange() putting some code that shows below..
However it's not efficient and it seems to show rubbish every time I reopen the CFileDialog. After certain time a memory violation occurred. It all seemed strange to me. Perhaps I'm heading the wrong way. Can someone please advise me what I shoud correct? Thanks...
void CFileDialogEx::OnFolderChange()
{
// TODO: Add your specialized code here and/or call the base class
CString cstrFolderPath = GetFolderPath();
DWORD dwBufCount = cstrFolderPath.GetLength();
cstrFolderPath += _T("\\*.*");
CFileFind ff;
BOOL bFound = ff.FindFile( cstrFolderPath );
while ( bFound )
{
bFound = ff.FindNextFile();
if ( !ff.IsDirectory() )
dwBufCount += ( ff.GetFilePath().GetLength() );
}
dwBufCount += 1;
ff.Close();
delete m_pszVar;
m_pszVar = (TCHAR*) new TCHAR[dwBufCount];
m_pszVar[0] = _T('\0');
m_pOFN->lpstrFile = m_pszVar;
m_pOFN->nMaxFile = dwBufCount;
CFileDialog::OnFolderChange();
}
|
|
|
|
|
|
I have file that is raw PCM format,
what all things do i need to do convert the file to Wave format.
I mean what apis do i need to use?
Thanx.
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
If you can wade through the VB code here[^] you can probably bang out a nice, efficient C++ utility to convert PCM to .wav.
Will Build Nuclear Missile For Food - No Target Too Small
|
|
|
|
|
Thanx that link was very help full.
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
You can read up on the file format and do it yourself, find an existing library from Google or elsewhere, or investigate the 'Multimedia IO' functions such as 'mmioOpen' in MSDN. The DirectSound part of the DirectX development kit contains some C++ helper classes, such as 'CWaveFile' that wrap mmio functions helpfully and are probably the quickest approach to a correct result.
You will have to create a wav file, write the right sound format (bits, samples, channels, compressed/not etc) then, assuming that the samples are compatible, you can just write them out.
Paul
|
|
|
|
|
Thanx.
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
Hi,
Just wondering why If I have a CButton
then
CRect butt;
m_button.GetClientRect(&butt);
m_button.ClientToScreen(&butt);
m_button.MoveWindow(&butt);
does not move the window at all which is expected.
but if the m_button is a CStatic then This does move the window?
I thought I was not doing anything by taking the coords converting them back to screen coords and Calling MoveWindow. It is still just the same coords I got originally.
I have a list view inside a CStatic (group box) and I would like to resize the group box and the list view inside to the maxium width of the screen.
Is it not possible to resize a CStatic?
|
|
|
|
|
The reason I can think of is that 'GetClientRect' returns the area minus the non-client area. So perhaps your CButton has no non-client area while your CStatic does ?
You should be able to resize your static control with no problem.
You can do this :
<br />
CRect rc;<br />
control.GetWindowRect(rc);
ScreenToClient(rc);
<br />
rc.left = 400;<br />
<br />
control.MoveWindow/SetWindowPos(rc);<br />
|
|
|
|
|
In MSDN under DialogProc it tells you to return TRUE (1) if you process the message, but when you check out most of the messages, it tells you to return 0 (FALSE). So which one do I use?
wWw.KruncherInc.cOm - My programs
|
|
|
|
|
It's by design. Just follow the documents for every implementations you use.
For example, if you invoke a certain function defined by Maxwell:
int MaxwellCreateDialog(HWND* phSomeThing)
{
return 77;
}
Then in your code.....
HWND hWnd = NULL;
int iRetValue = MaxwellCreateDialog(&hWnd);
switch(iRetValue)
{
case 77:
AfxMessageBox("Congratulation! DialogBox is created.");
break;
default:
throw ErrorObj("Error creating a dialogbox", iRetValue);
}
Maxwell Chen
|
|
|
|
|
Hi,
The code I am writting: cout<<"Our start time is"<
|
|
|
|