|
Thanks..
Actually I did look in the help at mouse_event and saw "Windows NT" only then read no further - it refered to MouseEventEx only...
Just goes to show you - read everything carefully...
|
|
|
|
|
Hi,
I'm currently writing an application: the user creates a (one or more) layout, and he/she can place one or more 'text-objects' on this layout. These text-objects are (at this moment) CRichEditCtrl's. I derived my own class from CRichEditCtrl, in which I do some neat stuff (like transparency etc). So far so good.
A (very) nice feature to have in this application would be the ability to rotate these textobjects. Which means, in fact, I have to rotate the CRichEditCtrl itself, since CRichEditCtrl doesn't work with CFont/HFONT (Otherwise, I probably could do something with escapement). Does anyone knows a way to do this?
There are probably some library's that'll do it for me, but I want to stick with CRichEditCtrl. (Unless you know a _very_ good library that does all other cool stuff like word-wrapping as well).
Thanks for reading, I hope you can help me!
--
Alex Marbus
|
|
|
|
|
DWORD WINAPI ThreadProc(LPVOID lpParameter)
{
CDatabase m_db;
try{
m_db.OpenEx("DSN=TestBase;uid=UserName",CDatabase::noOdbcDialog);
}
catch ( CDBException *e )
{
e->Delete();
return 0;
}
m_db.Close();
return 0;
}
void Test(void)
{
for(unsigned u=0;u<100;++u)
{
DWORD ThreadId;
HANDLE hThread = CreateThread (
NULL, 0, ThreadProc, 0, 0, &ThreadId);
CloseHandle (hThread);
}
}
|
|
|
|
|
um, i assume you mean grows in mem size? possibly try declaring hThread before the for loop?
|
|
|
|
|
Hi
My application is a MDI application with multiple form views. I recently have this problem. When I click on Window/New Window menu, it pops up message such as "command failed". Does anyone know why?
Thanks
Sandra
|
|
|
|
|
We have a large project with DLL's that have mutual dependencies. (DLL#1 calls functions in DLL#2, while DLL#2 call functions in DLL#1). When we attempt to build the project we get errors because the each DLL requires the other DLL's lib file before it can link. The MS suggested workaround for this is to run the LIB utility on each project to generate lib files and then link everything together at the end. Unfortunately, VC++ does not appear to support this and to make it work we had to generate and modify make files. This is very error prone and we would prefer to do it some other way.
Has anyone run into this problem before? Do you have a better solution?
Thanks,
Al (acarnali@speedline.com)
|
|
|
|
|
Hi
My application is a MDI application with multiple form views. I recently have this problem. When I click on Window/New Window menu, it pops up message such as "command failed". Does anyone know why?
Thanks
Sandra
|
|
|
|
|
How can I change the row's height of the CListCtrl control ?
|
|
|
|
|
|
please explain me callback specifier.
Advanced thakns.
|
|
|
|
|
Hi,
I need to capture data that sends one old DOS-application to LPT1. I'm intermediate programmer in Visual C++ and I've never write a VXD or SYS driver. Is there other way how to do it?
|
|
|
|
|
The MS docu says that no system-function should be called from within a multimedia-timer callback.
I have the following command in my callback
[...]
system.pBitmap->Redraw_Map();
[...]
pBitmap is a pointer to my own bitmap class and from within Redraw_Map() I have to call BitBlt().
Is this also a system-function call ??? And what is different by using PostMessage() and call my member-function from the event-handler ???
My code works fine ... what can happen after a system-function call from a callback ?
Hope somebody makes this a little clearer to me
Greatings Mario///
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
HI ALL
My question about HIWORD and LOWORD ?
I'm always see
LOWORD (wParam) // in WndProc function
some Data Types like
WPARAM , LPARAM ,DWORD
have LOWORD and HIWORD value
I found in MSDN about HIWORD and LOWORD
it tell me it's macros like
#define HIWORD(l) ((WORD) (((DWORD) (l) >> 16) & 0xFFFF))
#define LOWORD(l) ((WORD) (l))
but I can't understand what this mean and what this does
can you tell me please ...
|
|
|
|
|
Thats simple:
usually u use a command like (HIWORD)(lParam) !
That means you want to have the upper 16 Bit from 32.
To get them you have to shift right 16 (>>16) times and mask out the upper 16 Bit ( & 0x0000ffff ).
To get (LOWORD)(lParam) you have to clear the upper 16 Bit. Converting to a new type WORD from DWORD takes only the lower 16 Bit. The effect is the same.
Hope it helps
Greatings Mario///
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
Hi guys,
How to use pop3 protocols in our application.Do u have any code
for that.Do there any win32 api for pop3 protocols.
|
|
|
|
|
POP3 is actually quite easy. You just connect a socket and send some text commands, then retrieve the returned text.
Check out www.rfc.net for the actual specifications.
|
|
|
|
|
I have an array of numbers say array[0]=-10, and array[1]=23. Furthermore, lets say that they represent a most significant bit, and a least significant bit, so in reality the number is
-1023. How do I combine both elements of the array into a signed integer that I can store??
Regards
Mike Zolna
|
|
|
|
|
|
Thanks, but what if the number is 102 and not 1023, that wont work. I dont know that magnitude of the numbers until they are joined together
Mike
|
|
|
|
|
I don't know what your program is like, so it's hard to say. But if you don't know what the final result should look like, then you won't be able to calculate the final result. You'll need some sort of separate indicator to tell you how the result is split up among the array elements.
--Mike--
http://home.inreach.com/mdunn/
Time is an illusion; lunchtime doubly so.
|
|
|
|
|
Actually,
The elements of the array are from 0-255, or 00 to FF in hex. I need to combine both bytes and turn them into a signed character for processing.
Regards
Mike
|
|
|
|
|
Well, this is not efficient, but shoudl serve as a starting point for you:
long lResult = 0;
int nMult;
for (int x = 0; x< nNum; x++)
{
nMult = 1;
while (nMult <= nArray[x])
nMult *= 10;
lResult *= nMult;
lResult += nArray[x];
}
Note though that if your array has any significant size then you will overflow the integer you're trying ot store it into.
|
|
|
|
|
If your numbers are in range of -signed char- it`s very easy to combine these numbers to an integer:
int result = ( array[0] << 8 ) + array[1];
This command shifts the number stored in array[0] 8 Bit up (left) and adds the number stored in array[1];
Hope that helps
Greatings Mario ///
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
If your numbers are in range of -signed char- it`s very easy to combine these numbers to an integer:
int result = ( array[0] << 8 ) + array[1];
This command shifts the number stored in array[0] 8 Bit up (left) and adds the number stored in array[1]. Shifting a byte by 8 is equal to a multiplikation with 0xff - but shifting is much faster I think.
Hope that helps
Greatings Mario ///
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
Ok, I'm writing a GUI that takes in data and then when the user clicks on a button it creates a process using CreateProcess() and passes the data input by the user to the spawned child process. The child is a Win32 Console program and I need to be able to read in the output of the Child through a pipe. I tried taking a look at the Example in the MSDN stuff, but it didn't even seem to do anything as far as passing the data back and forth. Could someone give me a few tips or point me to a tutorial? Thanks.
Dave Johansen
|
|
|
|