|
Hi,
I'm trying to deploy my application that uses the Soap Dll's ( VC++ 6.0 application that calls a web service in a server), ... the problem that I have on clients with 98:
- If I install IE 6.0 and the Soap Tool it all works fine ( altough... the user becomes a bunch of programming tools .. tracers and... ).
- If I try to install IE 6.0 and then soap_core.msm, it doens't work at all , in theory soap_core.msm should be what I need to deploy my application but... what I'm missing here ?
Greetings
Braulio
PS.: Is not very professional to install on the clients machine a Trace Utility, WDSL Generator, and documentation XDDD...
|
|
|
|
|
I need to program UART in Visual C++ to acquire serial data from a hardware
device can some one please help me in this context...
Ever Welcome...
|
|
|
|
|
|
Hi all,
I have a dialog with the followings:
1) it is a modal dialog
2) it is always on top
3) it has no frame (style = popup, border = none)
my question is this, when the dialog has focus (which means i am clicking over it or moving my mouse over is) i want to do one thing, but when the focus leaves the dialog (click somewhere else, or move mouse somewhere else) i want to do something else.....
i tried to catch these messages and it didn't work properly:
1) WM_SETFOCUS/ WM_KILLFOCUS
2) WM_ACTIVATE / WM_ACTIVATE_APP
can any1 help me here?
thanks in advanced
Yaron
|
|
|
|
|
Try SetCapture to get mouse input even if it's outside of your dialog.
To act only once when mouse cursor leaves dialog area try to catch WM_MOUSELEAVE, WM_NCMOUSELEAVE.
Hope that's what you need.
Mickey
|
|
|
|
|
hi,
thanks for reply.
I don't know how to catch these messages, can you show me?
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
In your derived class MESSAGE_MAP section
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_MESSAGE(WM_MOUSELEAVE,OnMouseLeave)
END_MESSAGE_MAP()
Mickey
|
|
|
|
|
thanks
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
I want to do some test about keyboard loging without using hook api. in the following codz, i hope when i press Esc key, the prog will com to an end. but it seems PeekMessage() will never work, always failed. How could it be? Thanks a lot.
#include "windows.h"
#include "stdio.h"
void main()
{
MSG msg;
char buffer[10];
int i, ch;
while(true)
{
if( PeekMessage( &msg,
NULL,
0,
0,
PM_REMOVE))
{
if( msg.message == WM_KEYDOWN && msg.wParam == VK_ESCAPE) break; //Esc pressed, then quit
printf( "Enter a line: " );
/* Read in single line from "stdin": */
for( i = 0; i < 9; i++ )
{
ch = getchar();
if(ch != '\n') buffer[i] = (char)ch;
}
/* Terminate string with null character: */
buffer[9] = '\0';
printf( "%s\n", buffer);
*buffer=NULL;
}
else
printf("peekmessage failed...\n");
Sleep(3000); //ensure there is enough time for keyboard operations
}
}
|
|
|
|
|
Console Applications don't recieve windows messages.
|
|
|
|
|
thank you so much. but can i use a keyboard or mouse hook api in console applications?
|
|
|
|
|
No.You can't do that either.
|
|
|
|
|
|
In CFileDialog, How to make the EditControl which displays selectd file name, Read Only??
My problem is its accpeting a file name if user types file name rather than selecing.
Thanks in advance
|
|
|
|
|
dear all,
how can i retrieve the path of My Documents folder for specific users (say guest) ? is there any function which returns the path.
my documents folder has different location in windows 9x and Xp........any way out?
rIsHaBh
|
|
|
|
|
LPITEMIDLIST pidl;<br />
<br />
HRESULT hr = SHGetSpecialFolderLocation(NULL, , &pidl);<br />
<br />
char szPath[_MAX_PATH];<br />
SHGetPathFromIDList(pidl, szPath);<br />
<br />
LPMALLOC pMalloc;<br />
<br />
hr = SHGetMalloc(&pMalloc);<br />
<br />
pMalloc->Free(pidl);<br />
<br />
pMalloc->Release();<br />
<br />
strcat(szPath , "\\Folder");
|
|
|
|
|
Or even simpler:
if ( SHGetSpecialFolderPath( NULL, pszMyDocFolder, CSIDL_PERSONAL, FALSE ) )
return pszMyDocFolder;
or:
if( SUCCEEDED( SHGetFolderPath( NULL,
CSIDL_PERSONAL,
NULL,
0,
pszMyDocFolder
)
)
)
{
return pszMyDocFolder;
}
depending on which version of the SDK you have installed.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
|
Hello, everyone!
I want to get the current bandwidth (input and output respectively) of a Windows system, for example, 20.2kB for input and 30.1kB for output.
Where can I find some sample codes?
Thanks in advance,
Geo
|
|
|
|
|
For Windows NT-based systems, look at the Performance Data Helper API. You'll be interested in the Bytes Received/sec and Bytes Sent/sec counters on the Network Interface object, I think.
|
|
|
|
|
Thanks, Mike buddy!
I have taken some time to read the API you introduced to me. They are really helpful. I am using the following source code to get in/out traffic bandwidth, but the output is always zero. Can you help?
Source Code:
----------
#include <windows.h>
#include <conio.h>
#include <stdio.h>
#include <pdh.h>
#include "iphlpapi.h"
#include "Iptypes.h"
#include "Iprtrmib.h"
#pragma comment(lib,"iphlpapi.lib")
int main (int argc, char** argv)
{
unsigned long pOutBufLen = sizeof (IP_ADAPTER_INFO);
IP_ADAPTER_INFO AdapterInfo;
memset (&AdapterInfo, 0, sizeof (IP_ADAPTER_INFO));
MIB_IFROW ifrow;
DWORD last_sent, last_recv, current_sent, current_recv;
DWORD diftime, dlwinspeed, upwinspeed, dw_refreshtime;
if( GetAdaptersInfo(&AdapterInfo, &pOutBufLen) != ERROR_SUCCESS ){
printf("Could not open default interface!");
return ( 0 );
}
ifrow.dwIndex = AdapterInfo.Index;
if( GetIfEntry( &ifrow ) != NO_ERROR ) {
printf("Could not open default interface!");
return ( 0 );
}
while (1)
{
current_sent = ifrow.dwOutOctets - last_sent;
current_recv = ifrow.dwInOctets - last_recv;
last_sent = ifrow.dwOutOctets;
last_recv = ifrow.dwInOctets;
printf ("Octs out: %ld\n", ifrow.dwOutOctets);
printf ("Octs in: %ld\n", ifrow.dwInOctets);
diftime=(GetTickCount()-dw_refreshtime);
dlwinspeed = current_recv/diftime;
upwinspeed = current_sent/diftime;
dw_refreshtime=GetTickCount();
printf ("Band in: %ld\n", dlwinspeed);
printf ("Band out: %ld\n", upwinspeed);
Sleep (5000);
}
return 0;
}
----------
Best regards,
Geo
|
|
|
|
|
Hi, I'm having trouble adding a dialog to my mmc snap-in.
the problem occus when I create a dialog in response to a menu command. while the dialog works fine if the menu command is from the context of a top-level scope item, the actual dialog is offset within it's own frame if it comes from a second level menu item.
any help would be much appreciated
|
|
|
|
|
hi,
i using cdatetimectrl for registration form. for taking package need to add any dll for this control. i control not shown in the form. oninitdialog is failed i think this is due to the control. any one help to me.
thanks in advance.
Murali.M
|
|
|
|
|
Try using AfxOleInit()in the constructor of the dialog.
|
|
|
|
|
hi,
thanks for ur guide. actually my problem is after installing setup for the application and then the problem occurs. it's working fine on running source. i solved this problem. problem is mscomct2.ocx is not included while taking setup or package. after inserting the file. now working correctly.
once again thanks for guide.
Murali.M
|
|
|
|