|
I would agree on the fact that the question is pretty much straight forward. I meant to tell that you have not even decided on an approach on how to go about it. But if the approach is what you wanted opinions on, then fair enough.
You mentioned that you wouldn't want to use COM in your original post, so you could try sockets? It does not look like a good idea if installation or some kind of 'push' activity happens from the server side. This design could be troublesome, as the client may not be ready all the time.
A better approach would be to make the client 'poll' for updates on a regular interval. If there is an update available, the client could request a download from the server, get it and do a ShellExecute() or something, as per the design to apply the latest updates.
This way, the user would get an option to specify when should the updates happen.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hello !
I am working on an MFC dialog based project from past few days, today i tried to add a combobox ( or button , etc) to my dialog it gives the following message :
Add/Remove operation is impossible, because code element "MyDlg" is read only
i also checked the properties of my file, it was selected read only, i disabled it. Again i checked it it automatically selects to "Read only".
is there any solution to this problem !!
|
|
|
|
|
|
Hai all,
In my project I have used many dialog boxes. When I call tree control in one of the dialog boxes I get a Debug assertion failure (In dlgdata.cpp at the location ASSERT(!pDX->m_bSaveAndValidate); line number 636). Please any one help me.
Thanks and Regards
Bhanu
|
|
|
|
|
What are you trying to do ? Please, post some relevant code. Did you try debugging to see what is going on ?
|
|
|
|
|
Actually in my project I use 6 dialog. In one of my dialog I need to place CTreeCtrl. I created variable name for the control and when I run the program in debug mode, it shows Debug Assertion error like the above.
When I try to debug further, I just got struck up at the first line of the DoDataExchange and this is very strange to me.
If I debug further it shows error in the dlgdata.cpp file and m_hWnd is showing that "expression cannot be evaluated". I found that the error is occured when I set (true) the properties "Has Lines", "Has Buttons" and "Lines at root" of CTreeCtrl. Please help me.
|
|
|
|
|
bhanu_8509 wrote: I created variable name for the control
How did you do this ? When is the crash occuring exactly ?
|
|
|
|
|
I created the variable using the wizard. When I try to show the dialog the error occurs.
|
|
|
|
|
bhanu_8509 wrote: When I try to show the dialog the error occurs
How are you trying to do that ? Please post some usefull code (using the "code block" tag).
|
|
|
|
|
bhanu_8509 wrote: When I try to debug further, I just got struck up at the first line of the DoDataExchange and this is very strange to me.
You probably deleted a control after having created a control variable for it? May be DDX is trying to operate on a control that doesn't exist. Have you tried disabling that first line and compiling?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
If I comment then it shows on the next line.
|
|
|
|
|
Why don't you try to analyse the problem? Have you verified that ALL the IDs that are listed in the DDX function actually exist?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
bhanu_8509 wrote: When I try to debug further, I just got struck up at the first line of the DoDataExchange and this is very strange to me.
This is an indicator that you have a call to DDX_Control() for a non-existant control. Why not comment them all out and note the result?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
The debugger is not working?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
When I run a project, it shows exception. If I debug using F11 or F10, I can't go beyond that line where it shows exception. I can't see Disassembly also. What to do? Here is the code:
void TestAI::EnableShaders()
{
dtCore::ShaderManager& sm = dtCore::ShaderManager::GetInstance();
dtCore::ShaderProgram* sp = sm.FindShaderPrototype("TestShader", "TestShader");
if(sp != NULL)
{
sm.AssignShaderFromPrototype(*sp, *m_Obj->GetOSGNode());
mEnabled = true;
}
}
Exception occurs at the following line:
sm.AssignShaderFromPrototype(*sp, *m_Obj->GetOSGNode());
Here is the contents of Output Window.
First-chance exception at 0x00407336 in GUI.exe: 0xC0000005: Access violation reading location 0x00000020.
Unhandled exception at 0x00407336 in GUI.exe: 0xC0000005: Access violation reading location 0x00000020.
How to resolve these exception?
|
|
|
|
|
Do you check if your pointers are properly initialized. BTW what happens inside GetOSGNode function. Did you try to get into this while debugging?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Yes. There's the problem. If I press F11 or F10, I can't go beyond that line(Exception Dialog is shown). What to do?
|
|
|
|
|
Did you use a debugger to see if everything is correct ? What is the value of m_Obj ?
|
|
|
|
|
Yes. It contains a meaningful value. It contains the following:
osg::ref_ptr<dtCore::Object> {_ptr=0x018285f8 } osg::ref_ptr<dtCore::Object>
|
|
|
|
|
T.RATHA KRISHNAN wrote: GetOSGNode()
What happens inside the GetOSGNode() method?. Post us the code piece...
Regards,
Rane
|
|
|
|
|
T.RATHA KRISHNAN wrote: Exception occurs at the following line:
sm.AssignShaderFromPrototype(*sp, *m_Obj->GetOSGNode());
Setting a breakpoint on that line, what is the value of sm , sp , and m_Obj ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi all,
If Anybody creates setup package using InnoSetup,how to install a driver (eg.B100.inf).Pls help me.....
Thanks & Regards,
Anitha
|
|
|
|
|
Have you seen this[^]
Regards,
Rane
|
|
|
|
|
Is there any function to do the following operation in CPP?
Round(3.4) = 3
Round(3.5) = 4
|
|
|
|
|
ceil() function?
ceil( 3.4 + 0.5 ) = 3;<br />
ceil( 3.5 + 0.5 ) = 4;
|
|
|
|