|
Have a look at WM_NCHITTEST and WM_NCMOUSEMOVE. Maybe you can handle then in your own functions and create a tooltip yourself.
Don't try it, just do it!
|
|
|
|
|
hi,,
Anyone familiar with the AESalgorithm
There is an implementation of the AES algorithm in the below link. If u download it..
http://www.thecodeproject.com/cpp/aes.asp
in Table.h
(1.) Why have they used s boxes in ‘int’s? why not
const int CRijndael::SBox[256] rather than ---const char CRijndael::SBox[256] and replace the negative values with positive?
(2.) What does
const int CRijndael::sm_T1[256] …. const int CRijndael::sm_T8[256] tables correspond to?
(3.) and const int CRijndael::sm_U1[256]…const int CRijndael::sm_U4[256] tables correspond to
(4.) also const int CRijndael::sm_shifts[3][4][2] tables correspond to?
tnx
|
|
|
|
|
Why not pose these same questions to the article itself? That way the author has a chance to respond.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
This is the third time you are asking that question!
Isn't it enough?
Don't try it, just do it!
|
|
|
|
|
well.the 2nd time actually.
Do u know the ans by any chance??;P
Vendy
|
|
|
|
|
hi dave..
i did post it.. nobody answers!!!
Vendy
|
|
|
|
|
Could anybody throw light on design time painting of an ATL composite control.
Regards,
D.Ramesh
Deekonda Ramesh
|
|
|
|
|
Dear Sir,
I have write a simple winsocket program on XP Pro SP2 with Visual studio net. 2003. All is fine.
But when running the program on other machine like XP Pro SP1 or Win2000 Pro SP4 or on XP Home edition, my program does not run due to ntdll.dll (function RtlIpv6StringToAddressExW does not exist in preview version of ntdll.dll)
And with the app dependency walker and can see the difference between those ntdll.dll.
I do not need to update my other system to XP Pro SP2; What can I else do.
Thank you in advanced.
Pierre Kande
|
|
|
|
|
It sounds like you are calling an API that was added in SP2. Your only choice is to not call it on pre-SP2 systems, and find/write some equivalent code to use on those systems.
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Thank you for your reply,
But I have resolved the problem. I have link my app to the all DLL of windows and not to the DLL install on my OS. and running the program in other system, all is fine.
This mistake is from MS, because it cause program build on XP Pro SP2 can run in older version if you link only with the old version dll.
have it in mind.
|
|
|
|
|
I've never heard about that api "RtlIpv6StringToAddressExW", and even google doesn't know it.
Nevertheless, take care when using ip6, it is often not yet supported by windows.
Don't try it, just do it!
|
|
|
|
|
Dear Alex,
Thank you for your reply to my request:
In fact if you have the VC tools: "Dependency Walker", and if you have XP Pro SP2, if you open the ntdll.dll, you will see the following function that MS have added and that are not in version XP Pro SP2.
"RtlIpv4AddressToStringA RtlIpv4AddressToStringExA RtlIpv4AddressToStringExW RtlIpv4AddressToStringW RtlIpv4StringToAddressA RtlIpv4StringToAddressExA
RtlIpv4StringToAddressExW RtlIpv4StringToAddressW RtlIpv6AddressToStringA
RtlIpv6AddressToStringExA RtlIpv6AddressToStringExW RtlIpv6AddressToStringW
RtlIpv6StringToAddressA RtlIpv6StringToAddressExA RtlIpv6StringToAddressExW
RtlIpv6StringToAddressW.
So when I build my App, the linker use the ntdll.dll and call the function RtlIpv4AddressToStringW and RtlIpv6StringToAddressExW. and those function are not defined in the preview version of ntdll.dll. My version is: 5.1.2600.2180
The call to those function is made from WS2_32.dll (at version 5.1.2600.2180 to )that call it from ntdll.dll
never try but make it.
|
|
|
|
|
I am using VC++.net 2003 to access matlab with C API, I have to call a function which is programmed in C#. It looks like VC++.net doesn't like "ref" keyword.
>>>>>>>>>>>
r = ma.GetMatrix(matname, ref a); /// <--- source code from C#
<<<<<<<<<<<
"ref" works well in C#, but when I call this function ("GetMatrix") in managed C++, I got an compilation error:
>>>>>>>>>>>
"cannot covert parameter 2 from 'double __gc[,]' to 'double (__gc *) __gc[,]'
<<<<<<<<<<<
I am new to VSS.net, could anybody kindly help me if there is "ref" equivalent keyword in C++?
Many thanks!
|
|
|
|
|
|
i want to read all the records of a file using Xstream class, iam a begginer, please help me with examples of codes...
Thanks in Advance!!!
|
|
|
|
|
Well, i'm trying to make an application, that can view the AVI file with the cars and recognize the numbers of cars. So I've already found the place of number - but accuracy is bad, the point that I positioning my view is not always in the center of the number. So for example the number can be in the center, in the conrers e.t.c. And the chars are different size... The next step is to recognize it... Well - this is the main problem - i can't solve it... I don't know how to dot, do i have to teach my neural network for different size of characters ( it is very hard, because of a load of data), and another way is to find the characters ( i don't know how), get it size and then fit it to my recognition window...
Does anybody have had deal with such problems???
|
|
|
|
|
Hai ,can any body solve my problem?how can we find out the space character in a text file using vc++ ? An d also i want to replace that space to string .pls help me...
shan
|
|
|
|
|
well.....it doent matter if u r using c/c++/vc++.....the method is the same...
use the basic file operationz.....
like fopen to open the file,fgetc()to get the character!
eg:
int a;
.....
....
...
..
.
a=fgetc(stream);
.....
....
...
..
.
and then if the value of a is 32(ascii) understand that it is space
or
if(fgetc(stream)==' ')
by the way what do u mean by convert space to string?????
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
If your file is not so big, and if your project is link to MFC as shared lib, you can use the class CString to handle the text file.
e.g.
CString tmp(buffer);
// where buffer contains data read from your file
CString replaceString("myreplacestring");
while(tmp.Replace(" ",replaceString));
// Not all string like " " will be replace by "myreplacestring" and not " "
THink this helps you
|
|
|
|
|
How can i query the available com ports from windows? I think this is not possible with the comm functions, do i have to query a certain device class?
|
|
|
|
|
I have taken this From News Group, this Post is Quoted by Mr J NewCommer
"for(int i = 0; i < 128; i++) // 128 is semi-random choice
{ /* test it */
CString com;
com.Format(_T("\\\\.\\COM%d"), i);
HANDLE h = CreateFile(com, ...stuff here..., OPEN_EXISTING, ...);
if(h != NULL)
{ /* file exists */
int n = c_Ports.AddString(s);
c_Ports.SetItemData(n, PortExists);
} /* file exists */
else
{ /* open failed */
DWORD err = ::GetLastError();
if(error == ERROR_ACCESS_DENIED)
{ /* in use */
int n = c_Ports.AddString(s);
c_Ports.SetItemData(n, PortInUse);
} /* in use */
else
{ /* no such port */
continue;
} /* no such port */
} /* test it */
where PortExists and PortInUse are some sort of #define or enum values you defined.
I used an owner-draw combo box. PortInUse elements displayed in gray, PortExists in black.
Whenever I dropped the list down, I quickly iterated through all the elements and for
every one of I re-examined the ports to see if they were NOW available (CBN_DROPDOWN
handler did this), and changed the ItemData to indicate what their status was. When I used
a checkbox-style control, I grayed the in-use ports out (the user could set up listeners
on several ports in that program). It allowed for dynamic changes, and it indicated that
the port existed but some other program was using it (I had some special cases for ports I
knew my program was using to avoid confusion). In addition, in this era of USB, you should
handle all WM_DEVICECHANGE messages and re-enumerate the ports (I just added this feature
last year for a client program).
However, someone pointed out that this loop is rather clunky and inefficient, and there is
a better way of enumerating serial ports, which is the references that came up within the
last few months.
"
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
|
can you all please help me in this question??
i am a new user in C++!!
1. how to use an array to implement the queue with the random number in the range 1 to 10??
2. how to use a circulary linked list to implement the queue with random number in the range 1 to 10??
my email address: khyap_2011@yahoo.com
|
|
|
|
|
If you need help, you're going to need to ask the question more clearly - a clearer description of what you're trying to do. Also, if this is a school assignment, then I advise you look at the stuff they've taught you for a while. It can't be hard.
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^]
|
|
|
|
|