|
I am running Windows 98 .
I don't have partition magic. The problem is that I can't even access the partition with DOS.
I am the handsome one in the crowd.
|
|
|
|
|
I need a program (create it in VC++ console app) that does Disable. or Enable Network Connections like when you do this:
1. Win XP Prof. - Open Network Connections.
2. Right-click the LAN or High Speed Internet connection that you want to disable.
3. Click Disable. or Enable
I was searching in "Platform SDK: IP Helper" IpReleaseAddress
GetAdaptersInfo ...
I did find only a funtion doing the same thing like (win32 command)
ipconfig /release myLocalAreaConnection
BUT this does not help me because we do not have DHCP enabled.
Many thanks for any hints
Marcel Grunder
|
|
|
|
|
I inadvertedly deleted the .scf entery in my Register, so now I can't click on the "Show Desktop" Button. Does anybody know the entry for this in the register? I think it might be something like "%1"%* but I can't get it to accept it.
I am the handsome one in the crowd.
|
|
|
|
|
Put this in notepad save as .scf
[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
The .scf file contains the lines when I open it in Notepad. What I am missing is the entry in the Register. That is when one runs regedit then there should be a key with something like scffile and subkeys like shell, command, open. That entry under open is missing and what I need to place in the register.
I am the handsome one in the crowd.
|
|
|
|
|
Hi there
I have been trying to use CToolTipCtrl with splitter views (CSplitterView).
In my SDI project, I have 2 views created with CSplitterView which contain
bitmaps. I want tooltips to appear when the mouse moves over a bitmap. I
have been successful in implementing this, but... the problem occurs when I
do the following:
- I click on view A
- I move the mouse into view B, over a bitmap. The tooltip appears but with
the text "Last Record". What happens is that window B is not receiving
TTN_NEEDTEXT message. I need to click on window B to have the correct text
displayed.
I would need help to implement one of the following:
1. how do I route the TTN_NEEDTEXT message to all my views.
or
2. how do I disable the tooltip in a view as long as this view is not
receiving TTN_NEEDTEXT message.
or
3. any other brillant idea.
Thanks a lot!
Laurent
|
|
|
|
|
So here is my solution:
I have implemented a method to handle TTN_NEEDTEXT for the mainframe. The method sends the
message to the window at the location of the mouse pointer:
BOOL CMainFrame::OnToolTipNeedText( UINT, NMHDR*, LRESULT* )
{
const MSG* pstpMsg = NULL;
CPoint clCursorPos;
pstpMsg = GetCurrentMessage();
::GetCursorPos( &clCursorPos );
::SendMessage( WindowFromPoint( clCursorPos )->GetSafeHwnd(), pstpMsg->message, pstpMsg->wParam, pstpMsg->lParam );
return TRUE;
}
Anybody sees any problems with this implementation?
Laurent
|
|
|
|
|
There seems to be no apparent problem with the implementation you specified.
The basic handling of the splitter window, I think, when receiving a tool tip request, is to pass the request to the view which currently has focus. What you are doing here is trapping the tool tip request message and passing a notification to the window under the mouse instead, which is the correct way. I am unsure if this is correct, you could check it with Spy if you need to.
I believe that if you didn't implement this, the tooltip showed by the view would be the one bound to the view currently having focus. So, if you clicked on view A and moved your mouse over to B, the tool tip displayed would be the one bound to view A, and vice versa. However, as I didn't see the code you used, I cannot be sure, as I haven't tested it myself.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hi!
I am doing measurments on IP-TV. My program is joining a multicast group and then I recieve video packets from the group.
I will study the packets I recieve, but I do not know how to convert from mpeg-2 to ASCII in c++ and vice versa.
If there is someone out there that knows, I am thankful for your help,
|
|
|
|
|
I don´t know exactly what do you mean when you say 'convert from mpeg-2 to ASCII in c++'.
I have developed (for my company) a mpeg transmission system based on RTP protocol. I listen to a multicast port and i receive the data in a buffer i provide. I mean, I create a buffer like this...
BYTE *pBuffer = new BYTE[BUFFER_SIZE]; // buffer big enougth
then the socket functions fill the buffer and I use it like
SRtpHdr *pHdr = (SRtpHdr *)pBuffer;
Once I proccess the headers I reach the raw mpeg data to proccess itself (i mean, save to a file, display using DirectShow...)
|
|
|
|
|
Juan Antonio Bermejo wrote:
I don´t know exactly what do you mean when you say 'convert from mpeg-2 to ASCII in c++'
I am totally confused on that one too... I know they don't want to display video using ASCII characters(instead of pixels) and coloring do they??
John
|
|
|
|
|
C++ ?
I am writing a virus scanner and all is working fine but, the UI freezes up when it is moved.
I recursivly call the same function over and over again until all files have been read.
I put in a timer function, and even tried sleep(1000) but alas no good.
Any idea's?
Best Wishes,
ez_way
|
|
|
|
|
U need to put your loop or recursive call in a separate thread
Check AfxBeginThread
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Example pls. Thanks
Best Wishes,
ez_way
|
|
|
|
|
UINT doLongTimeConsumingWorkHere ( LPVOID pParam )
{
while (recursing)
BlaBlaBla ( ) ;
return 0 ;
}
AfxBeginThread ( doLongTimeConsumingWorkHere , pParam ) ;
the pParam u pass here is the argument of the doLongTimeConsumingWorkHere
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
OK Thanks,
Great answer1
Best Wishes,
ez_way
|
|
|
|
|
Hi,
I don't know how to say it in a good way in english, but i need to know how to setup the path that i go through wenn i press Tab in a dialog. Is there a Standart function for it in VC6? or do i have to edit the Resource Template file?
greetz willem
|
|
|
|
|
You might want to check out the "Tab Order" item in the Layout menu that becomes visible when you select a dialog in the resource view.
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
the answer was right there, just couln't find it,... thank you...
|
|
|
|
|
Press Control +D
Best Wishes,
ez_way
|
|
|
|
|
HI All
How to gray checkbox in tree control.
Thanks
Shiv
|
|
|
|
|
I hope my program can display check boxes by reading configuration files.
But how to add the check box control dynamically?
|
|
|
|
|
|
Is there any valid reason in 2003 to use unions in C++?
thanks
|
|
|
|
|
'Cause there is union keyword.
|
|
|
|