|
|
How can I programmatically change setting in Local Area Connection property using C++ application?
I need to uncheck some property and then check it back. For example File and Printer Sharing for Microsoft Networks.
Thank you.
Ilya
-- modified at 16:03 Wednesday 20th December, 2006
|
|
|
|
|
If you getting error like that
error C2872: 'IXMLDOMParseErrorPtr' : ambiguous symbol
could be 'c:\program files\microsoft visual studio 8\vc\include\comdefsp.h(1263) : _com_ptr_t<_IIID> IXMLDOMParseErrorPtr'
1> with
1> [
1> _IIID=_com_IIID<ixmldomparseerror,& _guid_3efaa426_272f_11d2_836f_0000f87a7782="">
1> ]
1> or '.\debug\msxml3.tlh(250) : MSXML2::IXMLDOMParseErrorPtr'
What would be correct resolution
1. instead of
IXMLDOMParseErrorPtr spErr = pXMLDom->parseError;
use
::IXMLDOMParseErrorPtr spErr = pXMLDom->parseError;
Or use
MSXML2::IXMLDOMParseErrorPtr spErr = pXMLDom->parseError;
|
|
|
|
|
|
i don't know if it's your case, but it's commonly bad practice to use a using namespace directive, because of such problems of ambiguousness...
|
|
|
|
|
I know, man I know. It was too many places to correct, so I was trying to be smart as
I found that decls. in comdef is different than in msxml*.tlh, so I decided not to use defaults.
Thanks, anyway.
|
|
|
|
|
Hi, I have a few comboboxes on a form. Let's name them LHS (left hand side) and RHS. Whenever I click LHS, I want RHS to reset to it's 0th element.
However, when I click an element in LHS, LHS resets to it's 0th element but will still show the proper items in RHS even though LHS is reset to it's 0th element. There are no pointers to objects being used.
What could be a culprit of this problem? Some windows message? I checked the message maps in the class wizard and combo messages are cleared (except CBN_SELCHANGE, of course).
|
|
|
|
|
When you click on left combo then values of this combo rest to zero,right?
|
|
|
|
|
but i don't think the problem is there
Run-Time Check Failure #2 - Stack around the variable '_Lk' was corrupted.
HEAP[framework(debug).exe]: Heap block at 00CA73D8 modified at 00CA7428 past requested size of 48
Windows has triggered a breakpoint in framework(debug).exe.
This may be due to a corruption of the heap, and indicates a bug in framework(debug).exe or any of the DLLs it has loaded.
The output window may have more diagnostic information
this error just occured out of the blank.
the project is a loader of 3ds files and making a nice scene with some communication through com port with a haptic device. everything worked great till this morning.
maybe some one can give me a push into the right direction or a request of the info he needs from me to point out where the problem could be.
thnx in advanced
Ewart ten Brink
|
|
|
|
|
Hello,
i recive sometimes this message, and only when i want to debugg my app, and i dont know why they is shown!
Can any one explain me what can be an reason for that message.
I dont have any breakpoints set i my sourcecode!
regards
break;
|
|
|
|
|
break; wrote: User breakpoint called from code at
It is as message says. If some memory access violation occurs, this message pops-up.
|
|
|
|
|
Hi,
thanks very much!
I solve them now!
break;
|
|
|
|
|
break; wrote: I solve them now!
how ? please share !
|
|
|
|
|
Does anyone know where I can get some code written in c++(win32 or MFC), that performs transitions between 2 images( Fade, Zoom Out, Page roll etc...). I have tried various imaging libraries including - ImageStone & CXImage, but cannot find any support for transitions.
Many Thanks,
Atom
|
|
|
|
|
CXImage is a good code what do you need exactly?
|
|
|
|
|
OK,
I've found a solution, thanks for your help.
Atom
|
|
|
|
|
I glad you find it
|
|
|
|
|
Hello,
how to disable item(one or more items) from a CMenu that is shown as popup menu?
Diable normal menu items i do with this:
m_cMenu.EnableMenuItem(IDC_CLEAR, MF_BYCOMAND | MF_DISABLED | MF_GRAYED);
but how to do this when i show the same menu as an popup menu?
I call my popup menu like this:
cMenu.GetSubMenu(1)->TrackPopupMenu(1, posMouse.x, posMouse.y, this);
and all menu items are active! How to disable them?
thanks in advance
break
|
|
|
|
|
You got:
CMenu* pMenu = cMenu.GetSubMenu(1);
//do stuff
pMenu->EnableMenuItem(...);
//show
pMenu->>TrackPopupMenu(1, posMouse.x, posMouse.y, this);
Greetings from Germany
|
|
|
|
|
Hello,
thanks, that works!
break;
Greetings from Germany to!
|
|
|
|
|
|
|
Programm3r wrote: now that this some of the code CLI
then ask the right forum. you should be flamed to asking the wrong forum knowing perfectly what you do
|
|
|
|
|
This one works for me
Stings
/krissi
|
|
|
|
|
in my application's app class initinstrance i am creting a thread as
(new CMYThread)->CreateThread();
in the run() of that thread i am wrote
CSocket mySock;
mySock.Create(1234,SOCK_DGRAM);
when the execution passes the line mySock.Create(...) it's giving an exception saying access violation and in the debug it takes the point to
void* CMapPtrToPtr::GetValueAt(void* key) const
{
if (m_pHashTable == NULL)
return NULL;
UINT nHash = HashKey(key) % m_nHashTableSize;
CAssoc* pAssoc;
for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL; pAssoc = pAssoc->pNext)
{
if (pAssoc->key == key)
return pAssoc->value;
}
return NULL;
}
and showing
this pointer as NULL in the 'watch'.
Can u guide me the way out.
Thank you.
KIRAN PINJARLA
|
|
|
|