|
|
Up |
  |
Author: Russell.AubuchonRussell.Aubuchon
Date: May 9, 2008 18:14
--
If will you elect the loyal sharp injections before Pervis does?
|
| |
|
| |
no comments
|
|
  |
Author: BeagleBeagle
Date: May 9, 2008 11:16
Folks,
I have the following running code. Line 5 attempts to pass the DLL
handle to the running DLL code (line 8) for use in later LoadResource
calls. This code results in a "Run-Time Check Failure #0" (Ref *1).
Not sure how to resolve this other than not write this kind of code,
but it seems to me that there is a better way to get the HMODULE/
HINSTANCE of the loaded DLL from within the exported function via
win32 call. Is that possible?
Thanks,
BEA
File : call_dll.c
1 typedef void (__stdcall *PFN_ASSIGN_DLL_HAN)(HINSTANCE hDll);
2 void mycall(void) {
3 HMODULE hDll = LoadLibrary(TEXT("mydll"));
4 PFN_ASSIGN_DLL_HAN Assign_Dll_handle = (PFN_ASSIGN_DLL_HAN)
GetProcAddress(hDll, "Assign_Dll_handle");
5 Assign_Dll_handle(hMir);
...
}
|
| Show full article (1.14Kb) |
|
| |
6 Comments |
|
  |
Author: gamenamegamename
Date: May 9, 2008 08:32
Hi,
In the *nix world, there is the command 'readelf' to figure out if an
executable contains debug symbols. Is there an equivalent command in
win32??
Tks.
-T
|
| |
|
2 Comments |
|
  |
Author: somisomi
Date: May 9, 2008 07:47
Hi
I am finding problem with what GetDiskFreeSpaceEx returns.
GetDiskFreeSpaceEx returns below three parameters:
lpFreeBytesAvailable: the total number of free bytes on a disk that
are available to the
user who is associated with the calling thread. If per-user quotas are
being used, this
value may be less than the total number of free bytes on a disk.
lpTotalNumberOfBytes: the total number of bytes on a disk that are
available to the user who
is associated with the calling thread. If per-user quotas are being
used, this value may be
less than the total number of bytes on a disk.
lpTotalNumberOfFreeBytes: the total number of free bytes on a disk.
In our application the parameters lpFreeBytesAvailable and
lpTotalNumberOfBytes are not
returning the values considering the user-quota that is defined on the
volume.
|
| Show full article (1.72Kb) |
|
7 Comments |
|
  |
Author: vidishasharmavidishasharma
Date: May 9, 2008 01:29
Hi I am trying to register a window as follows(I am doing this so that
I get empty window and I can add controls into it as I desire)
wc = new WNDCLASSEX();
//wc.hInstance =
Marshal.GetHINSTANCE(this.GetType().Module);
wc.lpszClassName = "TestWindow";
wc.lpfnWndProc = wndProcDelegate1;
wc.cbSize = Marshal.SizeOf(typeof(WNDCLASSEX));
wc.hbrBackground = GetStockObject(BLACK_BRUSH);
atom = RegisterClassEx(ref wc);
This is how I am registering I get soem value of atom
Then I register the window using
IntPtr FloatingWindow = CreateWindowEx(WS_EX_TOPMOST, atom,
wc.lpszClassName, WS_CHILD | WS_OVERLAPPEDWINDOW | WS_VISIBLE,
readingpane.X - 200, readingpane.Y, 200, 200, _windowLike,
IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
However I get my window handle as zero.
This is what I have used to createwindow
|
| Show full article (1.32Kb) |
|
5 Comments |
|
  |
Author: moonfacellmoonfacell
Date: May 9, 2008 01:20
Hi guys,
Can we create a browser control without a window hosted it ?
If we have a window to host the ActiveX control, we must use another
thread to handle its message callback. I want use a single thread in
application.
Thank you :)
|
| |
|
2 Comments |
|
  |
|
  |
Author: pedro_nfpedro_nf
Date: May 9, 2008 01:03
I just want to post here the conclution to this old thread, I can't
reply to the thread any more, I guess it is no longer active...
The problem was related to the port timeout settings, this is the code
that fixed it, it is placed after the ::SetCommState() function:
//
// Initialize timeout values
//
COMMTIMEOUTS commTimeouts;
BOOL bRetTimeouts = FALSE;
/// \ Set the timeouts for the CommPort
/// \ These values were retrieved by the setting of the Comm through
hyperTerminal
commTimeouts.ReadIntervalTimeout = 10;
commTimeouts.ReadTotalTimeoutConstant = 0;
commTimeouts.ReadTotalTimeoutMultiplier = 0;
commTimeouts.WriteTotalTimeoutMultiplier = 0;
commTimeouts.WriteTotalTimeoutConstant = 5000;
bRetTimeouts = SetCommTimeouts(m_hFile, &commTimeouts);
ASSERT(bRetTimeouts == TRUE);
|
| |
|
no comments
|
|
|