|
What type of application, you are working with?
Make sure following things,
-You are using Debug configuration.
-If you are developing dll/COM add-in, its loaded in target exe correctly.
|
|
|
|
|
Hi Prasad,
Thanks for ur suggestions.
I am using Win32 appliaction, and Debug configuration.
I have loaded target exe file properly.I am sure about this things.
Inspite of these setting i am getting same error.
We are implementing new project in that Debugger is not working, but in another system Debugger is running properly. I do not understand what is the probelm?
|
|
|
|
|
Try a "Rebuild all"
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
"Rebuild all " dosent work.I have done it earlier.would please give other suggestions.
|
|
|
|
|
See the answer from prasad_som. Says it all.
I can think of two resons for not reaching the breakpoint:
1.
The code in question is commented out, or defined out.
2.
You are not doing a debug build.
If I'm wrong, (and a "Rebuild All" doesn't help), then I'm out of guesses.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Hi,
Thanks for your suggestions.
I got your second point.But i am sure that i am using Debug version of build.I clarify from
Build-> Setactive configuration option from my code.
But i didn't understand your First point clearly.Please explain briefly.
|
|
|
|
|
OK.
Assume you did wrote some code, i.e. a function.
Then you put a breakpoint in that function.
Later on you rewrote the entire function, but you didn't want to remove the first version of it.
So you commented out (or defined out) the function (with the breakpoint still there).
Now, the breakpoint cannot be reached, so VC++ will warn you and disable the breakpoint.
An example:
void class::func()
{
m_classvar = 0; // You out a breakpoint here
}
Now, you rewrite the function (and comment out the old version of it), like this (or with /* ... */):
(notdef is not defined)
#ifdef notdef
void class::func()
{
m_classvar = 0; // You out a breakpoint here
}
#else
// The rewritten function.
void class::func()
{
m_classvar = 4;
}
#endif
So, your breakpoint is set on a piece of code that will never be compiled, and hence, it will be disabled when you start your debugging session.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
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
|
|
|
|
|