|
Thanks for giving Example.But i havn't done like this in my code.
Kakan it is very stange that we are running our older projcet with debugging option( Debugger working properly).
but its doesn't work for my new projcet.
|
|
|
|
|
I'm out of ideas here.
But I suppose you can do what I do when it happens to me:
Go to the line where your (disabled) breakpoint is. Press F9 twice.
That should remove your old breakpoint and insert a new one, hopefully enabled.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Hi,
I am the administrator of my system.My system is in network.I don't know Why
a read-only property is set to my project Folder.I have Visual Studio workspace in that folder . I have created VC++ project .Now, When I try to add new Functions using the right click properties of a userdefined dialog I am getting an error saying that "Add/Remove Operation is Impossible because the codeelement CMYdialog is ReadOnly" .When googled some articles say that its a VS2005 bug.
Is there any way where I can remove the ReadOnly Property?
Any Suggestions would be helpful.
-- modified at 0:55 Thursday 30th November, 2006
Today is a gift, that's why it is called the present.
|
|
|
|
|
narayanagvs wrote: I don't know Why
a read-only property is set to my project Folder
You may have accidentally set read-only property.
narayanagvs wrote: When googled some articles say that its a VS2005 bug.
If so, you can check if its fixed, or any work around.
narayanagvs wrote: Is there any way where I can remove the ReadOnly Property?
Doesn't righ-click-->properties dialog do ?
|
|
|
|
|
I have gone through the following article and tried all those things specified in it but I couldn't fix it.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=239504&SiteID=1[^]
When I Right click on dialog and select properties then add new windows message like WM_LBUTTONDOWN i get the error
"Add/Remove is impossible, because the code element 'C...' is read only"
Today is a gift, that's why it is called the present.
|
|
|
|
|
Last reply about formatting seems to be possible cause. But, you said , you have tried it, isn't it?
|
|
|
|
|
yeah... i tried it
Today is a gift, that's why it is called the present.
|
|
|
|
|
Hi,
try deleting all intermediate files, alongside with *.NCB, *.APS and *.OPT files.
Regards
|
|
|
|
|
Hi.
How can I assign a hyperlink to the text from the static control along with proper mouse cursor?(with hand sign)
Thanks
Rakesh Thakur
|
|
|
|
|
|
I am making a SDI application in that i have used splitter control in that splitter contol i have made a list control using this code
CListCtrl& lc = GetListCtrl();
lc.ModifyStyle(0,LVS_REPORT);
lc.InsertColumn(0, _T("Name"), LVCFMT_LEFT,50);
LVCOLUMN col;
col.mask = LVCF_FMT | LVCF_TEXT;
col.pszText = _T("Monitor Type");
col.fmt = LVCFMT_LEFT;
lc.InsertColumn(1, &col);
lc.SetColumnWidth(1,150);
lc.InsertColumn(2, _T("Host(Url)"), LVCFMT_LEFT,150);
In my application when i click a toolbar button a dialog box opens up and the user has to fill the values in that dialog boxes columns and when the user will press the save button then those values will be saved in previous list control
Now the prolem is i am calling object of that list ctrl class in my dialog boxes class its giving an error degub assertion failed when i run the program
and when i use dialog variables in list ctrl class it does not add up the values to list ctrl
how to do it
|
|
|
|
|
neha.agarwal27 wrote: Now the prolem is i am calling object of that list ctrl class in my dialog boxes class its giving an error degub assertion failed when i run the program
and when i use dialog variables in list ctrl class it does not add up the values to list ctrl
Perhaps, if you include the piece of code decribed above, our lives will be easier. Moreover, please, surround your code with preformatting tags:
<pre>
code here
</pre>
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.
|
|
|
|
|
In a DLL function,I need to call a exe and pass parameters to that exe.
Actually the parameters are to be used in a function of the exe file.
In Dll function
<br />
extern "C" __declspec(dllexport) PlotWave(double *Data,int nData,int mode)<br />
{<br />
HWND hExeWnd=FindWindow(NULL,"WFP"); <br />
if(hExeWnd)<br />
{ <br />
SetForegroundWindow(hExeWnd);<br />
ShowWindow(hExeWnd,SW_SHOW);<br />
} <br />
else<br />
ShellExecute(NULL,"open","C:\\wfp.exe",NULL,NULL,SW_SHOW);<br />
<br />
}<br />
Now I have to pass those parameters(double*,int,int) to the wfp.exe.
I know in ShellExecute we can pass parameter to the file we want to open.
But how can my wfp.exe accept that parameters.
What should I write in my wfp.exe to do so.
I tried using SendMessage(hExeWnd,WM_PLOTWAVE,0,0).
My wfp.exe only can recieve the message but how to get the parameters
because SendMessages() accepts only WPARAM and LPARAM.
Help please!
|
|
|
|
|
poda123 wrote: But how can my wfp.exe accept that parameters.
What should I write in my wfp.exe to do so.
Look up GetCommandLine and CommandLineToArgv .
|
|
|
|
|
poda123 wrote: What should I write in my wfp.exe to do so
Entry point function of your exe(main,winmain etc.) will take care of that.
You need to Parse its parameters. In case of windows application you can use GetCommandLine , as suggested earlier.
poda123 wrote: I tried using SendMessage(hExeWnd,WM_PLOTWAVE,0,0).
My wfp.exe only can recieve the message but how to get the parameters
because SendMessages() accepts only WPARAM and LPARAM.
Help please!
In this case, you can wrap required information in structure. i.e.
class myInfo
{
double *m_pDouble;
int m_iFirst;
int m_iSecond;
public:
myInfo():m_pDouble(NULL),m_iFirst(0),m_iSecond(0)
{
}
};
myInfo *pSendInfo = new myInfo;
SendMessage(hExeWnd,WM_PLOTWAVE,(WPARAM)pSendInfo,0);
Now, in command handler you can unwrap the information.
|
|
|
|
|
Thanks for your replies.
As I need to pass a double pointer as a parameter,
ShellExecute would not be working.
As suggested by prasad,I used SendMessage() function.
In the DLL function
<br />
extern "C" __declspec(dllexport) void __stdcall PlotWaveForm(double *Data,int <br />
nData,int Mode)<br />
{<br />
double *pData=new double;
SendMessage(hExeWnd,WM_PLOTWAVE,(WPARAM)pData,0);<br />
delete pData;<br />
}<br />
In the recieving application(.exe),I cast the pData to double* as
<br />
void CWFPDlg::PlotWave(UINT Msg,WPARAM wparam,LPARAM lparam)<br />
{<br />
double *WaveData=NULL;<br />
WaveData=(double*)wparam;<br />
}<br />
Since wparam is a pointer to double array,
I used WaveData[i] to get values to plot the wave,but the values
in the array are not correct.What's the problem.
|
|
|
|
|
There should not be any problem.
poda123 wrote: double *pData=new double;//just checked for one parameter
SendMessage(hExeWnd,WM_PLOTWAVE,(WPARAM)pData,0);
delete pData;
I hope you have passed some value in array.
poda123 wrote: double *WaveData=NULL;
WaveData=(double*)wparam;
Does WaveData showing some garbage or showing just NULL.
If its showing garbage value; try commenting delete pData; statement after SendMessage .
|
|
|
|
|
You can also use WM_COPY message during execution or use shared memory
|
|
|
|
|
Plz provide me some link related to mfc collection classes especially map classes
|
|
|
|
|
|
thnax alot for the link.
are there any good articles in code project for easy understanding?
|
|
|
|
|
A google search on "mfc collection classes" yields links to many articles.
The MFC/ATL documentation for each class is pretty good too, with code samples.
|
|
|
|
|
Raj Gopal wrote: Plz provide me some link related to mfc collection classes especially map classes
Here is one[^].
BTW a simple search with Google with keyword as "MFC Collection classes" should have helped you much better.
|
|
|
|
|
thx for the link sir.
are there any good articles in code project for easy understanding?
|
|
|
|
|
Hi All,
I use a CStatic to show a bitmap in a dialog. The bitmap is a thumbnail of a file. Everytime when a file is chosen, the code call CStattic::SetBitmap to associates a new bitmap with the static control and the bitmap will be shown out immediately. But I minimize the dialog and maximize the dialog again, the bitmap in the CStatic control can't be shown out.
Do you know how to show the picture out again when the dialog is maximized?
thanks,
Eric
|
|
|
|