|
What we usually do is that we write a function in the dll( eg - InstallHook )and from that function, the SetWindowsHookEx() is called. So the application that install hook normally call the InstallHook() function. The handle returned by the SetWindowsHookEx() is kept in a shared data segment in the dll itself.
nave
|
|
|
|
|
Hello,
what is a string table ? Why all the strings added in the program not seen in the string table.
What should be seen the string table
Prithaa
|
|
|
|
|
The strings that you added to the string table will be visible there. It's not a case of the IDE building a table of all strings, but of you building a list of strings to store and reference from there. This gives you a central location for, for example, changing hte language of your application.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
prithaa wrote: what is a string table ?
From MSDN:
It's a Windows resource that contains a list of IDs, values, and captions for all the strings of your application. String tables make it easy to localize your application into different languages. If all strings are in a string table, you can localize the application by translating the strings (and other resources) without changing source code.
prithaa wrote: Why all the strings added in the program not seen in the string table.
Don't confuse the string table resource with string literals.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
I made some chnages in the my program and because of which I am not able to view the string table in my resourse file.
And when I go to Resource file ,it says Load failed.
How do I get my resource files back?
|
|
|
|
|
When the loading fails, it usually pops up a dialog asking you whether to edit resource manually. It will guide you to the location of thr .rc file where the problem occurred. In many cases, you can fix the .rc file manually. Then reload the resource again.
Best,
Jun
|
|
|
|
|
Close your project and visual studio. Goto the folder where your projects ".sln" file is present. Double click it. It will open and load the resource file also. (Not 100% sure abt your system). But tell me if it is working in your system.
Anurag Gandhi.
|
|
|
|
|
Hello,
My project folder doesnot have .sln file. Now what should I do.
Now if I want to insert a dialog I am not able to do it.
When I click on .rc file I get a pain text file which has code written in it within BEGIN END
Prithaa
|
|
|
|
|
prithaa wrote: My project folder doesnot have .sln file. Now what should I do.
Verify whether you are using VS6 or VS200x.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
I have a command line application – developed by someone else and I need to be able to get the text from it (at some point that application writes in the command line window that a task is completed and I need to know when that occurs). I am able to find the window by the GetWindowText returns me the window name – which I already use for finding the window and the
<br />
::SendMessage(hwnd,EM_SETSEL,0,-1);
::SendMessage(hwnd,WM_COPY,0,0);<br />
::SendMessage(hwnd,EM_SETSEL,-1,0);
<br />
if (!IsClipboardFormatAvailable(CF_TEXT)) <br />
return TRUE; <br />
<br />
if (! ::OpenClipboard(NULL)) <br />
return TRUE; <br />
<br />
hglb = GetClipboardData(CF_TEXT);
is not working.
If anyone knows a way to solve this problem – please let me know. Thanks.
|
|
|
|
|
|
Thank you.
I had just try the sample and it seems to work .
Thanks!
|
|
|
|
|
Hi all
I have a server on a Windows machine that should accept client connections to send them data. This server is distributed with a software and all I have to do is to write the client application using socket programming.
If I write the client under Windows, it will work correct. But if I write the client under Linux, the client cannot connect to the server returning the error 'Connection timed out'. I use C++ and C# under Windows and C under Linux.
To make sure that my Linux client is correct, I wrote a server application under Linux and they worked correct. So I think that the problem is in Windows-Linux communication.
Any help...
Regards
islheg
|
|
|
|
|
Dumb question but do you have the correct server address?
-Steven Hicks CPACodeProjectAddict
|
|
|
|
|
Yes, and I can connect to it using telnet.
|
|
|
|
|
islheg wrote: I use C++ and C# under Windows
How are you creating the server side? Which classes? Classes such as CSocket[^] are windows centric.
|
|
|
|
|
I don't create the server side. It is ready made, the SerialForwarder, and listens to port 9001. For the linux client, I use C socket structure which does't work. For a windows client, I use C# Socket class.
|
|
|
|
|
please check using "netstat -an" in windows which port ur server is actually listening and is your linux client conecting to that actual port are you using HTONS or someting while assiging port nunmber.?? HTONS will twiddle your portnumber.
|
|
|
|
|
netstat -an gave me 0.0.0.0:9001 which is the correct port. The SerialForwarder server is ready made and I don't know how the port number is assigned in it. However, in the linux client I don't use HTONS to assign the port number, I assign the port number as 'addr.sin_port = 9001; '
Regards
islheg
|
|
|
|
|
Hi all. When making a socket program under Windows, would it be better to use a do loop over a while/for loop when you use the send()/recv() functions? Im just curious because im looking at some sources that have the do loop and a few while loops inside the function. Thanx in advance!
|
|
|
|
|
A better way to do this, if doing Windows API programming is to use the WSAAsyncSelect() API to send notifications to a window when any network events occur for a socket. Look at the documentation on MSDN here.
Hope this helps!
--PerspX
|
|
|
|
|
They basically do the same thing, only in slightly different manners. E.g., do{}while() and while(){} loops are exactly same except that the do loop executes at least once, because the condition is only tested at the end of execution.
Best,
Jun
|
|
|
|
|
Hi,
I have images coming to me very quickly, 200 pictures per second, I have all the BYTE arrays, and I need to do a lossless compression in realtime, is there any algorithm out there that can keep up with this, and is there anyway code samples that allow me to do this.
Thanks in advance.
|
|
|
|
|
The only thing I can think of that might keep up is RLE (Run Length Encoding). It won't give you that much compression, depending on the images, but it is light and fast. If you're talking sequential video frames then a frame difference algorithum might be better. I thought most people still used DSP hardware for this sort of thing
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Hi Godspeed,
godspeed123 wrote: I need to do a lossless compression...
PNG is a nice format - it is basically a compressed bitmap. It is available an PNG8 and PNG24. I don't know through put numbers for the realtime requrements.
I should probably be asking, what is the current format of the images?
Jeff
|
|
|
|