|
|
|
Can anybody tell me why some programmers prefer
MessageBox(_T("Hello world !"));
to
MessageBox("Hello World !") ??
What this _T(..) actually does ????
Regards
Giorgi Moniava
|
|
|
|
|
|
Hi all
in my network-module (MSVC 6.0 dll) i send a broadcast message (raw udp socket) to ip address 255.255.255.255 to see, if other modules are online. this works very fine, BUT....
in one laptop there are 2 network adapters
-> 192.168.100.4
-> 192.168.0.1 (WIRELESS)
and the broadcast message everytime goes to the wrong adapter (192.168.100.4)
it does NOT appear on the WIRELESS adapter.
how can i send the broadcast message to the other (WIRELESS) adapter????
|
|
|
|
|
Are these 2 adapters PHYSICALLY connected to the same network??
A router does NOT route broadcast packets!
Don't try it, just do it!
|
|
|
|
|
I want to make use of a <textarea> element in an Application Wizard for Visual Studio .NET 2003 to obtain multiline user information. Does anybody know how I can do this? I have used to following JScript code (placing the <textarea> within a <form> )
document.formname.textareaname.value
to obtain the input but the AppWizard crashes. Does anybody know of any examples?
I am the handsome one in the crowd.
|
|
|
|
|
Hi,
Can anyone give me advice on how to pass a progress bar control to my dll?
In my dll I have the following test function:
extern "C" __declspec(dllexport) void MoveBar(CProgressCtrl *ProgBar)
and in my app I can successfully load the dll and call the function passing the &m_ProgressBar in the calling routine.
The trouble is when I use the following code in my dll:
ProgBar->SetPos(50);
My app crashes with the following error:
Debug Assertion Failed!
...
File afxcmn2.inl
Line:288
Now, I'm obviously doing something wrong but I can't figure out what
Any help please?
|
|
|
|
|
|
[Line 287]_AFXCMN_INLINE int CProgressCtrl::SetPos(int nPos)
[Line 288]{ ASSERT(::IsWindow(m_hWnd)); return (int) ::SendMessage(m_hWnd, PBM_SETPOS, nPos, 0L); }
|
|
|
|
|
Is your progrma AND your DLL built to use the MFC DLL the same way? Like both are built using the SHARED MFC DLL? If not, make them match and try again.
Otherwise, you will have to change your DLL function to acept the HWND of the progress bar and set the position manually. You can avoid passing the MFC control pointers across the DLL boundary altogether.
The progress bar position can be set using the HWND like this:
::SendMessage(hProgressBarWindow, PBM_SETPOS, nPos, 0L);
Sometimes MFC does not share the MFC 'CWnd*' map tables across the DLL boundaries. So passing the 'pointer' to some CWnd derived class across the DLL results in an invalid window handle or invalid window class pointer. You can experience the same thing within a single EXE if you have multiple threads running too.
|
|
|
|
|
Hie,
I have 2 console processes which dont have message loops. I want to transfer data across them.How to do that?
|
|
|
|
|
Network sockets or named pipes could help.
Don't try it, just do it!
|
|
|
|
|
Or you can try memory mapped files or make them use local RPC.
There are examples here on CodeProject how to do this.
|
|
|
|
|
Need help!!
can i know how to write a program about symmetric matrix based on Aij = Aji ??
thank you!!
|
|
|
|
|
u already have!!!!!.....us the condition u have spoecified and based on that wriet the program!!!!.....dont tell me......
thiz is an assignment!
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
u already have!!!!!.....use the condition u have spoecified and based on that wriet the program!!!!.....dont tell me......
thiz is an assignment!
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
Hi,
I am currently working on a project that will require me to set one of the stop bit. My com setting will be set to 2 stop bits. But I would like to set one of the stop bit to '1' or '0'.
How can I go about doing this?
|
|
|
|
|
You can't. The hardware is not capable of doing this. The purpose of the start and stop bits is to allow the receiving hardware to synchronise with the transmitter.
I suggest you read this Serial and UART tutorial[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
hi there
well i have come across many Sharewares, that allow admins to shutdown their clients
HOW DO THEY DO THAT? perhaps its some knowledge related to admin previliges that i dont know..... and is it that they use RPC or what ........
please someone throw light on this.
thanx
|
|
|
|
|
|
no actually I was not looking for the API, I was rather interested in the previleges and networking involved.
U see, these sharewares dont require any kind of installation or configuration on the clients.
|
|
|
|
|
|
Hello!
I am translating dialogs by calling EnumChildWindows in the dialog class. Windows then calls my translation callback function for all child windows, which looks like this:
BOOL CALLBACK TranslateWindowCallback(HWND hwnd, LPARAM lParam)
{
TCHAR sz[1024];
GetWindowText(hwnd, sz, 1023);
SetWindowText(hwnd, TRANSLATE_FN(sz));
return TRUE;
}
This works pretty fine, but unfortunately it also translates edit controls and rich edit controls. I don't want this. It should translate only buttons, checkboxes, radioboxes, static texts, ...
How can I get the type of a window using only the HWND?
Thanks and best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Check for GetWindowInfo(...) api as one of its argument return with class information of window i.e. WINDOWINFO::atomWindowType , which on using with GetClassInfo(...) api, you will come to know class name of window and As BUTTON, CHECKBOX has predefined classes, So I believe it very easy for you to differentiate it with rest of windows.
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|