|
|
Up |
|
|
  |
Author: kalpeshkalpesh
Date: Apr 29, 2008 21:51
I have one DLL which having more then one class. In each class i use
some socket function so here i need to call WSAStartup function in
every class initialize. I want to avoid to call WSAStartup every time
in each class.
So is there any technique from which call WSAStartup only once in DLL
and used in all the class.
Thanks
Kalpesh
|
| |
|
| |
4 Comments |
|
  |
Author: vidishasharmavidishasharma
Date: Apr 29, 2008 21:15
I want to add the button in reading pane of outlook 2003. This can be
achieved only using
win32 api's . I found the class name of reading pane using
spy++(a visual studio tool). It was #32770 (dialog) however when I
programatically try to
find all the child window of this class name I get all the child
window of 'outlook send and recieve progress'. I agree that it is
also
a dialog window. there are many such dialog windows in outlook how do
I instruct my outlook to get only reading pane dialog and not not any
other dialog availabe in outlook.
//I found the window(which gives wrong window)
_windowHandle = FindWindow("#32770", null);
|
| Show full article (1.33Kb) |
|
| |
1 Comment |
|
  |
Author: moonfacellmoonfacell
Date: Apr 29, 2008 20:27
Hi guys,
I need to load image file in png format from disk into memory, and get
its bitmap. My limitation is only win32 api, and I can NOT use GDI+,
and other third party library.
How to do that ? :)
Need your help!
Thanks a lot...
|
| |
|
4 Comments |
|
  |
|
|
  |
Author: arthurclucasarthurclucas
Date: Apr 29, 2008 07:27
Hi everyone,
I'm have two iPac Devices and I'm trying send some bytes from one to
another via Bluetooth communication.
I use the CreateFile command to send the data and the ReadFile command
to read the data.
In booth commands I use the appropriate COM port.
When I try to send the bytes, it appears to work (the return is 1).
When I try to read the bytes, it also appears to work (the return is
1).
But it always gives me the return 1 when I read the bytes, even when
nothing is sent. So I don't know if my process is working. Can anyone
help me?
I use the code below to open the COM port:
HANDLE PortOpen(LPTSTR lptszPortName, DWORD* dwError)
{
DCB PortDCB;
COMMTIMEOUTS CommTimeouts;
HANDLE hPort;
|
| Show full article (2.98Kb) |
|
1 Comment |
|
  |
Author: OmerOmer
Date: Apr 29, 2008 04:52
Hi,
Is there a way to copy a dll's exports table to another dll?
This is what i'm trying to achive:
I have a group of DLLs:
a.dll
b.dll
c.dll
and so on….
Each DLL in this group ALWAYS exports func1, func2, func3.
Sometimes, I can find a DLL that belongs to this group that besides
these 3 functions also exports several other functions, for example:
d.dll exports func1, func2, func3 AND GetStatus() and
EndOperation().
|
| Show full article (1.34Kb) |
|
no comments
|
|
  |
Author: MCMC
Date: Apr 29, 2008 04:35
I'd like to know what program is activated when WM_ACTIVATE is activated
Here's my code. I don't get anything in "mystr"
...
case WM_ACTIVATEAPP:
thread=(DWORD)lParam;
if ((int)wParam)
{
GetModuleFileName((HMODULE)lParam,mystr,127);
}
...
I don't need full filename btw.
|
| |
|
2 Comments |
|
  |
|
|
  |
|
|
  |
|
|
  |
Author: lukkycharm1lukkycharm1
Date: Apr 29, 2008 02:10
Hi everyone:
Here's my dilemma. Say, I want to schedule my PC to wake up at a
certain time from a stand-by and direct it to go to a web site. I can
use Windows Task Scheduler to wake up but when I direct it to open a
web site, say hotmail.com, when PC wakes up all I see in the IE
window
is "Internet Explorer cannot display the webpage". Obviously my
network connection is lost and I need to repair it.
Does anyone know how to repair it using Windows resources, or network
APIs?
My OS is Windows XP SP2
I use a broadband modem that is visible as a network connection in
Windows
I tried running the following in a batch file, but that didn't help:
IPCONFIG /RELEASE
IPCONFIG /RENEW
ipconfig /flushdns
ipconfig /registerdns
start http://www.hotmail.com
|
| |
|
12 Comments |
|
|
|
|
|
|