|
Just a thought, is your service running under Local Account?
In that case, you won't be able to connect over the network (since noone has logged on). And you wan't be able to connect to the DB (over the network).
Could this be the cause of your problem?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Hi,
It shouldn't be the case, because Local account is not the one which is used to log in to the database.
I'm not quite certain, but MSDTC is probably what you're looking for. If you add it as dependency for your service, it should be working properly.
Regards
|
|
|
|
|
Hi
I want to convert my project into unicode enabled. so for this whether I have to convert all data type to unicode enabled or convert only those datatype that are releted to resources.
Thanks
M.Atul
|
|
|
|
|
Hi friends,
when i will debugg my project breakpoints are not setting properly.After debug i will get white color mark instead of red color.
Error message:One or more breakpoints cannot be set and have ben disabled.Program stop the execution of program.
These following setting i have done for debugger.
1)Project->setting->debug->server exe file path.
2)Project-> setting->c/c++->optimization->Disabled(debug)
3).........................-> debug info->Program database for edit and continue
After buliding i am not getting pojectname.pdb. but i am getting Old project .pdb file.I guess problem with .pdb file.I hope anybady having some idea.please share your ideas.
|
|
|
|
|
Generally, this happens, if no debug symbol loaded for code, you have set breakpoint for.
|
|
|
|
|
I have set breakpoint for one function called DocOpenOldStyle().But it doesn't matter for function.
May i know what type of setting i want to do?
|
|
|
|
|
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.
|
|
|
|