Search:
Type: Posts; User: philkr
Search:
Search took 0.07 seconds.
-
September 11th, 2008, 01:52 PM
Hi,
I got a problem with a Silverlight application embedded in an ASP.NET page. The control was already running well, but suddenly (I don't know what exactly we changed) the invocation with...
-
July 19th, 2006, 10:16 AM
I can't tell without seeing the code of the function which writes to the com port.
-
July 19th, 2006, 08:32 AM
Yes, this can only have been a joke, I thoght afterwards. Sorry, that I didn't understand it in the first place.
I am sympathizing with you. This must be really bloodcurdling. I wonder what...
-
July 19th, 2006, 07:10 AM
What the...! This code is hardly readable, therefore unmaintainable. Where did you learn such bad coding style?
The shortest solution is not always the best.
-
July 19th, 2006, 05:56 AM
What about PostMessage()?
-
July 19th, 2006, 05:40 AM
LPTSTR nptr = strMacAddr.GetBuffer(strMacAddr.GetLength());
unsigned char Addr[6] = {0};
_stscanf(nptr, _T("%02X-%02X-%02X-%02X-%02X-%02X"), &Addr[0], &Addr[1], &Addr[2], &Addr[3], &Addr[4],...
-
July 19th, 2006, 05:28 AM
You could use the member function GetBuffer() to get a character array and then use ::sscanf() to read the formatted data.
-
July 19th, 2006, 05:08 AM
Does this also count for C, I mean with free() then?
-
July 19th, 2006, 04:57 AM
Why does it not work with char* instead of BSTR?
-
July 19th, 2006, 04:53 AM
It is only a typo: It must be "strlen" (lowercase).
-
July 19th, 2006, 04:51 AM
Here are the tools you need:
http://www.wintotal.de/yad/index.php?rb=30&id=78
http://www.wintotal.de/yad/index.php?id=535
(The original site is www.sysinternals.com, but it is/was down, so I...
-
July 19th, 2006, 04:22 AM
Concerning your compile problem: I assume you want to pass a function pointer as the third argument. In this case the right syntax is like this:
void SendREDBoot (HANDLE com, HWND hWnd, int...
-
July 19th, 2006, 04:17 AM
You're right. Since you didn't like the english wikipedia article, I copied this piece of code from the german one.
-
July 19th, 2006, 04:14 AM
You have to handle the WM_SETCURSOR window message and simply return TRUE; in the handler.
-
July 19th, 2006, 04:13 AM
What about storing the thread handles and WaitForMultipleObjects()?
-
July 19th, 2006, 04:12 AM
It is obvious: Because the client machine hang, it failed to send a request to close the connection. Therefore for the server the connections seemed to be still established. Since nothing was sent...
-
July 18th, 2006, 09:27 AM
I wonder if Yuliya (on this forum) is the original scammer (who wrote the email) or another guru, who is having a little fun with this thread.
-
July 18th, 2006, 09:19 AM
Well, what shall I say? Force of habit! ;)
-
July 18th, 2006, 08:56 AM
char* szTemp = malloc(2*strlen(p)+1);
char* d = szTemp;
for(char* s = p; *s != '\0'; ++s)
{
*d = *s;
++d;
if(*s == '\\')
{
*d = '\\';
++d;
-
July 18th, 2006, 07:59 AM
Well, you have to skip the unimportant parts. But maybe a simple example will be better.
The following C program will calculate the CRC-32 of the 8 bit long data stream 10001100:
#include...
-
July 17th, 2006, 03:20 PM
-
July 17th, 2006, 12:49 PM
Not clear what you mean, but I give it a try:
void* p = NULL;
printf("0x%08X\n", (unsigned long)p);
p = realloc(p, 32);
printf("0x%08X\n", (unsigned long)p);
-
July 17th, 2006, 12:26 PM
I am neither sure if I am right, because you all understood the OP different than me, but I assume infernosnow wants to have something like this:
string myVarName1;
string myVarName2;
string...
-
July 17th, 2006, 12:01 PM
I thought you wanted variables names with a consecutive number at the end. Arrays can be used for this. I don't understand where the problem is.
-
July 17th, 2006, 09:50 AM
Thanks for the explanation, laserlight and Elrond! I will take a look at it. Maybe sometime I will need it, too.
|
Click Here to Expand Forum to Full Width
|