Search:
Type: Posts; User: @EE@
Search:
Search took 0.05 seconds.
-
August 6th, 2023, 06:47 PM
-
August 1st, 2023, 11:05 PM
Hi,
My dialog class needs to make some third party library calls that runs efficiently in the background. The SDK has .h, .lib and .dll files that my dialog app can make calls but need the calls...
-
August 1st, 2023, 10:49 PM
VictorN thanks.
Seems like Microsoft stopped doing such CView message handlers stuff in CDialog and kept them separate. Long back when I was doing MFC before I left it, I would think it was...
-
August 1st, 2023, 09:34 AM
yes, that works. I could not explain why WindowProc would not catch its message handler ID inside.
-
July 31st, 2023, 11:19 PM
1. Please ignore the CStatic. I only use static text control on mfc dialog.
2. This code is called in the OnInitDialog of cdialog:
CMyView is drived from CScrollView for zooming and scrolling.
...
-
July 28th, 2023, 12:06 AM
CScrollView object displays image in this static text control which is on the main dialog. CStatic has a scrollbar.
this is the code I used to capture scroll event. When I move the scrollbar, no...
-
July 27th, 2023, 12:18 AM
although, do not have the actual code:
LRESULT MyDLg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
.
.
case WM_VSCROLL: // is this...
-
July 26th, 2023, 01:24 AM
Hi,
I have a MFC dialog with the static text control. I like to get access to its static text control. scrollbar when i move its scrollbar. I could not. Used windowProc , no luck. any code example??
-
March 2nd, 2023, 11:49 PM
if I make one of them postmessage, the sendmessage on other would work. Or, if I make both postmessage, then they each work too.
If I keep both sendmessage, then 2nd sendmessage waits for ever.
-
March 1st, 2023, 10:23 AM
hi,
this works as it launches Child Dialog.
sendmessage(hParentChildBtn, BN_CLICK,0,0)
however, this does not work as it does not close the child dialog.
sendmessage(hChildOKBtn,...
-
February 22nd, 2023, 01:49 AM
traced the code,; somewhere before calling the VerifyAndCalcStat it was setting a field. Very tiny step. crc1 and crc2 seem to be the same and match. thanks for the hints.
unsigned int crc1,...
-
February 21st, 2023, 10:02 AM
meant to be a sudo code:
void VerifyAndCalcStat(DataStruct * d)
{
//DataStruct contains char strings and unsigned integers.
CRC2=CrcOf((unsigned char*)d);
.
.
-
February 21st, 2023, 03:12 AM
Hi,
Got structure DataStruct:
DataStruct d1;
//fill d1;
FilldDataStruct((unsigned char*)&d1);
CRC1=CrcOf((unsigned char*)d1);
void (DataStruct * d)
{
CRC2=CrcOf((unsigned char*)d);
-
October 23rd, 2022, 07:03 PM
victor and 2Kaud, thank you for very kind help. I learned a lot.
-
October 22nd, 2022, 10:24 AM
what is difference between these two?:
::PostMessage( dlghandle , WM_SOMEMSG , (WPARAM)&s, 0 );
PostMessage( WM_SOMEMSG , (WPARAM)&s, 0 );
-
October 20th, 2022, 11:52 PM
Hi All,
sorry for asking newbie questions. trying to learn the concept: Calling PostMessage from inside a thread function which could be member of a dialog class. When to omit the first parameter?....
-
October 13th, 2022, 02:09 AM
I have no access to the code for the function1. it is part of a library with no source.
when I pass:
char c[20];
function1(c);
then s = std::string(c),
then i can use the s inside a map to...
-
October 11th, 2022, 01:42 AM
Hi,
string s;
function(char* GetChArr);
function(&s[0])
what is the side effect of this?. s becomes nonassignable after return.
-
September 21st, 2022, 12:47 AM
how to know if a .sys file is for 64 or 32 bit system?.
-
September 13th, 2022, 01:02 AM
-
September 4th, 2022, 01:06 AM
what i liked to verify was weather to use the actual code or its library call inside a thread should be the same. code is code, it does not matter if it is a library call. Just place it in inside a...
-
September 4th, 2022, 12:57 AM
hi,
can i use int8_t, int16_t, int32_t, int64_t, and uint8_t, uint16_t, uint32_t, uint64_t,to make sure the widths do not change from different versions of visual studio?. Like one version might...
-
September 2nd, 2022, 10:57 PM
it is an imported library function that communicates with IO and have no source for it. Include the library function call inside a worker std::thread and wait till it is done?.
-
September 1st, 2022, 11:01 AM
hi,
my console program calls a c++ library function which does IO data exchange?. best way to optimize the throughput?.
-
August 21st, 2022, 09:32 PM
|
Click Here to Expand Forum to Full Width
|