|
stevelam wrote: LPTSTR lpReturnedString = "";
unsigned int nSize = MAX_PATH;
GetPrivateProfileStringA("Section" , lpValueName, "\255", lpReturnedString, nSize, buffer);
lpReturnedString is a static string of size 1 (end of string character only). If you try to copy something in it, you will write outside the boundary of the allocated memory and thus overwriting memory you cannot write to.
Use a fixed size array instead ans pass its maximum capacity in the nSize paramter of the function.
|
|
|
|
|
I was given an application that calls a driver which also calls interrupts at H/W level in order to update that BIOS of a ceratin laptop. However, I was asked to develop the application in such a way that I won't have to install the driver any more just to activate the interrupts for the BIOS update. Is it possible to do so and if yes, how can I proceed. The application by the way was made in Visual C++ ver. 6.0 so I assume that this is the right section for my query. Thanks a lot.
|
|
|
|
|
User mode code cannot directly control the hardware. You need the device driver to be able to do this.
|
|
|
|
|
Thank you for the reply. However, I think I was not able to clarify my question. What I meant with the skipping of the device driver is the avoidance of installing the driver manually. As such, I was thinking
of dynamic loading of drivers but I have no idea about this and if this is applicable for all types of drivers. Thanks again.
|
|
|
|
|
Hi all,
I would like to know, if someone knows how to get the physical address of an IP address for example(This is just an example):
192.168.0.100 -> www.sitename.com
I would like to resolve to IP address.
Many Thanx
Regards
Programm3r
|
|
|
|
|
Programm3r wrote: resolve to IP address
gethostbyname()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanx....
Regards
Programm3r
|
|
|
|
|
hello,friends.can you give some codes about content-based audio retrieval or ActiveX control modules,thank you a lot.
|
|
|
|
|
Requests along the lines of 'please write this for me' rarely get answered. What are you trying to do exactly ? What have you already done ? Where do you need help ? The more you show that you've done more than ask someone else to write your code, the more answers you will get.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Is there any control that can display the waveform of an audio file and can start, pause, resume and stop the playing of the audio file?
curiosity
|
|
|
|
|
The windows media player control can play it, I wonder if there's a visualisation that just shows the waveform ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: I wonder if there's a visualisation that just shows the waveform
yes, the "oscilloscop" visualization does it. but i am not sure you can select it from outside WMP...
|
|
|
|
|
Hello,
I am facing a unique problem, that even if I include the header file, yet the class is not recognized. It gives me the error missing ; before (some variable) and errors generated subsequently. Please help.
Thanks and regards,
Software Developer
Sanjay Khapre
|
|
|
|
|
See if class declaration is suppressed by some preprocessors.
Can you show how class is declared,included and used ?
|
|
|
|
|
It is difficult to help without actually seing the code. Post the code for the class declaration and where it is used.
You probably forgot to add ; at the end of the class or you mispelled the name (remember it is case-sensitive).
|
|
|
|
|
Hello,
I have attached the code. I have a dialog box in which I am placing a RichEdit box as a child window control. Without creating an object of RichEdit, how can I set its position inside its parent, that is the dialog box?
<br />
# include "MyRichEdit.h"<br />
class CMyRichEdit ;<br />
<br />
class CTrialRichEditBreakDlg : public CDialog<br />
{<br />
public:<br />
CMyRichEdit m_RichEdit ;<br />
CTrialRichEditBreakDlg(CWnd* pParent = NULL);
<br />
enum { IDD = IDD_TRIALRICHEDITBREAK_DIALOG };<br />
<br />
<br />
protected:<br />
virtual void DoDataExchange(CDataExchange* pDX);
<br />
protected:<br />
HICON m_hIcon;<br />
<br />
virtual BOOL OnInitDialog();<br />
afx_msg void OnPaint();<br />
afx_msg HCURSOR OnQueryDragIcon();<br />
afx_msg void OnDrawCircle();<br />
DECLARE_MESSAGE_MAP()<br />
};<br />
Thanks a ton. And what about my previous query posted, that is of not being able to trap F9 key in this same application, I have explained it in my previous query.
Sanjay.
-- modified at 5:44 Wednesday 23rd August, 2006
-- modified at 5:50 Wednesday 23rd August, 2006
-- modified at 6:01 Wednesday 23rd August, 2006
Software Developer
Sanjay Khapre
|
|
|
|
|
where it is giving error ?
If Its CMyRichEdit.. , you need to show its declaration header file.
|
|
|
|
|
Which I have already done.
Didn't you see the first line?
Software Developer
Sanjay Khapre
|
|
|
|
|
SanjaySMK wrote: Didn't you see the first line?
Yes , I seen it.
But I wanted you to show, header containing class declaration of CMyRichEdit.. Which you included as first line
|
|
|
|
|
Dear friends,
I use an edit control as a message box. I want to change the color of writing in edit control (default color is black). Do you know how to do that?
Thank you,
Cheers,
Joy Anne
|
|
|
|
|
|
I want ot color the splitter and i want ot look it as flat.
how can i do it?
|
|
|
|
|
create the subclass for splitter control. After that create the event wm_ctl_color. Here you can assign the color whatever you want.
|
|
|
|
|
Hi all,
In Dialog based application user has to enter the file name to continue the next operation.If he enters any special chararacters like " ?,$,@",or integers, how to validate them.
he should not enter any varibles or any special characters.
Regards,
Harish
|
|
|
|
|
Use the strtok() function
|
|
|
|