|
Yes Rajesh i was doing the same, but after removing these functions now i didnt get linking error.
But now only i have created one client and importing the dll, but when i am trying to use methoda ( mylib:: ) i am not getting any methods, so can you please tell me what changes i should make in my dll.
thanks for your support.
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
Hai all,
i am using leadtool13 in my application ,and i am facing some problem in that,i have loaded five image in image viewer . i started to draw markups in first image ,without relesing left mouse button(without completing markups on that page) i am going into next page by pressing shotcut keys(like page down key) then my application is crasing.
can anyone tell me where that problem would be. Anyone who used the leadtool can u please check this Scenario and let me know pls.
how can i solve this crasing issue.
thanks in advance.
mahe
|
|
|
|
|
if i select the segment of one edit content, its background color is blue, how can i make it transparent?
you can figure it if you drag mouse over my question, it arise blue background, how can i avoid it?
|
|
|
|
|
By using something like a custom edit control, possibly? That's one which you pretty much write yourself...
The blue selection thing is kind of built into the standard controls - and into the standard Windows UX. How are you going to indicate a selection?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
If you are using MFC, then you can try subclassing the editbox and call SetSel(-1, 0) in its OnMouseMove() handler.
|
|
|
|
|
i use windows api, not mfc.
|
|
|
|
|
In that case you can handle WM_MOUSEMOVE message for your editbox and in the handler you can send EM_SETSEL to the editbox with wParam = -1 and lParam = 0
|
|
|
|
|
if i do just like your way, it'll lose selection area, won't it?
i still want the select effect of draging operation
|
|
|
|
|
Yes you are correct. In this case entire selection will be lost. May be you can think about using a transparent layered window to show selection rectangle.
|
|
|
|
|
|
It is possible to do by changing behavior of the control.
What do you mean by i still want the select effect of draging operation?
Just saved selection beginning and ending positions?
Your requirement however, will hide the selection and that would be frustrating for users.
JohnCz
MS C++ MVP
|
|
|
|
|
yes, you are right, i still want the information ofselection begining and ending positions
|
|
|
|
|
OK, as I have stated, as many other functionality changes it is possible but it is against Windows standard.
Is an edit control you are using a multiline or single line? Do you know how to subclass window, because you will have use subclassing ti begin with.
JohnCz
MS C++ MVP
|
|
|
|
|
i have known subclass window, and my edit control is multiline
|
|
|
|
|
Rejeesh.T.S:
How window can receive mouse messages from a control? It does not. If you want to handle control’s messages, you have to subclass it.
JohnCz
MS C++ MVP
modified on Friday, November 27, 2009 3:24 AM
|
|
|
|
|
How window can receive mouse messages from a control? It does not. If you want to handle control’s messages, you have to subclass it.
JohnCz
MS C++ MVP
|
|
|
|
|
CODE:
int k = 35;
printf( "%d %d %d", k == 35, k = 50, k > 40 );
When i compiled same code in Turbo C++ then its giving output as:
0 50 0
and in Microsoft VC++ its giving output as:
0 50 1
Can anyone tell me why there is difference in outputs when i change the compiler?
Thanks
Nilesh
http://nnhamane.googlepages.com/
|
|
|
|
|
Different compilers might -and will- interpret the code differently, don't be surprised at this because either some compilers follow standards, some don't, ot they interpret them differently, or the standard itself does not specify every possible aspect of a given problem so the guys making the compiler are free to handle it as they see fit. Based on your code sniplet, i'd say that the Turbo C version will "run" from right to left, so:
k > 40 -> 0, since k is at this point 35 which is less than 40
k = 50 -> 50, since k is 50
k == 35 -> 0, sinke k is 50 which is not 35
While the MS compiler is probably doing it in this order:
k = 50 -> 50, makes k 50 at first
k == 35 -> 0, since k is 50, not 35
k > 40 -> 1 since k is 50 which is greater than 40
There might be other explanations too i guess.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Thanks Code-o-mat for your explanation. But it means that there are no standard rules for compilers to interpret the code. Am i correct?
http://nnhamane.googlepages.com/
|
|
|
|
|
Well, there!s the ANSI C Standard[^] that i know of, but as said, some things the standard specifies as "undefined", which means -as i said- that different compilers might and will behave differently in case they "meet" something the standard does not clearly have an "oppinion" about. Your best bet to avoid such problems is to try and write code that avoids these and write "obvious" code. For example, depending on what you need you could do:
...
k = 50;
printf("%d, %d, %d", k == 35, k, k > 40);
or
int a = (k == 35);
k = 50;
int b = k;
int c = (k > 40);
printf("%d, %d, %d", a, b, c);
and so on...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Correct. There are holes in the definition of the C language. IIRC the official specification even holds an appendix with issues that the compiler designer has to solve, and has to publish how he did solve them. One of those issues is the order in which side effects may occur, e.g. does i=i++; modify i or not?
Your defense against such things is very easy:
1) don't create statements that are ambiguous. In your example, split the line in a couple of lines and use temporary variables, so the parameters get evaluated in the order you choose.
2) or switch to an unambiguous language, such as Java and C#
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Hi,
I am using NOTIFYICONDATA.szInfo in order to display a baloon tooltip when my tray-based application starts. The balloon has a "x"-button in it's upper right corner, so the user can close the message. If he doesn't, the balloon tip is being displayed all the time.
Which message do I have to send if I want to close the balloon tooltip automatically after a few seconds, for example by using a timer?
|
|
|
|
|
Just the message to hide a window (SW_HIDE if i'm correct)
Rozis
|
|
|
|
|
you can use the uTimeout memeber of the NOTIFYICONDATA structure to specify the timeout value.
|
|
|
|
|
Hello,
is there a guide how to isntall the latest Platform SDK that is compatible with Visual Studio 6.0 under XP SP3? I have read that te latest SDK compatible with this package is the Windows Server 2003 SDK, which I downloaded right from here: [^]
The download itself is a pain in the ass, since it's not a ZIP package or something comfrotable you would expect, but 15 single files to download.
The next step is that the setup.exe you get after extracting starts your browser, which is Firefox in my case, telling me that IE 5.0 or later is required. So I try to run default.html manually in IE 8.0 (which is installed on my plattform), but as soon as I click "install Core SDK", IE crashes, and tells me the Active X is not secure (although I explicitly allowed it).
Is there some guideline on how to install this SDK properly? Why can't MS make it simple as nearly every other software company?
|
|
|
|